[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:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]accept exits with 9 [04:25:16]New connection [04:25:16]New thread 3067149668 created [04:25:16]Thread 3067006308 joined [04:25:16]Waiting for new connection... [04:25:16] Sock 9.Parse request [04:25:16]Sock 9.Check first char [04:25:16]Sock 9.First char is OK [04:25:16]request: POST /json_proto HTTP/1.0 [04:25:16]Method: POST [04:25:16]URL: /json_proto [04:25:16]Method is POST - this is cgi request [04:25:16]url: /json_proto [04:25:16]query_string will be loaded in cgi processing [04:25:16]execute_cgi json_proto POST (null) [04:25:16]execute_cgi path=json_proto method=POST [04:25:16]POST find Content-Length [04:25:16]Host: 172.17.40.195:8080 [04:25:16]Content-Length: 682 [04:25:16]Content-Type: application/json [04:25:16] [04:25:16]POST finish read [04:25:16]Found Content-Length = 682 [04:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:16]execute_script... [04:25:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:16]POST & json_proto [04:25:16]process_json_proto [04:25:16]json parsed OK: [04:25:16]protocol is kg_v1.0 [04:25:16]action value=close_receipt [04:25:16]process_action close_receipt [04:25:16]cmd_close_receipt [04:25:16]MH_GetDate [04:25:16]Write to MH i2c: F0 00 00 1A 18 21 [04:25:16]Write i2c OK [04:25:16]MH_I2C_Read... [04:25:16]Read from MH i2c: F0 [04:25:16]MH_I2C_Read... [04:25:16]Read from MH i2c: F0 09 00 [04:25:16]MH_I2C_Read... [04:25:16]Read from MH i2c: F0 09 00 1A 18 00 AE C0 1D 67 D5 8D 6C 64 4E [04:25:16]GetLastDocTimeStamp 1729997877 [04:25:16]current date 1730003118 [04:25:16]FM_GetShiftState [04:25:16]SAM_PROTO_GetShiftState [04:25:16]wFMCommunicate request_size=4 [04:25:16]MH_SAM_APDU [04:25:16]CAPDU: 80 13 01 00 [04:25:16]Write to MH i2c: E2 08 00 1B 18 80 13 01 00 00 00 00 00 B0 [04:25:16]Write i2c OK [04:25:16]MH_I2C_Read... [04:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:16]Read from MH i2c: E2 [04:25:16]MH_I2C_Read... [04:25:16]Read from MH i2c: E2 0E 00 [04:25:16]MH_I2C_Read... [04:25:16]Read from MH i2c: E2 0E 00 1B 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 28 [04:25:16]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [04:25:16]wFMCommunicate OK [04:25:16]SAM_PROTO_GetShiftState done [04:25:16]FM_GetShiftState done [04:25:16]opened in 1729988959 [04:25:16]opened+sec_in_day 1730075359 [04:25:16]quantity*price = 100015 [04:25:16]sum+1 = 100017 [04:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 9 27.10.2024 04:25 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145586 ФПД: 128241535465474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T042518&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145586&fm=128241535465474&tin=02508201610067®Number=0000000000091683&sum=100000 [04:25:17]StoreToDocumentArchive [04:25:17]shift 545 fd 145586 [04:25:17]save to /storage/0545/doc_00145586 [04:25:17]save last doc name /storage/0545/doc_00145586 to /storage/kkm_last_doc_name [04:25:17]save OK [04:25:17]Clear old archive folders... [04:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:25:17]tlvbuf is 01A7EA20 [04:25:17]SAM_PROTO_ClearQueue [04:25:17]wFMCommunicate request_size=4 [04:25:17]MH_SAM_APDU [04:25:17]CAPDU: 80 09 00 00 [04:25:17]Write to MH i2c: E2 08 00 28 18 80 09 00 00 00 00 00 00 B2 [04:25:17]Write i2c OK [04:25:17]MH_I2C_Read... [04:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:25:17]Read from MH i2c: E2 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 03 00 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 03 00 28 18 00 90 00 B4 [04:25:17]RAPDU: 90 00 [04:25:17]wFMCommunicate OK [04:25:17]SAM_PROTO_ClearQueue done [04:25:17]KKMCreateOFDPacket [04:25:17]OFDProtocolAddRootSTLVToBuf [04:25:17]FM_MakeSignedData [04:25:17]FM_MakeSignedData [04:25:17]SAM_PROTO_SignData [04:25:17]wFMCommunicate request_size=4 [04:25:17]MH_SAM_APDU [04:25:17]CAPDU: 80 0D 01 02 [04:25:17]Write to MH i2c: E2 08 00 29 18 80 0D 01 02 00 00 00 00 BA [04:25:17]Write i2c OK [04:25:17]MH_I2C_Read... [04:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:25:17]Read from MH i2c: E2 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 03 00 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 03 00 29 18 00 90 00 B5 [04:25:17]RAPDU: 90 00 [04:25:17]wFMCommunicate OK [04:25:17]wFMCommunicate request_size=255 [04:25:17]MH_SAM_APDU [04: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AE C0 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B2 38 02 00 35 04 06 00 74 [04:25:17]Write to MH i2c: E2 02 01 2A 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AE C0 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B2 38 02 00 35 04 06 00 74 00 00 C0 [04:25:17]Write i2c OK [04:25:17]MH_I2C_Read... [04:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:17]Read from MH i2c: E2 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 03 00 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 03 00 2A 18 00 90 00 B6 [04:25:17]RAPDU: 90 00 [04:25:17]wFMCommunicate OK [04:25:17]wFMCommunicate request_size=10 [04:25:17]MH_SAM_APDU [04:25:17]CAPDU: 80 0D 02 02 05 A2 8F 2A B8 02 [04:25:17]Write to MH i2c: E2 0D 00 2B 18 80 0D 02 02 05 00 A2 8F 2A B8 02 00 00 DC [04:25:17]Write i2c OK [04:25:17]MH_I2C_Read... [04:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:17]Read from MH i2c: E2 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 03 00 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 03 00 2B 18 00 90 00 B7 [04:25:17]RAPDU: 90 00 [04:25:17]wFMCommunicate OK [04:25:17]wFMCommunicate request_size=4 [04:25:17]MH_SAM_APDU [04:25:17]CAPDU: 80 0D 03 02 [04:25:17]Write to MH i2c: E2 08 00 2C 18 80 0D 03 02 00 00 00 00 BF [04:25:17]Write i2c OK [04:25:17]MH_I2C_Read... [04:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:25:17]Read from MH i2c: E2 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 0B 00 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 0B 00 2C 18 00 AC 5B B1 FD A3 53 80 FA 90 00 E5 [04:25:17]RAPDU: AC 5B B1 FD A3 53 80 FA 90 00 [04:25:17]wFMCommunicate OK [04:25:17]SAM_PROTO_SignData done [04:25:17]FM_MakeSignedData done [04:25:17]CreateOFDProtocolMessage [04:25:17]wFMCommunicate request_size=4 [04:25:17]MH_SAM_APDU [04:25:17]CAPDU: 80 11 00 00 [04:25:17]Write to MH i2c: E2 08 00 2D 18 80 11 00 00 00 00 00 00 BF [04:25:17]Write i2c OK [04:25:17]MH_I2C_Read... [04:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:17]Read from MH i2c: E2 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 17 00 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: E2 17 00 2D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 12 [04:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [04:25:17]wFMCommunicate OK [04:25:17]CreateOFDProtocolMessage done [04:25:17]OFDSenderStorePacket 145586 [04:25:17]StoreOFDPacket docnum=145586 [04:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E7 4A 07 01 81 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AE C0 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B2 38 02 00 35 04 06 00 74 A2 8F 2A B8 02 AC 5B B1 FD A3 53 80 FA [04:25:17]CheckFolder [04:25:17]dirname=/storage/ofd_packets [04:25:17]CheckFolder done [04:25:17]ProducePacketName [04:25:17]name=ofd_packets/00145586 [04:25:17]NVStorageSaveData ofd_packets/00145586 [04:25:17]File name is /storage/ofd_packets/00145586 [04:25:17]Write 301 bytes [04:25:17]NVStorageSaveData done [04:25:17]OFDSenderStorePacket done [04:25:17]KKMCreateOFDPacket done [04:25:17]NVStorageSaveData kkm_last_timestamp [04:25:17]File name is /storage/kkm_last_timestamp [04:25:17]Write 4 bytes [04:25:17]NVStorageSaveData done [04:25:17]ExternCall_PrintAddStr [04:25:17]wPrintStart [04:25:17]Write to MH i2c: 01 00 00 2E 18 46 [04:25:17]Write i2c OK [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: 01 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: 01 07 00 [04:25:17]MH_I2C_Read... [04:25:17]Read from MH i2c: 01 07 00 2E 18 00 00 00 00 00 FF 0F 5B [04:25:17]RasterBufferAndPrint [04:25:17]line Счет N : (1)160336 [04:25:17]line ИНН: 02508201610067 [04:25:17]line Контрольно-Кассовый Чек [04:25:17]line ПРОДАЖА [04:25:17]line ТРК (МРК, ГНК) : 32 [04:25:17]line Товар: 2710124130 [04:25:17]line Аи-92-К-2 [04:25:17]line 14.950 * 66.90 [04:25:17]line = 1000.16 [04:25:17]line НДС 12% НСП 1% [04:25:17]line > о реализуемом товаре [04:25:17]line ОКРУГЛЕНИЕ: -0.16 [04:25:17]line ИТОГО: 1000.00 [04:25:17]line Внесено: 1000.00 [04:25:17]line СДАЧА: 0.00 [04:25:17]line НСП 1% : 8.85 [04:25:17]line НДС 12% : 106.21 [04:25:17]line Наличными: 1000.00 [04:25:17]line Безнал.: 0.00 [04:25:17]line Место: АЗС № 126 "Партнер Нефть" [04:25:17]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [04:25:17]line СНО: Общий режим [04:25:17]line Чек 9 27.10.2024 04:25 [04:25:17]line Смена: 545 ФФД: 1.0 [04:25:17]line ЗНМ: 0300000085 [04:25:17]line РНМ: 0000000000091683 [04:25:17]line Версия ККМ: 001 [04:25:17]line ФМ: 0000000000871745 [04:25:17]line ФД: 145586 [04:25:17]line ФПД: 128241535465474 [04:25:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T042518&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145586&fm=128241535465474&tin=02508201610067®Number=0000000000091683&sum=100000 [04:25:18]OFD Sender: Processing packet 145586 [packets to send 205, broken 204] [04:25:18]ProducePacketName [04:25:18]name=ofd_packets/00145586 [04:25:18]OFD Sender: To server: pG, [04:25:18]CommunicateWithHost lk.salyk.kg:30040 [04:25:18]ConnectInit lk.salyk.kg [04:25:18]written 0, free lines is 4095 [04:25:18]Connected sock=10 [04: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 31 37 34 35 0F 01 00 00 E7 4A 07 01 81 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AE C0 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B2 38 02 00 35 04 06 00 74 A2 8F 2A B8 02 AC 5B B1 FD A3 53 80 FA [04:25:18]Write to MH i2c: 01 00 00 59 18 71 [04:25:18]Write i2c OK [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: 01 [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: 01 07 00 [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: 01 07 00 59 18 00 00 00 00 00 BB 0C 3F [04:25:18]RasterBufferAndPrint [04:25:18]line [04:25:18]line [04:25:18]line [04:25:18]line [04:25:18]line [04:25:18]written 0, free lines is 3265 [04:25:18]MH_Cut [04:25:18]Write to MH i2c: D1 01 00 60 18 01 4A [04:25:18]Write i2c OK [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: D1 [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: D1 01 00 [04:25:18]MH_I2C_Read... [04:25:18]Read from MH i2c: D1 01 00 60 18 00 49 [04:25:18]Write to MH i2c: 01 00 00 61 18 79 [04:25:18]Write i2c OK [04:25:18]MH_I2C_Read... [04:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 FF 34 47 00 17 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B2 38 02 00 F4 03 04 00 DD 65 1D 67 B6 04 01 00 00 D9 7E 21 01 7B C4 52 9D [04:25:18]CommunicateWithHost err = 0 [04:25:18]CheckOFDResponse [04:25:18]1017 (14) - 77093643461234 [04:25:18]1041 (16) - 0000000000871745 [04:25:18]1040 (4) - 145586 [04:25:18]1012 (4) - 26.10.2024 21:57 [04:25:18]1206 (1) - 0 [04:25:18]OFD Sender: Remove packet 145586 [04:25:18]ProducePacketName [04:25:18]name=ofd_packets/00145586 [04:25:18]NVStorageDeleteData [04:25:19]OFD Sender: No OFD packet to send [04:25:19]*** Cut start [04:25:19]*** Partial cut [04:25:19]*** CUTSNS_PIN = 1 [04:25:19]*** CUTSNS_PIN = 0 [04:25:19]*** Brake cut motor [04:25:20]Read from MH i2c: 01 [04:25:20]MH_I2C_Read... [04:25:20]*** Stop cut motor [04:25:20]*** Cut end [04:25:20]Read from MH i2c: 01 07 00 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: 01 07 00 61 18 00 00 00 00 00 FF 0F 8E [04:25:20]process_action close_receipt done [04:25:20]requested_data is exist [04:25:20]produce_requested_data [04:25:20]requested_item fm.sn is exist - process it [04:25:20]wFMCommunicate request_size=4 [04:25:20]MH_SAM_APDU [04:25:20]CAPDU: 80 11 00 00 [04:25:20]Write to MH i2c: E2 08 00 62 18 80 11 00 00 00 00 00 00 F4 [04:25:20]Write i2c OK [04:25:20]MH_I2C_Read... [04:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:20]Read from MH i2c: E2 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: E2 17 00 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: E2 17 00 62 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 47 [04:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [04:25:20]wFMCommunicate OK [04:25:20]requested_item fd.num is exist - process it [04:25:20]SAM_PROTO_GetFieldsCounters [04:25:20]wFMCommunicate request_size=4 [04:25:20]MH_SAM_APDU [04:25:20]CAPDU: 80 13 00 00 [04:25:20]Write to MH i2c: E2 08 00 63 18 80 13 00 00 00 00 00 00 F7 [04:25:20]Write i2c OK [04:25:20]MH_I2C_Read... [04:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:25:20]Read from MH i2c: E2 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: E2 62 00 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: E2 62 00 63 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B2 38 02 00 0E 04 04 00 21 02 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 44 [04: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B2 38 02 00 0E 04 04 00 21 02 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 [04:25:20]wFMCommunicate OK [04:25:20]SAM_PROTO_GetFieldsCounters done [04:25:20]requested_item shift.num is exist - process it [04:25:20]requested_item shift.opened is exist - process it [04:25:20]req_shift_opened [04:25:20]FM_GetShiftState [04:25:20]SAM_PROTO_GetShiftState [04:25:20]wFMCommunicate request_size=4 [04:25:20]MH_SAM_APDU [04:25:20]CAPDU: 80 13 01 00 [04:25:20]Write to MH i2c: E2 08 00 64 18 80 13 01 00 00 00 00 00 F9 [04:25:20]Write i2c OK [04:25:20]MH_I2C_Read... [04:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:20]Read from MH i2c: E2 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: E2 0E 00 [04:25:20]MH_I2C_Read... [04:25:20]Read from MH i2c: E2 0E 00 64 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 71 [04:25:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [04:25:20]wFMCommunicate OK [04:25:20]SAM_PROTO_GetShiftState done [04:25:20]FM_GetShiftState done [04:25:20]req_shift_opened done [04:25:20]requested_item shift.open_date is exist - process it [04:25:20]req_shift_open_date [04:25:20]req_shift_open_date done [04:25:20]produce_requested_data done [04:25:20]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145586,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [04:25:20]process_action_free close_receipt [04:25:20]json_value_free [04:25:20]json_value_free done [04:25:20]process_json_proto returns [04:25:20]Send response to host [04:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145586,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [04:25:20]free response buf [04:25:20]execute_script done [04:25:20]execute_script returns [04:25:20]free content buf [04:25:20]Sock 9.Close socket [04:25:20]Sock 9.Thread stoped [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 [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]ConnectInit Can't connect to host [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:34]accept exits with 7 [04:42:34]New connection [04:42:34]New thread 3067006308 created [04:42:34]Thread 3067149668 joined [04:42:34]Waiting for new connection... [04:42:34] Sock 7.Parse request [04:42:34]Sock 7.Check first char [04:42:34]Sock 7.First char is OK [04:42:34]request: POST /json_proto HTTP/1.0 [04:42:34]Method: POST [04:42:34]URL: /json_proto [04:42:34]Method is POST - this is cgi request [04:42:34]url: /json_proto [04:42:34]query_string will be loaded in cgi processing [04:42:34]execute_cgi json_proto POST (null) [04:42:34]execute_cgi path=json_proto method=POST [04:42:34]POST find Content-Length [04:42:34]Host: 172.17.40.195:8080 [04:42:34]Content-Length: 677 [04:42:34]Content-Type: application/json [04:42:34] [04:42:34]POST finish read [04:42:34]Found Content-Length = 677 [04:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.610, "sum" : 375.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 375.00, "total" : 375.00, "payments": [ { "type": 0, "sum" : 375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:42:34]execute_script... [04:42: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)160337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.610, "sum" : 375.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 375.00, "total" : 375.00, "payments": [ { "type": 0, "sum" : 375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:42:34]POST & json_proto [04:42:34]process_json_proto [04:42:34]json parsed OK: [04:42:34]protocol is kg_v1.0 [04:42:34]action value=close_receipt [04:42:34]process_action close_receipt [04:42:34]cmd_close_receipt [04:42:34]MH_GetDate [04:42:34]Write to MH i2c: F0 00 00 65 18 6C [04:42:34]Write i2c OK [04:42:34]MH_I2C_Read... [04:42:34]Read from MH i2c: F0 [04:42:34]MH_I2C_Read... [04:42:34]Read from MH i2c: F0 09 00 [04:42:34]MH_I2C_Read... [04:42:34]Read from MH i2c: F0 09 00 65 18 00 BC C4 1D 67 D5 8D 6C 64 AB [04:42:34]GetLastDocTimeStamp 1730003118 [04:42:34]current date 1730004156 [04:42:34]FM_GetShiftState [04:42:34]SAM_PROTO_GetShiftState [04:42:34]wFMCommunicate request_size=4 [04:42:34]MH_SAM_APDU [04:42:34]CAPDU: 80 13 01 00 [04:42:34]Write to MH i2c: E2 08 00 66 18 80 13 01 00 00 00 00 00 FB [04:42:34]Write i2c OK [04:42:34]MH_I2C_Read... [04:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:34]Read from MH i2c: E2 [04:42:34]MH_I2C_Read... [04:42:34]Read from MH i2c: E2 0E 00 [04:42:34]MH_I2C_Read... [04:42:34]Read from MH i2c: E2 0E 00 66 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 73 [04:42:34]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [04:42:34]wFMCommunicate OK [04:42:34]SAM_PROTO_GetShiftState done [04:42:34]FM_GetShiftState done [04:42:34]opened in 1729988959 [04:42:34]opened+sec_in_day 1730075359 [04:42:34]quantity*price = 37530 [04:42:34]sum+1 = 37532 [04:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 375.00 Внесено: 375.00 СДАЧА: 0.00 НСП 1% : 3.32 НДС 12% : 39.86 Наличными: 375.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 10 27.10.2024 04:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145587 ФПД: 90811557463710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044236&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145587&fm=90811557463710&tin=02508201610067®Number=0000000000091683&sum=37500 [04:42:35]StoreToDocumentArchive [04:42:35]shift 545 fd 145587 [04:42:35]save to /storage/0545/doc_00145587 [04:42:35]save last doc name /storage/0545/doc_00145587 to /storage/kkm_last_doc_name [04:42:35]save OK [04:42:35]Clear old archive folders... [04:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:42:35]tlvbuf is 01AC8270 [04:42:35]SAM_PROTO_ClearQueue [04:42:35]wFMCommunicate request_size=4 [04:42:35]MH_SAM_APDU [04:42:35]CAPDU: 80 09 00 00 [04:42:35]Write to MH i2c: E2 08 00 73 18 80 09 00 00 00 00 00 00 FD [04:42:35]Write i2c OK [04:42:35]MH_I2C_Read... [04:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:42:35]Read from MH i2c: E2 [04:42:35]MH_I2C_Read... [04:42:35]Read from MH i2c: E2 03 00 [04:42:35]MH_I2C_Read... [04:42:35]Read from MH i2c: E2 03 00 73 18 00 90 00 FF [04:42:35]RAPDU: 90 00 [04:42:35]wFMCommunicate OK [04:42:35]SAM_PROTO_ClearQueue done [04:42:35]KKMCreateOFDPacket [04:42:35]OFDProtocolAddRootSTLVToBuf [04:42:35]FM_MakeSignedData [04:42:35]FM_MakeSignedData [04:42:35]SAM_PROTO_SignData [04:42:35]wFMCommunicate request_size=4 [04:42:35]MH_SAM_APDU [04:42:35]CAPDU: 80 0D 01 02 [04:42:35]Write to MH i2c: E2 08 00 74 18 80 0D 01 02 00 00 00 00 05 [04:42:35]Write i2c OK [04:42:35]MH_I2C_Read... [04:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:42:35]Read from MH i2c: E2 [04:42:35]MH_I2C_Read... [04:42:35]Read from MH i2c: E2 03 00 [04:42:35]MH_I2C_Read... [04:42:35]Read from MH i2c: E2 03 00 74 18 00 90 00 00 [04:42:35]RAPDU: 90 00 [04:42:35]wFMCommunicate OK [04:42:35]wFMCommunicate request_size=255 [04:42:35]MH_SAM_APDU [04:42: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 32 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9B 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 BC C4 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B3 38 02 00 35 04 06 00 52 [04:42:35]Write to MH i2c: E2 02 01 75 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 32 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9B 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 BC C4 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B3 38 02 00 35 04 06 00 52 00 00 F0 [04:42:35]Write i2c OK [04:42:35]MH_I2C_Read... [04:42:35]OFD Sender: No OFD packet to send [04:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:35]Read from MH i2c: E2 [04:42:35]MH_I2C_Read... [04:42:35]Read from MH i2c: E2 03 00 [04:42:35]MH_I2C_Read... [04:42:35]Read from MH i2c: E2 03 00 75 18 00 90 00 01 [04:42:35]RAPDU: 90 00 [04:42:35]wFMCommunicate OK [04:42:35]wFMCommunicate request_size=10 [04:42:35]MH_SAM_APDU [04:42:35]CAPDU: 80 0D 02 02 05 97 B6 9F C6 9E [04:42:35]Write to MH i2c: E2 0D 00 76 18 80 0D 02 02 05 00 97 B6 9F C6 9E 00 00 62 [04:42:35]Write i2c OK [04:42:35]MH_I2C_Read... [04:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:35]Read from MH i2c: E2 [04:42:35]MH_I2C_Read... [04:42:35]Read from MH i2c: E2 03 00 [04:42:35]MH_I2C_Read... [04:42:35]Read from MH i2c: E2 03 00 76 18 00 90 00 02 [04:42:35]RAPDU: 90 00 [04:42:35]wFMCommunicate OK [04:42:35]wFMCommunicate request_size=4 [04:42:35]MH_SAM_APDU [04:42:35]CAPDU: 80 0D 03 02 [04:42:35]Write to MH i2c: E2 08 00 77 18 80 0D 03 02 00 00 00 00 0A [04:42:35]Write i2c OK [04:42:35]MH_I2C_Read... [04:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:42:35]Read from MH i2c: E2 [04:42:35]MH_I2C_Read... [04:42:35]Read from MH i2c: E2 0B 00 [04:42:35]MH_I2C_Read... [04:42:35]Read from MH i2c: E2 0B 00 77 18 00 21 29 F9 E9 F9 F5 B9 EE 90 00 CC [04:42:35]RAPDU: 21 29 F9 E9 F9 F5 B9 EE 90 00 [04:42:35]wFMCommunicate OK [04:42:35]SAM_PROTO_SignData done [04:42:35]FM_MakeSignedData done [04:42:35]CreateOFDProtocolMessage [04:42:35]wFMCommunicate request_size=4 [04:42:35]MH_SAM_APDU [04:42:35]CAPDU: 80 11 00 00 [04:42:35]Write to MH i2c: E2 08 00 78 18 80 11 00 00 00 00 00 00 0A [04:42:35]Write i2c OK [04:42:35]MH_I2C_Read... [04:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:36]Read from MH i2c: E2 [04:42:36]MH_I2C_Read... [04:42:36]Read from MH i2c: E2 17 00 [04:42:36]MH_I2C_Read... [04:42:36]Read from MH i2c: E2 17 00 78 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 5D [04:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [04:42:36]wFMCommunicate OK [04:42:36]CreateOFDProtocolMessage done [04:42:36]OFDSenderStorePacket 145587 [04:42:36]StoreOFDPacket docnum=145587 [04:42:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DD 62 07 01 9B 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 32 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9B 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 BC C4 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B3 38 02 00 35 04 06 00 52 97 B6 9F C6 9E 21 29 F9 E9 F9 F5 B9 EE [04:42:36]CheckFolder [04:42:36]dirname=/storage/ofd_packets [04:42:36]CheckFolder done [04:42:36]ProducePacketName [04:42:36]name=ofd_packets/00145587 [04:42:36]NVStorageSaveData ofd_packets/00145587 [04:42:36]File name is /storage/ofd_packets/00145587 [04:42:36]Write 301 bytes [04:42:36]NVStorageSaveData done [04:42:36]OFDSenderStorePacket done [04:42:36]KKMCreateOFDPacket done [04:42:36]NVStorageSaveData kkm_last_timestamp [04:42:36]File name is /storage/kkm_last_timestamp [04:42:36]Write 4 bytes [04:42:36]NVStorageSaveData done [04:42:36]ExternCall_PrintAddStr [04:42:36]wPrintStart [04:42:36]Write to MH i2c: 01 00 00 79 18 91 [04:42:36]Write i2c OK [04:42:36]MH_I2C_Read... [04:42:36]Read from MH i2c: 01 [04:42:36]MH_I2C_Read... [04:42:36]Read from MH i2c: 01 07 00 [04:42:36]MH_I2C_Read... [04:42:36]Read from MH i2c: 01 07 00 79 18 00 00 00 00 00 FF 0F A6 [04:42:36]RasterBufferAndPrint [04:42:36]line Счет N : (1)160337 [04:42:36]line ИНН: 02508201610067 [04:42:36]line Контрольно-Кассовый Чек [04:42:36]line ПРОДАЖА [04:42:36]line ТРК (МРК, ГНК) : 32 [04:42:36]line Товар: 2710124130 [04:42:36]line Аи-92-К-2 [04:42:36]line 5.610 * 66.90 [04:42:36]line = 375.31 [04:42:36]line НДС 12% НСП 1% [04:42:36]line > о реализуемом товаре [04:42:36]line ОКРУГЛЕНИЕ: -0.31 [04:42:36]line ИТОГО: 375.00 [04:42:36]line Внесено: 375.00 [04:42:36]line СДАЧА: 0.00 [04:42:36]line НСП 1% : 3.32 [04:42:36]line НДС 12% : 39.86 [04:42:36]line Наличными: 375.00 [04:42:36]line Безнал.: 0.00 [04:42:36]line Место: АЗС № 126 "Партнер Нефть" [04:42:36]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [04:42:36]line СНО: Общий режим [04:42:36]line Чек 10 27.10.2024 04:42 [04:42:36]line Смена: 545 ФФД: 1.0 [04:42:36]line ЗНМ: 0300000085 [04:42:36]line РНМ: 0000000000091683 [04:42:36]line Версия ККМ: 001 [04:42:36]line ФМ: 0000000000871745 [04:42:36]line ФД: 145587 [04:42:36]line ФПД: 90811557463710 [04:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044236&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145587&fm=90811557463710&tin=02508201610067®Number=0000000000091683&sum=37500 [04:42:36]OFD Sender: Processing packet 145587 [packets to send 205, broken 204] [04:42:36]ProducePacketName [04:42:36]name=ofd_packets/00145587 [04:42:36]OFD Sender: To server: pG, [04:42:36]CommunicateWithHost lk.salyk.kg:30040 [04:42:36]ConnectInit lk.salyk.kg [04:42:36]written 0, free lines is 4095 [04:42:36]Connected sock=9 [04:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DD 62 07 01 9B 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 32 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9B 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 BC C4 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B3 38 02 00 35 04 06 00 52 97 B6 9F C6 9E 21 29 F9 E9 F9 F5 B9 EE [04:42:36]Write to MH i2c: 01 00 00 A4 18 BC [04:42:36]Write i2c OK [04:42:36]MH_I2C_Read... [04:42:36]Read from MH i2c: 01 [04:42:36]MH_I2C_Read... [04:42:36]Read from MH i2c: 01 07 00 [04:42:36]MH_I2C_Read... [04:42:36]Read from MH i2c: 01 07 00 A4 18 00 00 00 00 00 AF 0C 7E [04:42:36]RasterBufferAndPrint [04:42:36]line [04:42:36]line [04:42:36]line [04:42:36]line [04:42:36]line [04:42:36]written 0, free lines is 3253 [04:42:36]MH_Cut [04:42:36]Write to MH i2c: D1 01 00 AB 18 01 95 [04:42:36]Write i2c OK [04:42:36]MH_I2C_Read... [04:42:36]Read from MH i2c: D1 [04:42:36]MH_I2C_Read... [04:42:36]Read from MH i2c: D1 01 00 [04:42:36]MH_I2C_Read... [04:42:36]Read from MH i2c: D1 01 00 AB 18 00 94 [04:42:36]Write to MH i2c: 01 00 00 AC 18 C4 [04:42:36]Write i2c OK [04:42:36]MH_I2C_Read... [04:42:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 73 1B 47 00 08 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B3 38 02 00 F4 03 04 00 EB 69 1D 67 B6 04 01 00 00 B4 09 0E CD 8B 53 E7 93 [04:42:36]CommunicateWithHost err = 0 [04:42:36]CheckOFDResponse [04:42:36]1017 (14) - 77093643461234 [04:42:36]1041 (16) - 0000000000871745 [04:42:36]1040 (4) - 145587 [04:42:36]1012 (4) - 26.10.2024 22:15 [04:42:36]1206 (1) - 0 [04:42:36]OFD Sender: Remove packet 145587 [04:42:36]ProducePacketName [04:42:36]name=ofd_packets/00145587 [04:42:36]NVStorageDeleteData [04:42:37]OFD Sender: No OFD packet to send [04:42:37]*** Cut start [04:42:37]*** Partial cut [04:42:37]*** CUTSNS_PIN = 1 [04:42:37]*** CUTSNS_PIN = 0 [04:42:37]*** Brake cut motor [04:42:38]Read from MH i2c: 01 [04:42:38]MH_I2C_Read... [04:42:38]*** Stop cut motor [04:42:38]*** Cut end [04:42:38]Read from MH i2c: 01 07 00 [04:42:38]MH_I2C_Read... [04:42:38]Read from MH i2c: 01 07 00 AC 18 00 00 00 00 00 FF 0F D9 [04:42:38]process_action close_receipt done [04:42:38]requested_data is exist [04:42:38]produce_requested_data [04:42:38]requested_item fm.sn is exist - process it [04:42:38]wFMCommunicate request_size=4 [04:42:38]MH_SAM_APDU [04:42:38]CAPDU: 80 11 00 00 [04:42:38]Write to MH i2c: E2 08 00 AD 18 80 11 00 00 00 00 00 00 3F [04:42:38]Write i2c OK [04:42:38]MH_I2C_Read... [04:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:38]Read from MH i2c: E2 [04:42:38]MH_I2C_Read... [04:42:38]Read from MH i2c: E2 17 00 [04:42:38]MH_I2C_Read... [04:42:38]Read from MH i2c: E2 17 00 AD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 92 [04:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [04:42:38]wFMCommunicate OK [04:42:38]requested_item fd.num is exist - process it [04:42:38]SAM_PROTO_GetFieldsCounters [04:42:38]wFMCommunicate request_size=4 [04:42:38]MH_SAM_APDU [04:42:38]CAPDU: 80 13 00 00 [04:42:38]Write to MH i2c: E2 08 00 AE 18 80 13 00 00 00 00 00 00 42 [04:42:38]Write i2c OK [04:42:38]MH_I2C_Read... [04:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:42:38]Read from MH i2c: E2 [04:42:38]MH_I2C_Read... [04:42:38]Read from MH i2c: E2 62 00 [04:42:38]MH_I2C_Read... [04:42:38]Read from MH i2c: E2 62 00 AE 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B3 38 02 00 0E 04 04 00 21 02 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 93 [04:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B3 38 02 00 0E 04 04 00 21 02 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 [04:42:38]wFMCommunicate OK [04:42:38]SAM_PROTO_GetFieldsCounters done [04:42:38]requested_item shift.num is exist - process it [04:42:38]requested_item shift.opened is exist - process it [04:42:38]req_shift_opened [04:42:38]FM_GetShiftState [04:42:38]SAM_PROTO_GetShiftState [04:42:38]wFMCommunicate request_size=4 [04:42:38]MH_SAM_APDU [04:42:38]CAPDU: 80 13 01 00 [04:42:38]Write to MH i2c: E2 08 00 AF 18 80 13 01 00 00 00 00 00 44 [04:42:38]Write i2c OK [04:42:38]MH_I2C_Read... [04:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:38]Read from MH i2c: E2 [04:42:38]MH_I2C_Read... [04:42:38]Read from MH i2c: E2 0E 00 [04:42:38]MH_I2C_Read... [04:42:38]Read from MH i2c: E2 0E 00 AF 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 BC [04:42:38]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [04:42:38]wFMCommunicate OK [04:42:38]SAM_PROTO_GetShiftState done [04:42:38]FM_GetShiftState done [04:42:38]req_shift_opened done [04:42:38]requested_item shift.open_date is exist - process it [04:42:38]req_shift_open_date [04:42:38]req_shift_open_date done [04:42:38]produce_requested_data done [04:42:38]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145587,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [04:42:38]process_action_free close_receipt [04:42:38]json_value_free [04:42:38]json_value_free done [04:42:38]process_json_proto returns [04:42:38]Send response to host [04:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145587,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [04:42:38]free response buf [04:42:38]execute_script done [04:42:38]execute_script returns [04:42:38]free content buf [04:42:38]Sock 7.Close socket [04:42:38]Sock 7.Thread stoped [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49: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:38]accept exits with 10 [04:49:38]New connection [04:49:38]New thread 3067149668 created [04:49:38]Thread 3067006308 joined [04:49:38]Waiting for new connection... [04:49:38] Sock 10.Parse request [04:49:38]Sock 10.Check first char [04:49:38]Sock 10.First char is OK [04:49:38]request: POST /json_proto HTTP/1.0 [04:49:38]Method: POST [04:49:38]URL: /json_proto [04:49:38]Method is POST - this is cgi request [04:49:38]url: /json_proto [04:49:38]query_string will be loaded in cgi processing [04:49:38]execute_cgi json_proto POST (null) [04:49:38]execute_cgi path=json_proto method=POST [04:49:38]POST find Content-Length [04:49:38]Host: 172.17.40.195:8080 [04:49:38]Content-Length: 679 [04:49:38]Content-Type: application/json [04:49:38] [04:49:38]POST finish read [04:49:38]Found Content-Length = 679 [04:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:49:38]execute_script... [04:49: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)160338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:49:38]POST & json_proto [04:49:38]process_json_proto [04:49:38]json parsed OK: [04:49:38]protocol is kg_v1.0 [04:49:38]action value=close_receipt [04:49:38]process_action close_receipt [04:49:38]cmd_close_receipt [04:49:38]MH_GetDate [04:49:38]Write to MH i2c: F0 00 00 B0 18 B7 [04:49:38]Write i2c OK [04:49:38]MH_I2C_Read... [04:49:38]Read from MH i2c: F0 [04:49:38]MH_I2C_Read... [04:49:38]Read from MH i2c: F0 09 00 [04:49:38]MH_I2C_Read... [04:49:38]Read from MH i2c: F0 09 00 B0 18 00 65 C6 1D 67 D5 8D 6C 64 A1 [04:49:38]GetLastDocTimeStamp 1730004156 [04:49:38]current date 1730004581 [04:49:38]FM_GetShiftState [04:49:38]SAM_PROTO_GetShiftState [04:49:38]wFMCommunicate request_size=4 [04:49:38]MH_SAM_APDU [04:49:38]CAPDU: 80 13 01 00 [04:49:38]Write to MH i2c: E2 08 00 B1 18 80 13 01 00 00 00 00 00 46 [04:49:38]Write i2c OK [04:49:38]MH_I2C_Read... [04:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:49:39]Read from MH i2c: E2 [04:49:39]MH_I2C_Read... [04:49:39]Read from MH i2c: E2 0E 00 [04:49:39]MH_I2C_Read... [04:49:39]Read from MH i2c: E2 0E 00 B1 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 BE [04:49:39]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [04:49:39]wFMCommunicate OK [04:49:39]SAM_PROTO_GetShiftState done [04:49:39]FM_GetShiftState done [04:49:39]opened in 1729988959 [04:49:39]opened+sec_in_day 1730075359 [04:49:39]quantity*price = 200025 [04:49:39]sum+1 = 200026 [04:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 11 27.10.2024 04:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145588 ФПД: 163647165194893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044941&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145588&fm=163647165194893&tin=02508201610067®Number=0000000000091683&sum=200000 [04:49:40]StoreToDocumentArchive [04:49:40]shift 545 fd 145588 [04:49:40]save to /storage/0545/doc_00145588 [04:49:40]save last doc name /storage/0545/doc_00145588 to /storage/kkm_last_doc_name [04:49:40]save OK [04:49:40]Clear old archive folders... [04:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:49:40]tlvbuf is 01A92C40 [04:49:40]SAM_PROTO_ClearQueue [04:49:40]wFMCommunicate request_size=4 [04:49:40]MH_SAM_APDU [04:49:40]CAPDU: 80 09 00 00 [04:49:40]Write to MH i2c: E2 08 00 BE 18 80 09 00 00 00 00 00 00 48 [04:49:40]Write i2c OK [04:49:40]MH_I2C_Read... [04:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:49:40]Read from MH i2c: E2 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 BE 18 00 90 00 4A [04:49:40]RAPDU: 90 00 [04:49:40]wFMCommunicate OK [04:49:40]SAM_PROTO_ClearQueue done [04:49:40]KKMCreateOFDPacket [04:49:40]OFDProtocolAddRootSTLVToBuf [04:49:40]FM_MakeSignedData [04:49:40]FM_MakeSignedData [04:49:40]SAM_PROTO_SignData [04:49:40]wFMCommunicate request_size=4 [04:49:40]MH_SAM_APDU [04:49:40]CAPDU: 80 0D 01 02 [04:49:40]Write to MH i2c: E2 08 00 BF 18 80 0D 01 02 00 00 00 00 50 [04:49:40]Write i2c OK [04:49:40]MH_I2C_Read... [04:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:49:40]Read from MH i2c: E2 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 BF 18 00 90 00 4B [04:49:40]RAPDU: 90 00 [04:49:40]wFMCommunicate OK [04:49:40]wFMCommunicate request_size=255 [04:49:40]MH_SAM_APDU [04:49:40]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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 65 C6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B4 38 02 00 35 04 06 00 94 D6 13 26 [04:49:40]Write to MH i2c: E2 02 01 C0 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 65 C6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B4 38 02 00 35 04 06 00 94 D6 13 26 00 00 30 [04:49:40]Write i2c OK [04:49:40]MH_I2C_Read... [04:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:49:40]Read from MH i2c: E2 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 C0 18 00 90 00 4C [04:49:40]RAPDU: 90 00 [04:49:40]wFMCommunicate OK [04:49:40]wFMCommunicate request_size=7 [04:49:40]MH_SAM_APDU [04:49:40]CAPDU: 80 0D 02 02 02 62 8D [04:49:40]Write to MH i2c: E2 0A 00 C1 18 80 0D 02 02 02 00 62 8D 00 00 46 [04:49:40]Write i2c OK [04:49:40]MH_I2C_Read... [04:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:49:40]Read from MH i2c: E2 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 C1 18 00 90 00 4D [04:49:40]RAPDU: 90 00 [04:49:40]wFMCommunicate OK [04:49:40]wFMCommunicate request_size=4 [04:49:40]MH_SAM_APDU [04:49:40]CAPDU: 80 0D 03 02 [04:49:40]Write to MH i2c: E2 08 00 C2 18 80 0D 03 02 00 00 00 00 55 [04:49:40]Write i2c OK [04:49:40]MH_I2C_Read... [04:49:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:49:40]Read from MH i2c: E2 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 0B 00 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 0B 00 C2 18 00 F1 8F 13 BA 17 A6 C2 28 90 00 4A [04:49:40]RAPDU: F1 8F 13 BA 17 A6 C2 28 90 00 [04:49:40]wFMCommunicate OK [04:49:40]SAM_PROTO_SignData done [04:49:40]FM_MakeSignedData done [04:49:40]CreateOFDProtocolMessage [04:49:40]wFMCommunicate request_size=4 [04:49:40]MH_SAM_APDU [04:49:40]CAPDU: 80 11 00 00 [04:49:40]Write to MH i2c: E2 08 00 C3 18 80 11 00 00 00 00 00 00 55 [04:49:40]Write i2c OK [04:49:40]MH_I2C_Read... [04:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:49:40]Read from MH i2c: E2 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 17 00 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 17 00 C3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A8 [04:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [04:49:40]wFMCommunicate OK [04:49:40]CreateOFDProtocolMessage done [04:49:40]OFDSenderStorePacket 145588 [04:49:40]StoreOFDPacket docnum=145588 [04:49:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 40 BD 04 01 94 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 65 C6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B4 38 02 00 35 04 06 00 94 D6 13 26 62 8D F1 8F 13 BA 17 A6 C2 28 [04:49:40]CheckFolder [04:49:40]dirname=/storage/ofd_packets [04:49:40]CheckFolder done [04:49:40]ProducePacketName [04:49:40]name=ofd_packets/00145588 [04:49:40]NVStorageSaveData ofd_packets/00145588 [04:49:40]File name is /storage/ofd_packets/00145588 [04:49:40]Write 298 bytes [04:49:40]NVStorageSaveData done [04:49:40]OFDSenderStorePacket done [04:49:40]KKMCreateOFDPacket done [04:49:40]NVStorageSaveData kkm_last_timestamp [04:49:40]File name is /storage/kkm_last_timestamp [04:49:40]Write 4 bytes [04:49:40]NVStorageSaveData done [04:49:40]ExternCall_PrintAddStr [04:49:40]wPrintStart [04:49:40]Write to MH i2c: 01 00 00 C4 18 DC [04:49:40]Write i2c OK [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: 01 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: 01 07 00 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: 01 07 00 C4 18 00 00 00 00 00 FF 0F F1 [04:49:40]RasterBufferAndPrint [04:49:40]line Счет N : (1)160338 [04:49:40]line ИНН: 02508201610067 [04:49:40]line Контрольно-Кассовый Чек [04:49:40]line ПРОДАЖА [04:49:40]line ТРК (МРК, ГНК) : 21 [04:49:40]line Товар: 2710194210 [04:49:40]line ДТ-К-2 [04:49:40]line 26.250 * 76.20 [04:49:40]line = 2000.25 [04:49:40]line НДС 12% НСП 1% [04:49:40]line > о реализуемом товаре [04:49:40]line ОКРУГЛЕНИЕ: -0.25 [04:49:40]line ИТОГО: 2000.00 [04:49:40]line Внесено: 2000.00 [04:49:40]line СДАЧА: 0.00 [04:49:40]line НСП 1% : 17.70 [04:49:40]line НДС 12% : 212.42 [04:49:40]line Наличными: 2000.00 [04:49:40]line Безнал.: 0.00 [04:49:40]line Место: АЗС № 126 "Партнер Нефть" [04:49:40]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [04:49:40]line СНО: Общий режим [04:49:40]line Чек 11 27.10.2024 04:49 [04:49:40]line Смена: 545 ФФД: 1.0 [04:49:40]line ЗНМ: 0300000085 [04:49:40]line РНМ: 0000000000091683 [04:49:40]line Версия ККМ: 001 [04:49:40]line ФМ: 0000000000871745 [04:49:40]line ФД: 145588 [04:49:40]line ФПД: 163647165194893 [04:49:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044941&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145588&fm=163647165194893&tin=02508201610067®Number=0000000000091683&sum=200000 [04:49:40]written 0, free lines is 4095 [04:49:40]OFD Sender: Processing packet 145588 [packets to send 205, broken 204] [04:49:40]ProducePacketName [04:49:40]name=ofd_packets/00145588 [04:49:40]OFD Sender: To server: pG, [04:49:40]CommunicateWithHost lk.salyk.kg:30040 [04:49:40]ConnectInit lk.salyk.kg [04:49:40]Connected sock=9 [04:49:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 40 BD 04 01 94 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 65 C6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B4 38 02 00 35 04 06 00 94 D6 13 26 62 8D F1 8F 13 BA 17 A6 C2 28 [04:49:41]Write to MH i2c: 01 00 00 EF 18 07 [04:49:41]Write i2c OK [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: 01 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: 01 07 00 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: 01 07 00 EF 18 00 00 00 00 00 BC 0C D6 [04:49:41]RasterBufferAndPrint [04:49:41]line [04:49:41]line [04:49:41]line [04:49:41]line [04:49:41]line [04:49:41]written 0, free lines is 3266 [04:49:41]MH_Cut [04:49:41]Write to MH i2c: D1 01 00 F6 18 01 E0 [04:49:41]Write i2c OK [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: D1 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: D1 01 00 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: D1 01 00 F6 18 00 DF [04:49:41]Write to MH i2c: 01 00 00 F7 18 0F [04:49:41]Write i2c OK [04:49:41]MH_I2C_Read... [04:49:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 6E 7D 47 00 3D 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B4 38 02 00 F4 03 04 00 93 6B 1D 67 B6 04 01 00 00 5A F1 DF EE 34 EF E5 11 [04:49:41]CommunicateWithHost err = 0 [04:49:41]CheckOFDResponse [04:49:41]1017 (14) - 77093643461234 [04:49:41]1041 (16) - 0000000000871745 [04:49:41]1040 (4) - 145588 [04:49:41]1012 (4) - 26.10.2024 22:22 [04:49:41]1206 (1) - 0 [04:49:41]OFD Sender: Remove packet 145588 [04:49:41]ProducePacketName [04:49:41]name=ofd_packets/00145588 [04:49:41]NVStorageDeleteData [04:49:41]OFD Sender: No OFD packet to send [04:49:41]*** Cut start [04:49:41]*** Partial cut [04:49:41]*** CUTSNS_PIN = 1 [04:49:41]*** CUTSNS_PIN = 0 [04:49:42]*** Brake cut motor [04:49:42]Read from MH i2c: 01 [04:49:42]MH_I2C_Read... [04:49:42]*** Stop cut motor [04:49:42]*** Cut end [04:49:42]Read from MH i2c: 01 07 00 [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: 01 07 00 F7 18 00 00 00 00 00 FF 0F 24 [04:49:42]process_action close_receipt done [04:49:42]requested_data is exist [04:49:42]produce_requested_data [04:49:42]requested_item fm.sn is exist - process it [04:49:42]wFMCommunicate request_size=4 [04:49:42]MH_SAM_APDU [04:49:42]CAPDU: 80 11 00 00 [04:49:42]Write to MH i2c: E2 08 00 F8 18 80 11 00 00 00 00 00 00 8A [04:49:42]Write i2c OK [04:49:42]MH_I2C_Read... [04:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:49:42]Read from MH i2c: E2 [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: E2 17 00 [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: E2 17 00 F8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 DD [04:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [04:49:42]wFMCommunicate OK [04:49:42]requested_item fd.num is exist - process it [04:49:42]SAM_PROTO_GetFieldsCounters [04:49:42]wFMCommunicate request_size=4 [04:49:42]MH_SAM_APDU [04:49:42]CAPDU: 80 13 00 00 [04:49:42]Write to MH i2c: E2 08 00 F9 18 80 13 00 00 00 00 00 00 8D [04:49:42]Write i2c OK [04:49:42]MH_I2C_Read... [04:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:49:42]Read from MH i2c: E2 [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: E2 62 00 [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: E2 62 00 F9 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B4 38 02 00 0E 04 04 00 21 02 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 E2 [04:49:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B4 38 02 00 0E 04 04 00 21 02 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 [04:49:42]wFMCommunicate OK [04:49:42]SAM_PROTO_GetFieldsCounters done [04:49:42]requested_item shift.num is exist - process it [04:49:42]requested_item shift.opened is exist - process it [04:49:42]req_shift_opened [04:49:42]FM_GetShiftState [04:49:42]SAM_PROTO_GetShiftState [04:49:42]wFMCommunicate request_size=4 [04:49:42]MH_SAM_APDU [04:49:42]CAPDU: 80 13 01 00 [04:49:42]Write to MH i2c: E2 08 00 FA 18 80 13 01 00 00 00 00 00 8F [04:49:42]Write i2c OK [04:49:42]MH_I2C_Read... [04:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:49:42]Read from MH i2c: E2 [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: E2 0E 00 [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: E2 0E 00 FA 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 07 [04:49:42]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [04:49:42]wFMCommunicate OK [04:49:42]SAM_PROTO_GetShiftState done [04:49:42]FM_GetShiftState done [04:49:42]req_shift_opened done [04:49:42]requested_item shift.open_date is exist - process it [04:49:42]req_shift_open_date [04:49:42]req_shift_open_date done [04:49:42]produce_requested_data done [04:49:42]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145588,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [04:49:42]process_action_free close_receipt [04:49:42]json_value_free [04:49:42]json_value_free done [04:49:42]process_json_proto returns [04:49:42]Send response to host [04:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145588,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [04:49:42]free response buf [04:49:42]execute_script done [04:49:42]execute_script returns [04:49:42]free content buf [04:49:42]Sock 10.Close socket [04:49:42]Sock 10.Thread stoped [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:33]accept exits with 7 [04:51:33]New connection [04:51:33]New thread 3067006308 created [04:51:33]Thread 3067149668 joined [04:51:33]Waiting for new connection... [04:51:33] Sock 7.Parse request [04:51:33]Sock 7.Check first char [04:51:33]Sock 7.First char is OK [04:51:33]request: POST /json_proto HTTP/1.0 [04:51:33]Method: POST [04:51:33]URL: /json_proto [04:51:33]Method is POST - this is cgi request [04:51:33]url: /json_proto [04:51:33]query_string will be loaded in cgi processing [04:51:33]execute_cgi json_proto POST (null) [04:51:33]execute_cgi path=json_proto method=POST [04:51:33]POST find Content-Length [04:51:33]Host: 172.17.40.195:8080 [04:51:33]Content-Length: 679 [04:51:33]Content-Type: application/json [04:51:33] [04:51:33]POST finish read [04:51:33]Found Content-Length = 679 [04:51:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:51:33]execute_script... [04:51: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)160339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:51:33]POST & json_proto [04:51:33]process_json_proto [04:51:33]json parsed OK: [04:51:33]protocol is kg_v1.0 [04:51:33]action value=close_receipt [04:51:33]process_action close_receipt [04:51:33]cmd_close_receipt [04:51:33]MH_GetDate [04:51:33]Write to MH i2c: F0 00 00 FB 18 02 [04:51:33]Write i2c OK [04:51:33]MH_I2C_Read... [04:51:33]Read from MH i2c: F0 [04:51:33]MH_I2C_Read... [04:51:33]Read from MH i2c: F0 09 00 [04:51:33]MH_I2C_Read... [04:51:33]Read from MH i2c: F0 09 00 FB 18 00 D8 C6 1D 67 D5 8D 6C 64 5F [04:51:33]GetLastDocTimeStamp 1730004581 [04:51:33]current date 1730004696 [04:51:33]FM_GetShiftState [04:51:33]SAM_PROTO_GetShiftState [04:51:33]wFMCommunicate request_size=4 [04:51:33]MH_SAM_APDU [04:51:33]CAPDU: 80 13 01 00 [04:51:33]Write to MH i2c: E2 08 00 FC 18 80 13 01 00 00 00 00 00 91 [04:51:33]Write i2c OK [04:51:33]MH_I2C_Read... [04:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:51:33]Read from MH i2c: E2 [04:51:33]MH_I2C_Read... [04:51:33]Read from MH i2c: E2 0E 00 [04:51:33]MH_I2C_Read... [04:51:33]Read from MH i2c: E2 0E 00 FC 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 09 [04:51:33]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [04:51:33]wFMCommunicate OK [04:51:33]SAM_PROTO_GetShiftState done [04:51:33]FM_GetShiftState done [04:51:33]opened in 1729988959 [04:51:33]opened+sec_in_day 1730075359 [04:51:33]quantity*price = 160020 [04:51:33]sum+1 = 160021 [04:51:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 12 27.10.2024 04:51 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145589 ФПД: 36177581083421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T045136&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145589&fm=36177581083421&tin=02508201610067®Number=0000000000091683&sum=160000 [04:51:35]StoreToDocumentArchive [04:51:35]shift 545 fd 145589 [04:51:35]save to /storage/0545/doc_00145589 [04:51:35]save last doc name /storage/0545/doc_00145589 to /storage/kkm_last_doc_name [04:51:35]save OK [04:51:35]Clear old archive folders... [04:51:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:51:35]tlvbuf is 01A2CCF0 [04:51:35]SAM_PROTO_ClearQueue [04:51:35]wFMCommunicate request_size=4 [04:51:35]MH_SAM_APDU [04:51:35]CAPDU: 80 09 00 00 [04:51:35]Write to MH i2c: E2 08 00 09 19 80 09 00 00 00 00 00 00 94 [04:51:35]Write i2c OK [04:51:35]MH_I2C_Read... [04:51:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:51:35]Read from MH i2c: E2 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 03 00 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 03 00 09 19 00 90 00 96 [04:51:35]RAPDU: 90 00 [04:51:35]wFMCommunicate OK [04:51:35]SAM_PROTO_ClearQueue done [04:51:35]KKMCreateOFDPacket [04:51:35]OFDProtocolAddRootSTLVToBuf [04:51:35]FM_MakeSignedData [04:51:35]FM_MakeSignedData [04:51:35]SAM_PROTO_SignData [04:51:35]wFMCommunicate request_size=4 [04:51:35]MH_SAM_APDU [04:51:35]CAPDU: 80 0D 01 02 [04:51:35]Write to MH i2c: E2 08 00 0A 19 80 0D 01 02 00 00 00 00 9C [04:51:35]Write i2c OK [04:51:35]MH_I2C_Read... [04:51:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:51:35]Read from MH i2c: E2 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 03 00 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 03 00 0A 19 00 90 00 97 [04:51:35]RAPDU: 90 00 [04:51:35]wFMCommunicate OK [04:51:35]wFMCommunicate request_size=255 [04:51:35]MH_SAM_APDU [04:51: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 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 D8 C6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B5 38 02 00 35 04 06 00 20 E7 3F DE [04:51:35]Write to MH i2c: E2 02 01 0B 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 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 D8 C6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B5 38 02 00 35 04 06 00 20 E7 3F DE 00 00 34 [04:51:35]Write i2c OK [04:51:35]MH_I2C_Read... [04:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:51:35]Read from MH i2c: E2 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 03 00 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 03 00 0B 19 00 90 00 98 [04:51:35]RAPDU: 90 00 [04:51:35]wFMCommunicate OK [04:51:35]wFMCommunicate request_size=7 [04:51:35]MH_SAM_APDU [04:51:35]CAPDU: 80 0D 02 02 02 8B 1D [04:51:35]Write to MH i2c: E2 0A 00 0C 19 80 0D 02 02 02 00 8B 1D 00 00 4B [04:51:35]Write i2c OK [04:51:35]MH_I2C_Read... [04:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:51:35]Read from MH i2c: E2 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 03 00 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 03 00 0C 19 00 90 00 99 [04:51:35]RAPDU: 90 00 [04:51:35]wFMCommunicate OK [04:51:35]wFMCommunicate request_size=4 [04:51:35]MH_SAM_APDU [04:51:35]CAPDU: 80 0D 03 02 [04:51:35]Write to MH i2c: E2 08 00 0D 19 80 0D 03 02 00 00 00 00 A1 [04:51:35]Write i2c OK [04:51:35]MH_I2C_Read... [04:51:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:51:35]Read from MH i2c: E2 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 0B 00 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 0B 00 0D 19 00 D9 50 99 93 58 73 B5 FA 90 00 71 [04:51:35]RAPDU: D9 50 99 93 58 73 B5 FA 90 00 [04:51:35]wFMCommunicate OK [04:51:35]SAM_PROTO_SignData done [04:51:35]FM_MakeSignedData done [04:51:35]CreateOFDProtocolMessage [04:51:35]wFMCommunicate request_size=4 [04:51:35]MH_SAM_APDU [04:51:35]CAPDU: 80 11 00 00 [04:51:35]Write to MH i2c: E2 08 00 0E 19 80 11 00 00 00 00 00 00 A1 [04:51:35]Write i2c OK [04:51:35]MH_I2C_Read... [04:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:51:35]Read from MH i2c: E2 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 17 00 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: E2 17 00 0E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F4 [04:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [04:51:35]wFMCommunicate OK [04:51:35]CreateOFDProtocolMessage done [04:51:35]OFDSenderStorePacket 145589 [04:51:35]StoreOFDPacket docnum=145589 [04:51:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 50 BF 04 01 85 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 D8 C6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B5 38 02 00 35 04 06 00 20 E7 3F DE 8B 1D D9 50 99 93 58 73 B5 FA [04:51:35]CheckFolder [04:51:35]dirname=/storage/ofd_packets [04:51:35]CheckFolder done [04:51:35]ProducePacketName [04:51:35]name=ofd_packets/00145589 [04:51:35]NVStorageSaveData ofd_packets/00145589 [04:51:35]File name is /storage/ofd_packets/00145589 [04:51:35]Write 298 bytes [04:51:35]NVStorageSaveData done [04:51:35]OFDSenderStorePacket done [04:51:35]KKMCreateOFDPacket done [04:51:35]NVStorageSaveData kkm_last_timestamp [04:51:35]File name is /storage/kkm_last_timestamp [04:51:35]Write 4 bytes [04:51:35]NVStorageSaveData done [04:51:35]ExternCall_PrintAddStr [04:51:35]wPrintStart [04:51:35]Write to MH i2c: 01 00 00 0F 19 28 [04:51:35]Write i2c OK [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: 01 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: 01 07 00 [04:51:35]MH_I2C_Read... [04:51:35]Read from MH i2c: 01 07 00 0F 19 00 00 00 00 00 FF 0F 3D [04:51:35]RasterBufferAndPrint [04:51:35]line Счет N : (1)160339 [04:51:35]line ИНН: 02508201610067 [04:51:35]line Контрольно-Кассовый Чек [04:51:35]line ПРОДАЖА [04:51:35]line ТРК (МРК, ГНК) : 21 [04:51:35]line Товар: 2710194210 [04:51:35]line ДТ-К-2 [04:51:35]line 21.000 * 76.20 [04:51:35]line = 1600.20 [04:51:35]line НДС 12% НСП 1% [04:51:35]line > о реализуемом товаре [04:51:35]line ОКРУГЛЕНИЕ: -0.20 [04:51:35]line ИТОГО: 1600.00 [04:51:35]line Внесено: 1600.00 [04:51:35]line СДАЧА: 0.00 [04:51:35]line НСП 1% : 14.16 [04:51:35]line НДС 12% : 169.93 [04:51:35]line Наличными: 1600.00 [04:51:35]line Безнал.: 0.00 [04:51:35]line Место: АЗС № 126 "Партнер Нефть" [04:51:35]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [04:51:35]line СНО: Общий режим [04:51:35]line Чек 12 27.10.2024 04:51 [04:51:35]line Смена: 545 ФФД: 1.0 [04:51:35]line ЗНМ: 0300000085 [04:51:35]line РНМ: 0000000000091683 [04:51:35]line Версия ККМ: 001 [04:51:35]line ФМ: 0000000000871745 [04:51:35]line ФД: 145589 [04:51:35]line ФПД: 36177581083421 [04:51:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T045136&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145589&fm=36177581083421&tin=02508201610067®Number=0000000000091683&sum=160000 [04:51:35]OFD Sender: Processing packet 145589 [packets to send 205, broken 204] [04:51:35]ProducePacketName [04:51:35]name=ofd_packets/00145589 [04:51:35]OFD Sender: To server: pG, [04:51:35]CommunicateWithHost lk.salyk.kg:30040 [04:51:35]ConnectInit lk.salyk.kg [04:51:35]written 0, free lines is 4095 [04:51:36]Connected sock=10 [04: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 31 37 34 35 0C 01 00 00 50 BF 04 01 85 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 D8 C6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B5 38 02 00 35 04 06 00 20 E7 3F DE 8B 1D D9 50 99 93 58 73 B5 FA [04:51:36]Write to MH i2c: 01 00 00 3A 19 53 [04:51:36]Write i2c OK [04:51:36]MH_I2C_Read... [04:51:36]Read from MH i2c: 01 [04:51:36]MH_I2C_Read... [04:51:36]Read from MH i2c: 01 07 00 [04:51:36]MH_I2C_Read... [04:51:36]Read from MH i2c: 01 07 00 3A 19 00 00 00 00 00 B6 0C 1C [04:51:36]RasterBufferAndPrint [04:51:36]line [04:51:36]line [04:51:36]line [04:51:36]line [04:51:36]line [04:51:36]written 0, free lines is 3258 [04:51:36]MH_Cut [04:51:36]Write to MH i2c: D1 01 00 41 19 01 2C [04:51:36]Write i2c OK [04:51:36]MH_I2C_Read... [04:51:36]Read from MH i2c: D1 [04:51:36]MH_I2C_Read... [04:51:36]Read from MH i2c: D1 01 00 [04:51:36]MH_I2C_Read... [04:51:36]Read from MH i2c: D1 01 00 41 19 00 2B [04:51:36]Write to MH i2c: 01 00 00 42 19 5B [04:51:36]Write i2c OK [04:51:36]MH_I2C_Read... [04:51:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 80 21 47 00 16 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 31 37 34 35 10 04 04 00 B5 38 02 00 F4 03 04 00 07 6C 1D 67 B6 04 01 00 00 79 E2 AF 8F B3 23 11 A8 [04:51:36]CommunicateWithHost err = 0 [04:51:36]CheckOFDResponse [04:51:36]1017 (14) - 77093643461234 [04:51:36]1041 (16) - 0000000000871745 [04:51:36]1040 (4) - 145589 [04:51:36]1012 (4) - 26.10.2024 22:24 [04:51:36]1206 (1) - 0 [04:51:36]OFD Sender: Remove packet 145589 [04:51:36]ProducePacketName [04:51:36]name=ofd_packets/00145589 [04:51:36]NVStorageDeleteData [04:51:36]OFD Sender: No OFD packet to send [04:51:37]*** Cut start [04:51:37]*** Partial cut [04:51:37]*** CUTSNS_PIN = 1 [04:51:37]*** CUTSNS_PIN = 0 [04:51:37]*** Brake cut motor [04:51:37]Read from MH i2c: 01 [04:51:37]MH_I2C_Read... [04:51:37]*** Stop cut motor [04:51:37]*** Cut end [04:51:37]Read from MH i2c: 01 07 00 [04:51:37]MH_I2C_Read... [04:51:37]Read from MH i2c: 01 07 00 42 19 00 00 00 00 00 FF 0F 70 [04:51:37]process_action close_receipt done [04:51:37]requested_data is exist [04:51:37]produce_requested_data [04:51:37]requested_item fm.sn is exist - process it [04:51:37]wFMCommunicate request_size=4 [04:51:37]MH_SAM_APDU [04:51:37]CAPDU: 80 11 00 00 [04:51:37]Write to MH i2c: E2 08 00 43 19 80 11 00 00 00 00 00 00 D6 [04:51:37]Write i2c OK [04:51:37]MH_I2C_Read... [04:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:51:37]Read from MH i2c: E2 [04:51:37]MH_I2C_Read... [04:51:37]Read from MH i2c: E2 17 00 [04:51:37]MH_I2C_Read... [04:51:37]Read from MH i2c: E2 17 00 43 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 29 [04:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [04:51:37]wFMCommunicate OK [04:51:37]requested_item fd.num is exist - process it [04:51:37]SAM_PROTO_GetFieldsCounters [04:51:37]wFMCommunicate request_size=4 [04:51:37]MH_SAM_APDU [04:51:37]CAPDU: 80 13 00 00 [04:51:37]Write to MH i2c: E2 08 00 44 19 80 13 00 00 00 00 00 00 D9 [04:51:37]Write i2c OK [04:51:37]MH_I2C_Read... [04:51:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:51:37]Read from MH i2c: E2 [04:51:37]MH_I2C_Read... [04:51:37]Read from MH i2c: E2 62 00 [04:51:37]MH_I2C_Read... [04:51:37]Read from MH i2c: E2 62 00 44 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B5 38 02 00 0E 04 04 00 21 02 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 32 [04:51:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B5 38 02 00 0E 04 04 00 21 02 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 [04:51:37]wFMCommunicate OK [04:51:37]SAM_PROTO_GetFieldsCounters done [04:51:37]requested_item shift.num is exist - process it [04:51:37]requested_item shift.opened is exist - process it [04:51:37]req_shift_opened [04:51:37]FM_GetShiftState [04:51:37]SAM_PROTO_GetShiftState [04:51:37]wFMCommunicate request_size=4 [04:51:37]MH_SAM_APDU [04:51:37]CAPDU: 80 13 01 00 [04:51:37]Write to MH i2c: E2 08 00 45 19 80 13 01 00 00 00 00 00 DB [04:51:37]Write i2c OK [04:51:37]MH_I2C_Read... [04:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:51:38]Read from MH i2c: E2 [04:51:38]MH_I2C_Read... [04:51:38]Read from MH i2c: E2 0E 00 [04:51:38]MH_I2C_Read... [04:51:38]Read from MH i2c: E2 0E 00 45 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 53 [04:51:38]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [04:51:38]wFMCommunicate OK [04:51:38]SAM_PROTO_GetShiftState done [04:51:38]FM_GetShiftState done [04:51:38]req_shift_opened done [04:51:38]requested_item shift.open_date is exist - process it [04:51:38]req_shift_open_date [04:51:38]req_shift_open_date done [04:51:38]produce_requested_data done [04:51:38]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145589,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [04:51:38]process_action_free close_receipt [04:51:38]json_value_free [04:51:38]json_value_free done [04:51:38]process_json_proto returns [04:51:38]Send response to host [04:51:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145589,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [04:51:38]free response buf [04:51:38]execute_script done [04:51:38]execute_script returns [04:51:38]free content buf [04:51:38]Sock 7.Close socket [04:51:38]Sock 7.Thread stoped [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:00]accept exits with 9 [05:03:00]New connection [05:03:00]New thread 3067149668 created [05:03:00]Thread 3067006308 joined [05:03:00]Waiting for new connection... [05:03:00] Sock 9.Parse request [05:03:00]Sock 9.Check first char [05:03:00]Sock 9.First char is OK [05:03:00]request: POST /json_proto HTTP/1.0 [05:03:00]Method: POST [05:03:00]URL: /json_proto [05:03:00]Method is POST - this is cgi request [05:03:00]url: /json_proto [05:03:00]query_string will be loaded in cgi processing [05:03:00]execute_cgi json_proto POST (null) [05:03:00]execute_cgi path=json_proto method=POST [05:03:00]POST find Content-Length [05:03:00]Host: 172.17.40.195:8080 [05:03:00]Content-Length: 688 [05:03:00]Content-Type: application/json [05:03:00] [05:03:00]POST finish read [05:03:00]Found Content-Length = 688 [05:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:00]execute_script... [05:03: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)160340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:00]POST & json_proto [05:03:00]process_json_proto [05:03:00]json parsed OK: [05:03:00]protocol is kg_v1.0 [05:03:00]action value=close_receipt [05:03:00]process_action close_receipt [05:03:00]cmd_close_receipt [05:03:00]MH_GetDate [05:03:00]Write to MH i2c: F0 00 00 46 19 4E [05:03:00]Write i2c OK [05:03:00]MH_I2C_Read... [05:03:00]Read from MH i2c: F0 [05:03:00]MH_I2C_Read... [05:03:00]Read from MH i2c: F0 09 00 [05:03:00]MH_I2C_Read... [05:03:00]Read from MH i2c: F0 09 00 46 19 00 87 C9 1D 67 D5 8D 6C 64 5D [05:03:00]GetLastDocTimeStamp 1730004696 [05:03:00]current date 1730005383 [05:03:00]FM_GetShiftState [05:03:00]SAM_PROTO_GetShiftState [05:03:00]wFMCommunicate request_size=4 [05:03:00]MH_SAM_APDU [05:03:00]CAPDU: 80 13 01 00 [05:03:00]Write to MH i2c: E2 08 00 47 19 80 13 01 00 00 00 00 00 DD [05:03:00]Write i2c OK [05:03:00]MH_I2C_Read... [05:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:00]Read from MH i2c: E2 [05:03:00]MH_I2C_Read... [05:03:00]Read from MH i2c: E2 0E 00 [05:03:00]MH_I2C_Read... [05:03:00]Read from MH i2c: E2 0E 00 47 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 55 [05:03:00]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [05:03:00]wFMCommunicate OK [05:03:00]SAM_PROTO_GetShiftState done [05:03:00]FM_GetShiftState done [05:03:00]opened in 1729988959 [05:03:00]opened+sec_in_day 1730075359 [05:03:00]quantity*price = 100051 [05:03:00]sum+1 = 100052 [05:03:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 13 27.10.2024 05:03 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145590 ФПД: 53818264250597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T050303&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145590&fm=53818264250597&tin=02508201610067®Number=0000000000091683&sum=100000 [05:03:01]StoreToDocumentArchive [05:03:01]shift 545 fd 145590 [05:03:01]save to /storage/0545/doc_00145590 [05:03:01]save last doc name /storage/0545/doc_00145590 to /storage/kkm_last_doc_name [05:03:01]save OK [05:03:01]Clear old archive folders... [05:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [05:03:01]tlvbuf is 01A5A8C0 [05:03:01]SAM_PROTO_ClearQueue [05:03:01]wFMCommunicate request_size=4 [05:03:01]MH_SAM_APDU [05:03:01]CAPDU: 80 09 00 00 [05:03:01]Write to MH i2c: E2 08 00 54 19 80 09 00 00 00 00 00 00 DF [05:03:01]Write i2c OK [05:03:01]MH_I2C_Read... [05:03:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:03:01]Read from MH i2c: E2 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: E2 03 00 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: E2 03 00 54 19 00 90 00 E1 [05:03:01]RAPDU: 90 00 [05:03:01]wFMCommunicate OK [05:03:01]SAM_PROTO_ClearQueue done [05:03:01]KKMCreateOFDPacket [05:03:01]OFDProtocolAddRootSTLVToBuf [05:03:01]FM_MakeSignedData [05:03:01]FM_MakeSignedData [05:03:01]SAM_PROTO_SignData [05:03:01]wFMCommunicate request_size=4 [05:03:01]MH_SAM_APDU [05:03:01]CAPDU: 80 0D 01 02 [05:03:01]Write to MH i2c: E2 08 00 55 19 80 0D 01 02 00 00 00 00 E7 [05:03:01]Write i2c OK [05:03:01]MH_I2C_Read... [05:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:03:02]Read from MH i2c: E2 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: E2 03 00 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: E2 03 00 55 19 00 90 00 E2 [05:03:02]RAPDU: 90 00 [05:03:02]wFMCommunicate OK [05:03:02]wFMCommunicate request_size=255 [05:03:02]MH_SAM_APDU [05:03:02]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 87 C9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B6 38 02 [05:03:02]Write to MH i2c: E2 02 01 56 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 87 C9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B6 38 02 00 00 D5 [05:03:02]Write i2c OK [05:03:02]MH_I2C_Read... [05:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:02]Read from MH i2c: E2 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: E2 03 00 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: E2 03 00 56 19 00 90 00 E3 [05:03:02]RAPDU: 90 00 [05:03:02]wFMCommunicate OK [05:03:02]wFMCommunicate request_size=16 [05:03:02]MH_SAM_APDU [05:03:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 30 F2 8A 85 E8 E5 [05:03:02]Write to MH i2c: E2 13 00 57 19 80 0D 02 02 0B 00 00 35 04 06 00 30 F2 8A 85 E8 E5 00 00 3D [05:03:02]Write i2c OK [05:03:02]MH_I2C_Read... [05:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:02]Read from MH i2c: E2 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: E2 03 00 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: E2 03 00 57 19 00 90 00 E4 [05:03:02]RAPDU: 90 00 [05:03:02]wFMCommunicate OK [05:03:02]wFMCommunicate request_size=4 [05:03:02]MH_SAM_APDU [05:03:02]CAPDU: 80 0D 03 02 [05:03:02]Write to MH i2c: E2 08 00 58 19 80 0D 03 02 00 00 00 00 EC [05:03:02]Write i2c OK [05:03:02]MH_I2C_Read... [05:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:03:02]Read from MH i2c: E2 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: E2 0B 00 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: E2 0B 00 58 19 00 2E FA CA 06 7A A8 39 6F 90 00 AF [05:03:02]RAPDU: 2E FA CA 06 7A A8 39 6F 90 00 [05:03:02]wFMCommunicate OK [05:03:02]SAM_PROTO_SignData done [05:03:02]FM_MakeSignedData done [05:03:02]CreateOFDProtocolMessage [05:03:02]wFMCommunicate request_size=4 [05:03:02]MH_SAM_APDU [05:03:02]CAPDU: 80 11 00 00 [05:03:02]Write to MH i2c: E2 08 00 59 19 80 11 00 00 00 00 00 00 EC [05:03:02]Write i2c OK [05:03:02]MH_I2C_Read... [05:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:02]Read from MH i2c: E2 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: E2 17 00 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: E2 17 00 59 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3F [05:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [05:03:02]wFMCommunicate OK [05:03:02]CreateOFDProtocolMessage done [05:03:02]OFDSenderStorePacket 145590 [05:03:02]StoreOFDPacket docnum=145590 [05:03:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 C2 6D 0D 01 B8 04 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 87 C9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B6 38 02 00 35 04 06 00 30 F2 8A 85 E8 E5 2E FA CA 06 7A A8 39 6F [05:03:02]CheckFolder [05:03:02]dirname=/storage/ofd_packets [05:03:02]CheckFolder done [05:03:02]ProducePacketName [05:03:02]name=ofd_packets/00145590 [05:03:02]NVStorageSaveData ofd_packets/00145590 [05:03:02]File name is /storage/ofd_packets/00145590 [05:03:02]Write 307 bytes [05:03:02]NVStorageSaveData done [05:03:02]OFDSenderStorePacket done [05:03:02]KKMCreateOFDPacket done [05:03:02]NVStorageSaveData kkm_last_timestamp [05:03:02]File name is /storage/kkm_last_timestamp [05:03:02]Write 4 bytes [05:03:02]NVStorageSaveData done [05:03:02]ExternCall_PrintAddStr [05:03:02]wPrintStart [05:03:02]Write to MH i2c: 01 00 00 5A 19 73 [05:03:02]Write i2c OK [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: 01 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: 01 07 00 [05:03:02]MH_I2C_Read... [05:03:02]Read from MH i2c: 01 07 00 5A 19 00 00 00 00 00 FF 0F 88 [05:03:02]RasterBufferAndPrint [05:03:02]line Счет N : (1)160340 [05:03:02]line ИНН: 02508201610067 [05:03:02]line Контрольно-Кассовый Чек [05:03:02]line ПРОДАЖА [05:03:02]line ТРК (МРК, ГНК) : 41 [05:03:02]line Товар: 2710194240 [05:03:02]line D-Energy Дт-К-2 [05:03:02]line 12.960 * 77.20 [05:03:02]line = 1000.51 [05:03:02]line НДС 12% НСП 1% [05:03:02]line > о реализуемом товаре [05:03:02]line ОКРУГЛЕНИЕ: -0.51 [05:03:02]line ИТОГО: 1000.00 [05:03:02]line Внесено: 1000.00 [05:03:02]line СДАЧА: 0.00 [05:03:02]line НСП 1% : 8.85 [05:03:02]line НДС 12% : 106.25 [05:03:02]line Наличными: 1000.00 [05:03:02]line Безнал.: 0.00 [05:03:02]line Место: АЗС № 126 "Партнер Нефть" [05:03:02]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [05:03:02]line СНО: Общий режим [05:03:02]line Чек 13 27.10.2024 05:03 [05:03:02]line Смена: 545 ФФД: 1.0 [05:03:02]line ЗНМ: 0300000085 [05:03:02]line РНМ: 0000000000091683 [05:03:02]line Версия ККМ: 001 [05:03:02]line ФМ: 0000000000871745 [05:03:02]line ФД: 145590 [05:03:02]line ФПД: 53818264250597 [05:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T050303&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145590&fm=53818264250597&tin=02508201610067®Number=0000000000091683&sum=100000 [05:03:02]OFD Sender: Processing packet 145590 [packets to send 205, broken 204] [05:03:02]ProducePacketName [05:03:02]name=ofd_packets/00145590 [05:03:02]OFD Sender: To server: pG, [05:03:02]CommunicateWithHost lk.salyk.kg:30040 [05:03:02]ConnectInit lk.salyk.kg [05:03:02]written 0, free lines is 4095 [05:03:02]Connected sock=10 [05:03:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 C2 6D 0D 01 B8 04 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 87 C9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B6 38 02 00 35 04 06 00 30 F2 8A 85 E8 E5 2E FA CA 06 7A A8 39 6F [05:03:03]Write to MH i2c: 01 00 00 85 19 9E [05:03:03]Write i2c OK [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: 01 [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: 01 07 00 [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: 01 07 00 85 19 00 00 00 00 00 C0 0C 71 [05:03:03]RasterBufferAndPrint [05:03:03]line [05:03:03]line [05:03:03]line [05:03:03]line [05:03:03]line [05:03:03]written 0, free lines is 3268 [05:03:03]MH_Cut [05:03:03]Write to MH i2c: D1 01 00 8C 19 01 77 [05:03:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 Write i2c OK [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: D1 [05:03:03]MH_I2C_Read... [05:03:03]30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 BA 77 47 00 8B 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B6 38 02 00 F4 03 04 00 B5 6E 1D 67 B6 04 01 00 00 B8 08 EA 8F CD F0 12 ED [05:03:03]CommunicateWithHost err = 0 [05:03:03]CheckOFDResponse [05:03:03]1017 (14) - 77093643461234 [05:03:03]1041 (16) - 0000000000871745 [05:03:03]1040 (4) - 145590 [05:03:03]1012 (4) - 26.10.2024 22:35 [05:03:03]1206 (1) - 0 [05:03:03]OFD Sender: Remove packet 145590 [05:03:03]ProducePacketName [05:03:03]name=ofd_packets/00145590 [05:03:03]NVStorageDeleteData [05:03:03]Read from MH i2c: D1 01 00 [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: D1 01 00 8C 19 00 76 [05:03:03]Write to MH i2c: 01 00 00 8D 19 A6 [05:03:03]Write i2c OK [05:03:03]MH_I2C_Read... [05:03:03]OFD Sender: No OFD packet to send [05:03:04]*** Cut start [05:03:04]*** Partial cut [05:03:04]*** CUTSNS_PIN = 1 [05:03:04]*** CUTSNS_PIN = 0 [05:03:04]*** Brake cut motor [05:03:04]Read from MH i2c: 01 [05:03:04]MH_I2C_Read... [05:03:04]*** Stop cut motor [05:03:04]*** Cut end [05:03:04]Read from MH i2c: 01 07 00 [05:03:04]MH_I2C_Read... [05:03:04]Read from MH i2c: 01 07 00 8D 19 00 00 00 00 00 FF 0F BB [05:03:04]process_action close_receipt done [05:03:04]requested_data is exist [05:03:04]produce_requested_data [05:03:04]requested_item fm.sn is exist - process it [05:03:04]wFMCommunicate request_size=4 [05:03:04]MH_SAM_APDU [05:03:04]CAPDU: 80 11 00 00 [05:03:04]Write to MH i2c: E2 08 00 8E 19 80 11 00 00 00 00 00 00 21 [05:03:04]Write i2c OK [05:03:04]MH_I2C_Read... [05:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:04]Read from MH i2c: E2 [05:03:04]MH_I2C_Read... [05:03:04]Read from MH i2c: E2 17 00 [05:03:04]MH_I2C_Read... [05:03:04]Read from MH i2c: E2 17 00 8E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 74 [05:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [05:03:04]wFMCommunicate OK [05:03:04]requested_item fd.num is exist - process it [05:03:04]SAM_PROTO_GetFieldsCounters [05:03:04]wFMCommunicate request_size=4 [05:03:04]MH_SAM_APDU [05:03:04]CAPDU: 80 13 00 00 [05:03:04]Write to MH i2c: E2 08 00 8F 19 80 13 00 00 00 00 00 00 24 [05:03:04]Write i2c OK [05:03:04]MH_I2C_Read... [05:03:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:03:04]Read from MH i2c: E2 [05:03:04]MH_I2C_Read... [05:03:04]Read from MH i2c: E2 62 00 [05:03:04]MH_I2C_Read... [05:03:04]Read from MH i2c: E2 62 00 8F 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B6 38 02 00 0E 04 04 00 21 02 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 81 [05:03:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B6 38 02 00 0E 04 04 00 21 02 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 [05:03:04]wFMCommunicate OK [05:03:04]SAM_PROTO_GetFieldsCounters done [05:03:04]requested_item shift.num is exist - process it [05:03:04]requested_item shift.opened is exist - process it [05:03:04]req_shift_opened [05:03:04]FM_GetShiftState [05:03:04]SAM_PROTO_GetShiftState [05:03:04]wFMCommunicate request_size=4 [05:03:04]MH_SAM_APDU [05:03:04]CAPDU: 80 13 01 00 [05:03:04]Write to MH i2c: E2 08 00 90 19 80 13 01 00 00 00 00 00 26 [05:03:04]Write i2c OK [05:03:04]MH_I2C_Read... [05:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:04]Read from MH i2c: E2 [05:03:04]MH_I2C_Read... [05:03:04]Read from MH i2c: E2 0E 00 [05:03:04]MH_I2C_Read... [05:03:04]Read from MH i2c: E2 0E 00 90 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9E [05:03:04]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [05:03:04]wFMCommunicate OK [05:03:04]SAM_PROTO_GetShiftState done [05:03:04]FM_GetShiftState done [05:03:04]req_shift_opened done [05:03:04]requested_item shift.open_date is exist - process it [05:03:04]req_shift_open_date [05:03:04]req_shift_open_date done [05:03:04]produce_requested_data done [05:03:04]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145590,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [05:03:04]process_action_free close_receipt [05:03:04]json_value_free [05:03:04]json_value_free done [05:03:04]process_json_proto returns [05:03:04]Send response to host [05:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145590,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [05:03:04]free response buf [05:03:04]execute_script done [05:03:04]execute_script returns [05:03:04]free content buf [05:03:04]Sock 9.Close socket [05:03:04]Sock 9.Thread stoped [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:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]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:03]ConnectInit Can't connect to host [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]accept exits with 7 [05:13:44]New connection [05:13:44]New thread 3067006308 created [05:13:44]Thread 3067149668 joined [05:13:44]Waiting for new connection... [05:13:44] Sock 7.Parse request [05:13:44]Sock 7.Check first char [05:13:44]Sock 7.First char is OK [05:13:44]request: POST /json_proto HTTP/1.0 [05:13:44]Method: POST [05:13:44]URL: /json_proto [05:13:44]Method is POST - this is cgi request [05:13:44]url: /json_proto [05:13:44]query_string will be loaded in cgi processing [05:13:44]execute_cgi json_proto POST (null) [05:13:44]execute_cgi path=json_proto method=POST [05:13:44]POST find Content-Length [05:13:44]Host: 172.17.40.195:8080 [05:13:44]Content-Length: 679 [05:13:44]Content-Type: application/json [05:13:44] [05:13:44]POST finish read [05:13:44]Found Content-Length = 679 [05:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.100, "sum" : 1150.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:13:44]execute_script... [05:13:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.100, "sum" : 1150.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:13:44]POST & json_proto [05:13:44]process_json_proto [05:13:44]json parsed OK: [05:13:44]protocol is kg_v1.0 [05:13:44]action value=close_receipt [05:13:44]process_action close_receipt [05:13:44]cmd_close_receipt [05:13:44]MH_GetDate [05:13:44]Write to MH i2c: F0 00 00 91 19 99 [05:13:44]Write i2c OK [05:13:44]MH_I2C_Read... [05:13:44]Read from MH i2c: F0 [05:13:44]MH_I2C_Read... [05:13:44]Read from MH i2c: F0 09 00 [05:13:44]MH_I2C_Read... [05:13:44]Read from MH i2c: F0 09 00 91 19 00 0A CC 1D 67 D5 8D 6C 64 2E [05:13:44]GetLastDocTimeStamp 1730005383 [05:13:44]current date 1730006026 [05:13:44]FM_GetShiftState [05:13:44]SAM_PROTO_GetShiftState [05:13:44]wFMCommunicate request_size=4 [05:13:44]MH_SAM_APDU [05:13:44]CAPDU: 80 13 01 00 [05:13:44]Write to MH i2c: E2 08 00 92 19 80 13 01 00 00 00 00 00 28 [05:13:44]Write i2c OK [05:13:44]MH_I2C_Read... [05:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:44]Read from MH i2c: E2 [05:13:44]MH_I2C_Read... [05:13:44]Read from MH i2c: E2 0E 00 [05:13:44]MH_I2C_Read... [05:13:44]Read from MH i2c: E2 0E 00 92 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A0 [05:13:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [05:13:44]wFMCommunicate OK [05:13:44]SAM_PROTO_GetShiftState done [05:13:44]FM_GetShiftState done [05:13:44]opened in 1729988959 [05:13:44]opened+sec_in_day 1730075359 [05:13:44]quantity*price = 115062 [05:13:44]sum+1 = 115063 [05:13:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1150.00 Внесено: 1150.00 СДАЧА: 0.00 НСП 1% : 10.18 НДС 12% : 122.19 Наличными: 1150.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 14 27.10.2024 05:13 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145591 ФПД: 2800562742982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T051346&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145591&fm=2800562742982&tin=02508201610067®Number=0000000000091683&sum=115000 [05:13:45]StoreToDocumentArchive [05:13:45]shift 545 fd 145591 [05:13:45]save to /storage/0545/doc_00145591 [05:13:45]save last doc name /storage/0545/doc_00145591 to /storage/kkm_last_doc_name [05:13:45]save OK [05:13:45]Clear old archive folders... [05:13:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:13:45]tlvbuf is 01A9A320 [05:13:45]SAM_PROTO_ClearQueue [05:13:45]wFMCommunicate request_size=4 [05:13:45]MH_SAM_APDU [05:13:45]CAPDU: 80 09 00 00 [05:13:45]Write to MH i2c: E2 08 00 9F 19 80 09 00 00 00 00 00 00 2A [05:13:45]Write i2c OK [05:13:45]MH_I2C_Read... [05:13:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:13:45]Read from MH i2c: E2 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 03 00 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 03 00 9F 19 00 90 00 2C [05:13:45]RAPDU: 90 00 [05:13:45]wFMCommunicate OK [05:13:45]SAM_PROTO_ClearQueue done [05:13:45]KKMCreateOFDPacket [05:13:45]OFDProtocolAddRootSTLVToBuf [05:13:45]FM_MakeSignedData [05:13:45]FM_MakeSignedData [05:13:45]SAM_PROTO_SignData [05:13:45]wFMCommunicate request_size=4 [05:13:45]MH_SAM_APDU [05:13:45]CAPDU: 80 0D 01 02 [05:13:45]Write to MH i2c: E2 08 00 A0 19 80 0D 01 02 00 00 00 00 32 [05:13:45]Write i2c OK [05:13:45]MH_I2C_Read... [05:13:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:13:45]Read from MH i2c: E2 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 03 00 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 03 00 A0 19 00 90 00 2D [05:13:45]RAPDU: 90 00 [05:13:45]wFMCommunicate OK [05:13:45]wFMCommunicate request_size=255 [05:13:45]MH_SAM_APDU [05:13:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FC 3A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 76 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 0A CC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B7 38 02 00 35 04 06 00 02 8C 0E 8C [05:13:45]Write to MH i2c: E2 02 01 A1 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 32 FF 03 08 00 03 FC 3A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 76 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 0A CC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B7 38 02 00 35 04 06 00 02 8C 0E 8C 00 00 5C [05:13:45]Write i2c OK [05:13:45]MH_I2C_Read... [05:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:45]Read from MH i2c: E2 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 03 00 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 03 00 A1 19 00 90 00 2E [05:13:45]RAPDU: 90 00 [05:13:45]wFMCommunicate OK [05:13:45]wFMCommunicate request_size=7 [05:13:45]MH_SAM_APDU [05:13:45]CAPDU: 80 0D 02 02 02 26 C6 [05:13:45]Write to MH i2c: E2 0A 00 A2 19 80 0D 02 02 02 00 26 C6 00 00 25 [05:13:45]Write i2c OK [05:13:45]MH_I2C_Read... [05:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:45]Read from MH i2c: E2 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 03 00 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 03 00 A2 19 00 90 00 2F [05:13:45]RAPDU: 90 00 [05:13:45]wFMCommunicate OK [05:13:45]wFMCommunicate request_size=4 [05:13:45]MH_SAM_APDU [05:13:45]CAPDU: 80 0D 03 02 [05:13:45]Write to MH i2c: E2 08 00 A3 19 80 0D 03 02 00 00 00 00 37 [05:13:45]Write i2c OK [05:13:45]MH_I2C_Read... [05:13:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:13:45]Read from MH i2c: E2 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 0B 00 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 0B 00 A3 19 00 A0 B2 F3 37 62 CD F0 45 90 00 18 [05:13:45]RAPDU: A0 B2 F3 37 62 CD F0 45 90 00 [05:13:45]wFMCommunicate OK [05:13:45]SAM_PROTO_SignData done [05:13:45]FM_MakeSignedData done [05:13:45]CreateOFDProtocolMessage [05:13:45]wFMCommunicate request_size=4 [05:13:45]MH_SAM_APDU [05:13:45]CAPDU: 80 11 00 00 [05:13:45]Write to MH i2c: E2 08 00 A4 19 80 11 00 00 00 00 00 00 37 [05:13:45]Write i2c OK [05:13:45]MH_I2C_Read... [05:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:45]Read from MH i2c: E2 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 17 00 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 17 00 A4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8A [05:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [05:13:45]wFMCommunicate OK [05:13:45]CreateOFDProtocolMessage done [05:13:45]OFDSenderStorePacket 145591 [05:13:45]StoreOFDPacket docnum=145591 [05:13:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 58 4E 04 01 4F 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FC 3A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 76 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 0A CC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B7 38 02 00 35 04 06 00 02 8C 0E 8C 26 C6 A0 B2 F3 37 62 CD F0 45 [05:13:45]CheckFolder [05:13:45]dirname=/storage/ofd_packets [05:13:45]CheckFolder done [05:13:45]ProducePacketName [05:13:45]name=ofd_packets/00145591 [05:13:45]NVStorageSaveData ofd_packets/00145591 [05:13:45]File name is /storage/ofd_packets/00145591 [05:13:45]Write 298 bytes [05:13:45]NVStorageSaveData done [05:13:45]OFDSenderStorePacket done [05:13:45]KKMCreateOFDPacket done [05:13:45]NVStorageSaveData kkm_last_timestamp [05:13:45]File name is /storage/kkm_last_timestamp [05:13:45]Write 4 bytes [05:13:45]NVStorageSaveData done [05:13:45]ExternCall_PrintAddStr [05:13:45]wPrintStart [05:13:45]Write to MH i2c: 01 00 00 A5 19 BE [05:13:45]Write i2c OK [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: 01 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: 01 07 00 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: 01 07 00 A5 19 00 00 00 00 00 FF 0F D3 [05:13:45]RasterBufferAndPrint [05:13:45]line Счет N : (1)160341 [05:13:45]line ИНН: 02508201610067 [05:13:45]line Контрольно-Кассовый Чек [05:13:45]line ПРОДАЖА [05:13:45]line ТРК (МРК, ГНК) : 21 [05:13:45]line Товар: 2710194210 [05:13:45]line ДТ-К-2 [05:13:45]line 15.100 * 76.20 [05:13:45]line = 1150.62 [05:13:45]line НДС 12% НСП 1% [05:13:45]line > о реализуемом товаре [05:13:45]line ОКРУГЛЕНИЕ: -0.62 [05:13:45]line ИТОГО: 1150.00 [05:13:45]line Внесено: 1150.00 [05:13:45]line СДАЧА: 0.00 [05:13:45]line НСП 1% : 10.18 [05:13:45]line НДС 12% : 122.19 [05:13:45]line Наличными: 1150.00 [05:13:45]line Безнал.: 0.00 [05:13:45]line Место: АЗС № 126 "Партнер Нефть" [05:13:45]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [05:13:45]line СНО: Общий режим [05:13:45]line Чек 14 27.10.2024 05:13 [05:13:45]line Смена: 545 ФФД: 1.0 [05:13:45]line ЗНМ: 0300000085 [05:13:45]line РНМ: 0000000000091683 [05:13:45]line Версия ККМ: 001 [05:13:45]line ФМ: 0000000000871745 [05:13:45]line ФД: 145591 [05:13:45]line ФПД: 2800562742982 [05:13:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T051346&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145591&fm=2800562742982&tin=02508201610067®Number=0000000000091683&sum=115000 [05:13:46]OFD Sender: Processing packet 145591 [packets to send 205, broken 204] [05:13:46]ProducePacketName [05:13:46]name=ofd_packets/00145591 [05:13:46]OFD Sender: To server: pG, [05:13:46]CommunicateWithHost lk.salyk.kg:30040 [05:13:46]ConnectInit lk.salyk.kg [05:13:46]written 0, free lines is 4095 [05:13:46]Connected sock=10 [05:13:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 58 4E 04 01 4F 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FC 3A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 76 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 0A CC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B7 38 02 00 35 04 06 00 02 8C 0E 8C 26 C6 A0 B2 F3 37 62 CD F0 45 [05:13:46]Write to MH i2c: 01 00 00 D0 19 E9 [05:13:46]Write i2c OK [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: 01 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: 01 07 00 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: 01 07 00 D0 19 00 00 00 00 00 A4 0C A0 [05:13:46]RasterBufferAndPrint [05:13:46]line [05:13:46]line [05:13:46]line [05:13:46]line [05:13:46]line [05:13:46]written 0, free lines is 3242 [05:13:46]MH_Cut [05:13:46]Write to MH i2c: D1 01 00 D7 19 01 C2 [05:13:46]Write i2c OK [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: D1 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: D1 01 00 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: D1 01 00 D7 19 00 C1 [05:13:46]Write to MH i2c: 01 00 00 D8 19 F1 [05:13:46]Write i2c OK [05:13:46]MH_I2C_Read... [05:13:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 3F 9D 47 00 66 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B7 38 02 00 F4 03 04 00 39 71 1D 67 B6 04 01 00 00 4E 9D 50 5C C8 4B F2 97 [05:13:46]CommunicateWithHost err = 0 [05:13:46]CheckOFDResponse [05:13:46]1017 (14) - 77093643461234 [05:13:46]1041 (16) - 0000000000871745 [05:13:46]1040 (4) - 145591 [05:13:46]1012 (4) - 26.10.2024 22:46 [05:13:46]1206 (1) - 0 [05:13:46]OFD Sender: Remove packet 145591 [05:13:46]ProducePacketName [05:13:46]name=ofd_packets/00145591 [05:13:46]NVStorageDeleteData [05:13:47]OFD Sender: No OFD packet to send [05:13:47]*** Cut start [05:13:47]*** Partial cut [05:13:47]*** CUTSNS_PIN = 1 [05:13:47]*** CUTSNS_PIN = 0 [05:13:47]*** Brake cut motor [05:13:47]Read from MH i2c: 01 [05:13:47]MH_I2C_Read... [05:13:47]*** Stop cut motor [05:13:48]*** Cut end [05:13:48]Read from MH i2c: 01 07 00 [05:13:48]MH_I2C_Read... [05:13:48]Read from MH i2c: 01 07 00 D8 19 00 00 00 00 00 FF 0F 06 [05:13:48]process_action close_receipt done [05:13:48]requested_data is exist [05:13:48]produce_requested_data [05:13:48]requested_item fm.sn is exist - process it [05:13:48]wFMCommunicate request_size=4 [05:13:48]MH_SAM_APDU [05:13:48]CAPDU: 80 11 00 00 [05:13:48]Write to MH i2c: E2 08 00 D9 19 80 11 00 00 00 00 00 00 6C [05:13:48]Write i2c OK [05:13:48]MH_I2C_Read... [05:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:48]Read from MH i2c: E2 [05:13:48]MH_I2C_Read... [05:13:48]Read from MH i2c: E2 17 00 [05:13:48]MH_I2C_Read... [05:13:48]Read from MH i2c: E2 17 00 D9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BF [05:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [05:13:48]wFMCommunicate OK [05:13:48]requested_item fd.num is exist - process it [05:13:48]SAM_PROTO_GetFieldsCounters [05:13:48]wFMCommunicate request_size=4 [05:13:48]MH_SAM_APDU [05:13:48]CAPDU: 80 13 00 00 [05:13:48]Write to MH i2c: E2 08 00 DA 19 80 13 00 00 00 00 00 00 6F [05:13:48]Write i2c OK [05:13:48]MH_I2C_Read... [05:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:13:48]Read from MH i2c: E2 [05:13:48]MH_I2C_Read... [05:13:48]Read from MH i2c: E2 62 00 [05:13:48]MH_I2C_Read... [05:13:48]Read from MH i2c: E2 62 00 DA 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B7 38 02 00 0E 04 04 00 21 02 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 D0 [05:13:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B7 38 02 00 0E 04 04 00 21 02 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 [05:13:48]wFMCommunicate OK [05:13:48]SAM_PROTO_GetFieldsCounters done [05:13:48]requested_item shift.num is exist - process it [05:13:48]requested_item shift.opened is exist - process it [05:13:48]req_shift_opened [05:13:48]FM_GetShiftState [05:13:48]SAM_PROTO_GetShiftState [05:13:48]wFMCommunicate request_size=4 [05:13:48]MH_SAM_APDU [05:13:48]CAPDU: 80 13 01 00 [05:13:48]Write to MH i2c: E2 08 00 DB 19 80 13 01 00 00 00 00 00 71 [05:13:48]Write i2c OK [05:13:48]MH_I2C_Read... [05:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:48]Read from MH i2c: E2 [05:13:48]MH_I2C_Read... [05:13:48]Read from MH i2c: E2 0E 00 [05:13:48]MH_I2C_Read... [05:13:48]Read from MH i2c: E2 0E 00 DB 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E9 [05:13:48]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [05:13:48]wFMCommunicate OK [05:13:48]SAM_PROTO_GetShiftState done [05:13:48]FM_GetShiftState done [05:13:48]req_shift_opened done [05:13:48]requested_item shift.open_date is exist - process it [05:13:48]req_shift_open_date [05:13:48]req_shift_open_date done [05:13:48]produce_requested_data done [05:13:48]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145591,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [05:13:48]process_action_free close_receipt [05:13:48]json_value_free [05:13:48]json_value_free done [05:13:48]process_json_proto returns [05:13:48]Send response to host [05:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145591,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [05:13:48]free response buf [05:13:48]execute_script done [05:13:48]execute_script returns [05:13:48]free content buf [05:13:48]Sock 7.Close socket [05:13:48]Sock 7.Thread stoped [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:30]int [05:49:30]Write to MH i2c: 01 00 00 DC 19 F5 [05:49:30]*** FLAG_PRN_KEY set [05:49:30]Write i2c OK [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: 01 [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: 01 07 00 [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: 01 07 00 DC 19 00 08 00 00 00 FF 0F 12 [05:49:30]state=0 [05:49:30]Key pressed [05:49:30]Feed [05:49:30]Write to MH i2c: D8 00 00 DD 19 CD [05:49:30]Write i2c OK [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: D8 [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: D8 01 00 [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: D8 01 00 DD 19 00 CE [05:49:30]int [05:49:30]Write to MH i2c: 01 00 00 DE 19 F7 [05:49:30]Write i2c OK [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: 01 [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: 01 07 00 [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: 01 07 00 DE 19 00 48 00 00 00 3C 00 82 [05:49:30]state=2 [05:49:30]Key pressed [05:49:30]int [05:49:30]Write to MH i2c: 01 00 00 DF 19 F8 [05:49:30]*** FLAG_PRN_KEY reset [05:49:30]Write i2c OK [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: 01 [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: 01 07 00 [05:49:30]MH_I2C_Read... [05:49:30]Read from MH i2c: 01 07 00 DF 19 00 00 00 00 00 F6 0F 04 [05:49:30]state=2 [05:49:30]Stop feed [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57: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:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:06:57]accept exits with 9 [06:06:57]New connection [06:06:57]New thread 3067149668 created [06:06:57]Thread 3067006308 joined [06:06:57]Waiting for new connection... [06:06:57] Sock 9.Parse request [06:06:57]Sock 9.Check first char [06:06:57]Sock 9.First char is OK [06:06:57]request: POST /json_proto HTTP/1.0 [06:06:57]Method: POST [06:06:57]URL: /json_proto [06:06:57]Method is POST - this is cgi request [06:06:57]url: /json_proto [06:06:57]query_string will be loaded in cgi processing [06:06:57]execute_cgi json_proto POST (null) [06:06:57]execute_cgi path=json_proto method=POST [06:06:57]POST find Content-Length [06:06:57]Host: 172.17.40.195:8080 [06:06:57]Content-Length: 679 [06:06:57]Content-Type: application/json [06:06:57] [06:06:57]POST finish read [06:06:57]Found Content-Length = 679 [06:06:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:57]execute_script... [06:06: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)160342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:57]POST & json_proto [06:06:57]process_json_proto [06:06:57]json parsed OK: [06:06:57]protocol is kg_v1.0 [06:06:57]action value=close_receipt [06:06:57]process_action close_receipt [06:06:57]cmd_close_receipt [06:06:57]MH_GetDate [06:06:57]Write to MH i2c: F0 00 00 E0 19 E8 [06:06:57]Write i2c OK [06:06:57]MH_I2C_Read... [06:06:57]Read from MH i2c: F0 [06:06:57]MH_I2C_Read... [06:06:57]Read from MH i2c: F0 09 00 [06:06:57]MH_I2C_Read... [06:06:57]Read from MH i2c: F0 09 00 E0 19 00 84 D8 1D 67 D5 8D 6C 64 03 [06:06:57]GetLastDocTimeStamp 1730006026 [06:06:57]current date 1730009220 [06:06:57]FM_GetShiftState [06:06:57]SAM_PROTO_GetShiftState [06:06:57]wFMCommunicate request_size=4 [06:06:57]MH_SAM_APDU [06:06:57]CAPDU: 80 13 01 00 [06:06:57]Write to MH i2c: E2 08 00 E1 19 80 13 01 00 00 00 00 00 77 [06:06:57]Write i2c OK [06:06:57]MH_I2C_Read... [06:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:57]Read from MH i2c: E2 [06:06:57]MH_I2C_Read... [06:06:57]Read from MH i2c: E2 0E 00 [06:06:57]MH_I2C_Read... [06:06:57]Read from MH i2c: E2 0E 00 E1 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EF [06:06:57]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:06:57]wFMCommunicate OK [06:06:57]SAM_PROTO_GetShiftState done [06:06:57]FM_GetShiftState done [06:06:57]opened in 1729988959 [06:06:57]opened+sec_in_day 1730075359 [06:06:57]quantity*price = 200025 [06:06:57]sum+1 = 200026 [06:06:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 15 27.10.2024 06:07 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145592 ФПД: 195550225357511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060700&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145592&fm=195550225357511&tin=02508201610067®Number=0000000000091683&sum=200000 [06:06:58]StoreToDocumentArchive [06:06:58]shift 545 fd 145592 [06:06:58]save to /storage/0545/doc_00145592 [06:06:58]save last doc name /storage/0545/doc_00145592 to /storage/kkm_last_doc_name [06:06:58]save OK [06:06:58]Clear old archive folders... [06:06:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:06:58]tlvbuf is 01AC83D0 [06:06:58]SAM_PROTO_ClearQueue [06:06:58]wFMCommunicate request_size=4 [06:06:58]MH_SAM_APDU [06:06:58]CAPDU: 80 09 00 00 [06:06:58]Write to MH i2c: E2 08 00 EE 19 80 09 00 00 00 00 00 00 79 [06:06:58]Write i2c OK [06:06:58]MH_I2C_Read... [06:06:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:06:58]Read from MH i2c: E2 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 03 00 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 03 00 EE 19 00 90 00 7B [06:06:58]RAPDU: 90 00 [06:06:58]wFMCommunicate OK [06:06:58]SAM_PROTO_ClearQueue done [06:06:58]KKMCreateOFDPacket [06:06:58]OFDProtocolAddRootSTLVToBuf [06:06:58]FM_MakeSignedData [06:06:58]FM_MakeSignedData [06:06:58]SAM_PROTO_SignData [06:06:58]wFMCommunicate request_size=4 [06:06:58]MH_SAM_APDU [06:06:58]CAPDU: 80 0D 01 02 [06:06:58]Write to MH i2c: E2 08 00 EF 19 80 0D 01 02 00 00 00 00 81 [06:06:58]Write i2c OK [06:06:58]MH_I2C_Read... [06:06:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:06:58]Read from MH i2c: E2 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 03 00 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 03 00 EF 19 00 90 00 7C [06:06:58]RAPDU: 90 00 [06:06:58]wFMCommunicate OK [06:06:58]wFMCommunicate request_size=255 [06:06:58]MH_SAM_APDU [06:06: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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 84 D8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B8 38 02 00 35 04 06 00 B1 DA 15 B7 [06:06:58]Write to MH i2c: E2 02 01 F0 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 84 D8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B8 38 02 00 35 04 06 00 B1 DA 15 B7 00 00 4E [06:06:58]Write i2c OK [06:06:58]MH_I2C_Read... [06:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:58]Read from MH i2c: E2 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 03 00 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 03 00 F0 19 00 90 00 7D [06:06:58]RAPDU: 90 00 [06:06:58]wFMCommunicate OK [06:06:58]wFMCommunicate request_size=7 [06:06:58]MH_SAM_APDU [06:06:58]CAPDU: 80 0D 02 02 02 DA C7 [06:06:58]Write to MH i2c: E2 0A 00 F1 19 80 0D 02 02 02 00 DA C7 00 00 29 [06:06:58]Write i2c OK [06:06:58]MH_I2C_Read... [06:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:58]Read from MH i2c: E2 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 03 00 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 03 00 F1 19 00 90 00 7E [06:06:58]RAPDU: 90 00 [06:06:58]wFMCommunicate OK [06:06:58]wFMCommunicate request_size=4 [06:06:58]MH_SAM_APDU [06:06:58]CAPDU: 80 0D 03 02 [06:06:58]Write to MH i2c: E2 08 00 F2 19 80 0D 03 02 00 00 00 00 86 [06:06:58]Write i2c OK [06:06:58]MH_I2C_Read... [06:06:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:06:58]Read from MH i2c: E2 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 0B 00 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 0B 00 F2 19 00 A8 96 F4 2B 18 67 0F E7 90 00 59 [06:06:58]RAPDU: A8 96 F4 2B 18 67 0F E7 90 00 [06:06:58]wFMCommunicate OK [06:06:58]SAM_PROTO_SignData done [06:06:58]FM_MakeSignedData done [06:06:58]CreateOFDProtocolMessage [06:06:58]wFMCommunicate request_size=4 [06:06:58]MH_SAM_APDU [06:06:58]CAPDU: 80 11 00 00 [06:06:58]Write to MH i2c: E2 08 00 F3 19 80 11 00 00 00 00 00 00 86 [06:06:58]Write i2c OK [06:06:58]MH_I2C_Read... [06:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:58]Read from MH i2c: E2 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 17 00 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: E2 17 00 F3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D9 [06:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:06:58]wFMCommunicate OK [06:06:58]CreateOFDProtocolMessage done [06:06:58]OFDSenderStorePacket 145592 [06:06:58]StoreOFDPacket docnum=145592 [06:06:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 E6 F3 04 01 14 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 84 D8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B8 38 02 00 35 04 06 00 B1 DA 15 B7 DA C7 A8 96 F4 2B 18 67 0F E7 [06:06:58]CheckFolder [06:06:58]dirname=/storage/ofd_packets [06:06:58]CheckFolder done [06:06:58]ProducePacketName [06:06:58]name=ofd_packets/00145592 [06:06:58]NVStorageSaveData ofd_packets/00145592 [06:06:58]File name is /storage/ofd_packets/00145592 [06:06:58]Write 298 bytes [06:06:58]NVStorageSaveData done [06:06:58]OFDSenderStorePacket done [06:06:58]KKMCreateOFDPacket done [06:06:58]NVStorageSaveData kkm_last_timestamp [06:06:58]File name is /storage/kkm_last_timestamp [06:06:58]Write 4 bytes [06:06:58]NVStorageSaveData done [06:06:58]ExternCall_PrintAddStr [06:06:58]wPrintStart [06:06:58]Write to MH i2c: 01 00 00 F4 19 0D [06:06:58]Write i2c OK [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: 01 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: 01 07 00 [06:06:58]MH_I2C_Read... [06:06:58]Read from MH i2c: 01 07 00 F4 19 00 00 00 00 00 FF 0F 22 [06:06:58]RasterBufferAndPrint [06:06:58]line Счет N : (1)160342 [06:06:58]line ИНН: 02508201610067 [06:06:58]line Контрольно-Кассовый Чек [06:06:58]line ПРОДАЖА [06:06:58]line ТРК (МРК, ГНК) : 21 [06:06:58]line Товар: 2710194210 [06:06:58]line ДТ-К-2 [06:06:58]line 26.250 * 76.20 [06:06:58]line = 2000.25 [06:06:58]line НДС 12% НСП 1% [06:06:58]line > о реализуемом товаре [06:06:58]line ОКРУГЛЕНИЕ: -0.25 [06:06:58]line ИТОГО: 2000.00 [06:06:58]line Внесено: 2000.00 [06:06:58]line СДАЧА: 0.00 [06:06:58]line НСП 1% : 17.70 [06:06:58]line НДС 12% : 212.42 [06:06:58]line Наличными: 2000.00 [06:06:58]line Безнал.: 0.00 [06:06:58]line Место: АЗС № 126 "Партнер Нефть" [06:06:58]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [06:06:58]line СНО: Общий режим [06:06:58]line Чек 15 27.10.2024 06:07 [06:06:58]line Смена: 545 ФФД: 1.0 [06:06:58]line ЗНМ: 0300000085 [06:06:58]line РНМ: 0000000000091683 [06:06:58]line Версия ККМ: 001 [06:06:58]line ФМ: 0000000000871745 [06:06:58]line ФД: 145592 [06:06:58]line ФПД: 195550225357511 [06:06:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060700&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145592&fm=195550225357511&tin=02508201610067®Number=0000000000091683&sum=200000 [06:06:59]OFD Sender: Processing packet 145592 [packets to send 205, broken 204] [06:06:59]ProducePacketName [06:06:59]name=ofd_packets/00145592 [06:06:59]OFD Sender: To server: pG, [06:06:59]CommunicateWithHost lk.salyk.kg:30040 [06:06:59]ConnectInit lk.salyk.kg [06:06:59]written 0, free lines is 4095 [06:06:59]Write to MH i2c: 01 00 00 1F 1A 39 [06:06:59]Write i2c OK [06:06:59]MH_I2C_Read... [06:06:59]Read from MH i2c: 01 [06:06:59]MH_I2C_Read... [06:06:59]Read from MH i2c: 01 07 00 [06:06:59]MH_I2C_Read... [06:06:59]Read from MH i2c: 01 07 00 1F 1A 00 00 00 00 00 B1 0C FD [06:06:59]RasterBufferAndPrint [06:06:59]line [06:06:59]line [06:06:59]line [06:06:59]line [06:06:59]line [06:06:59]written 0, free lines is 3252 [06:06:59]MH_Cut [06:06:59]Write to MH i2c: D1 01 00 26 1A 01 12 [06:06:59]Write i2c OK [06:06:59]MH_I2C_Read... [06:06:59]Read from MH i2c: D1 [06:06:59]MH_I2C_Read... [06:06:59]Read from MH i2c: D1 01 00 [06:06:59]MH_I2C_Read... [06:06:59]Read from MH i2c: D1 01 00 26 1A 00 11 [06:06:59]Write to MH i2c: 01 00 00 27 1A 41 [06:06:59]Write i2c OK [06:06:59]MH_I2C_Read... [06:07:00]*** Cut start [06:07:00]*** Partial cut [06:07:00]*** CUTSNS_PIN = 1 [06:07:00]*** CUTSNS_PIN = 0 [06:07:00]*** Brake cut motor [06:07:01]Read from MH i2c: 01 [06:07:01]MH_I2C_Read... [06:07:01]*** Stop cut motor [06:07:01]*** Cut end [06:07:01]Read from MH i2c: 01 07 00 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: 01 07 00 27 1A 00 00 00 00 00 FF 0F 56 [06:07:01]process_action close_receipt done [06:07:01]requested_data is exist [06:07:01]produce_requested_data [06:07:01]requested_item fm.sn is exist - process it [06:07:01]wFMCommunicate request_size=4 [06:07:01]MH_SAM_APDU [06:07:01]CAPDU: 80 11 00 00 [06:07:01]Write to MH i2c: E2 08 00 28 1A 80 11 00 00 00 00 00 00 BC [06:07:01]Write i2c OK [06:07:01]MH_I2C_Read... [06:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:01]Read from MH i2c: E2 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 17 00 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 17 00 28 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0F [06:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:07:01]wFMCommunicate OK [06:07:01]requested_item fd.num is exist - process it [06:07:01]SAM_PROTO_GetFieldsCounters [06:07:01]wFMCommunicate request_size=4 [06:07:01]MH_SAM_APDU [06:07:01]CAPDU: 80 13 00 00 [06:07:01]Write to MH i2c: E2 08 00 29 1A 80 13 00 00 00 00 00 00 BF [06:07:01]Write i2c OK [06:07:01]MH_I2C_Read... [06:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:01]Read from MH i2c: E2 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 62 00 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 62 00 29 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B8 38 02 00 0E 04 04 00 21 02 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 24 [06:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B8 38 02 00 0E 04 04 00 21 02 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 [06:07:01]wFMCommunicate OK [06:07:01]SAM_PROTO_GetFieldsCounters done [06:07:01]requested_item shift.num is exist - process it [06:07:01]requested_item shift.opened is exist - process it [06:07:01]req_shift_opened [06:07:01]FM_GetShiftState [06:07:01]SAM_PROTO_GetShiftState [06:07:01]wFMCommunicate request_size=4 [06:07:01]MH_SAM_APDU [06:07:01]CAPDU: 80 13 01 00 [06:07:01]Write to MH i2c: E2 08 00 2A 1A 80 13 01 00 00 00 00 00 C1 [06:07:01]Write i2c OK [06:07:01]MH_I2C_Read... [06:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:01]Read from MH i2c: E2 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 0E 00 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 0E 00 2A 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 39 [06:07:01]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:07:01]wFMCommunicate OK [06:07:01]SAM_PROTO_GetShiftState done [06:07:01]FM_GetShiftState done [06:07:01]req_shift_opened done [06:07:01]requested_item shift.open_date is exist - process it [06:07:01]req_shift_open_date [06:07:01]req_shift_open_date done [06:07:01]produce_requested_data done [06:07:01]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145592,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [06:07:01]process_action_free close_receipt [06:07:01]json_value_free [06:07:01]json_value_free done [06:07:01]process_json_proto returns [06:07:01]Send response to host [06:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145592,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [06:07:01]free response buf [06:07:01]execute_script done [06:07:01]execute_script returns [06:07:01]free content buf [06:07:01]Sock 9.Close socket [06:07:01]Sock 9.Thread stoped [06:08:23]accept exits with 7 [06:08:23]New connection [06:08:23]New thread 3067006308 created [06:08:23]Thread 3067149668 joined [06:08:23]Waiting for new connection... [06:08:23] Sock 7.Parse request [06:08:23]Sock 7.Check first char [06:08:23]Sock 7.First char is OK [06:08:23]request: POST /json_proto HTTP/1.0 [06:08:23]Method: POST [06:08:23]URL: /json_proto [06:08:23]Method is POST - this is cgi request [06:08:23]url: /json_proto [06:08:23]query_string will be loaded in cgi processing [06:08:23]execute_cgi json_proto POST (null) [06:08:23]execute_cgi path=json_proto method=POST [06:08:23]POST find Content-Length [06:08:23]Host: 172.17.40.195:8080 [06:08:23]Content-Length: 800 [06:08:23]Content-Type: application/json [06:08:23] [06:08:23]POST finish read [06:08:23]Found Content-Length = 800 [06:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1675747", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:08:23]execute_script... [06: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)160343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1675747", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:08:23]POST & json_proto [06:08:23]process_json_proto [06:08:23]json parsed OK: [06:08:23]protocol is kg_v1.0 [06:08:23]action value=close_receipt [06:08:23]process_action close_receipt [06:08:23]cmd_close_receipt [06:08:23]MH_GetDate [06:08:23]Write to MH i2c: F0 00 00 2B 1A 34 [06:08:23]Write i2c OK [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: F0 [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: F0 09 00 [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: F0 09 00 2B 1A 00 D9 D8 1D 67 D5 8D 6C 64 A4 [06:08:23]GetLastDocTimeStamp 1730009220 [06:08:23]current date 1730009305 [06:08:23]FM_GetShiftState [06:08:23]SAM_PROTO_GetShiftState [06:08:23]wFMCommunicate request_size=4 [06:08:23]MH_SAM_APDU [06:08:23]CAPDU: 80 13 01 00 [06:08:23]Write to MH i2c: E2 08 00 2C 1A 80 13 01 00 00 00 00 00 C3 [06:08:23]Write i2c OK [06:08:23]MH_I2C_Read... [06:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:23]Read from MH i2c: E2 [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: E2 0E 00 [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: E2 0E 00 2C 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3B [06:08:23]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:08:23]wFMCommunicate OK [06:08:23]SAM_PROTO_GetShiftState done [06:08:23]FM_GetShiftState done [06:08:23]opened in 1729988959 [06:08:23]opened+sec_in_day 1730075359 [06:08:23]quantity*price = 0 [06:08:23]sum+1 = 1 [06:08:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 16 27.10.2024 06:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: Топливные Талоны 1675747 ФМ: 0000000000871745 ФД: 145593 ФПД: 9747838673527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060826&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145593&fm=9747838673527&tin=02508201610067®Number=0000000000091683&sum=0 [06:08:24]StoreToDocumentArchive [06:08:24]shift 545 fd 145593 [06:08:24]save to /storage/0545/doc_00145593 [06:08:24]save last doc name /storage/0545/doc_00145593 to /storage/kkm_last_doc_name [06:08:24]save OK [06:08:24]Clear old archive folders... [06:08:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:08:24]tlvbuf is 01A7D760 [06:08:24]SAM_PROTO_ClearQueue [06:08:24]wFMCommunicate request_size=4 [06:08:24]MH_SAM_APDU [06:08:24]CAPDU: 80 09 00 00 [06:08:24]Write to MH i2c: E2 08 00 39 1A 80 09 00 00 00 00 00 00 C5 [06:08:24]Write i2c OK [06:08:24]MH_I2C_Read... [06:08:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:08:24]Read from MH i2c: E2 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 39 1A 00 90 00 C7 [06:08:24]RAPDU: 90 00 [06:08:24]wFMCommunicate OK [06:08:24]SAM_PROTO_ClearQueue done [06:08:24]KKMCreateOFDPacket [06:08:24]OFDProtocolAddRootSTLVToBuf [06:08:24]FM_MakeSignedData [06:08:24]FM_MakeSignedData [06:08:24]SAM_PROTO_SignData [06:08:24]wFMCommunicate request_size=4 [06:08:24]MH_SAM_APDU [06:08:24]CAPDU: 80 0D 01 02 [06:08:24]Write to MH i2c: E2 08 00 3A 1A 80 0D 01 02 00 00 00 00 CD [06:08:24]Write i2c OK [06:08:24]MH_I2C_Read... [06:08:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:08:24]Read from MH i2c: E2 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 3A 1A 00 90 00 C8 [06:08:24]RAPDU: 90 00 [06:08:24]wFMCommunicate OK [06:08:24]wFMCommunicate request_size=255 [06:08:24]MH_SAM_APDU [06: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DA D8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B9 38 02 00 35 04 06 00 08 [06:08:24]Write to MH i2c: E2 02 01 3B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DA D8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B9 38 02 00 35 04 06 00 08 00 00 1B [06:08:24]Write i2c OK [06:08:24]MH_I2C_Read... [06:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:24]Read from MH i2c: E2 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 3B 1A 00 90 00 C9 [06:08:24]RAPDU: 90 00 [06:08:24]wFMCommunicate OK [06:08:24]wFMCommunicate request_size=10 [06:08:24]MH_SAM_APDU [06:08:24]CAPDU: 80 0D 02 02 05 DD 98 76 22 77 [06:08:24]Write to MH i2c: E2 0D 00 3C 1A 80 0D 02 02 05 00 DD 98 76 22 77 00 00 5E [06:08:24]Write i2c OK [06:08:24]MH_I2C_Read... [06:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:24]Read from MH i2c: E2 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 3C 1A 00 90 00 CA [06:08:24]RAPDU: 90 00 [06:08:24]wFMCommunicate OK [06:08:24]wFMCommunicate request_size=4 [06:08:24]MH_SAM_APDU [06:08:24]CAPDU: 80 0D 03 02 [06:08:24]Write to MH i2c: E2 08 00 3D 1A 80 0D 03 02 00 00 00 00 D2 [06:08:24]Write i2c OK [06:08:24]MH_I2C_Read... [06:08:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:08:24]Read from MH i2c: E2 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 0B 00 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 0B 00 3D 1A 00 58 48 05 A0 47 77 E0 62 90 00 18 [06:08:24]RAPDU: 58 48 05 A0 47 77 E0 62 90 00 [06:08:24]wFMCommunicate OK [06:08:24]SAM_PROTO_SignData done [06:08:24]FM_MakeSignedData done [06:08:24]CreateOFDProtocolMessage [06:08:24]wFMCommunicate request_size=4 [06:08:24]MH_SAM_APDU [06:08:24]CAPDU: 80 11 00 00 [06:08:24]Write to MH i2c: E2 08 00 3E 1A 80 11 00 00 00 00 00 00 D2 [06:08:24]Write i2c OK [06:08:24]MH_I2C_Read... [06:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:24]Read from MH i2c: E2 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 17 00 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 17 00 3E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 25 [06:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:08:24]wFMCommunicate OK [06:08:24]CreateOFDProtocolMessage done [06:08:24]OFDSenderStorePacket 145593 [06:08:24]StoreOFDPacket docnum=145593 [06:08:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C4 D2 07 01 70 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DA D8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B9 38 02 00 35 04 06 00 08 DD 98 76 22 77 58 48 05 A0 47 77 E0 62 [06:08:24]CheckFolder [06:08:24]dirname=/storage/ofd_packets [06:08:24]CheckFolder done [06:08:24]ProducePacketName [06:08:24]name=ofd_packets/00145593 [06:08:24]NVStorageSaveData ofd_packets/00145593 [06:08:24]File name is /storage/ofd_packets/00145593 [06:08:24]Write 301 bytes [06:08:24]NVStorageSaveData done [06:08:24]OFDSenderStorePacket done [06:08:24]KKMCreateOFDPacket done [06:08:24]NVStorageSaveData kkm_last_timestamp [06:08:24]File name is /storage/kkm_last_timestamp [06:08:24]Write 4 bytes [06:08:24]NVStorageSaveData done [06:08:24]ExternCall_PrintAddStr [06:08:24]wPrintStart [06:08:24]Write to MH i2c: 01 00 00 3F 1A 59 [06:08:24]Write i2c OK [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: 01 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: 01 07 00 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: 01 07 00 3F 1A 00 00 00 00 00 FF 0F 6E [06:08:24]RasterBufferAndPrint [06:08:24]line Счет N : (1)160343 [06:08:24]line ИНН: 02508201610067 [06:08:24]line Контрольно-Кассовый Чек [06:08:24]line ПРОДАЖА [06:08:24]line ТРК (МРК, ГНК) : 43 [06:08:24]line Товар: 2710124500 [06:08:24]line Аи-95-К-3 [06:08:24]line 40.000 * 0.00 [06:08:24]line = 0.00 [06:08:24]line НДС 12% НСП 1% [06:08:24]line > о реализуемом товаре [06:08:24]line ИТОГО: 0.00 [06:08:24]line НСП 1% : 0.00 [06:08:24]line НДС 12% : 0.00 [06:08:24]line Наличными: 0.00 [06:08:24]line Безнал.: 0.00 [06:08:24]line Место: АЗС № 126 "Партнер Нефть" [06:08:24]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [06:08:24]line СНО: Общий режим [06:08:24]line Чек 16 27.10.2024 06:08 [06:08:24]line Смена: 545 ФФД: 1.0 [06:08:24]line ЗНМ: 0300000085 [06:08:24]line РНМ: 0000000000091683 [06:08:24]line Версия ККМ: 001 [06:08:24]line Талоны: Топливные Талоны [06:08:24]line 1675747 [06:08:24]line ФМ: 0000000000871745 [06:08:24]line ФД: 145593 [06:08:24]line ФПД: 9747838673527 [06:08:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060826&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145593&fm=9747838673527&tin=02508201610067®Number=0000000000091683&sum=0 [06:08:24]written 0, free lines is 4095 [06:08:25]Write to MH i2c: 01 00 00 69 1A 83 [06:08:25]Write i2c OK [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: 01 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: 01 07 00 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: 01 07 00 69 1A 00 00 00 00 00 BB 0C 51 [06:08:25]RasterBufferAndPrint [06:08:25]line [06:08:25]line [06:08:25]line [06:08:25]line [06:08:25]line [06:08:25]written 0, free lines is 3264 [06:08:25]MH_Cut [06:08:25]Write to MH i2c: D1 01 00 70 1A 01 5C [06:08:25]Write i2c OK [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: D1 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: D1 01 00 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: D1 01 00 70 1A 00 5B [06:08:25]Write to MH i2c: 01 00 00 71 1A 8B [06:08:25]Write i2c OK [06:08:25]MH_I2C_Read... [06:08:26]*** Cut start [06:08:26]*** Partial cut [06:08:26]*** CUTSNS_PIN = 1 [06:08:26]*** CUTSNS_PIN = 0 [06:08:26]*** Brake cut motor [06:08:26]Read from MH i2c: 01 [06:08:26]MH_I2C_Read... [06:08:26]*** Stop cut motor [06:08:26]*** Cut end [06:08:26]Read from MH i2c: 01 07 00 [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: 01 07 00 71 1A 00 00 00 00 00 FF 0F A0 [06:08:26]process_action close_receipt done [06:08:26]requested_data is exist [06:08:26]produce_requested_data [06:08:26]requested_item fm.sn is exist - process it [06:08:26]wFMCommunicate request_size=4 [06:08:26]MH_SAM_APDU [06:08:26]CAPDU: 80 11 00 00 [06:08:26]Write to MH i2c: E2 08 00 72 1A 80 11 00 00 00 00 00 00 06 [06:08:26]Write i2c OK [06:08:26]MH_I2C_Read... [06:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:26]Read from MH i2c: E2 [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: E2 17 00 [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: E2 17 00 72 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 59 [06:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:08:26]wFMCommunicate OK [06:08:26]requested_item fd.num is exist - process it [06:08:26]SAM_PROTO_GetFieldsCounters [06:08:26]wFMCommunicate request_size=4 [06:08:26]MH_SAM_APDU [06:08:26]CAPDU: 80 13 00 00 [06:08:26]Write to MH i2c: E2 08 00 73 1A 80 13 00 00 00 00 00 00 09 [06:08:26]Write i2c OK [06:08:26]MH_I2C_Read... [06:08:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:08:26]Read from MH i2c: E2 [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: E2 62 00 [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: E2 62 00 73 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B9 38 02 00 0E 04 04 00 21 02 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 72 [06:08:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B9 38 02 00 0E 04 04 00 21 02 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 [06:08:26]wFMCommunicate OK [06:08:26]SAM_PROTO_GetFieldsCounters done [06:08:26]requested_item shift.num is exist - process it [06:08:26]requested_item shift.opened is exist - process it [06:08:26]req_shift_opened [06:08:26]FM_GetShiftState [06:08:26]SAM_PROTO_GetShiftState [06:08:26]wFMCommunicate request_size=4 [06:08:26]MH_SAM_APDU [06:08:26]CAPDU: 80 13 01 00 [06:08:26]Write to MH i2c: E2 08 00 74 1A 80 13 01 00 00 00 00 00 0B [06:08:26]Write i2c OK [06:08:26]MH_I2C_Read... [06:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:26]Read from MH i2c: E2 [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: E2 0E 00 [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: E2 0E 00 74 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 83 [06:08:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:08:26]wFMCommunicate OK [06:08:26]SAM_PROTO_GetShiftState done [06:08:26]FM_GetShiftState done [06:08:26]req_shift_opened done [06:08:26]requested_item shift.open_date is exist - process it [06:08:26]req_shift_open_date [06:08:26]req_shift_open_date done [06:08:26]produce_requested_data done [06:08:26]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145593,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [06:08:26]process_action_free close_receipt [06:08:26]json_value_free [06:08:26]json_value_free done [06:08:26]process_json_proto returns [06:08:26]Send response to host [06:08:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145593,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [06:08:26]free response buf [06:08:26]execute_script done [06:08:26]execute_script returns [06:08:26]free content buf [06:08:26]Sock 7.Close socket [06:08:26]Sock 7.Thread stoped [06:08:33]int [06:08:33]Write to MH i2c: 01 00 00 75 1A 8F [06:08:33]*** FLAG_PRN_KEY set [06:08:33]Write i2c OK [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 75 1A 00 08 00 00 00 FF 0F AC [06:08:33]state=0 [06:08:33]Key pressed [06:08:33]Feed [06:08:33]Write to MH i2c: D8 00 00 76 1A 67 [06:08:33]Write i2c OK [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: D8 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: D8 01 00 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: D8 01 00 76 1A 00 68 [06:08:33]int [06:08:33]Write to MH i2c: 01 00 00 77 1A 91 [06:08:33]Write i2c OK [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 77 1A 00 48 00 00 00 3C 00 1C [06:08:33]state=2 [06:08:33]Key pressed [06:08:33]int [06:08:33]Write to MH i2c: 01 00 00 78 1A 92 [06:08:33]*** FLAG_PRN_KEY reset [06:08:33]Write i2c OK [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 78 1A 00 00 00 00 00 FC 0F A4 [06:08:33]state=2 [06:08:33]Stop feed [06:09:13]ConnectInit Can't connect to host [06:09:13]CommunicateWithHost connect error [06:09:13]CommunicateWithHost err = -1 [06:09:13]OFD Sender: Server communicate error [06:09:13]OFD Sender: Processing packet 145592 [packets to send 206, broken 204] [06:09:13]ProducePacketName [06:09:13]name=ofd_packets/00145592 [06:09:13]OFD Sender: To server: pG, [06:09:13]CommunicateWithHost lk.salyk.kg:30040 [06:09:13]ConnectInit lk.salyk.kg [06:09:13]Connected sock=7 [06: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 31 37 34 35 0C 01 00 00 E6 F3 04 01 14 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 84 D8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B8 38 02 00 35 04 06 00 B1 DA 15 B7 DA C7 A8 96 F4 2B 18 67 0F E7 [06:09:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 52 69 47 00 BA 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 31 37 34 35 10 04 04 00 B8 38 02 00 F4 03 04 00 38 7E 1D 67 B6 04 01 00 00 22 B8 BF F0 CF 6F 9F 8A [06:09:14]CommunicateWithHost err = 0 [06:09:14]CheckOFDResponse [06:09:14]1017 (14) - 77093643461234 [06:09:14]1041 (16) - 0000000000871745 [06:09:14]1040 (4) - 145592 [06:09:14]1012 (4) - 26.10.2024 23:41 [06:09:14]1206 (1) - 0 [06:09:14]OFD Sender: Remove packet 145592 [06:09:14]ProducePacketName [06:09:14]name=ofd_packets/00145592 [06:09:14]NVStorageDeleteData [06:09:14]OFD Sender: Processing packet 145593 [packets to send 205, broken 204] [06:09:14]ProducePacketName [06:09:14]name=ofd_packets/00145593 [06:09:14]OFD Sender: To server: pG, [06:09:14]CommunicateWithHost lk.salyk.kg:30040 [06:09:14]ConnectInit lk.salyk.kg [06:09:14]Connected sock=7 [06:09:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C4 D2 07 01 70 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DA D8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B9 38 02 00 35 04 06 00 08 DD 98 76 22 77 58 48 05 A0 47 77 E0 62 [06:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 CF 7A 47 00 46 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B9 38 02 00 F4 03 04 00 3A 7E 1D 67 B6 04 01 00 00 65 03 EB 32 67 99 15 25 [06:09:15]CommunicateWithHost err = 0 [06:09:15]CheckOFDResponse [06:09:15]1017 (14) - 77093643461234 [06:09:15]1041 (16) - 0000000000871745 [06:09:15]1040 (4) - 145593 [06:09:15]1012 (4) - 26.10.2024 23:41 [06:09:15]1206 (1) - 0 [06:09:15]OFD Sender: Remove packet 145593 [06:09:15]ProducePacketName [06:09:15]name=ofd_packets/00145593 [06:09:15]NVStorageDeleteData [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:14]accept exits with 9 [06:11:14]New connection [06:11:14]New thread 3067149668 created [06:11:14]Thread 3067006308 joined [06:11:14]Waiting for new connection... [06:11:14] Sock 9.Parse request [06:11:14]Sock 9.Check first char [06:11:14]Sock 9.First char is OK [06:11:14]request: POST /json_proto HTTP/1.0 [06:11:14]Method: POST [06:11:14]URL: /json_proto [06:11:14]Method is POST - this is cgi request [06:11:14]url: /json_proto [06:11:14]query_string will be loaded in cgi processing [06:11:14]execute_cgi json_proto POST (null) [06:11:14]execute_cgi path=json_proto method=POST [06:11:14]POST find Content-Length [06:11:14]Host: 172.17.40.195:8080 [06:11:14]Content-Length: 679 [06:11:14]Content-Type: application/json [06:11:14] [06:11:14]POST finish read [06:11:14]Found Content-Length = 679 [06:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:14]execute_script... [06:11: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)160344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:14]POST & json_proto [06:11:14]process_json_proto [06:11:14]json parsed OK: [06:11:14]protocol is kg_v1.0 [06:11:14]action value=close_receipt [06:11:14]process_action close_receipt [06:11:14]cmd_close_receipt [06:11:14]MH_GetDate [06:11:14]Write to MH i2c: F0 00 00 79 1A 82 [06:11:14]Write i2c OK [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: F0 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: F0 09 00 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: F0 09 00 79 1A 00 85 D9 1D 67 D5 8D 6C 64 9F [06:11:14]GetLastDocTimeStamp 1730009306 [06:11:14]current date 1730009477 [06:11:14]FM_GetShiftState [06:11:14]SAM_PROTO_GetShiftState [06:11:14]wFMCommunicate request_size=4 [06:11:14]MH_SAM_APDU [06:11:14]CAPDU: 80 13 01 00 [06:11:14]Write to MH i2c: E2 08 00 7A 1A 80 13 01 00 00 00 00 00 11 [06:11:14]Write i2c OK [06:11:14]MH_I2C_Read... [06:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:14]Read from MH i2c: E2 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: E2 0E 00 [06:11:14]MH_I2C_Read... [06:11:14]Read from MH i2c: E2 0E 00 7A 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 89 [06:11:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:11:14]wFMCommunicate OK [06:11:14]SAM_PROTO_GetShiftState done [06:11:14]FM_GetShiftState done [06:11:14]opened in 1729988959 [06:11:14]opened+sec_in_day 1730075359 [06:11:14]quantity*price = 100050 [06:11:14]sum+1 = 100052 [06:11:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 17 27.10.2024 06:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145594 ФПД: 141452669369051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061117&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145594&fm=141452669369051&tin=02508201610067®Number=0000000000091683&sum=100000 [06:11:15]StoreToDocumentArchive [06:11:15]shift 545 fd 145594 [06:11:15]save to /storage/0545/doc_00145594 [06:11:15]save last doc name /storage/0545/doc_00145594 to /storage/kkm_last_doc_name [06:11:15]save OK [06:11:15]Clear old archive folders... [06:11:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:11:15]tlvbuf is 01A87640 [06:11:15]SAM_PROTO_ClearQueue [06:11:15]wFMCommunicate request_size=4 [06:11:15]MH_SAM_APDU [06:11:15]CAPDU: 80 09 00 00 [06:11:15]Write to MH i2c: E2 08 00 87 1A 80 09 00 00 00 00 00 00 13 [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:11:15]Read from MH i2c: E2 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 03 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 03 00 87 1A 00 90 00 15 [06:11:15]RAPDU: 90 00 [06:11:15]wFMCommunicate OK [06:11:15]SAM_PROTO_ClearQueue done [06:11:15]KKMCreateOFDPacket [06:11:15]OFDProtocolAddRootSTLVToBuf [06:11:15]FM_MakeSignedData [06:11:15]FM_MakeSignedData [06:11:15]SAM_PROTO_SignData [06:11:15]wFMCommunicate request_size=4 [06:11:15]MH_SAM_APDU [06:11:15]CAPDU: 80 0D 01 02 [06:11:15]Write to MH i2c: E2 08 00 88 1A 80 0D 01 02 00 00 00 00 1B [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:11:15]Read from MH i2c: E2 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 03 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 03 00 88 1A 00 90 00 16 [06:11:15]RAPDU: 90 00 [06:11:15]wFMCommunicate OK [06:11:15]wFMCommunicate request_size=255 [06:11:15]MH_SAM_APDU [06:11: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 85 D9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BA 38 02 00 35 04 06 00 80 A6 84 1C [06:11:15]Write to MH i2c: E2 02 01 89 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 85 D9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BA 38 02 00 35 04 06 00 80 A6 84 1C 00 00 6F [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:15]Read from MH i2c: E2 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 03 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 03 00 89 1A 00 90 00 17 [06:11:15]RAPDU: 90 00 [06:11:15]wFMCommunicate OK [06:11:15]wFMCommunicate request_size=7 [06:11:15]MH_SAM_APDU [06:11:15]CAPDU: 80 0D 02 02 02 3A DB [06:11:15]Write to MH i2c: E2 0A 00 8A 1A 80 0D 02 02 02 00 3A DB 00 00 37 [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:15]Read from MH i2c: E2 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 03 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 03 00 8A 1A 00 90 00 18 [06:11:15]RAPDU: 90 00 [06:11:15]wFMCommunicate OK [06:11:15]wFMCommunicate request_size=4 [06:11:15]MH_SAM_APDU [06:11:15]CAPDU: 80 0D 03 02 [06:11:15]Write to MH i2c: E2 08 00 8B 1A 80 0D 03 02 00 00 00 00 20 [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:11:15]OFD Sender: No OFD packet to send [06:11:15]Read from MH i2c: E2 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 0B 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 0B 00 8B 1A 00 81 02 7F 71 23 E9 69 02 90 00 0B [06:11:15]RAPDU: 81 02 7F 71 23 E9 69 02 90 00 [06:11:15]wFMCommunicate OK [06:11:15]SAM_PROTO_SignData done [06:11:15]FM_MakeSignedData done [06:11:15]CreateOFDProtocolMessage [06:11:15]wFMCommunicate request_size=4 [06:11:15]MH_SAM_APDU [06:11:15]CAPDU: 80 11 00 00 [06:11:15]Write to MH i2c: E2 08 00 8C 1A 80 11 00 00 00 00 00 00 20 [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:16]Read from MH i2c: E2 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: E2 17 00 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: E2 17 00 8C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 73 [06:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:11:16]wFMCommunicate OK [06:11:16]CreateOFDProtocolMessage done [06:11:16]OFDSenderStorePacket 145594 [06:11:16]StoreOFDPacket docnum=145594 [06:11:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 5F E5 04 01 19 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 85 D9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BA 38 02 00 35 04 06 00 80 A6 84 1C 3A DB 81 02 7F 71 23 E9 69 02 [06:11:16]CheckFolder [06:11:16]dirname=/storage/ofd_packets [06:11:16]CheckFolder done [06:11:16]ProducePacketName [06:11:16]name=ofd_packets/00145594 [06:11:16]NVStorageSaveData ofd_packets/00145594 [06:11:16]File name is /storage/ofd_packets/00145594 [06:11:16]Write 298 bytes [06:11:16]NVStorageSaveData done [06:11:16]OFDSenderStorePacket done [06:11:16]KKMCreateOFDPacket done [06:11:16]NVStorageSaveData kkm_last_timestamp [06:11:16]File name is /storage/kkm_last_timestamp [06:11:16]Write 4 bytes [06:11:16]NVStorageSaveData done [06:11:16]ExternCall_PrintAddStr [06:11:16]wPrintStart [06:11:16]Write to MH i2c: 01 00 00 8D 1A A7 [06:11:16]Write i2c OK [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: 01 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: 01 07 00 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: 01 07 00 8D 1A 00 00 00 00 00 FF 0F BC [06:11:16]RasterBufferAndPrint [06:11:16]line Счет N : (1)160344 [06:11:16]line ИНН: 02508201610067 [06:11:16]line Контрольно-Кассовый Чек [06:11:16]line ПРОДАЖА [06:11:16]line ТРК (МРК, ГНК) : 11 [06:11:16]line Товар: 2710194210 [06:11:16]line ДТ-К-2 [06:11:16]line 13.130 * 76.20 [06:11:16]line = 1000.51 [06:11:16]line НДС 12% НСП 1% [06:11:16]line > о реализуемом товаре [06:11:16]line ОКРУГЛЕНИЕ: -0.51 [06:11:16]line ИТОГО: 1000.00 [06:11:16]line Внесено: 1000.00 [06:11:16]line СДАЧА: 0.00 [06:11:16]line НСП 1% : 8.85 [06:11:16]line НДС 12% : 106.25 [06:11:16]line Наличными: 1000.00 [06:11:16]line Безнал.: 0.00 [06:11:16]line Место: АЗС № 126 "Партнер Нефть" [06:11:16]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [06:11:16]line СНО: Общий режим [06:11:16]line Чек 17 27.10.2024 06:11 [06:11:16]line Смена: 545 ФФД: 1.0 [06:11:16]line ЗНМ: 0300000085 [06:11:16]line РНМ: 0000000000091683 [06:11:16]line Версия ККМ: 001 [06:11:16]line ФМ: 0000000000871745 [06:11:16]line ФД: 145594 [06:11:16]line ФПД: 141452669369051 [06:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061117&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145594&fm=141452669369051&tin=02508201610067®Number=0000000000091683&sum=100000 [06:11:16]OFD Sender: Processing packet 145594 [packets to send 205, broken 204] [06:11:16]ProducePacketName [06:11:16]name=ofd_packets/00145594 [06:11:16]OFD Sender: To server: pG, [06:11:16]CommunicateWithHost lk.salyk.kg:30040 [06:11:16]ConnectInit lk.salyk.kg [06:11:16]written 0, free lines is 4095 [06:11:16]Connected sock=10 [06:11:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 5F E5 04 01 19 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 85 D9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BA 38 02 00 35 04 06 00 80 A6 84 1C 3A DB 81 02 7F 71 23 E9 69 02 [06:11:16]Write to MH i2c: 01 00 00 B8 1A D2 [06:11:16]Write i2c OK [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: 01 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: 01 07 00 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: 01 07 00 B8 1A 00 00 00 00 00 B8 0C 9D [06:11:16]RasterBufferAndPrint [06:11:16]line [06:11:16]line [06:11:16]line [06:11:16]line [06:11:16]line [06:11:16]written 0, free lines is 3262 [06:11:16]MH_Cut [06:11:16]Write to MH i2c: D1 01 00 BF 1A 01 AB [06:11:16]Write i2c OK [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: D1 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: D1 01 00 [06:11:16]MH_I2C_Read... [06:11:16]Read from MH i2c: D1 01 00 BF 1A 00 AA [06:11:16]Write to MH i2c: 01 00 00 C0 1A DA [06:11:16]Write i2c OK [06:11:16]MH_I2C_Read... [06:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 DC 33 47 00 E7 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BA 38 02 00 F4 03 04 00 B3 7E 1D 67 B6 04 01 00 00 86 59 7F E5 D1 A7 9C 4E [06:11:16]CommunicateWithHost err = 0 [06:11:16]CheckOFDResponse [06:11:16]1017 (14) - 77093643461234 [06:11:16]1041 (16) - 0000000000871745 [06:11:16]1040 (4) - 145594 [06:11:16]1012 (4) - 26.10.2024 23:43 [06:11:16]1206 (1) - 0 [06:11:16]OFD Sender: Remove packet 145594 [06:11:16]ProducePacketName [06:11:16]name=ofd_packets/00145594 [06:11:16]NVStorageDeleteData [06:11:17]OFD Sender: No OFD packet to send [06:11:17]*** Cut start [06:11:17]*** Partial cut [06:11:17]*** CUTSNS_PIN = 1 [06:11:17]*** CUTSNS_PIN = 0 [06:11:17]*** Brake cut motor [06:11:18]Read from MH i2c: 01 [06:11:18]MH_I2C_Read... [06:11:18]*** Stop cut motor [06:11:18]*** Cut end [06:11:18]Read from MH i2c: 01 07 00 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: 01 07 00 C0 1A 00 00 00 00 00 FF 0F EF [06:11:18]process_action close_receipt done [06:11:18]requested_data is exist [06:11:18]produce_requested_data [06:11:18]requested_item fm.sn is exist - process it [06:11:18]wFMCommunicate request_size=4 [06:11:18]MH_SAM_APDU [06:11:18]CAPDU: 80 11 00 00 [06:11:18]Write to MH i2c: E2 08 00 C1 1A 80 11 00 00 00 00 00 00 55 [06:11:18]Write i2c OK [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 [06:11:18]MH_I2C_Read... [06:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:18]Read from MH i2c: E2 17 00 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 17 00 C1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A8 [06:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:11:18]wFMCommunicate OK [06:11:18]requested_item fd.num is exist - process it [06:11:18]SAM_PROTO_GetFieldsCounters [06:11:18]wFMCommunicate request_size=4 [06:11:18]MH_SAM_APDU [06:11:18]CAPDU: 80 13 00 00 [06:11:18]Write to MH i2c: E2 08 00 C2 1A 80 13 00 00 00 00 00 00 58 [06:11:18]Write i2c OK [06:11:18]MH_I2C_Read... [06:11:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:11:18]Read from MH i2c: E2 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 62 00 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 62 00 C2 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BA 38 02 00 0E 04 04 00 21 02 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 C5 [06:11:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BA 38 02 00 0E 04 04 00 21 02 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 [06:11:18]wFMCommunicate OK [06:11:18]SAM_PROTO_GetFieldsCounters done [06:11:18]requested_item shift.num is exist - process it [06:11:18]requested_item shift.opened is exist - process it [06:11:18]req_shift_opened [06:11:18]FM_GetShiftState [06:11:18]SAM_PROTO_GetShiftState [06:11:18]wFMCommunicate request_size=4 [06:11:18]MH_SAM_APDU [06:11:18]CAPDU: 80 13 01 00 [06:11:18]Write to MH i2c: E2 08 00 C3 1A 80 13 01 00 00 00 00 00 5A [06:11:18]Write i2c OK [06:11:18]MH_I2C_Read... [06:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:18]Read from MH i2c: E2 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 0E 00 [06:11:18]MH_I2C_Read... [06:11:18]Read from MH i2c: E2 0E 00 C3 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D2 [06:11:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:11:18]wFMCommunicate OK [06:11:18]SAM_PROTO_GetShiftState done [06:11:18]FM_GetShiftState done [06:11:18]req_shift_opened done [06:11:18]requested_item shift.open_date is exist - process it [06:11:18]req_shift_open_date [06:11:18]req_shift_open_date done [06:11:18]produce_requested_data done [06:11:18]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145594,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [06:11:18]process_action_free close_receipt [06:11:18]json_value_free [06:11:18]json_value_free done [06:11:18]process_json_proto returns [06:11:18]Send response to host [06:11:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145594,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [06:11:18]free response buf [06:11:18]execute_script done [06:11:18]execute_script returns [06:11:18]free content buf [06:11:18]Sock 9.Close socket [06:11:18]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [06:18:13]accept exits with 7 [06:18:13]New connection [06:18:13]New thread 3067006308 created [06:18:13]Thread 3067149668 joined [06:18:13]Waiting for new connection... [06:18:13] Sock 7.Parse request [06:18:13]Sock 7.Check first char [06:18:13]Sock 7.First char is OK [06:18:13]request: POST /json_proto HTTP/1.0 [06:18:13]Method: POST [06:18:13]URL: /json_proto [06:18:13]Method is POST - this is cgi request [06:18:13]url: /json_proto [06:18:13]query_string will be loaded in cgi processing [06:18:13]execute_cgi json_proto POST (null) [06:18:13]execute_cgi path=json_proto method=POST [06:18:13]POST find Content-Length [06:18:13]Host: 172.17.40.195:8080 [06:18:13]Content-Length: 677 [06:18:13]Content-Type: application/json [06:18:13] [06:18:13]POST finish read [06:18:13]Found Content-Length = 677 [06:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:13]execute_script... [06:18: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)160345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:13]POST & json_proto [06:18:13]process_json_proto [06:18:13]json parsed OK: [06:18:13]protocol is kg_v1.0 [06:18:13]action value=close_receipt [06:18:13]process_action close_receipt [06:18:13]cmd_close_receipt [06:18:13]MH_GetDate [06:18:13]Write to MH i2c: F0 00 00 C4 1A CD [06:18:13]Write i2c OK [06:18:13]MH_I2C_Read... [06:18:13]Read from MH i2c: F0 [06:18:13]MH_I2C_Read... [06:18:13]Read from MH i2c: F0 09 00 [06:18:13]MH_I2C_Read... [06:18:13]Read from MH i2c: F0 09 00 C4 1A 00 28 DB 1D 67 D5 8D 6C 64 8F [06:18:13]GetLastDocTimeStamp 1730009477 [06:18:13]current date 1730009896 [06:18:13]FM_GetShiftState [06:18:13]SAM_PROTO_GetShiftState [06:18:13]wFMCommunicate request_size=4 [06:18:13]MH_SAM_APDU [06:18:13]CAPDU: 80 13 01 00 [06:18:13]Write to MH i2c: E2 08 00 C5 1A 80 13 01 00 00 00 00 00 5C [06:18:13]Write i2c OK [06:18:13]MH_I2C_Read... [06:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:13]Read from MH i2c: E2 [06:18:13]MH_I2C_Read... [06:18:13]Read from MH i2c: E2 0E 00 [06:18:13]MH_I2C_Read... [06:18:13]Read from MH i2c: E2 0E 00 C5 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D4 [06:18:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:18:13]wFMCommunicate OK [06:18:13]SAM_PROTO_GetShiftState done [06:18:13]FM_GetShiftState done [06:18:13]opened in 1729988959 [06:18:13]opened+sec_in_day 1730075359 [06:18:13]quantity*price = 60009 [06:18:13]sum+1 = 60010 [06:18:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 18 27.10.2024 06:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145595 ФПД: 195398784498373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061816&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145595&fm=195398784498373&tin=02508201610067®Number=0000000000091683&sum=60000 [06:18:14]StoreToDocumentArchive [06:18:14]shift 545 fd 145595 [06:18:14]save to /storage/0545/doc_00145595 [06:18:14]save last doc name /storage/0545/doc_00145595 to /storage/kkm_last_doc_name [06:18:14]save OK [06:18:14]Clear old archive folders... [06:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:18:14]tlvbuf is 01AC73F0 [06:18:14]SAM_PROTO_ClearQueue [06:18:14]wFMCommunicate request_size=4 [06:18:14]MH_SAM_APDU [06:18:14]CAPDU: 80 09 00 00 [06:18:14]Write to MH i2c: E2 08 00 D2 1A 80 09 00 00 00 00 00 00 5E [06:18:14]Write i2c OK [06:18:14]MH_I2C_Read... [06:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:18:14]Read from MH i2c: E2 [06:18:14]MH_I2C_Read... [06:18:14]Read from MH i2c: E2 03 00 [06:18:14]MH_I2C_Read... [06:18:14]Read from MH i2c: E2 03 00 D2 1A 00 90 00 60 [06:18:14]RAPDU: 90 00 [06:18:14]wFMCommunicate OK [06:18:14]SAM_PROTO_ClearQueue done [06:18:14]KKMCreateOFDPacket [06:18:14]OFDProtocolAddRootSTLVToBuf [06:18:14]FM_MakeSignedData [06:18:14]FM_MakeSignedData [06:18:14]SAM_PROTO_SignData [06:18:14]wFMCommunicate request_size=4 [06:18:14]MH_SAM_APDU [06:18:14]CAPDU: 80 0D 01 02 [06:18:14]Write to MH i2c: E2 08 00 D3 1A 80 0D 01 02 00 00 00 00 66 [06:18:14]Write i2c OK [06:18:14]MH_I2C_Read... [06:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:18:14]Read from MH i2c: E2 [06:18:14]MH_I2C_Read... [06:18:14]Read from MH i2c: E2 03 00 [06:18:14]MH_I2C_Read... [06:18:14]Read from MH i2c: E2 03 00 D3 1A 00 90 00 61 [06:18:14]RAPDU: 90 00 [06:18:14]wFMCommunicate OK [06:18:14]wFMCommunicate request_size=255 [06:18:14]MH_SAM_APDU [06:18: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 28 DB 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BB 38 02 00 35 04 06 00 B1 [06:18:14]Write to MH i2c: E2 02 01 D4 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 28 DB 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BB 38 02 00 35 04 06 00 B1 00 00 33 [06:18:14]Write i2c OK [06:18:14]MH_I2C_Read... [06:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:15]Read from MH i2c: E2 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: E2 03 00 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: E2 03 00 D4 1A 00 90 00 62 [06:18:15]RAPDU: 90 00 [06:18:15]wFMCommunicate OK [06:18:15]wFMCommunicate request_size=10 [06:18:15]MH_SAM_APDU [06:18:15]CAPDU: 80 0D 02 02 05 B6 D3 23 BA C5 [06:18:15]Write to MH i2c: E2 0D 00 D5 1A 80 0D 02 02 05 00 B6 D3 23 BA C5 00 00 9E [06:18:15]Write i2c OK [06:18:15]MH_I2C_Read... [06:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:15]Read from MH i2c: E2 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: E2 03 00 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: E2 03 00 D5 1A 00 90 00 63 [06:18:15]RAPDU: 90 00 [06:18:15]wFMCommunicate OK [06:18:15]wFMCommunicate request_size=4 [06:18:15]MH_SAM_APDU [06:18:15]CAPDU: 80 0D 03 02 [06:18:15]Write to MH i2c: E2 08 00 D6 1A 80 0D 03 02 00 00 00 00 6B [06:18:15]Write i2c OK [06:18:15]MH_I2C_Read... [06:18:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:18:15]Read from MH i2c: E2 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: E2 0B 00 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: E2 0B 00 D6 1A 00 B5 93 0A 61 A0 2A 73 28 90 00 84 [06:18:15]RAPDU: B5 93 0A 61 A0 2A 73 28 90 00 [06:18:15]wFMCommunicate OK [06:18:15]SAM_PROTO_SignData done [06:18:15]FM_MakeSignedData done [06:18:15]CreateOFDProtocolMessage [06:18:15]wFMCommunicate request_size=4 [06:18:15]MH_SAM_APDU [06:18:15]CAPDU: 80 11 00 00 [06:18:15]Write to MH i2c: E2 08 00 D7 1A 80 11 00 00 00 00 00 00 6B [06:18:15]Write i2c OK [06:18:15]MH_I2C_Read... [06:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:15]Read from MH i2c: E2 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: E2 17 00 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: E2 17 00 D7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BE [06:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:18:15]wFMCommunicate OK [06:18:15]CreateOFDProtocolMessage done [06:18:15]OFDSenderStorePacket 145595 [06:18:15]StoreOFDPacket docnum=145595 [06:18:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 6C 86 07 01 54 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 28 DB 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BB 38 02 00 35 04 06 00 B1 B6 D3 23 BA C5 B5 93 0A 61 A0 2A 73 28 [06:18:15]CheckFolder [06:18:15]dirname=/storage/ofd_packets [06:18:15]CheckFolder done [06:18:15]ProducePacketName [06:18:15]name=ofd_packets/00145595 [06:18:15]NVStorageSaveData ofd_packets/00145595 [06:18:15]File name is /storage/ofd_packets/00145595 [06:18:15]Write 301 bytes [06:18:15]NVStorageSaveData done [06:18:15]OFDSenderStorePacket done [06:18:15]KKMCreateOFDPacket done [06:18:15]NVStorageSaveData kkm_last_timestamp [06:18:15]File name is /storage/kkm_last_timestamp [06:18:15]Write 4 bytes [06:18:15]NVStorageSaveData done [06:18:15]ExternCall_PrintAddStr [06:18:15]wPrintStart [06:18:15]Write to MH i2c: 01 00 00 D8 1A F2 [06:18:15]Write i2c OK [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: 01 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: 01 07 00 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: 01 07 00 D8 1A 00 00 00 00 00 FF 0F 07 [06:18:15]RasterBufferAndPrint [06:18:15]line Счет N : (1)160345 [06:18:15]line ИНН: 02508201610067 [06:18:15]line Контрольно-Кассовый Чек [06:18:15]line ПРОДАЖА [06:18:15]line ТРК (МРК, ГНК) : 42 [06:18:15]line Товар: 2710124130 [06:18:15]line Аи-92-К-2 [06:18:15]line 8.970 * 66.90 [06:18:15]line = 600.09 [06:18:15]line НДС 12% НСП 1% [06:18:15]line > о реализуемом товаре [06:18:15]line ОКРУГЛЕНИЕ: -0.09 [06:18:15]line ИТОГО: 600.00 [06:18:15]line Внесено: 600.00 [06:18:15]line СДАЧА: 0.00 [06:18:15]line НСП 1% : 5.31 [06:18:15]line НДС 12% : 63.73 [06:18:15]line Наличными: 600.00 [06:18:15]line Безнал.: 0.00 [06:18:15]line Место: АЗС № 126 "Партнер Нефть" [06:18:15]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [06:18:15]line СНО: Общий режим [06:18:15]line Чек 18 27.10.2024 06:18 [06:18:15]line Смена: 545 ФФД: 1.0 [06:18:15]line ЗНМ: 0300000085 [06:18:15]line РНМ: 0000000000091683 [06:18:15]line Версия ККМ: 001 [06:18:15]line ФМ: 0000000000871745 [06:18:15]line ФД: 145595 [06:18:15]line ФПД: 195398784498373 [06:18:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061816&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145595&fm=195398784498373&tin=02508201610067®Number=0000000000091683&sum=60000 [06:18:15]OFD Sender: Processing packet 145595 [packets to send 205, broken 204] [06:18:15]ProducePacketName [06:18:15]name=ofd_packets/00145595 [06:18:15]OFD Sender: To server: pG, [06:18:15]CommunicateWithHost lk.salyk.kg:30040 [06:18:15]ConnectInit lk.salyk.kg [06:18:15]written 0, free lines is 4095 [06:18:15]Connected sock=10 [06:18:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 6C 86 07 01 54 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 28 DB 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BB 38 02 00 35 04 06 00 B1 B6 D3 23 BA C5 B5 93 0A 61 A0 2A 73 28 [06:18:15]Write to MH i2c: 01 00 00 03 1B 1E [06:18:15]Write i2c OK [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: 01 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: 01 07 00 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: 01 07 00 03 1B 00 00 00 00 00 B2 0C E3 [06:18:15]RasterBufferAndPrint [06:18:15]line [06:18:15]line [06:18:15]line [06:18:15]line [06:18:15]line [06:18:15]written 0, free lines is 3257 [06:18:15]MH_Cut [06:18:15]Write to MH i2c: D1 01 00 0A 1B 01 F7 [06:18:15]Write i2c OK [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: D1 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: D1 01 00 [06:18:15]MH_I2C_Read... [06:18:15]Read from MH i2c: D1 01 00 0A 1B 00 F6 [06:18:15]Write to MH i2c: 01 00 00 0B 1B 26 [06:18:15]Write i2c OK [06:18:15]MH_I2C_Read... [06:18:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 AF 91 47 00 80 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BB 38 02 00 F4 03 04 00 56 80 1D 67 B6 04 01 00 00 02 6D E0 65 DF 29 0C 3D [06:18:16]CommunicateWithHost err = 0 [06:18:16]CheckOFDResponse [06:18:16]1017 (14) - 77093643461234 [06:18:16]1041 (16) - 0000000000871745 [06:18:16]1040 (4) - 145595 [06:18:16]1012 (4) - 26.10.2024 23:50 [06:18:16]1206 (1) - 0 [06:18:16]OFD Sender: Remove packet 145595 [06:18:16]ProducePacketName [06:18:16]name=ofd_packets/00145595 [06:18:16]NVStorageDeleteData [06:18:16]OFD Sender: No OFD packet to send [06:18:16]*** Cut start [06:18:16]*** Partial cut [06:18:16]*** CUTSNS_PIN = 1 [06:18:16]*** CUTSNS_PIN = 0 [06:18:16]*** Brake cut motor [06:18:17]Read from MH i2c: 01 [06:18:17]MH_I2C_Read... [06:18:17]*** Stop cut motor [06:18:17]*** Cut end [06:18:17]Read from MH i2c: 01 07 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: 01 07 00 0B 1B 00 00 00 00 00 FF 0F 3B [06:18:17]process_action close_receipt done [06:18:17]requested_data is exist [06:18:17]produce_requested_data [06:18:17]requested_item fm.sn is exist - process it [06:18:17]wFMCommunicate request_size=4 [06:18:17]MH_SAM_APDU [06:18:17]CAPDU: 80 11 00 00 [06:18:17]Write to MH i2c: E2 08 00 0C 1B 80 11 00 00 00 00 00 00 A1 [06:18:17]Write i2c OK [06:18:17]MH_I2C_Read... [06:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:17]Read from MH i2c: E2 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 17 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 17 00 0C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F4 [06:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:18:17]wFMCommunicate OK [06:18:17]requested_item fd.num is exist - process it [06:18:17]SAM_PROTO_GetFieldsCounters [06:18:17]wFMCommunicate request_size=4 [06:18:17]MH_SAM_APDU [06:18:17]CAPDU: 80 13 00 00 [06:18:17]Write to MH i2c: E2 08 00 0D 1B 80 13 00 00 00 00 00 00 A4 [06:18:17]Write i2c OK [06:18:17]MH_I2C_Read... [06:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:18:17]Read from MH i2c: E2 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 62 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 62 00 0D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BB 38 02 00 0E 04 04 00 21 02 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 15 [06:18:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BB 38 02 00 0E 04 04 00 21 02 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 [06:18:17]wFMCommunicate OK [06:18:17]SAM_PROTO_GetFieldsCounters done [06:18:17]requested_item shift.num is exist - process it [06:18:17]requested_item shift.opened is exist - process it [06:18:17]req_shift_opened [06:18:17]FM_GetShiftState [06:18:17]SAM_PROTO_GetShiftState [06:18:17]wFMCommunicate request_size=4 [06:18:17]MH_SAM_APDU [06:18:17]CAPDU: 80 13 01 00 [06:18:17]Write to MH i2c: E2 08 00 0E 1B 80 13 01 00 00 00 00 00 A6 [06:18:17]Write i2c OK [06:18:17]MH_I2C_Read... [06:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:17]Read from MH i2c: E2 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 0E 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 0E 00 0E 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1E [06:18:17]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:18:17]wFMCommunicate OK [06:18:17]SAM_PROTO_GetShiftState done [06:18:17]FM_GetShiftState done [06:18:17]req_shift_opened done [06:18:17]requested_item shift.open_date is exist - process it [06:18:17]req_shift_open_date [06:18:17]req_shift_open_date done [06:18:17]produce_requested_data done [06:18:17]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145595,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [06:18:17]process_action_free close_receipt [06:18:17]json_value_free [06:18:17]json_value_free done [06:18:17]process_json_proto returns [06:18:17]Send response to host [06:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145595,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [06:18:17]free response buf [06:18:17]execute_script done [06:18:17]execute_script returns [06:18:17]free content buf [06:18:17]Sock 7.Close socket [06:18:17]Sock 7.Thread stoped [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:00]accept exits with 9 [06:24:00]New connection [06:24:00]New thread 3067149668 created [06:24:00]Thread 3067006308 joined [06:24:00]Waiting for new connection... [06:24:00] Sock 9.Parse request [06:24:00]Sock 9.Check first char [06:24:00]Sock 9.First char is OK [06:24:00]request: POST /json_proto HTTP/1.0 [06:24:00]Method: POST [06:24:00]URL: /json_proto [06:24:00]Method is POST - this is cgi request [06:24:00]url: /json_proto [06:24:00]query_string will be loaded in cgi processing [06:24:00]execute_cgi json_proto POST (null) [06:24:00]execute_cgi path=json_proto method=POST [06:24:00]POST find Content-Length [06:24:00]Host: 172.17.40.195:8080 [06:24:00]Content-Length: 766 [06:24:00]Content-Type: application/json [06:24:00] [06:24:00]POST finish read [06:24:00]Found Content-Length = 766 [06:24:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:24:00]execute_script... [06:24: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)160346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:24:00]POST & json_proto [06:24:00]process_json_proto [06:24:00]json parsed OK: [06:24:00]protocol is kg_v1.0 [06:24:00]action value=close_receipt [06:24:00]process_action close_receipt [06:24:00]cmd_close_receipt [06:24:00]MH_GetDate [06:24:00]Write to MH i2c: F0 00 00 0F 1B 19 [06:24:00]Write i2c OK [06:24:00]MH_I2C_Read... [06:24:00]Read from MH i2c: F0 [06:24:00]MH_I2C_Read... [06:24:00]Read from MH i2c: F0 09 00 [06:24:00]MH_I2C_Read... [06:24:00]Read from MH i2c: F0 09 00 0F 1B 00 82 DC 1D 67 D5 8D 6C 64 36 [06:24:00]GetLastDocTimeStamp 1730009896 [06:24:00]current date 1730010242 [06:24:00]FM_GetShiftState [06:24:00]SAM_PROTO_GetShiftState [06:24:00]wFMCommunicate request_size=4 [06:24:00]MH_SAM_APDU [06:24:00]CAPDU: 80 13 01 00 [06:24:00]Write to MH i2c: E2 08 00 10 1B 80 13 01 00 00 00 00 00 A8 [06:24:00]Write i2c OK [06:24:00]MH_I2C_Read... [06:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:00]Read from MH i2c: E2 [06:24:00]MH_I2C_Read... [06:24:00]Read from MH i2c: E2 0E 00 [06:24:00]MH_I2C_Read... [06:24:00]Read from MH i2c: E2 0E 00 10 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 20 [06:24:00]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:24:00]wFMCommunicate OK [06:24:00]SAM_PROTO_GetShiftState done [06:24:00]FM_GetShiftState done [06:24:00]opened in 1729988959 [06:24:00]opened+sec_in_day 1730075359 [06:24:00]quantity*price = 100050 [06:24:00]sum+1 = 100052 [06:24:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 19 27.10.2024 06:24 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145596 ФПД: 257047686412756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062403&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145596&fm=257047686412756&tin=02508201610067®Number=0000000000091683&sum=100051 [06:24:01]StoreToDocumentArchive [06:24:01]shift 545 fd 145596 [06:24:01]save to /storage/0545/doc_00145596 [06:24:01]save last doc name /storage/0545/doc_00145596 to /storage/kkm_last_doc_name [06:24:01]save OK [06:24:01]Clear old archive folders... [06:24:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:24:01]tlvbuf is 01A2CB10 [06:24:01]SAM_PROTO_ClearQueue [06:24:01]wFMCommunicate request_size=4 [06:24:01]MH_SAM_APDU [06:24:01]CAPDU: 80 09 00 00 [06:24:01]Write to MH i2c: E2 08 00 1D 1B 80 09 00 00 00 00 00 00 AA [06:24:01]Write i2c OK [06:24:01]MH_I2C_Read... [06:24:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:24:01]Read from MH i2c: E2 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 03 00 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 03 00 1D 1B 00 90 00 AC [06:24:01]RAPDU: 90 00 [06:24:01]wFMCommunicate OK [06:24:01]SAM_PROTO_ClearQueue done [06:24:01]KKMCreateOFDPacket [06:24:01]OFDProtocolAddRootSTLVToBuf [06:24:01]FM_MakeSignedData [06:24:01]FM_MakeSignedData [06:24:01]SAM_PROTO_SignData [06:24:01]wFMCommunicate request_size=4 [06:24:01]MH_SAM_APDU [06:24:01]CAPDU: 80 0D 01 02 [06:24:01]Write to MH i2c: E2 08 00 1E 1B 80 0D 01 02 00 00 00 00 B2 [06:24:01]Write i2c OK [06:24:01]MH_I2C_Read... [06:24:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:24:01]Read from MH i2c: E2 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 03 00 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 03 00 1E 1B 00 90 00 AD [06:24:01]RAPDU: 90 00 [06:24:01]wFMCommunicate OK [06:24:01]wFMCommunicate request_size=255 [06:24:01]MH_SAM_APDU [06:24: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 83 DC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BC 38 02 00 35 04 06 00 E9 C8 94 09 [06:24:01]Write to MH i2c: E2 02 01 1F 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 83 DC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BC 38 02 00 35 04 06 00 E9 C8 94 09 00 00 F9 [06:24:01]Write i2c OK [06:24:01]MH_I2C_Read... [06:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:01]Read from MH i2c: E2 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 03 00 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 03 00 1F 1B 00 90 00 AE [06:24:01]RAPDU: 90 00 [06:24:01]wFMCommunicate OK [06:24:01]wFMCommunicate request_size=7 [06:24:01]MH_SAM_APDU [06:24:01]CAPDU: 80 0D 02 02 02 F9 D4 [06:24:01]Write to MH i2c: E2 0A 00 20 1B 80 0D 02 02 02 00 F9 D4 00 00 86 [06:24:01]Write i2c OK [06:24:01]MH_I2C_Read... [06:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:01]Read from MH i2c: E2 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 03 00 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 03 00 20 1B 00 90 00 AF [06:24:01]RAPDU: 90 00 [06:24:01]wFMCommunicate OK [06:24:01]wFMCommunicate request_size=4 [06:24:01]MH_SAM_APDU [06:24:01]CAPDU: 80 0D 03 02 [06:24:01]Write to MH i2c: E2 08 00 21 1B 80 0D 03 02 00 00 00 00 B7 [06:24:01]Write i2c OK [06:24:01]MH_I2C_Read... [06:24:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:24:01]Read from MH i2c: E2 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 0B 00 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 0B 00 21 1B 00 0C 4E 15 B0 FF 9B 03 08 90 00 7C [06:24:01]RAPDU: 0C 4E 15 B0 FF 9B 03 08 90 00 [06:24:01]wFMCommunicate OK [06:24:01]SAM_PROTO_SignData done [06:24:01]FM_MakeSignedData done [06:24:01]CreateOFDProtocolMessage [06:24:01]wFMCommunicate request_size=4 [06:24:01]MH_SAM_APDU [06:24:01]CAPDU: 80 11 00 00 [06:24:01]Write to MH i2c: E2 08 00 22 1B 80 11 00 00 00 00 00 00 B7 [06:24:01]Write i2c OK [06:24:01]MH_I2C_Read... [06:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:01]Read from MH i2c: E2 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 17 00 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: E2 17 00 22 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0A [06:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:24:01]wFMCommunicate OK [06:24:01]CreateOFDProtocolMessage done [06:24:01]OFDSenderStorePacket 145596 [06:24:01]StoreOFDPacket docnum=145596 [06:24:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 18 5E 04 01 2A 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 83 DC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BC 38 02 00 35 04 06 00 E9 C8 94 09 F9 D4 0C 4E 15 B0 FF 9B 03 08 [06:24:01]CheckFolder [06:24:01]dirname=/storage/ofd_packets [06:24:01]CheckFolder done [06:24:01]ProducePacketName [06:24:01]name=ofd_packets/00145596 [06:24:01]NVStorageSaveData ofd_packets/00145596 [06:24:01]File name is /storage/ofd_packets/00145596 [06:24:01]Write 298 bytes [06:24:01]NVStorageSaveData done [06:24:01]OFDSenderStorePacket done [06:24:01]KKMCreateOFDPacket done [06:24:01]NVStorageSaveData kkm_last_timestamp [06:24:01]File name is /storage/kkm_last_timestamp [06:24:01]Write 4 bytes [06:24:01]NVStorageSaveData done [06:24:01]ExternCall_PrintAddStr [06:24:01]wPrintStart [06:24:01]Write to MH i2c: 01 00 00 23 1B 3E [06:24:01]Write i2c OK [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: 01 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: 01 07 00 [06:24:01]MH_I2C_Read... [06:24:01]Read from MH i2c: 01 07 00 23 1B 00 00 00 00 00 FF 0F 53 [06:24:01]RasterBufferAndPrint [06:24:01]line Счет N : (1)160346 [06:24:01]line ИНН: 02508201610067 [06:24:01]line Контрольно-Кассовый Чек [06:24:01]line ПРОДАЖА [06:24:01]line ТРК (МРК, ГНК) : 21 [06:24:01]line Товар: 2710194210 [06:24:01]line ДТ-К-2 [06:24:01]line 13.130 * 76.20 [06:24:01]line = 1000.51 [06:24:01]line НДС 12% НСП 1% [06:24:01]line > о реализуемом товаре [06:24:01]line ИТОГО: 1000.51 [06:24:01]line НСП 1% : 8.85 [06:24:01]line НДС 12% : 106.25 [06:24:01]line Наличными: 0.00 [06:24:01]line Безнал.: 1000.51 [06:24:01]line Место: АЗС № 126 "Партнер Нефть" [06:24:01]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [06:24:01]line СНО: Общий режим [06:24:01]line Чек 19 27.10.2024 06:24 [06:24:01]line Смена: 545 ФФД: 1.0 [06:24:01]line ЗНМ: 0300000085 [06:24:01]line РНМ: 0000000000091683 [06:24:01]line Версия ККМ: 001 [06:24:01]line Платежная система: Mbank [06:24:01]line ФМ: 0000000000871745 [06:24:01]line ФД: 145596 [06:24:01]line ФПД: 257047686412756 [06:24:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062403&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145596&fm=257047686412756&tin=02508201610067®Number=0000000000091683&sum=100051 [06:24:02]OFD Sender: Processing packet 145596 [packets to send 205, broken 204] [06:24:02]ProducePacketName [06:24:02]name=ofd_packets/00145596 [06:24:02]OFD Sender: To server: pG, [06:24:02]CommunicateWithHost lk.salyk.kg:30040 [06:24:02]ConnectInit lk.salyk.kg [06:24:02]written 0, free lines is 4095 [06:24:02]Connected sock=10 [06:24:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 18 5E 04 01 2A 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 83 DC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BC 38 02 00 35 04 06 00 E9 C8 94 09 F9 D4 0C 4E 15 B0 FF 9B 03 08 [06:24:02]Write to MH i2c: 01 00 00 4C 1B 67 [06:24:02]Write i2c OK [06:24:02]MH_I2C_Read... [06:24:02]Read from MH i2c: 01 [06:24:02]MH_I2C_Read... [06:24:02]Read from MH i2c: 01 07 00 [06:24:02]MH_I2C_Read... [06:24:02]Read from MH i2c: 01 07 00 4C 1B 00 00 00 00 00 CE 0C 48 [06:24:02]RasterBufferAndPrint [06:24:02]line [06:24:02]line [06:24:02]line [06:24:02]line [06:24:02]line [06:24:02]written 0, free lines is 3286 [06:24:02]MH_Cut [06:24:02]Write to MH i2c: D1 01 00 53 1B 01 40 [06:24:02]Write i2c OK [06:24:02]MH_I2C_Read... [06:24:02]Read from MH i2c: D1 [06:24:02]MH_I2C_Read... [06:24:02]Read from MH i2c: D1 01 00 [06:24:02]MH_I2C_Read... [06:24:02]Read from MH i2c: D1 01 00 53 1B 00 3F [06:24:02]Write to MH i2c: 01 00 00 54 1B 6F [06:24:02]Write i2c OK [06:24:02]MH_I2C_Read... [06:24:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 CB 06 47 00 4B 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BC 38 02 00 F4 03 04 00 B1 81 1D 67 B6 04 01 00 00 47 39 1B F3 00 BE D3 0F [06:24:02]CommunicateWithHost err = 0 [06:24:02]CheckOFDResponse [06:24:02]1017 (14) - 77093643461234 [06:24:02]1041 (16) - 0000000000871745 [06:24:02]1040 (4) - 145596 [06:24:02]1012 (4) - 26.10.2024 23:56 [06:24:02]1206 (1) - 0 [06:24:02]OFD Sender: Remove packet 145596 [06:24:02]ProducePacketName [06:24:02]name=ofd_packets/00145596 [06:24:02]NVStorageDeleteData [06:24:03]OFD Sender: No OFD packet to send [06:24:03]*** Cut start [06:24:03]*** Partial cut [06:24:03]*** CUTSNS_PIN = 1 [06:24:03]*** CUTSNS_PIN = 0 [06:24:03]*** Brake cut motor [06:24:03]Read from MH i2c: 01 [06:24:03]MH_I2C_Read... [06:24:03]*** Stop cut motor [06:24:03]*** Cut end [06:24:03]Read from MH i2c: 01 07 00 [06:24:03]MH_I2C_Read... [06:24:03]Read from MH i2c: 01 07 00 54 1B 00 00 00 00 00 FF 0F 84 [06:24:03]process_action close_receipt done [06:24:03]requested_data is exist [06:24:03]produce_requested_data [06:24:03]requested_item fm.sn is exist - process it [06:24:03]wFMCommunicate request_size=4 [06:24:03]MH_SAM_APDU [06:24:03]CAPDU: 80 11 00 00 [06:24:03]Write to MH i2c: E2 08 00 55 1B 80 11 00 00 00 00 00 00 EA [06:24:03]Write i2c OK [06:24:03]MH_I2C_Read... [06:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:04]Read from MH i2c: E2 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 17 00 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 17 00 55 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3D [06:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:24:04]wFMCommunicate OK [06:24:04]requested_item fd.num is exist - process it [06:24:04]SAM_PROTO_GetFieldsCounters [06:24:04]wFMCommunicate request_size=4 [06:24:04]MH_SAM_APDU [06:24:04]CAPDU: 80 13 00 00 [06:24:04]Write to MH i2c: E2 08 00 56 1B 80 13 00 00 00 00 00 00 ED [06:24:04]Write i2c OK [06:24:04]MH_I2C_Read... [06:24:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:24:04]Read from MH i2c: E2 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 62 00 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 62 00 56 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BC 38 02 00 0E 04 04 00 21 02 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 62 [06:24:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BC 38 02 00 0E 04 04 00 21 02 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 [06:24:04]wFMCommunicate OK [06:24:04]SAM_PROTO_GetFieldsCounters done [06:24:04]requested_item shift.num is exist - process it [06:24:04]requested_item shift.opened is exist - process it [06:24:04]req_shift_opened [06:24:04]FM_GetShiftState [06:24:04]SAM_PROTO_GetShiftState [06:24:04]wFMCommunicate request_size=4 [06:24:04]MH_SAM_APDU [06:24:04]CAPDU: 80 13 01 00 [06:24:04]Write to MH i2c: E2 08 00 57 1B 80 13 01 00 00 00 00 00 EF [06:24:04]Write i2c OK [06:24:04]MH_I2C_Read... [06:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:04]Read from MH i2c: E2 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 0E 00 [06:24:04]MH_I2C_Read... [06:24:04]Read from MH i2c: E2 0E 00 57 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 67 [06:24:04]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:24:04]wFMCommunicate OK [06:24:04]SAM_PROTO_GetShiftState done [06:24:04]FM_GetShiftState done [06:24:04]req_shift_opened done [06:24:04]requested_item shift.open_date is exist - process it [06:24:04]req_shift_open_date [06:24:04]req_shift_open_date done [06:24:04]produce_requested_data done [06:24:04]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145596,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [06:24:04]process_action_free close_receipt [06:24:04]json_value_free [06:24:04]json_value_free done [06:24:04]process_json_proto returns [06:24:04]Send response to host [06:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145596,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [06:24:04]free response buf [06:24:04]execute_script done [06:24:04]execute_script returns [06:24:04]free content buf [06:24:04]Sock 9.Close socket [06:24:04]Sock 9.Thread stoped [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:26]accept exits with 7 [06:27:26]New connection [06:27:26]New thread 3067006308 created [06:27:26]Thread 3067149668 joined [06:27:26]Waiting for new connection... [06:27:26] Sock 7.Parse request [06:27:26]Sock 7.Check first char [06:27:26]Sock 7.First char is OK [06:27:26]request: POST /json_proto HTTP/1.0 [06:27:26]Method: POST [06:27:26]URL: /json_proto [06:27:26]Method is POST - this is cgi request [06:27:26]url: /json_proto [06:27:26]query_string will be loaded in cgi processing [06:27:26]execute_cgi json_proto POST (null) [06:27:26]execute_cgi path=json_proto method=POST [06:27:26]POST find Content-Length [06:27:26]Host: 172.17.40.195:8080 [06:27:26]Content-Length: 674 [06:27:26]Content-Type: application/json [06:27:26] [06:27:26]POST finish read [06:27:26]Found Content-Length = 674 [06:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:26]execute_script... [06:27: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)160347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:26]POST & json_proto [06:27:26]process_json_proto [06:27:26]json parsed OK: [06:27:26]protocol is kg_v1.0 [06:27:26]action value=close_receipt [06:27:26]process_action close_receipt [06:27:26]cmd_close_receipt [06:27:26]MH_GetDate [06:27:26]Write to MH i2c: F0 00 00 58 1B 62 [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: F0 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: F0 09 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: F0 09 00 58 1B 00 51 DD 1D 67 D5 8D 6C 64 4F [06:27:26]GetLastDocTimeStamp 1730010243 [06:27:26]current date 1730010449 [06:27:26]FM_GetShiftState [06:27:26]SAM_PROTO_GetShiftState [06:27:26]wFMCommunicate request_size=4 [06:27:26]MH_SAM_APDU [06:27:26]CAPDU: 80 13 01 00 [06:27:26]Write to MH i2c: E2 08 00 59 1B 80 13 01 00 00 00 00 00 F1 [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:27]Read from MH i2c: E2 [06:27:27]MH_I2C_Read... [06:27:27]Read from MH i2c: E2 0E 00 [06:27:27]MH_I2C_Read... [06:27:27]Read from MH i2c: E2 0E 00 59 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 69 [06:27:27]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:27:27]wFMCommunicate OK [06:27:27]SAM_PROTO_GetShiftState done [06:27:27]FM_GetShiftState done [06:27:27]opened in 1729988959 [06:27:27]opened+sec_in_day 1730075359 [06:27:27]quantity*price = 50063 [06:27:27]sum+1 = 50064 [06:27:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 20 27.10.2024 06:27 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145597 ФПД: 224948024141309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062729&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145597&fm=224948024141309&tin=02508201610067®Number=0000000000091683&sum=50000 [06:27:28]StoreToDocumentArchive [06:27:28]shift 545 fd 145597 [06:27:28]save to /storage/0545/doc_00145597 [06:27:28]save last doc name /storage/0545/doc_00145597 to /storage/kkm_last_doc_name [06:27:28]save OK [06:27:28]Clear old archive folders... [06:27:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:27:28]tlvbuf is 01AC7990 [06:27:28]SAM_PROTO_ClearQueue [06:27:28]wFMCommunicate request_size=4 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 09 00 00 [06:27:28]Write to MH i2c: E2 08 00 66 1B 80 09 00 00 00 00 00 00 F3 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 66 1B 00 90 00 F5 [06:27:28]RAPDU: 90 00 [06:27:28]wFMCommunicate OK [06:27:28]SAM_PROTO_ClearQueue done [06:27:28]KKMCreateOFDPacket [06:27:28]OFDProtocolAddRootSTLVToBuf [06:27:28]FM_MakeSignedData [06:27:28]FM_MakeSignedData [06:27:28]SAM_PROTO_SignData [06:27:28]wFMCommunicate request_size=4 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 0D 01 02 [06:27:28]Write to MH i2c: E2 08 00 67 1B 80 0D 01 02 00 00 00 00 FB [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 67 1B 00 90 00 F6 [06:27:28]RAPDU: 90 00 [06:27:28]wFMCommunicate OK [06:27:28]wFMCommunicate request_size=255 [06:27:28]MH_SAM_APDU [06:27: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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 51 DD 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BD 38 02 00 35 04 06 00 CC 96 CB 12 [06:27:28]Write to MH i2c: E2 02 01 68 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 51 DD 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BD 38 02 00 35 04 06 00 CC 96 CB 12 00 00 26 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 68 1B 00 90 00 F7 [06:27:28]RAPDU: 90 00 [06:27:28]wFMCommunicate OK [06:27:28]wFMCommunicate request_size=7 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 0D 02 02 02 65 FD [06:27:28]Write to MH i2c: E2 0A 00 69 1B 80 0D 02 02 02 00 65 FD 00 00 64 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]OFD Sender: No OFD packet to send [06:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 03 00 69 1B 00 90 00 F8 [06:27:28]RAPDU: 90 00 [06:27:28]wFMCommunicate OK [06:27:28]wFMCommunicate request_size=4 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 0D 03 02 [06:27:28]Write to MH i2c: E2 08 00 6A 1B 80 0D 03 02 00 00 00 00 00 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 0B 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 0B 00 6A 1B 00 72 7B A1 E6 31 93 EB EC 90 00 10 [06:27:28]RAPDU: 72 7B A1 E6 31 93 EB EC 90 00 [06:27:28]wFMCommunicate OK [06:27:28]SAM_PROTO_SignData done [06:27:28]FM_MakeSignedData done [06:27:28]CreateOFDProtocolMessage [06:27:28]wFMCommunicate request_size=4 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 11 00 00 [06:27:28]Write to MH i2c: E2 08 00 6B 1B 80 11 00 00 00 00 00 00 00 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 17 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 17 00 6B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 53 [06:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:27:28]wFMCommunicate OK [06:27:28]CreateOFDProtocolMessage done [06:27:28]OFDSenderStorePacket 145597 [06:27:28]StoreOFDPacket docnum=145597 [06:27:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 BF 90 04 01 3F 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 51 DD 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BD 38 02 00 35 04 06 00 CC 96 CB 12 65 FD 72 7B A1 E6 31 93 EB EC [06:27:28]CheckFolder [06:27:28]dirname=/storage/ofd_packets [06:27:28]CheckFolder done [06:27:28]ProducePacketName [06:27:28]name=ofd_packets/00145597 [06:27:28]NVStorageSaveData ofd_packets/00145597 [06:27:28]File name is /storage/ofd_packets/00145597 [06:27:28]Write 298 bytes [06:27:28]NVStorageSaveData done [06:27:28]OFDSenderStorePacket done [06:27:28]KKMCreateOFDPacket done [06:27:28]NVStorageSaveData kkm_last_timestamp [06:27:28]File name is /storage/kkm_last_timestamp [06:27:28]Write 4 bytes [06:27:28]NVStorageSaveData done [06:27:28]ExternCall_PrintAddStr [06:27:28]wPrintStart [06:27:28]Write to MH i2c: 01 00 00 6C 1B 87 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: 01 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: 01 07 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: 01 07 00 6C 1B 00 00 00 00 00 FF 0F 9C [06:27:28]RasterBufferAndPrint [06:27:28]line Счет N : (1)160347 [06:27:28]line ИНН: 02508201610067 [06:27:28]line Контрольно-Кассовый Чек [06:27:28]line ПРОДАЖА [06:27:28]line ТРК (МРК, ГНК) : 21 [06:27:28]line Товар: 2710194210 [06:27:28]line ДТ-К-2 [06:27:28]line 6.570 * 76.20 [06:27:28]line = 500.63 [06:27:28]line НДС 12% НСП 1% [06:27:28]line > о реализуемом товаре [06:27:28]line ОКРУГЛЕНИЕ: -0.63 [06:27:28]line ИТОГО: 500.00 [06:27:28]line Внесено: 500.00 [06:27:28]line СДАЧА: 0.00 [06:27:28]line НСП 1% : 4.43 [06:27:28]line НДС 12% : 53.16 [06:27:28]line Наличными: 500.00 [06:27:28]line Безнал.: 0.00 [06:27:28]line Место: АЗС № 126 "Партнер Нефть" [06:27:28]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [06:27:28]line СНО: Общий режим [06:27:28]line Чек 20 27.10.2024 06:27 [06:27:28]line Смена: 545 ФФД: 1.0 [06:27:28]line ЗНМ: 0300000085 [06:27:28]line РНМ: 0000000000091683 [06:27:28]line Версия ККМ: 001 [06:27:28]line ФМ: 0000000000871745 [06:27:28]line ФД: 145597 [06:27:28]line ФПД: 224948024141309 [06:27:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062729&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145597&fm=224948024141309&tin=02508201610067®Number=0000000000091683&sum=50000 [06:27:29]OFD Sender: Processing packet 145597 [packets to send 205, broken 204] [06:27:29]ProducePacketName [06:27:29]name=ofd_packets/00145597 [06:27:29]OFD Sender: To server: pG, [06:27:29]CommunicateWithHost lk.salyk.kg:30040 [06:27:29]ConnectInit lk.salyk.kg [06:27:29]written 0, free lines is 4095 [06:27:29]Connected sock=10 [06:27:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 BF 90 04 01 3F 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 51 DD 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BD 38 02 00 35 04 06 00 CC 96 CB 12 65 FD 72 7B A1 E6 31 93 EB EC [06:27:29]Write to MH i2c: 01 00 00 97 1B B2 [06:27:29]Write i2c OK [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: 01 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: 01 07 00 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: 01 07 00 97 1B 00 00 00 00 00 A6 0C 6B [06:27:29]RasterBufferAndPrint [06:27:29]line [06:27:29]line [06:27:29]line [06:27:29]line [06:27:29]line [06:27:29]written 0, free lines is 3243 [06:27:29]MH_Cut [06:27:29]Write to MH i2c: D1 01 00 9E 1B 01 8B [06:27:29]Write i2c OK [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: D1 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: D1 01 00 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: D1 01 00 9E 1B 00 8A [06:27:29]Write to MH i2c: 01 00 00 9F 1B BA [06:27:29]Write i2c OK [06:27:29]MH_I2C_Read... [06:27:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 3A 1A 47 00 32 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BD 38 02 00 F4 03 04 00 80 82 1D 67 B6 04 01 00 00 FD B1 78 6B 1B DE 17 07 [06:27:29]CommunicateWithHost err = 0 [06:27:29]CheckOFDResponse [06:27:29]1017 (14) - 77093643461234 [06:27:29]1041 (16) - 0000000000871745 [06:27:29]1040 (4) - 145597 [06:27:29]1012 (4) - 27.10.2024 00:00 [06:27:29]1206 (1) - 0 [06:27:29]OFD Sender: Remove packet 145597 [06:27:29]ProducePacketName [06:27:29]name=ofd_packets/00145597 [06:27:29]NVStorageDeleteData [06:27:30]OFD Sender: No OFD packet to send [06:27:30]*** Cut start [06:27:30]*** Partial cut [06:27:30]*** CUTSNS_PIN = 1 [06:27:30]*** CUTSNS_PIN = 0 [06:27:30]*** Brake cut motor [06:27:30]Read from MH i2c: 01 [06:27:30]MH_I2C_Read... [06:27:30]*** Stop cut motor [06:27:30]*** Cut end [06:27:30]Read from MH i2c: 01 07 00 [06:27:30]MH_I2C_Read... [06:27:30]Read from MH i2c: 01 07 00 9F 1B 00 00 00 00 00 FF 0F CF [06:27:30]process_action close_receipt done [06:27:30]requested_data is exist [06:27:30]produce_requested_data [06:27:30]requested_item fm.sn is exist - process it [06:27:30]wFMCommunicate request_size=4 [06:27:30]MH_SAM_APDU [06:27:30]CAPDU: 80 11 00 00 [06:27:30]Write to MH i2c: E2 08 00 A0 1B 80 11 00 00 00 00 00 00 35 [06:27:30]Write i2c OK [06:27:30]MH_I2C_Read... [06:27:30]Read from MH i2c: E2 [06:27:30]MH_I2C_Read... [06:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:30]Read from MH i2c: E2 17 00 [06:27:30]MH_I2C_Read... [06:27:30]Read from MH i2c: E2 17 00 A0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 88 [06:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:27:30]wFMCommunicate OK [06:27:30]requested_item fd.num is exist - process it [06:27:30]SAM_PROTO_GetFieldsCounters [06:27:30]wFMCommunicate request_size=4 [06:27:30]MH_SAM_APDU [06:27:30]CAPDU: 80 13 00 00 [06:27:30]Write to MH i2c: E2 08 00 A1 1B 80 13 00 00 00 00 00 00 38 [06:27:30]Write i2c OK [06:27:30]MH_I2C_Read... [06:27:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:31]Read from MH i2c: E2 [06:27:31]MH_I2C_Read... [06:27:31]Read from MH i2c: E2 62 00 [06:27:31]MH_I2C_Read... [06:27:31]Read from MH i2c: E2 62 00 A1 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BD 38 02 00 0E 04 04 00 21 02 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 B1 [06:27:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BD 38 02 00 0E 04 04 00 21 02 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 [06:27:31]wFMCommunicate OK [06:27:31]SAM_PROTO_GetFieldsCounters done [06:27:31]requested_item shift.num is exist - process it [06:27:31]requested_item shift.opened is exist - process it [06:27:31]req_shift_opened [06:27:31]FM_GetShiftState [06:27:31]SAM_PROTO_GetShiftState [06:27:31]wFMCommunicate request_size=4 [06:27:31]MH_SAM_APDU [06:27:31]CAPDU: 80 13 01 00 [06:27:31]Write to MH i2c: E2 08 00 A2 1B 80 13 01 00 00 00 00 00 3A [06:27:31]Write i2c OK [06:27:31]MH_I2C_Read... [06:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:31]Read from MH i2c: E2 [06:27:31]MH_I2C_Read... [06:27:31]Read from MH i2c: E2 0E 00 [06:27:31]MH_I2C_Read... [06:27:31]Read from MH i2c: E2 0E 00 A2 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B2 [06:27:31]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:27:31]wFMCommunicate OK [06:27:31]SAM_PROTO_GetShiftState done [06:27:31]FM_GetShiftState done [06:27:31]req_shift_opened done [06:27:31]requested_item shift.open_date is exist - process it [06:27:31]req_shift_open_date [06:27:31]req_shift_open_date done [06:27:31]produce_requested_data done [06:27:31]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145597,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [06:27:31]process_action_free close_receipt [06:27:31]json_value_free [06:27:31]json_value_free done [06:27:31]process_json_proto returns [06:27:31]Send response to host [06:27:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145597,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [06:27:31]free response buf [06:27:31]execute_script done [06:27:31]execute_script returns [06:27:31]free content buf [06:27:31]Sock 7.Close socket [06:27:31]Sock 7.Thread stoped [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52: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:43]accept exits with 9 [06:53:43]New connection [06:53:43]New thread 3067149668 created [06:53:43]Thread 3067006308 joined [06:53:43]Waiting for new connection... [06:53:43] Sock 9.Parse request [06:53:43]Sock 9.Check first char [06:53:43]Sock 9.First char is OK [06:53:43]request: POST /json_proto HTTP/1.0 [06:53:43]Method: POST [06:53:43]URL: /json_proto [06:53:43]Method is POST - this is cgi request [06:53:43]url: /json_proto [06:53:43]query_string will be loaded in cgi processing [06:53:43]execute_cgi json_proto POST (null) [06:53:43]execute_cgi path=json_proto method=POST [06:53:43]POST find Content-Length [06:53:43]Host: 172.17.40.195:8080 [06:53:43]Content-Length: 675 [06:53:43]Content-Type: application/json [06:53:43] [06:53:43]POST finish read [06:53:43]Found Content-Length = 675 [06:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 12.620, "sum" : 961.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 961.00, "total" : 961.00, "payments": [ { "type": 0, "sum" : 961.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:43]execute_script... [06:53:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 12.620, "sum" : 961.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 961.00, "total" : 961.00, "payments": [ { "type": 0, "sum" : 961.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:43]POST & json_proto [06:53:43]process_json_proto [06:53:43]json parsed OK: [06:53:43]protocol is kg_v1.0 [06:53:43]action value=close_receipt [06:53:43]process_action close_receipt [06:53:43]cmd_close_receipt [06:53:43]MH_GetDate [06:53:43]Write to MH i2c: F0 00 00 A3 1B AD [06:53:43]Write i2c OK [06:53:43]MH_I2C_Read... [06:53:43]Read from MH i2c: F0 [06:53:43]MH_I2C_Read... [06:53:43]Read from MH i2c: F0 09 00 [06:53:43]MH_I2C_Read... [06:53:43]Read from MH i2c: F0 09 00 A3 1B 00 7A E3 1D 67 D5 8D 6C 64 C9 [06:53:43]GetLastDocTimeStamp 1730010449 [06:53:43]current date 1730012026 [06:53:43]FM_GetShiftState [06:53:43]SAM_PROTO_GetShiftState [06:53:43]wFMCommunicate request_size=4 [06:53:43]MH_SAM_APDU [06:53:43]CAPDU: 80 13 01 00 [06:53:43]Write to MH i2c: E2 08 00 A4 1B 80 13 01 00 00 00 00 00 3C [06:53:43]Write i2c OK [06:53:43]MH_I2C_Read... [06:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:43]Read from MH i2c: E2 [06:53:43]MH_I2C_Read... [06:53:43]Read from MH i2c: E2 0E 00 [06:53:43]MH_I2C_Read... [06:53:43]Read from MH i2c: E2 0E 00 A4 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B4 [06:53:43]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:53:43]wFMCommunicate OK [06:53:43]SAM_PROTO_GetShiftState done [06:53:43]FM_GetShiftState done [06:53:43]opened in 1729988959 [06:53:43]opened+sec_in_day 1730075359 [06:53:43]quantity*price = 96164 [06:53:43]sum+1 = 96165 [06:53:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 961.00 Внесено: 961.00 СДАЧА: 0.00 НСП 1% : 8.51 НДС 12% : 102.12 Наличными: 961.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 21 27.10.2024 06:53 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145598 ФПД: 259577915948001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T065346&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145598&fm=259577915948001&tin=02508201610067®Number=0000000000091683&sum=96100 [06:53:44]StoreToDocumentArchive [06:53:44]shift 545 fd 145598 [06:53:44]save to /storage/0545/doc_00145598 [06:53:44]save last doc name /storage/0545/doc_00145598 to /storage/kkm_last_doc_name [06:53:44]save OK [06:53:44]Clear old archive folders... [06:53:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:53:44]tlvbuf is 01AC7840 [06:53:44]SAM_PROTO_ClearQueue [06:53:44]wFMCommunicate request_size=4 [06:53:44]MH_SAM_APDU [06:53:44]CAPDU: 80 09 00 00 [06:53:44]Write to MH i2c: E2 08 00 B1 1B 80 09 00 00 00 00 00 00 3E [06:53:44]Write i2c OK [06:53:44]MH_I2C_Read... [06:53:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:53:45]Read from MH i2c: E2 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 03 00 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 03 00 B1 1B 00 90 00 40 [06:53:45]RAPDU: 90 00 [06:53:45]wFMCommunicate OK [06:53:45]SAM_PROTO_ClearQueue done [06:53:45]KKMCreateOFDPacket [06:53:45]OFDProtocolAddRootSTLVToBuf [06:53:45]FM_MakeSignedData [06:53:45]FM_MakeSignedData [06:53:45]SAM_PROTO_SignData [06:53:45]wFMCommunicate request_size=4 [06:53:45]MH_SAM_APDU [06:53:45]CAPDU: 80 0D 01 02 [06:53:45]Write to MH i2c: E2 08 00 B2 1B 80 0D 01 02 00 00 00 00 46 [06:53:45]Write i2c OK [06:53:45]MH_I2C_Read... [06:53:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:53:45]Read from MH i2c: E2 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 03 00 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 03 00 B2 1B 00 90 00 41 [06:53:45]RAPDU: 90 00 [06:53:45]wFMCommunicate OK [06:53:45]wFMCommunicate request_size=255 [06:53:45]MH_SAM_APDU [06:53:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A4 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 27 00 00 00 00 07 04 06 00 64 77 01 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 7A E3 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BE 38 02 00 35 04 06 00 EC 15 B1 78 [06:53:45]Write to MH i2c: E2 02 01 B3 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A4 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 27 00 00 00 00 07 04 06 00 64 77 01 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 7A E3 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BE 38 02 00 35 04 06 00 EC 15 B1 78 00 00 70 [06:53:45]Write i2c OK [06:53:45]MH_I2C_Read... [06:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:45]Read from MH i2c: E2 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 03 00 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 03 00 B3 1B 00 90 00 42 [06:53:45]RAPDU: 90 00 [06:53:45]wFMCommunicate OK [06:53:45]wFMCommunicate request_size=7 [06:53:45]MH_SAM_APDU [06:53:45]CAPDU: 80 0D 02 02 02 BB E1 [06:53:45]Write to MH i2c: E2 0A 00 B4 1B 80 0D 02 02 02 00 BB E1 00 00 E9 [06:53:45]Write i2c OK [06:53:45]MH_I2C_Read... [06:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:45]Read from MH i2c: E2 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 03 00 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 03 00 B4 1B 00 90 00 43 [06:53:45]RAPDU: 90 00 [06:53:45]wFMCommunicate OK [06:53:45]wFMCommunicate request_size=4 [06:53:45]MH_SAM_APDU [06:53:45]CAPDU: 80 0D 03 02 [06:53:45]Write to MH i2c: E2 08 00 B5 1B 80 0D 03 02 00 00 00 00 4B [06:53:45]Write i2c OK [06:53:45]MH_I2C_Read... [06:53:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:53:45]Read from MH i2c: E2 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 0B 00 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 0B 00 B5 1B 00 D1 3D 9F EB 93 02 2A 16 90 00 B9 [06:53:45]RAPDU: D1 3D 9F EB 93 02 2A 16 90 00 [06:53:45]wFMCommunicate OK [06:53:45]SAM_PROTO_SignData done [06:53:45]FM_MakeSignedData done [06:53:45]CreateOFDProtocolMessage [06:53:45]wFMCommunicate request_size=4 [06:53:45]MH_SAM_APDU [06:53:45]CAPDU: 80 11 00 00 [06:53:45]Write to MH i2c: E2 08 00 B6 1B 80 11 00 00 00 00 00 00 4B [06:53:45]Write i2c OK [06:53:45]MH_I2C_Read... [06:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:45]Read from MH i2c: E2 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 17 00 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: E2 17 00 B6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9E [06:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:53:45]wFMCommunicate OK [06:53:45]CreateOFDProtocolMessage done [06:53:45]OFDSenderStorePacket 145598 [06:53:45]StoreOFDPacket docnum=145598 [06:53:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 0B 44 04 01 CB 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 32 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A4 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 27 00 00 00 00 07 04 06 00 64 77 01 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 7A E3 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BE 38 02 00 35 04 06 00 EC 15 B1 78 BB E1 D1 3D 9F EB 93 02 2A 16 [06:53:45]CheckFolder [06:53:45]dirname=/storage/ofd_packets [06:53:45]CheckFolder done [06:53:45]ProducePacketName [06:53:45]name=ofd_packets/00145598 [06:53:45]NVStorageSaveData ofd_packets/00145598 [06:53:45]File name is /storage/ofd_packets/00145598 [06:53:45]Write 298 bytes [06:53:45]NVStorageSaveData done [06:53:45]OFDSenderStorePacket done [06:53:45]KKMCreateOFDPacket done [06:53:45]NVStorageSaveData kkm_last_timestamp [06:53:45]File name is /storage/kkm_last_timestamp [06:53:45]Write 4 bytes [06:53:45]NVStorageSaveData done [06:53:45]ExternCall_PrintAddStr [06:53:45]wPrintStart [06:53:45]Write to MH i2c: 01 00 00 B7 1B D2 [06:53:45]Write i2c OK [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: 01 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: 01 07 00 [06:53:45]MH_I2C_Read... [06:53:45]Read from MH i2c: 01 07 00 B7 1B 00 00 00 00 00 FF 0F E7 [06:53:45]RasterBufferAndPrint [06:53:45]line Счет N : (1)160348 [06:53:45]line ИНН: 02508201610067 [06:53:45]line Контрольно-Кассовый Чек [06:53:45]line ПРОДАЖА [06:53:45]line ТРК (МРК, ГНК) : 21 [06:53:45]line Товар: 2710194210 [06:53:45]line ДТ-К-2 [06:53:45]line 12.620 * 76.20 [06:53:45]line = 961.64 [06:53:45]line НДС 12% НСП 1% [06:53:45]line > о реализуемом товаре [06:53:45]line ОКРУГЛЕНИЕ: -0.64 [06:53:45]line ИТОГО: 961.00 [06:53:45]line Внесено: 961.00 [06:53:45]line СДАЧА: 0.00 [06:53:45]line НСП 1% : 8.51 [06:53:45]line НДС 12% : 102.12 [06:53:45]line Наличными: 961.00 [06:53:45]line Безнал.: 0.00 [06:53:45]line Место: АЗС № 126 "Партнер Нефть" [06:53:45]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [06:53:45]line СНО: Общий режим [06:53:45]line Чек 21 27.10.2024 06:53 [06:53:45]line Смена: 545 ФФД: 1.0 [06:53:45]line ЗНМ: 0300000085 [06:53:45]line РНМ: 0000000000091683 [06:53:45]line Версия ККМ: 001 [06:53:45]line ФМ: 0000000000871745 [06:53:45]line ФД: 145598 [06:53:45]line ФПД: 259577915948001 [06:53:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T065346&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145598&fm=259577915948001&tin=02508201610067®Number=0000000000091683&sum=96100 [06:53:45]written 0, free lines is 4095 [06:53:45]OFD Sender: Processing packet 145598 [packets to send 205, broken 204] [06:53:45]ProducePacketName [06:53:45]name=ofd_packets/00145598 [06:53:45]OFD Sender: To server: pG, [06:53:45]CommunicateWithHost lk.salyk.kg:30040 [06:53:45]ConnectInit lk.salyk.kg [06:53:46]Connected sock=7 [06: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 31 37 34 35 0C 01 00 00 0B 44 04 01 CB 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 32 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A4 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 27 00 00 00 00 07 04 06 00 64 77 01 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 7A E3 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BE 38 02 00 35 04 06 00 EC 15 B1 78 BB E1 D1 3D 9F EB 93 02 2A 16 [06:53:46]Write to MH i2c: 01 00 00 E2 1B FD [06:53:46]Write i2c OK [06:53:46]MH_I2C_Read... [06:53:46]Read from MH i2c: 01 [06:53:46]MH_I2C_Read... [06:53:46]Read from MH i2c: 01 07 00 [06:53:46]MH_I2C_Read... [06:53:46]Read from MH i2c: 01 07 00 E2 1B 00 00 00 00 00 BA 0C CA [06:53:46]RasterBufferAndPrint [06:53:46]line [06:53:46]line [06:53:46]line [06:53:46]line [06:53:46]line [06:53:46]written 0, free lines is 3265 [06:53:46]MH_Cut [06:53:46]Write to MH i2c: D1 01 00 E9 1B 01 D6 [06:53:46]Write i2c OK [06:53:46]MH_I2C_Read... [06:53:46]Read from MH i2c: D1 [06:53:46]MH_I2C_Read... [06:53:46]Read from MH i2c: D1 01 00 [06:53:46]MH_I2C_Read... [06:53:46]Read from MH i2c: D1 01 00 E9 1B 00 D5 [06:53:46]Write to MH i2c: 01 00 00 EA 1B 05 [06:53:46]Write i2c OK [06:53:46]MH_I2C_Read... [06:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 39 B3 47 00 9C A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BE 38 02 00 F4 03 04 00 A9 88 1D 67 B6 04 01 00 00 BC 17 58 3C DF DF D6 86 [06:53:46]CommunicateWithHost err = 0 [06:53:46]CheckOFDResponse [06:53:46]1017 (14) - 77093643461234 [06:53:46]1041 (16) - 0000000000871745 [06:53:46]1040 (4) - 145598 [06:53:46]1012 (4) - 27.10.2024 00:26 [06:53:46]1206 (1) - 0 [06:53:46]OFD Sender: Remove packet 145598 [06:53:46]ProducePacketName [06:53:46]name=ofd_packets/00145598 [06:53:46]NVStorageDeleteData [06:53:46]OFD Sender: No OFD packet to send [06:53:47]*** Cut start [06:53:47]*** Partial cut [06:53:47]*** CUTSNS_PIN = 1 [06:53:47]*** CUTSNS_PIN = 0 [06:53:47]*** Brake cut motor [06:53:47]Read from MH i2c: 01 [06:53:47]MH_I2C_Read... [06:53:47]*** Stop cut motor [06:53:47]*** Cut end [06:53:47]Read from MH i2c: 01 07 00 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: 01 07 00 EA 1B 00 00 00 00 00 FF 0F 1A [06:53:47]process_action close_receipt done [06:53:47]requested_data is exist [06:53:47]produce_requested_data [06:53:47]requested_item fm.sn is exist - process it [06:53:47]wFMCommunicate request_size=4 [06:53:47]MH_SAM_APDU [06:53:47]CAPDU: 80 11 00 00 [06:53:47]Write to MH i2c: E2 08 00 EB 1B 80 11 00 00 00 00 00 00 80 [06:53:47]Write i2c OK [06:53:47]MH_I2C_Read... [06:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:47]Read from MH i2c: E2 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 17 00 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 17 00 EB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D3 [06:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:53:47]wFMCommunicate OK [06:53:47]requested_item fd.num is exist - process it [06:53:47]SAM_PROTO_GetFieldsCounters [06:53:47]wFMCommunicate request_size=4 [06:53:47]MH_SAM_APDU [06:53:47]CAPDU: 80 13 00 00 [06:53:47]Write to MH i2c: E2 08 00 EC 1B 80 13 00 00 00 00 00 00 83 [06:53:47]Write i2c OK [06:53:47]MH_I2C_Read... [06:53:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:47]Read from MH i2c: E2 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 62 00 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 62 00 EC 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BE 38 02 00 0E 04 04 00 21 02 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 00 [06:53:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BE 38 02 00 0E 04 04 00 21 02 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 [06:53:47]wFMCommunicate OK [06:53:47]SAM_PROTO_GetFieldsCounters done [06:53:47]requested_item shift.num is exist - process it [06:53:47]requested_item shift.opened is exist - process it [06:53:47]req_shift_opened [06:53:47]FM_GetShiftState [06:53:47]SAM_PROTO_GetShiftState [06:53:47]wFMCommunicate request_size=4 [06:53:47]MH_SAM_APDU [06:53:47]CAPDU: 80 13 01 00 [06:53:47]Write to MH i2c: E2 08 00 ED 1B 80 13 01 00 00 00 00 00 85 [06:53:47]Write i2c OK [06:53:47]MH_I2C_Read... [06:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:47]Read from MH i2c: E2 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 0E 00 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 0E 00 ED 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FD [06:53:47]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:53:47]wFMCommunicate OK [06:53:47]SAM_PROTO_GetShiftState done [06:53:47]FM_GetShiftState done [06:53:47]req_shift_opened done [06:53:47]requested_item shift.open_date is exist - process it [06:53:47]req_shift_open_date [06:53:47]req_shift_open_date done [06:53:47]produce_requested_data done [06:53:47]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145598,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [06:53:47]process_action_free close_receipt [06:53:47]json_value_free [06:53:47]json_value_free done [06:53:47]process_json_proto returns [06:53:47]Send response to host [06:53:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145598,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [06:53:47]free response buf [06:53:47]execute_script done [06:53:47]execute_script returns [06:53:47]free content buf [06:53:47]Sock 9.Close socket [06:53:47]Sock 9.Thread stoped [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54: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:41]accept exits with 10 [06:57:41]New connection [06:57:41]New thread 3067006308 created [06:57:41]Thread 3067149668 joined [06:57:41]Waiting for new connection... [06:57:41] Sock 10.Parse request [06:57:41]Sock 10.Check first char [06:57:41]Sock 10.First char is OK [06:57:41]request: POST /json_proto HTTP/1.0 [06:57:41]Method: POST [06:57:41]URL: /json_proto [06:57:41]Method is POST - this is cgi request [06:57:41]url: /json_proto [06:57:41]query_string will be loaded in cgi processing [06:57:41]execute_cgi json_proto POST (null) [06:57:41]execute_cgi path=json_proto method=POST [06:57:41]POST find Content-Length [06:57:41]Host: 172.17.40.195:8080 [06:57:41]Content-Length: 674 [06:57:41]Content-Type: application/json [06:57:41] [06:57:41]POST finish read [06:57:41]Found Content-Length = 674 [06:57:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:41]execute_script... [06:57: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)160349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:41]POST & json_proto [06:57:41]process_json_proto [06:57:41]json parsed OK: [06:57:41]protocol is kg_v1.0 [06:57:41]action value=close_receipt [06:57:41]process_action close_receipt [06:57:41]cmd_close_receipt [06:57:41]MH_GetDate [06:57:41]Write to MH i2c: F0 00 00 EE 1B F8 [06:57:41]Write i2c OK [06:57:41]MH_I2C_Read... [06:57:41]Read from MH i2c: F0 [06:57:41]MH_I2C_Read... [06:57:41]Read from MH i2c: F0 09 00 [06:57:41]MH_I2C_Read... [06:57:41]Read from MH i2c: F0 09 00 EE 1B 00 68 E4 1D 67 D5 8D 6C 64 03 [06:57:41]GetLastDocTimeStamp 1730012026 [06:57:41]current date 1730012264 [06:57:41]FM_GetShiftState [06:57:41]SAM_PROTO_GetShiftState [06:57:41]wFMCommunicate request_size=4 [06:57:41]MH_SAM_APDU [06:57:41]CAPDU: 80 13 01 00 [06:57:41]Write to MH i2c: E2 08 00 EF 1B 80 13 01 00 00 00 00 00 87 [06:57:41]Write i2c OK [06:57:41]MH_I2C_Read... [06:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:41]Read from MH i2c: E2 [06:57:41]MH_I2C_Read... [06:57:41]Read from MH i2c: E2 0E 00 [06:57:41]MH_I2C_Read... [06:57:41]Read from MH i2c: E2 0E 00 EF 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FF [06:57:41]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:57:41]wFMCommunicate OK [06:57:41]SAM_PROTO_GetShiftState done [06:57:41]FM_GetShiftState done [06:57:41]opened in 1729988959 [06:57:41]opened+sec_in_day 1730075359 [06:57:41]quantity*price = 50063 [06:57:41]sum+1 = 50064 [06:57:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 22 27.10.2024 06:57 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145599 ФПД: 192468250117796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T065744&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145599&fm=192468250117796&tin=02508201610067®Number=0000000000091683&sum=50000 [06:57:42]StoreToDocumentArchive [06:57:42]shift 545 fd 145599 [06:57:42]save to /storage/0545/doc_00145599 [06:57:42]save last doc name /storage/0545/doc_00145599 to /storage/kkm_last_doc_name [06:57:42]save OK [06:57:42]Clear old archive folders... [06:57:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:57:42]tlvbuf is 01AC7A20 [06:57:42]SAM_PROTO_ClearQueue [06:57:42]wFMCommunicate request_size=4 [06:57:42]MH_SAM_APDU [06:57:42]CAPDU: 80 09 00 00 [06:57:42]Write to MH i2c: E2 08 00 FC 1B 80 09 00 00 00 00 00 00 89 [06:57:42]Write i2c OK [06:57:42]MH_I2C_Read... [06:57:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:42]Read from MH i2c: E2 [06:57:42]MH_I2C_Read... [06:57:42]Read from MH i2c: E2 03 00 [06:57:42]MH_I2C_Read... [06:57:42]Read from MH i2c: E2 03 00 FC 1B 00 90 00 8B [06:57:42]RAPDU: 90 00 [06:57:42]wFMCommunicate OK [06:57:42]SAM_PROTO_ClearQueue done [06:57:42]KKMCreateOFDPacket [06:57:42]OFDProtocolAddRootSTLVToBuf [06:57:42]FM_MakeSignedData [06:57:42]FM_MakeSignedData [06:57:42]SAM_PROTO_SignData [06:57:42]wFMCommunicate request_size=4 [06:57:42]MH_SAM_APDU [06:57:42]CAPDU: 80 0D 01 02 [06:57:42]Write to MH i2c: E2 08 00 FD 1B 80 0D 01 02 00 00 00 00 91 [06:57:42]Write i2c OK [06:57:42]MH_I2C_Read... [06:57:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:42]Read from MH i2c: E2 [06:57:42]MH_I2C_Read... [06:57:42]Read from MH i2c: E2 03 00 [06:57:42]MH_I2C_Read... [06:57:42]Read from MH i2c: E2 03 00 FD 1B 00 90 00 8C [06:57:42]RAPDU: 90 00 [06:57:42]wFMCommunicate OK [06:57:42]wFMCommunicate request_size=255 [06:57:42]MH_SAM_APDU [06:57:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 68 E4 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BF 38 02 00 35 04 06 00 AF 0C 81 AD [06:57:42]Write to MH i2c: E2 02 01 FE 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 68 E4 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BF 38 02 00 35 04 06 00 AF 0C 81 AD 00 00 88 [06:57:43]Write i2c OK [06:57:43]MH_I2C_Read... [06:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:43]Read from MH i2c: E2 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: E2 03 00 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: E2 03 00 FE 1B 00 90 00 8D [06:57:43]RAPDU: 90 00 [06:57:43]wFMCommunicate OK [06:57:43]wFMCommunicate request_size=7 [06:57:43]MH_SAM_APDU [06:57:43]CAPDU: 80 0D 02 02 02 C6 A4 [06:57:43]Write to MH i2c: E2 0A 00 FF 1B 80 0D 02 02 02 00 C6 A4 00 00 02 [06:57:43]Write i2c OK [06:57:43]MH_I2C_Read... [06:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:43]Read from MH i2c: E2 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: E2 03 00 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: E2 03 00 FF 1B 00 90 00 8E [06:57:43]RAPDU: 90 00 [06:57:43]wFMCommunicate OK [06:57:43]wFMCommunicate request_size=4 [06:57:43]MH_SAM_APDU [06:57:43]CAPDU: 80 0D 03 02 [06:57:43]Write to MH i2c: E2 08 00 00 1C 80 0D 03 02 00 00 00 00 97 [06:57:43]Write i2c OK [06:57:43]MH_I2C_Read... [06:57:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:43]Read from MH i2c: E2 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: E2 0B 00 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: E2 0B 00 00 1C 00 70 50 AF AA 3B 8C E4 D6 90 00 32 [06:57:43]RAPDU: 70 50 AF AA 3B 8C E4 D6 90 00 [06:57:43]wFMCommunicate OK [06:57:43]SAM_PROTO_SignData done [06:57:43]FM_MakeSignedData done [06:57:43]CreateOFDProtocolMessage [06:57:43]wFMCommunicate request_size=4 [06:57:43]MH_SAM_APDU [06:57:43]CAPDU: 80 11 00 00 [06:57:43]Write to MH i2c: E2 08 00 01 1C 80 11 00 00 00 00 00 00 97 [06:57:43]Write i2c OK [06:57:43]MH_I2C_Read... [06:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:43]Read from MH i2c: E2 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: E2 17 00 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: E2 17 00 01 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EA [06:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:57:43]wFMCommunicate OK [06:57:43]CreateOFDProtocolMessage done [06:57:43]OFDSenderStorePacket 145599 [06:57:43]StoreOFDPacket docnum=145599 [06:57:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 3D 18 04 01 01 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 68 E4 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BF 38 02 00 35 04 06 00 AF 0C 81 AD C6 A4 70 50 AF AA 3B 8C E4 D6 [06:57:43]CheckFolder [06:57:43]dirname=/storage/ofd_packets [06:57:43]CheckFolder done [06:57:43]ProducePacketName [06:57:43]name=ofd_packets/00145599 [06:57:43]NVStorageSaveData ofd_packets/00145599 [06:57:43]File name is /storage/ofd_packets/00145599 [06:57:43]Write 298 bytes [06:57:43]NVStorageSaveData done [06:57:43]OFDSenderStorePacket done [06:57:43]KKMCreateOFDPacket done [06:57:43]NVStorageSaveData kkm_last_timestamp [06:57:43]File name is /storage/kkm_last_timestamp [06:57:43]Write 4 bytes [06:57:43]NVStorageSaveData done [06:57:43]ExternCall_PrintAddStr [06:57:43]wPrintStart [06:57:43]Write to MH i2c: 01 00 00 02 1C 1E [06:57:43]Write i2c OK [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: 01 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: 01 07 00 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: 01 07 00 02 1C 00 00 00 00 00 FF 0F 33 [06:57:43]RasterBufferAndPrint [06:57:43]line Счет N : (1)160349 [06:57:43]line ИНН: 02508201610067 [06:57:43]line Контрольно-Кассовый Чек [06:57:43]line ПРОДАЖА [06:57:43]line ТРК (МРК, ГНК) : 21 [06:57:43]line Товар: 2710194210 [06:57:43]line ДТ-К-2 [06:57:43]line 6.570 * 76.20 [06:57:43]line = 500.63 [06:57:43]line НДС 12% НСП 1% [06:57:43]line > о реализуемом товаре [06:57:43]line ОКРУГЛЕНИЕ: -0.63 [06:57:43]line ИТОГО: 500.00 [06:57:43]line Внесено: 500.00 [06:57:43]line СДАЧА: 0.00 [06:57:43]line НСП 1% : 4.43 [06:57:43]line НДС 12% : 53.16 [06:57:43]line Наличными: 500.00 [06:57:43]line Безнал.: 0.00 [06:57:43]line Место: АЗС № 126 "Партнер Нефть" [06:57:43]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [06:57:43]line СНО: Общий режим [06:57:43]line Чек 22 27.10.2024 06:57 [06:57:43]line Смена: 545 ФФД: 1.0 [06:57:43]line ЗНМ: 0300000085 [06:57:43]line РНМ: 0000000000091683 [06:57:43]line Версия ККМ: 001 [06:57:43]line ФМ: 0000000000871745 [06:57:43]line ФД: 145599 [06:57:43]line ФПД: 192468250117796 [06:57:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T065744&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145599&fm=192468250117796&tin=02508201610067®Number=0000000000091683&sum=50000 [06:57:43]OFD Sender: Processing packet 145599 [packets to send 205, broken 204] [06:57:43]ProducePacketName [06:57:43]name=ofd_packets/00145599 [06:57:43]OFD Sender: To server: pG, [06:57:43]CommunicateWithHost lk.salyk.kg:30040 [06:57:43]ConnectInit lk.salyk.kg [06:57:43]written 0, free lines is 4095 [06:57:43]Connected sock=9 [06:57:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 3D 18 04 01 01 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 68 E4 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BF 38 02 00 35 04 06 00 AF 0C 81 AD C6 A4 70 50 AF AA 3B 8C E4 D6 [06:57:44]Write to MH i2c: 01 00 00 2D 1C 49 [06:57:44]Write i2c OK [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: 01 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: 01 07 00 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: 01 07 00 2D 1C 00 00 00 00 00 BA 0C 16 [06:57:44]RasterBufferAndPrint [06:57:44]line [06:57:44]line [06:57:44]line [06:57:44]line [06:57:44]line [06:57:44]written 0, free lines is 3266 [06:57:44]MH_Cut [06:57:44]Write to MH i2c: D1 01 00 34 1C 01 22 [06:57:44]Write i2c OK [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: D1 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: D1 01 00 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: D1 01 00 34 1C 00 21 [06:57:44]Write to MH i2c: 01 00 00 35 1C 51 [06:57:44]Write i2c OK [06:57:44]MH_I2C_Read... [06:57:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 B8 49 47 00 9C 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BF 38 02 00 F4 03 04 00 97 89 1D 67 B6 04 01 00 00 AB 0B B8 9D 46 FD 11 1C [06:57:44]CommunicateWithHost err = 0 [06:57:44]CheckOFDResponse [06:57:44]1017 (14) - 77093643461234 [06:57:44]1041 (16) - 0000000000871745 [06:57:44]1040 (4) - 145599 [06:57:44]1012 (4) - 27.10.2024 00:30 [06:57:44]1206 (1) - 0 [06:57:44]OFD Sender: Remove packet 145599 [06:57:44]ProducePacketName [06:57:44]name=ofd_packets/00145599 [06:57:44]NVStorageDeleteData [06:57:44]OFD Sender: No OFD packet to send [06:57:45]*** Cut start [06:57:45]*** Partial cut [06:57:45]*** CUTSNS_PIN = 1 [06:57:45]*** CUTSNS_PIN = 0 [06:57:45]*** Brake cut motor [06:57:45]Read from MH i2c: 01 [06:57:45]MH_I2C_Read... [06:57:45]*** Stop cut motor [06:57:45]*** Cut end [06:57:45]Read from MH i2c: 01 07 00 [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: 01 07 00 35 1C 00 00 00 00 00 FF 0F 66 [06:57:45]process_action close_receipt done [06:57:45]requested_data is exist [06:57:45]produce_requested_data [06:57:45]requested_item fm.sn is exist - process it [06:57:45]wFMCommunicate request_size=4 [06:57:45]MH_SAM_APDU [06:57:45]CAPDU: 80 11 00 00 [06:57:45]Write to MH i2c: E2 08 00 36 1C 80 11 00 00 00 00 00 00 CC [06:57:45]Write i2c OK [06:57:45]MH_I2C_Read... [06:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:45]Read from MH i2c: E2 [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: E2 17 00 [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: E2 17 00 36 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1F [06:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [06:57:45]wFMCommunicate OK [06:57:45]requested_item fd.num is exist - process it [06:57:45]SAM_PROTO_GetFieldsCounters [06:57:45]wFMCommunicate request_size=4 [06:57:45]MH_SAM_APDU [06:57:45]CAPDU: 80 13 00 00 [06:57:45]Write to MH i2c: E2 08 00 37 1C 80 13 00 00 00 00 00 00 CF [06:57:45]Write i2c OK [06:57:45]MH_I2C_Read... [06:57:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:45]Read from MH i2c: E2 [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: E2 62 00 [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: E2 62 00 37 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BF 38 02 00 0E 04 04 00 21 02 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 50 [06:57:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BF 38 02 00 0E 04 04 00 21 02 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 [06:57:45]wFMCommunicate OK [06:57:45]SAM_PROTO_GetFieldsCounters done [06:57:45]requested_item shift.num is exist - process it [06:57:45]requested_item shift.opened is exist - process it [06:57:45]req_shift_opened [06:57:45]FM_GetShiftState [06:57:45]SAM_PROTO_GetShiftState [06:57:45]wFMCommunicate request_size=4 [06:57:45]MH_SAM_APDU [06:57:45]CAPDU: 80 13 01 00 [06:57:45]Write to MH i2c: E2 08 00 38 1C 80 13 01 00 00 00 00 00 D1 [06:57:45]Write i2c OK [06:57:45]MH_I2C_Read... [06:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:45]Read from MH i2c: E2 [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: E2 0E 00 [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: E2 0E 00 38 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 49 [06:57:45]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [06:57:45]wFMCommunicate OK [06:57:45]SAM_PROTO_GetShiftState done [06:57:45]FM_GetShiftState done [06:57:45]req_shift_opened done [06:57:45]requested_item shift.open_date is exist - process it [06:57:45]req_shift_open_date [06:57:45]req_shift_open_date done [06:57:45]produce_requested_data done [06:57:45]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145599,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [06:57:45]process_action_free close_receipt [06:57:45]json_value_free [06:57:45]json_value_free done [06:57:45]process_json_proto returns [06:57:45]Send response to host [06:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145599,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [06:57:45]free response buf [06:57:45]execute_script done [06:57:45]execute_script returns [06:57:45]free content buf [06:57:45]Sock 10.Close socket [06:57:45]Sock 10.Thread stoped [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]accept exits with 7 [08:01:10]New connection [08:01:10]New thread 3067149668 created [08:01:10]Thread 3067006308 joined [08:01:10]Waiting for new connection... [08:01:10] Sock 7.Parse request [08:01:10]Sock 7.Check first char [08:01:10]Sock 7.First char is OK [08:01:10]request: POST /json_proto HTTP/1.0 [08:01:10]Method: POST [08:01:10]URL: /json_proto [08:01:10]Method is POST - this is cgi request [08:01:10]url: /json_proto [08:01:10]query_string will be loaded in cgi processing [08:01:10]execute_cgi json_proto POST (null) [08:01:10]execute_cgi path=json_proto method=POST [08:01:10]POST find Content-Length [08:01:10]Host: 172.17.40.195:8080 [08:01:10]Content-Length: 682 [08:01:10]Content-Type: application/json [08:01:10] [08:01:10]POST finish read [08:01:10]Found Content-Length = 682 [08:01:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:10]execute_script... [08:01: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)160350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:10]POST & json_proto [08:01:10]process_json_proto [08:01:10]json parsed OK: [08:01:10]protocol is kg_v1.0 [08:01:10]action value=close_receipt [08:01:10]process_action close_receipt [08:01:10]cmd_close_receipt [08:01:10]MH_GetDate [08:01:10]Write to MH i2c: F0 00 00 39 1C 44 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: F0 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: F0 09 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: F0 09 00 39 1C 00 49 F3 1D 67 D5 8D 6C 64 3F [08:01:10]GetLastDocTimeStamp 1730012264 [08:01:10]current date 1730016073 [08:01:10]FM_GetShiftState [08:01:10]SAM_PROTO_GetShiftState [08:01:10]wFMCommunicate request_size=4 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 13 01 00 [08:01:10]Write to MH i2c: E2 08 00 3A 1C 80 13 01 00 00 00 00 00 D3 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 0E 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 0E 00 3A 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4B [08:01:10]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:01:10]wFMCommunicate OK [08:01:10]SAM_PROTO_GetShiftState done [08:01:10]FM_GetShiftState done [08:01:10]opened in 1729988959 [08:01:10]opened+sec_in_day 1730075359 [08:01:10]quantity*price = 130072 [08:01:10]sum+1 = 130074 [08:01:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 23 27.10.2024 08:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145600 ФПД: 100996478189300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080113&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145600&fm=100996478189300&tin=02508201610067®Number=0000000000091683&sum=130000 [08:01:11]StoreToDocumentArchive [08:01:11]shift 545 fd 145600 [08:01:11]save to /storage/0545/doc_00145600 [08:01:11]save last doc name /storage/0545/doc_00145600 to /storage/kkm_last_doc_name [08:01:11]save OK [08:01:11]Clear old archive folders... [08:01:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:11]tlvbuf is 01A7E6A0 [08:01:11]SAM_PROTO_ClearQueue [08:01:11]wFMCommunicate request_size=4 [08:01:11]MH_SAM_APDU [08:01:11]CAPDU: 80 09 00 00 [08:01:11]Write to MH i2c: E2 08 00 47 1C 80 09 00 00 00 00 00 00 D5 [08:01:11]Write i2c OK [08:01:11]MH_I2C_Read... [08:01:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:11]Read from MH i2c: E2 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 03 00 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 03 00 47 1C 00 90 00 D7 [08:01:11]RAPDU: 90 00 [08:01:11]wFMCommunicate OK [08:01:11]SAM_PROTO_ClearQueue done [08:01:11]KKMCreateOFDPacket [08:01:11]OFDProtocolAddRootSTLVToBuf [08:01:11]FM_MakeSignedData [08:01:11]FM_MakeSignedData [08:01:11]SAM_PROTO_SignData [08:01:11]wFMCommunicate request_size=4 [08:01:11]MH_SAM_APDU [08:01:11]CAPDU: 80 0D 01 02 [08:01:11]Write to MH i2c: E2 08 00 48 1C 80 0D 01 02 00 00 00 00 DD [08:01:11]Write i2c OK [08:01:11]MH_I2C_Read... [08:01:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:11]Read from MH i2c: E2 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 03 00 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 03 00 48 1C 00 90 00 D8 [08:01:11]RAPDU: 90 00 [08:01:11]wFMCommunicate OK [08:01:11]wFMCommunicate request_size=255 [08:01:11]MH_SAM_APDU [08:01: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 49 F3 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C0 38 02 00 35 04 06 00 5B [08:01:11]Write to MH i2c: E2 02 01 49 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 49 F3 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C0 38 02 00 35 04 06 00 5B 00 00 6B [08:01:11]Write i2c OK [08:01:11]MH_I2C_Read... [08:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:11]Read from MH i2c: E2 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 03 00 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 03 00 49 1C 00 90 00 D9 [08:01:11]RAPDU: 90 00 [08:01:11]wFMCommunicate OK [08:01:11]wFMCommunicate request_size=10 [08:01:11]MH_SAM_APDU [08:01:11]CAPDU: 80 0D 02 02 05 DB 13 34 BE F4 [08:01:11]Write to MH i2c: E2 0D 00 4A 1C 80 0D 02 02 05 00 DB 13 34 BE F4 00 00 BE [08:01:11]Write i2c OK [08:01:11]MH_I2C_Read... [08:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:11]Read from MH i2c: E2 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 03 00 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 03 00 4A 1C 00 90 00 DA [08:01:11]RAPDU: 90 00 [08:01:11]wFMCommunicate OK [08:01:11]wFMCommunicate request_size=4 [08:01:11]MH_SAM_APDU [08:01:11]CAPDU: 80 0D 03 02 [08:01:11]Write to MH i2c: E2 08 00 4B 1C 80 0D 03 02 00 00 00 00 E2 [08:01:11]Write i2c OK [08:01:11]MH_I2C_Read... [08:01:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:11]Read from MH i2c: E2 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 0B 00 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 0B 00 4B 1C 00 5C BA 9D 2C E3 B1 5B 9D 90 00 4E [08:01:11]RAPDU: 5C BA 9D 2C E3 B1 5B 9D 90 00 [08:01:11]wFMCommunicate OK [08:01:11]SAM_PROTO_SignData done [08:01:11]FM_MakeSignedData done [08:01:11]CreateOFDProtocolMessage [08:01:11]wFMCommunicate request_size=4 [08:01:11]MH_SAM_APDU [08:01:11]CAPDU: 80 11 00 00 [08:01:11]Write to MH i2c: E2 08 00 4C 1C 80 11 00 00 00 00 00 00 E2 [08:01:11]Write i2c OK [08:01:11]MH_I2C_Read... [08:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:12]Read from MH i2c: E2 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: E2 17 00 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: E2 17 00 4C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 35 [08:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:01:12]wFMCommunicate OK [08:01:12]CreateOFDProtocolMessage done [08:01:12]OFDSenderStorePacket 145600 [08:01:12]StoreOFDPacket docnum=145600 [08:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 AF EA 07 01 E6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 49 F3 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C0 38 02 00 35 04 06 00 5B DB 13 34 BE F4 5C BA 9D 2C E3 B1 5B 9D [08:01:12]CheckFolder [08:01:12]dirname=/storage/ofd_packets [08:01:12]CheckFolder done [08:01:12]ProducePacketName [08:01:12]name=ofd_packets/00145600 [08:01:12]NVStorageSaveData ofd_packets/00145600 [08:01:12]File name is /storage/ofd_packets/00145600 [08:01:12]Write 301 bytes [08:01:12]NVStorageSaveData done [08:01:12]OFDSenderStorePacket done [08:01:12]KKMCreateOFDPacket done [08:01:12]NVStorageSaveData kkm_last_timestamp [08:01:12]File name is /storage/kkm_last_timestamp [08:01:12]Write 4 bytes [08:01:12]NVStorageSaveData done [08:01:12]ExternCall_PrintAddStr [08:01:12]wPrintStart [08:01:12]Write to MH i2c: 01 00 00 4D 1C 69 [08:01:12]Write i2c OK [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: 01 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: 01 07 00 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: 01 07 00 4D 1C 00 00 00 00 00 FF 0F 7E [08:01:12]RasterBufferAndPrint [08:01:12]line Счет N : (1)160350 [08:01:12]line ИНН: 02508201610067 [08:01:12]line Контрольно-Кассовый Чек [08:01:12]line ПРОДАЖА [08:01:12]line ТРК (МРК, ГНК) : 63 [08:01:12]line Товар: 2710124500 [08:01:12]line Аи-95-К-3 [08:01:12]line 17.530 * 74.20 [08:01:12]line = 1300.73 [08:01:12]line НДС 12% НСП 1% [08:01:12]line > о реализуемом товаре [08:01:12]line ОКРУГЛЕНИЕ: -0.73 [08:01:12]line ИТОГО: 1300.00 [08:01:12]line Внесено: 1300.00 [08:01:12]line СДАЧА: 0.00 [08:01:12]line НСП 1% : 11.51 [08:01:12]line НДС 12% : 138.13 [08:01:12]line Наличными: 1300.00 [08:01:12]line Безнал.: 0.00 [08:01:12]line Место: АЗС № 126 "Партнер Нефть" [08:01:12]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [08:01:12]line СНО: Общий режим [08:01:12]line Чек 23 27.10.2024 08:01 [08:01:12]line Смена: 545 ФФД: 1.0 [08:01:12]line ЗНМ: 0300000085 [08:01:12]line РНМ: 0000000000091683 [08:01:12]line Версия ККМ: 001 [08:01:12]line ФМ: 0000000000871745 [08:01:12]line ФД: 145600 [08:01:12]line ФПД: 100996478189300 [08:01:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080113&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145600&fm=100996478189300&tin=02508201610067®Number=0000000000091683&sum=130000 [08:01:12]OFD Sender: Processing packet 145600 [packets to send 205, broken 204] [08:01:12]ProducePacketName [08:01:12]name=ofd_packets/00145600 [08:01:12]OFD Sender: To server: pG, [08:01:12]CommunicateWithHost lk.salyk.kg:30040 [08:01:12]ConnectInit lk.salyk.kg [08:01:12]written 0, free lines is 4095 [08:01:12]Connected sock=9 [08:01:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 AF EA 07 01 E6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 49 F3 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C0 38 02 00 35 04 06 00 5B DB 13 34 BE F4 5C BA 9D 2C E3 B1 5B 9D [08:01:12]Write to MH i2c: 01 00 00 78 1C 94 [08:01:12]Write i2c OK [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: 01 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: 01 07 00 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: 01 07 00 78 1C 00 00 00 00 00 A9 0C 50 [08:01:12]RasterBufferAndPrint [08:01:12]line [08:01:12]line [08:01:12]line [08:01:12]line [08:01:12]line [08:01:12]written 0, free lines is 3247 [08:01:12]MH_Cut [08:01:12]Write to MH i2c: D1 01 00 7F 1C 01 6D [08:01:12]Write i2c OK [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: D1 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: D1 01 00 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: D1 01 00 7F 1C 00 6C [08:01:12]Write to MH i2c: 01 00 00 80 1C 9C [08:01:12]Write i2c OK [08:01:12]MH_I2C_Read... [08:01:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D5 0C 47 00 5F B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C0 38 02 00 F4 03 04 00 77 98 1D 67 B6 04 01 00 00 11 7C 49 D9 A8 0C 94 8C [08:01:12]CommunicateWithHost err = 0 [08:01:12]CheckOFDResponse [08:01:12]1017 (14) - 77093643461234 [08:01:12]1041 (16) - 0000000000871745 [08:01:12]1040 (4) - 145600 [08:01:12]1012 (4) - 27.10.2024 01:33 [08:01:12]1206 (1) - 0 [08:01:12]OFD Sender: Remove packet 145600 [08:01:12]ProducePacketName [08:01:12]name=ofd_packets/00145600 [08:01:12]NVStorageDeleteData [08:01:13]OFD Sender: No OFD packet to send [08:01:13]*** Cut start [08:01:13]*** Partial cut [08:01:13]*** CUTSNS_PIN = 1 [08:01:13]*** CUTSNS_PIN = 0 [08:01:13]*** Brake cut motor [08:01:14]Read from MH i2c: 01 [08:01:14]MH_I2C_Read... [08:01:14]*** Stop cut motor [08:01:14]*** Cut end [08:01:14]Read from MH i2c: 01 07 00 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: 01 07 00 80 1C 00 00 00 00 00 FF 0F B1 [08:01:14]process_action close_receipt done [08:01:14]requested_data is exist [08:01:14]produce_requested_data [08:01:14]requested_item fm.sn is exist - process it [08:01:14]wFMCommunicate request_size=4 [08:01:14]MH_SAM_APDU [08:01:14]CAPDU: 80 11 00 00 [08:01:14]Write to MH i2c: E2 08 00 81 1C 80 11 00 00 00 00 00 00 17 [08:01:14]Write i2c OK [08:01:14]MH_I2C_Read... [08:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:14]Read from MH i2c: E2 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: E2 17 00 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: E2 17 00 81 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6A [08:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:01:14]wFMCommunicate OK [08:01:14]requested_item fd.num is exist - process it [08:01:14]SAM_PROTO_GetFieldsCounters [08:01:14]wFMCommunicate request_size=4 [08:01:14]MH_SAM_APDU [08:01:14]CAPDU: 80 13 00 00 [08:01:14]Write to MH i2c: E2 08 00 82 1C 80 13 00 00 00 00 00 00 1A [08:01:14]Write i2c OK [08:01:14]MH_I2C_Read... [08:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:14]Read from MH i2c: E2 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: E2 62 00 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: E2 62 00 82 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C0 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [08:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C0 38 02 00 0E 04 04 00 21 02 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 [08:01:14]wFMCommunicate OK [08:01:14]SAM_PROTO_GetFieldsCounters done [08:01:14]requested_item shift.num is exist - process it [08:01:14]requested_item shift.opened is exist - process it [08:01:14]req_shift_opened [08:01:14]FM_GetShiftState [08:01:14]SAM_PROTO_GetShiftState [08:01:14]wFMCommunicate request_size=4 [08:01:14]MH_SAM_APDU [08:01:14]CAPDU: 80 13 01 00 [08:01:14]Write to MH i2c: E2 08 00 83 1C 80 13 01 00 00 00 00 00 1C [08:01:14]Write i2c OK [08:01:14]MH_I2C_Read... [08:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:14]Read from MH i2c: E2 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: E2 0E 00 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: E2 0E 00 83 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 94 [08:01:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:01:14]wFMCommunicate OK [08:01:14]SAM_PROTO_GetShiftState done [08:01:14]FM_GetShiftState done [08:01:14]req_shift_opened done [08:01:14]requested_item shift.open_date is exist - process it [08:01:14]req_shift_open_date [08:01:14]req_shift_open_date done [08:01:14]produce_requested_data done [08:01:14]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145600,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [08:01:14]process_action_free close_receipt [08:01:14]json_value_free [08:01:14]json_value_free done [08:01:14]process_json_proto returns [08:01:14]Send response to host [08:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145600,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [08:01:14]free response buf [08:01:14]execute_script done [08:01:14]execute_script returns [08:01:14]free content buf [08:01:14]Sock 7.Close socket [08:01:14]Sock 7.Thread stoped [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:18]ConnectInit Can't connect to host [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:21]accept exits with 10 [08:14:21]New connection [08:14:21]New thread 3067006308 created [08:14:21]Thread 3067149668 joined [08:14:21]Waiting for new connection... [08:14:21] Sock 10.Parse request [08:14:21]Sock 10.Check first char [08:14:21]Sock 10.First char is OK [08:14:21]request: POST /json_proto HTTP/1.0 [08:14:21]Method: POST [08:14:21]URL: /json_proto [08:14:21]Method is POST - this is cgi request [08:14:21]url: /json_proto [08:14:21]query_string will be loaded in cgi processing [08:14:21]execute_cgi json_proto POST (null) [08:14:21]execute_cgi path=json_proto method=POST [08:14:21]POST find Content-Length [08:14:21]Host: 172.17.40.195:8080 [08:14:21]Content-Length: 677 [08:14:21]Content-Type: application/json [08:14:21] [08:14:21]POST finish read [08:14:21]Found Content-Length = 677 [08:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:21]execute_script... [08:14:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:21]POST & json_proto [08:14:21]process_json_proto [08:14:21]json parsed OK: [08:14:21]protocol is kg_v1.0 [08:14:21]action value=close_receipt [08:14:21]process_action close_receipt [08:14:21]cmd_close_receipt [08:14:21]MH_GetDate [08:14:21]Write to MH i2c: F0 00 00 84 1C 8F [08:14:21]Write i2c OK [08:14:21]MH_I2C_Read... [08:14:21]Read from MH i2c: F0 [08:14:21]MH_I2C_Read... [08:14:21]Read from MH i2c: F0 09 00 [08:14:21]MH_I2C_Read... [08:14:21]Read from MH i2c: F0 09 00 84 1C 00 61 F6 1D 67 D5 8D 6C 64 A5 [08:14:21]GetLastDocTimeStamp 1730016073 [08:14:21]current date 1730016865 [08:14:21]FM_GetShiftState [08:14:21]SAM_PROTO_GetShiftState [08:14:21]wFMCommunicate request_size=4 [08:14:21]MH_SAM_APDU [08:14:21]CAPDU: 80 13 01 00 [08:14:21]Write to MH i2c: E2 08 00 85 1C 80 13 01 00 00 00 00 00 1E [08:14:21]Write i2c OK [08:14:21]MH_I2C_Read... [08:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:21]Read from MH i2c: E2 [08:14:21]MH_I2C_Read... [08:14:21]Read from MH i2c: E2 0E 00 [08:14:21]MH_I2C_Read... [08:14:21]Read from MH i2c: E2 0E 00 85 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 96 [08:14:21]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:14:21]wFMCommunicate OK [08:14:21]SAM_PROTO_GetShiftState done [08:14:21]FM_GetShiftState done [08:14:21]opened in 1729988959 [08:14:21]opened+sec_in_day 1730075359 [08:14:21]quantity*price = 40006 [08:14:21]sum+1 = 40007 [08:14:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 24 27.10.2024 08:14 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145601 ФПД: 29313446262402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T081425&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145601&fm=29313446262402&tin=02508201610067®Number=0000000000091683&sum=40000 [08:14:23]StoreToDocumentArchive [08:14:23]shift 545 fd 145601 [08:14:23]save to /storage/0545/doc_00145601 [08:14:23]save last doc name /storage/0545/doc_00145601 to /storage/kkm_last_doc_name [08:14:23]save OK [08:14:23]Clear old archive folders... [08:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:23]tlvbuf is 01A87D00 [08:14:23]SAM_PROTO_ClearQueue [08:14:23]wFMCommunicate request_size=4 [08:14:23]MH_SAM_APDU [08:14:23]CAPDU: 80 09 00 00 [08:14:23]Write to MH i2c: E2 08 00 92 1C 80 09 00 00 00 00 00 00 20 [08:14:23]Write i2c OK [08:14:23]MH_I2C_Read... [08:14:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:23]Read from MH i2c: E2 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 03 00 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 03 00 92 1C 00 90 00 22 [08:14:23]RAPDU: 90 00 [08:14:23]wFMCommunicate OK [08:14:23]SAM_PROTO_ClearQueue done [08:14:23]KKMCreateOFDPacket [08:14:23]OFDProtocolAddRootSTLVToBuf [08:14:23]FM_MakeSignedData [08:14:23]FM_MakeSignedData [08:14:23]SAM_PROTO_SignData [08:14:23]wFMCommunicate request_size=4 [08:14:23]MH_SAM_APDU [08:14:23]CAPDU: 80 0D 01 02 [08:14:23]Write to MH i2c: E2 08 00 93 1C 80 0D 01 02 00 00 00 00 28 [08:14:23]Write i2c OK [08:14:23]MH_I2C_Read... [08:14:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:23]Read from MH i2c: E2 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 03 00 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 03 00 93 1C 00 90 00 23 [08:14:23]RAPDU: 90 00 [08:14:23]wFMCommunicate OK [08:14:23]wFMCommunicate request_size=255 [08:14:23]MH_SAM_APDU [08:14: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 61 F6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C1 38 02 00 35 04 06 00 1A [08:14:23]Write to MH i2c: E2 02 01 94 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 61 F6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C1 38 02 00 35 04 06 00 1A 00 00 B0 [08:14:23]Write i2c OK [08:14:23]MH_I2C_Read... [08:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:23]Read from MH i2c: E2 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 03 00 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 03 00 94 1C 00 90 00 24 [08:14:23]RAPDU: 90 00 [08:14:23]wFMCommunicate OK [08:14:23]wFMCommunicate request_size=10 [08:14:23]MH_SAM_APDU [08:14:23]CAPDU: 80 0D 02 02 05 A9 11 8D 36 82 [08:14:23]Write to MH i2c: E2 0D 00 95 1C 80 0D 02 02 05 00 A9 11 8D 36 82 00 00 34 [08:14:23]Write i2c OK [08:14:23]MH_I2C_Read... [08:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:23]Read from MH i2c: E2 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 03 00 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 03 00 95 1C 00 90 00 25 [08:14:23]RAPDU: 90 00 [08:14:23]wFMCommunicate OK [08:14:23]wFMCommunicate request_size=4 [08:14:23]MH_SAM_APDU [08:14:23]CAPDU: 80 0D 03 02 [08:14:23]Write to MH i2c: E2 08 00 96 1C 80 0D 03 02 00 00 00 00 2D [08:14:23]Write i2c OK [08:14:23]MH_I2C_Read... [08:14:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:23]Read from MH i2c: E2 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 0B 00 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 0B 00 96 1C 00 82 B9 70 E7 1B 26 66 D2 90 00 39 [08:14:23]RAPDU: 82 B9 70 E7 1B 26 66 D2 90 00 [08:14:23]wFMCommunicate OK [08:14:23]SAM_PROTO_SignData done [08:14:23]FM_MakeSignedData done [08:14:23]CreateOFDProtocolMessage [08:14:23]wFMCommunicate request_size=4 [08:14:23]MH_SAM_APDU [08:14:23]CAPDU: 80 11 00 00 [08:14:23]Write to MH i2c: E2 08 00 97 1C 80 11 00 00 00 00 00 00 2D [08:14:23]Write i2c OK [08:14:23]MH_I2C_Read... [08:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:23]Read from MH i2c: E2 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 17 00 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: E2 17 00 97 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 80 [08:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:14:23]wFMCommunicate OK [08:14:23]CreateOFDProtocolMessage done [08:14:23]OFDSenderStorePacket 145601 [08:14:23]StoreOFDPacket docnum=145601 [08:14:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CE DE 07 01 A5 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 61 F6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C1 38 02 00 35 04 06 00 1A A9 11 8D 36 82 82 B9 70 E7 1B 26 66 D2 [08:14:23]CheckFolder [08:14:23]dirname=/storage/ofd_packets [08:14:23]CheckFolder done [08:14:23]ProducePacketName [08:14:23]name=ofd_packets/00145601 [08:14:23]NVStorageSaveData ofd_packets/00145601 [08:14:23]File name is /storage/ofd_packets/00145601 [08:14:23]Write 301 bytes [08:14:23]NVStorageSaveData done [08:14:23]OFDSenderStorePacket done [08:14:23]KKMCreateOFDPacket done [08:14:23]NVStorageSaveData kkm_last_timestamp [08:14:23]File name is /storage/kkm_last_timestamp [08:14:23]Write 4 bytes [08:14:23]NVStorageSaveData done [08:14:23]ExternCall_PrintAddStr [08:14:23]wPrintStart [08:14:23]Write to MH i2c: 01 00 00 98 1C B4 [08:14:23]Write i2c OK [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: 01 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: 01 07 00 [08:14:23]MH_I2C_Read... [08:14:23]Read from MH i2c: 01 07 00 98 1C 00 00 00 00 00 FF 0F C9 [08:14:23]RasterBufferAndPrint [08:14:23]line Счет N : (1)160351 [08:14:23]line ИНН: 02508201610067 [08:14:23]line Контрольно-Кассовый Чек [08:14:23]line ПРОДАЖА [08:14:23]line ТРК (МРК, ГНК) : 62 [08:14:23]line Товар: 2710124130 [08:14:23]line Аи-92-К-2 [08:14:23]line 5.980 * 66.90 [08:14:23]line = 400.06 [08:14:23]line НДС 12% НСП 1% [08:14:23]line > о реализуемом товаре [08:14:23]line ОКРУГЛЕНИЕ: -0.06 [08:14:23]line ИТОГО: 400.00 [08:14:23]line Внесено: 400.00 [08:14:23]line СДАЧА: 0.00 [08:14:23]line НСП 1% : 3.54 [08:14:23]line НДС 12% : 42.48 [08:14:23]line Наличными: 400.00 [08:14:23]line Безнал.: 0.00 [08:14:23]line Место: АЗС № 126 "Партнер Нефть" [08:14:23]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [08:14:23]line СНО: Общий режим [08:14:23]line Чек 24 27.10.2024 08:14 [08:14:23]line Смена: 545 ФФД: 1.0 [08:14:23]line ЗНМ: 0300000085 [08:14:23]line РНМ: 0000000000091683 [08:14:23]line Версия ККМ: 001 [08:14:23]line ФМ: 0000000000871745 [08:14:23]line ФД: 145601 [08:14:23]line ФПД: 29313446262402 [08:14:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T081425&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145601&fm=29313446262402&tin=02508201610067®Number=0000000000091683&sum=40000 [08:14:23]written 0, free lines is 4095 [08:14:23]OFD Sender: Processing packet 145601 [packets to send 205, broken 204] [08:14:23]ProducePacketName [08:14:23]name=ofd_packets/00145601 [08:14:23]OFD Sender: To server: pG, [08:14:23]CommunicateWithHost lk.salyk.kg:30040 [08:14:23]ConnectInit lk.salyk.kg [08:14:24]Connected sock=9 [08:14:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CE DE 07 01 A5 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 61 F6 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C1 38 02 00 35 04 06 00 1A A9 11 8D 36 82 82 B9 70 E7 1B 26 66 D2 [08:14:24]Write to MH i2c: 01 00 00 C3 1C DF [08:14:24]Write i2c OK [08:14:24]MH_I2C_Read... [08:14:24]Read from MH i2c: 01 [08:14:24]MH_I2C_Read... [08:14:24]Read from MH i2c: 01 07 00 [08:14:24]MH_I2C_Read... [08:14:24]Read from MH i2c: 01 07 00 C3 1C 00 00 00 00 00 A8 0C 9A [08:14:24]RasterBufferAndPrint [08:14:24]line [08:14:24]line [08:14:24]line [08:14:24]line [08:14:24]line [08:14:24]written 0, free lines is 3245 [08:14:24]MH_Cut [08:14:24]Write to MH i2c: D1 01 00 CA 1C 01 B8 [08:14:24]Write i2c OK [08:14:24]MH_I2C_Read... [08:14:24]Read from MH i2c: D1 [08:14:24]MH_I2C_Read... [08:14:24]Read from MH i2c: D1 01 00 [08:14:24]MH_I2C_Read... [08:14:24]Read from MH i2c: D1 01 00 CA 1C 00 B7 [08:14:24]Write to MH i2c: 01 00 00 CB 1C E7 [08:14:24]Write i2c OK [08:14:24]MH_I2C_Read... [08:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 63 46 47 00 20 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C1 38 02 00 F4 03 04 00 8F 9B 1D 67 B6 04 01 00 00 CC 73 A0 C8 9B C2 C1 0D [08:14:24]CommunicateWithHost err = 0 [08:14:24]CheckOFDResponse [08:14:24]1017 (14) - 77093643461234 [08:14:24]1041 (16) - 0000000000871745 [08:14:24]1040 (4) - 145601 [08:14:24]1012 (4) - 27.10.2024 01:46 [08:14:24]1206 (1) - 0 [08:14:24]OFD Sender: Remove packet 145601 [08:14:24]ProducePacketName [08:14:24]name=ofd_packets/00145601 [08:14:24]NVStorageDeleteData [08:14:25]OFD Sender: No OFD packet to send [08:14:25]*** Cut start [08:14:25]*** Partial cut [08:14:25]*** CUTSNS_PIN = 1 [08:14:25]*** CUTSNS_PIN = 0 [08:14:25]*** Brake cut motor [08:14:25]Read from MH i2c: 01 [08:14:25]MH_I2C_Read... [08:14:25]*** Stop cut motor [08:14:25]*** Cut end [08:14:25]Read from MH i2c: 01 07 00 [08:14:25]MH_I2C_Read... [08:14:25]Read from MH i2c: 01 07 00 CB 1C 00 00 00 00 00 FF 0F FC [08:14:25]process_action close_receipt done [08:14:25]requested_data is exist [08:14:25]produce_requested_data [08:14:25]requested_item fm.sn is exist - process it [08:14:25]wFMCommunicate request_size=4 [08:14:25]MH_SAM_APDU [08:14:25]CAPDU: 80 11 00 00 [08:14:25]Write to MH i2c: E2 08 00 CC 1C 80 11 00 00 00 00 00 00 62 [08:14:25]Write i2c OK [08:14:25]MH_I2C_Read... [08:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:25]Read from MH i2c: E2 [08:14:25]MH_I2C_Read... [08:14:25]Read from MH i2c: E2 17 00 [08:14:25]MH_I2C_Read... [08:14:25]Read from MH i2c: E2 17 00 CC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B5 [08:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:14:25]wFMCommunicate OK [08:14:25]requested_item fd.num is exist - process it [08:14:25]SAM_PROTO_GetFieldsCounters [08:14:25]wFMCommunicate request_size=4 [08:14:25]MH_SAM_APDU [08:14:25]CAPDU: 80 13 00 00 [08:14:25]Write to MH i2c: E2 08 00 CD 1C 80 13 00 00 00 00 00 00 65 [08:14:25]Write i2c OK [08:14:25]MH_I2C_Read... [08:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:26]Read from MH i2c: E2 [08:14:26]MH_I2C_Read... [08:14:26]Read from MH i2c: E2 62 00 [08:14:26]MH_I2C_Read... [08:14:26]Read from MH i2c: E2 62 00 CD 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C1 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [08:14:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C1 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:14:26]wFMCommunicate OK [08:14:26]SAM_PROTO_GetFieldsCounters done [08:14:26]requested_item shift.num is exist - process it [08:14:26]requested_item shift.opened is exist - process it [08:14:26]req_shift_opened [08:14:26]FM_GetShiftState [08:14:26]SAM_PROTO_GetShiftState [08:14:26]wFMCommunicate request_size=4 [08:14:26]MH_SAM_APDU [08:14:26]CAPDU: 80 13 01 00 [08:14:26]Write to MH i2c: E2 08 00 CE 1C 80 13 01 00 00 00 00 00 67 [08:14:26]Write i2c OK [08:14:26]MH_I2C_Read... [08:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:26]Read from MH i2c: E2 [08:14:26]MH_I2C_Read... [08:14:26]Read from MH i2c: E2 0E 00 [08:14:26]MH_I2C_Read... [08:14:26]Read from MH i2c: E2 0E 00 CE 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 DF [08:14:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:14:26]wFMCommunicate OK [08:14:26]SAM_PROTO_GetShiftState done [08:14:26]FM_GetShiftState done [08:14:26]req_shift_opened done [08:14:26]requested_item shift.open_date is exist - process it [08:14:26]req_shift_open_date [08:14:26]req_shift_open_date done [08:14:26]produce_requested_data done [08:14:26]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145601,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [08:14:26]process_action_free close_receipt [08:14:26]json_value_free [08:14:26]json_value_free done [08:14:26]process_json_proto returns [08:14:26]Send response to host [08:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145601,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [08:14:26]free response buf [08:14:26]execute_script done [08:14:26]execute_script returns [08:14:26]free content buf [08:14:26]Sock 10.Close socket [08:14:26]Sock 10.Thread stoped [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:26]accept exits with 7 [08:19:26]New connection [08:19:26]New thread 3067149668 created [08:19:26]Thread 3067006308 joined [08:19:26]Waiting for new connection... [08:19:26] Sock 7.Parse request [08:19:26]Sock 7.Check first char [08:19:26]Sock 7.First char is OK [08:19:26]request: POST /json_proto HTTP/1.0 [08:19:26]Method: POST [08:19:26]URL: /json_proto [08:19:26]Method is POST - this is cgi request [08:19:26]url: /json_proto [08:19:26]query_string will be loaded in cgi processing [08:19:26]execute_cgi json_proto POST (null) [08:19:26]execute_cgi path=json_proto method=POST [08:19:26]POST find Content-Length [08:19:26]Host: 172.17.40.195:8080 [08:19:26]Content-Length: 679 [08:19:26]Content-Type: application/json [08:19:26] [08:19:26]POST finish read [08:19:26]Found Content-Length = 679 [08:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:26]execute_script... [08:19: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)160352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:26]POST & json_proto [08:19:26]process_json_proto [08:19:26]json parsed OK: [08:19:26]protocol is kg_v1.0 [08:19:26]action value=close_receipt [08:19:26]process_action close_receipt [08:19:26]cmd_close_receipt [08:19:26]MH_GetDate [08:19:26]Write to MH i2c: F0 00 00 CF 1C DA [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: F0 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: F0 09 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: F0 09 00 CF 1C 00 92 F7 1D 67 D5 8D 6C 64 22 [08:19:26]GetLastDocTimeStamp 1730016865 [08:19:26]current date 1730017170 [08:19:26]FM_GetShiftState [08:19:26]SAM_PROTO_GetShiftState [08:19:26]wFMCommunicate request_size=4 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 13 01 00 [08:19:26]Write to MH i2c: E2 08 00 D0 1C 80 13 01 00 00 00 00 00 69 [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 0E 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 0E 00 D0 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E1 [08:19:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:19:26]wFMCommunicate OK [08:19:26]SAM_PROTO_GetShiftState done [08:19:26]FM_GetShiftState done [08:19:26]opened in 1729988959 [08:19:26]opened+sec_in_day 1730075359 [08:19:26]quantity*price = 200025 [08:19:26]sum+1 = 200026 [08:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 25 27.10.2024 08:19 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145602 ФПД: 131898215089770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T081930&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145602&fm=131898215089770&tin=02508201610067®Number=0000000000091683&sum=200000 [08:19:28]StoreToDocumentArchive [08:19:28]shift 545 fd 145602 [08:19:28]save to /storage/0545/doc_00145602 [08:19:28]save last doc name /storage/0545/doc_00145602 to /storage/kkm_last_doc_name [08:19:28]save OK [08:19:28]Clear old archive folders... [08:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:19:28]tlvbuf is 01A2CB10 [08:19:28]SAM_PROTO_ClearQueue [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 09 00 00 [08:19:28]Write to MH i2c: E2 08 00 DD 1C 80 09 00 00 00 00 00 00 6B [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 DD 1C 00 90 00 6D [08:19:28]RAPDU: 90 00 [08:19:28]wFMCommunicate OK [08:19:28]SAM_PROTO_ClearQueue done [08:19:28]KKMCreateOFDPacket [08:19:28]OFDProtocolAddRootSTLVToBuf [08:19:28]FM_MakeSignedData [08:19:28]FM_MakeSignedData [08:19:28]SAM_PROTO_SignData [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 0D 01 02 [08:19:28]Write to MH i2c: E2 08 00 DE 1C 80 0D 01 02 00 00 00 00 73 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 DE 1C 00 90 00 6E [08:19:28]RAPDU: 90 00 [08:19:28]wFMCommunicate OK [08:19:28]wFMCommunicate request_size=255 [08:19:28]MH_SAM_APDU [08:19: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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 92 F7 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C2 38 02 00 35 04 06 00 77 F5 F2 41 [08:19:28]Write to MH i2c: E2 02 01 DF 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 92 F7 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C2 38 02 00 35 04 06 00 77 F5 F2 41 00 00 C9 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 DF 1C 00 90 00 6F [08:19:28]RAPDU: 90 00 [08:19:28]wFMCommunicate OK [08:19:28]wFMCommunicate request_size=7 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 0D 02 02 02 C6 6A [08:19:28]Write to MH i2c: E2 0A 00 E0 1C 80 0D 02 02 02 00 C6 6A 00 00 AA [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 E0 1C 00 90 00 70 [08:19:28]RAPDU: 90 00 [08:19:28]wFMCommunicate OK [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 0D 03 02 [08:19:28]Write to MH i2c: E2 08 00 E1 1C 80 0D 03 02 00 00 00 00 78 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 0B 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 0B 00 E1 1C 00 B5 D5 96 D9 FE 27 B7 BF 90 00 0D [08:19:28]RAPDU: B5 D5 96 D9 FE 27 B7 BF 90 00 [08:19:28]wFMCommunicate OK [08:19:28]SAM_PROTO_SignData done [08:19:28]FM_MakeSignedData done [08:19:28]CreateOFDProtocolMessage [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 11 00 00 [08:19:28]Write to MH i2c: E2 08 00 E2 1C 80 11 00 00 00 00 00 00 78 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 17 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 17 00 E2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 CB [08:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:19:28]wFMCommunicate OK [08:19:28]CreateOFDProtocolMessage done [08:19:28]OFDSenderStorePacket 145602 [08:19:28]StoreOFDPacket docnum=145602 [08:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 95 9D 04 01 6A AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 92 F7 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C2 38 02 00 35 04 06 00 77 F5 F2 41 C6 6A B5 D5 96 D9 FE 27 B7 BF [08:19:28]CheckFolder [08:19:28]dirname=/storage/ofd_packets [08:19:28]CheckFolder done [08:19:28]ProducePacketName [08:19:28]name=ofd_packets/00145602 [08:19:28]NVStorageSaveData ofd_packets/00145602 [08:19:28]File name is /storage/ofd_packets/00145602 [08:19:28]Write 298 bytes [08:19:28]NVStorageSaveData done [08:19:28]OFDSenderStorePacket done [08:19:28]KKMCreateOFDPacket done [08:19:28]NVStorageSaveData kkm_last_timestamp [08:19:28]File name is /storage/kkm_last_timestamp [08:19:28]Write 4 bytes [08:19:28]NVStorageSaveData done [08:19:28]ExternCall_PrintAddStr [08:19:28]wPrintStart [08:19:28]Write to MH i2c: 01 00 00 E3 1C FF [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: 01 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: 01 07 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: 01 07 00 E3 1C 00 00 00 00 00 FF 0F 14 [08:19:28]RasterBufferAndPrint [08:19:28]line Счет N : (1)160352 [08:19:28]line ИНН: 02508201610067 [08:19:28]line Контрольно-Кассовый Чек [08:19:28]line ПРОДАЖА [08:19:28]line ТРК (МРК, ГНК) : 11 [08:19:28]line Товар: 2710194210 [08:19:28]line ДТ-К-2 [08:19:28]line 26.250 * 76.20 [08:19:28]line = 2000.25 [08:19:28]line НДС 12% НСП 1% [08:19:28]line > о реализуемом товаре [08:19:28]line ОКРУГЛЕНИЕ: -0.25 [08:19:28]line ИТОГО: 2000.00 [08:19:28]line Внесено: 2000.00 [08:19:28]line СДАЧА: 0.00 [08:19:28]line НСП 1% : 17.70 [08:19:28]line НДС 12% : 212.42 [08:19:28]line Наличными: 2000.00 [08:19:28]line Безнал.: 0.00 [08:19:28]line Место: АЗС № 126 "Партнер Нефть" [08:19:28]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [08:19:28]line СНО: Общий режим [08:19:28]line Чек 25 27.10.2024 08:19 [08:19:28]line Смена: 545 ФФД: 1.0 [08:19:28]line ЗНМ: 0300000085 [08:19:28]line РНМ: 0000000000091683 [08:19:28]line Версия ККМ: 001 [08:19:28]line ФМ: 0000000000871745 [08:19:28]line ФД: 145602 [08:19:28]line ФПД: 131898215089770 [08:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T081930&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145602&fm=131898215089770&tin=02508201610067®Number=0000000000091683&sum=200000 [08:19:28]OFD Sender: Processing packet 145602 [packets to send 205, broken 204] [08:19:28]ProducePacketName [08:19:28]name=ofd_packets/00145602 [08:19:28]OFD Sender: To server: pG, [08:19:28]CommunicateWithHost lk.salyk.kg:30040 [08:19:28]ConnectInit lk.salyk.kg [08:19:28]written 0, free lines is 4095 [08:19:29]Connected sock=10 [08:19:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 95 9D 04 01 6A AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 92 F7 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C2 38 02 00 35 04 06 00 77 F5 F2 41 C6 6A B5 D5 96 D9 FE 27 B7 BF [08:19:29]Write to MH i2c: 01 00 00 0E 1D 2B [08:19:29]Write i2c OK [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: 01 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: 01 07 00 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: 01 07 00 0E 1D 00 00 00 00 00 BF 0C FD [08:19:29]RasterBufferAndPrint [08:19:29]line [08:19:29]line [08:19:29]line [08:19:29]line [08:19:29]line [08:19:29]written 0, free lines is 3271 [08:19:29]MH_Cut [08:19:29]Write to MH i2c: D1 01 00 15 1D 01 04 [08:19:29]Write i2c OK [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: D1 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: D1 01 00 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: D1 01 00 15 1D 00 03 [08:19:29]Write to MH i2c: 01 00 00 16 1D 33 [08:19:29]Write i2c OK [08:19:29]MH_I2C_Read... [08:19:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 7C 84 47 00 90 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C2 38 02 00 F4 03 04 00 C0 9C 1D 67 B6 04 01 00 00 B3 FC CE 19 4C 99 1F 6D [08:19:29]CommunicateWithHost err = 0 [08:19:29]CheckOFDResponse [08:19:29]1017 (14) - 77093643461234 [08:19:29]1041 (16) - 0000000000871745 [08:19:29]1040 (4) - 145602 [08:19:29]1012 (4) - 27.10.2024 01:52 [08:19:29]1206 (1) - 0 [08:19:29]OFD Sender: Remove packet 145602 [08:19:29]ProducePacketName [08:19:29]name=ofd_packets/00145602 [08:19:29]NVStorageDeleteData [08:19:29]OFD Sender: No OFD packet to send [08:19:30]*** Cut start [08:19:30]*** Partial cut [08:19:30]*** CUTSNS_PIN = 1 [08:19:30]*** CUTSNS_PIN = 0 [08:19:30]*** Brake cut motor [08:19:30]Read from MH i2c: 01 [08:19:30]MH_I2C_Read... [08:19:30]*** Stop cut motor [08:19:30]*** Cut end [08:19:30]Read from MH i2c: 01 07 00 [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: 01 07 00 16 1D 00 00 00 00 00 FF 0F 48 [08:19:30]process_action close_receipt done [08:19:30]requested_data is exist [08:19:30]produce_requested_data [08:19:30]requested_item fm.sn is exist - process it [08:19:30]wFMCommunicate request_size=4 [08:19:30]MH_SAM_APDU [08:19:30]CAPDU: 80 11 00 00 [08:19:30]Write to MH i2c: E2 08 00 17 1D 80 11 00 00 00 00 00 00 AE [08:19:30]Write i2c OK [08:19:30]MH_I2C_Read... [08:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:30]Read from MH i2c: E2 [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: E2 17 00 [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: E2 17 00 17 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 01 [08:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:19:30]wFMCommunicate OK [08:19:30]requested_item fd.num is exist - process it [08:19:30]SAM_PROTO_GetFieldsCounters [08:19:30]wFMCommunicate request_size=4 [08:19:30]MH_SAM_APDU [08:19:30]CAPDU: 80 13 00 00 [08:19:30]Write to MH i2c: E2 08 00 18 1D 80 13 00 00 00 00 00 00 B1 [08:19:30]Write i2c OK [08:19:30]MH_I2C_Read... [08:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:30]Read from MH i2c: E2 [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: E2 62 00 [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: E2 62 00 18 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C2 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [08:19:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C2 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:30]wFMCommunicate OK [08:19:30]SAM_PROTO_GetFieldsCounters done [08:19:30]requested_item shift.num is exist - process it [08:19:30]requested_item shift.opened is exist - process it [08:19:30]req_shift_opened [08:19:30]FM_GetShiftState [08:19:30]SAM_PROTO_GetShiftState [08:19:30]wFMCommunicate request_size=4 [08:19:30]MH_SAM_APDU [08:19:30]CAPDU: 80 13 01 00 [08:19:30]Write to MH i2c: E2 08 00 19 1D 80 13 01 00 00 00 00 00 B3 [08:19:30]Write i2c OK [08:19:30]MH_I2C_Read... [08:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:30]Read from MH i2c: E2 [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: E2 0E 00 [08:19:30]MH_I2C_Read... [08:19:30]Read from MH i2c: E2 0E 00 19 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 2B [08:19:30]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:19:30]wFMCommunicate OK [08:19:30]SAM_PROTO_GetShiftState done [08:19:30]FM_GetShiftState done [08:19:30]req_shift_opened done [08:19:31]requested_item shift.open_date is exist - process it [08:19:31]req_shift_open_date [08:19:31]req_shift_open_date done [08:19:31]produce_requested_data done [08:19:31]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145602,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [08:19:31]process_action_free close_receipt [08:19:31]json_value_free [08:19:31]json_value_free done [08:19:31]process_json_proto returns [08:19:31]Send response to host [08:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145602,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [08:19:31]free response buf [08:19:31]execute_script done [08:19:31]execute_script returns [08:19:31]free content buf [08:19:31]Sock 7.Close socket [08:19:31]Sock 7.Thread stoped [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:54]accept exits with 9 [08:22:54]New connection [08:22:54]New thread 3067006308 created [08:22:54]Thread 3067149668 joined [08:22:54]Waiting for new connection... [08:22:54] Sock 9.Parse request [08:22:54]Sock 9.Check first char [08:22:54]Sock 9.First char is OK [08:22:54]request: POST /json_proto HTTP/1.0 [08:22:54]Method: POST [08:22:54]URL: /json_proto [08:22:54]Method is POST - this is cgi request [08:22:54]url: /json_proto [08:22:54]query_string will be loaded in cgi processing [08:22:54]execute_cgi json_proto POST (null) [08:22:54]execute_cgi path=json_proto method=POST [08:22:54]POST find Content-Length [08:22:54]Host: 172.17.40.195:8080 [08:22:54]Content-Length: 679 [08:22:54]Content-Type: application/json [08:22:54] [08:22:54]POST finish read [08:22:54]Found Content-Length = 679 [08:22:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:54]execute_script... [08:22: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)160353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:54]POST & json_proto [08:22:54]process_json_proto [08:22:54]json parsed OK: [08:22:54]protocol is kg_v1.0 [08:22:54]action value=close_receipt [08:22:54]process_action close_receipt [08:22:54]cmd_close_receipt [08:22:54]MH_GetDate [08:22:54]Write to MH i2c: F0 00 00 1A 1D 26 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: F0 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: F0 09 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: F0 09 00 1A 1D 00 62 F8 1D 67 D5 8D 6C 64 3F [08:22:54]GetLastDocTimeStamp 1730017170 [08:22:54]current date 1730017378 [08:22:54]FM_GetShiftState [08:22:54]SAM_PROTO_GetShiftState [08:22:54]wFMCommunicate request_size=4 [08:22:54]MH_SAM_APDU [08:22:54]CAPDU: 80 13 01 00 [08:22:54]Write to MH i2c: E2 08 00 1B 1D 80 13 01 00 00 00 00 00 B5 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:54]Read from MH i2c: E2 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 0E 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 0E 00 1B 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 2D [08:22:54]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:22:54]wFMCommunicate OK [08:22:54]SAM_PROTO_GetShiftState done [08:22:54]FM_GetShiftState done [08:22:54]opened in 1729988959 [08:22:54]opened+sec_in_day 1730075359 [08:22:54]quantity*price = 200025 [08:22:54]sum+1 = 200026 [08:22:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 26 27.10.2024 08:22 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145603 ФПД: 213694421636224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082258&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145603&fm=213694421636224&tin=02508201610067®Number=0000000000091683&sum=200000 [08:22:55]StoreToDocumentArchive [08:22:55]shift 545 fd 145603 [08:22:55]save to /storage/0545/doc_00145603 [08:22:55]save last doc name /storage/0545/doc_00145603 to /storage/kkm_last_doc_name [08:22:55]save OK [08:22:55]Clear old archive folders... [08:22:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:22:55]tlvbuf is 01A2D3F0 [08:22:55]SAM_PROTO_ClearQueue [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 09 00 00 [08:22:55]Write to MH i2c: E2 08 00 28 1D 80 09 00 00 00 00 00 00 B7 [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 03 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 03 00 28 1D 00 90 00 B9 [08:22:55]RAPDU: 90 00 [08:22:55]wFMCommunicate OK [08:22:55]SAM_PROTO_ClearQueue done [08:22:55]KKMCreateOFDPacket [08:22:55]OFDProtocolAddRootSTLVToBuf [08:22:55]FM_MakeSignedData [08:22:55]FM_MakeSignedData [08:22:55]SAM_PROTO_SignData [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 0D 01 02 [08:22:55]Write to MH i2c: E2 08 00 29 1D 80 0D 01 02 00 00 00 00 BF [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:56]Read from MH i2c: E2 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 03 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 03 00 29 1D 00 90 00 BA [08:22:56]RAPDU: 90 00 [08:22:56]wFMCommunicate OK [08:22:56]wFMCommunicate request_size=255 [08:22:56]MH_SAM_APDU [08:22:56]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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 62 F8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C3 38 02 00 35 04 06 00 C2 5A 9C 17 [08:22:56]Write to MH i2c: E2 02 01 2A 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 62 F8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C3 38 02 00 35 04 06 00 C2 5A 9C 17 00 00 18 [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:56]Read from MH i2c: E2 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 03 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 03 00 2A 1D 00 90 00 BB [08:22:56]RAPDU: 90 00 [08:22:56]wFMCommunicate OK [08:22:56]wFMCommunicate request_size=7 [08:22:56]MH_SAM_APDU [08:22:56]CAPDU: 80 0D 02 02 02 94 80 [08:22:56]Write to MH i2c: E2 0A 00 2B 1D 80 0D 02 02 02 00 94 80 00 00 DA [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:56]Read from MH i2c: E2 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 03 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 03 00 2B 1D 00 90 00 BC [08:22:56]RAPDU: 90 00 [08:22:56]wFMCommunicate OK [08:22:56]wFMCommunicate request_size=4 [08:22:56]MH_SAM_APDU [08:22:56]CAPDU: 80 0D 03 02 [08:22:56]Write to MH i2c: E2 08 00 2C 1D 80 0D 03 02 00 00 00 00 C4 [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:56]Read from MH i2c: E2 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 0B 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 0B 00 2C 1D 00 98 3B D3 E9 5A 72 6A 0E 90 00 98 [08:22:56]RAPDU: 98 3B D3 E9 5A 72 6A 0E 90 00 [08:22:56]wFMCommunicate OK [08:22:56]SAM_PROTO_SignData done [08:22:56]FM_MakeSignedData done [08:22:56]CreateOFDProtocolMessage [08:22:56]wFMCommunicate request_size=4 [08:22:56]MH_SAM_APDU [08:22:56]CAPDU: 80 11 00 00 [08:22:56]Write to MH i2c: E2 08 00 2D 1D 80 11 00 00 00 00 00 00 C4 [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:56]Read from MH i2c: E2 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 17 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 17 00 2D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 17 [08:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:22:56]wFMCommunicate OK [08:22:56]CreateOFDProtocolMessage done [08:22:56]OFDSenderStorePacket 145603 [08:22:56]StoreOFDPacket docnum=145603 [08:22:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 BD DF 04 01 4D FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 62 F8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C3 38 02 00 35 04 06 00 C2 5A 9C 17 94 80 98 3B D3 E9 5A 72 6A 0E [08:22:56]CheckFolder [08:22:56]dirname=/storage/ofd_packets [08:22:56]CheckFolder done [08:22:56]ProducePacketName [08:22:56]name=ofd_packets/00145603 [08:22:56]NVStorageSaveData ofd_packets/00145603 [08:22:56]File name is /storage/ofd_packets/00145603 [08:22:56]Write 298 bytes [08:22:56]NVStorageSaveData done [08:22:56]OFDSenderStorePacket done [08:22:56]KKMCreateOFDPacket done [08:22:56]NVStorageSaveData kkm_last_timestamp [08:22:56]File name is /storage/kkm_last_timestamp [08:22:56]Write 4 bytes [08:22:56]NVStorageSaveData done [08:22:56]ExternCall_PrintAddStr [08:22:56]wPrintStart [08:22:56]Write to MH i2c: 01 00 00 2E 1D 4B [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: 01 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: 01 07 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: 01 07 00 2E 1D 00 00 00 00 00 FF 0F 60 [08:22:56]RasterBufferAndPrint [08:22:56]line Счет N : (1)160353 [08:22:56]line ИНН: 02508201610067 [08:22:56]line Контрольно-Кассовый Чек [08:22:56]line ПРОДАЖА [08:22:56]line ТРК (МРК, ГНК) : 21 [08:22:56]line Товар: 2710194210 [08:22:56]line ДТ-К-2 [08:22:56]line 26.250 * 76.20 [08:22:56]line = 2000.25 [08:22:56]line НДС 12% НСП 1% [08:22:56]line > о реализуемом товаре [08:22:56]line ОКРУГЛЕНИЕ: -0.25 [08:22:56]line ИТОГО: 2000.00 [08:22:56]line Внесено: 2000.00 [08:22:56]line СДАЧА: 0.00 [08:22:56]line НСП 1% : 17.70 [08:22:56]line НДС 12% : 212.42 [08:22:56]line Наличными: 2000.00 [08:22:56]line Безнал.: 0.00 [08:22:56]line Место: АЗС № 126 "Партнер Нефть" [08:22:56]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [08:22:56]line СНО: Общий режим [08:22:56]line Чек 26 27.10.2024 08:22 [08:22:56]line Смена: 545 ФФД: 1.0 [08:22:56]line ЗНМ: 0300000085 [08:22:56]line РНМ: 0000000000091683 [08:22:56]line Версия ККМ: 001 [08:22:56]line ФМ: 0000000000871745 [08:22:56]line ФД: 145603 [08:22:56]line ФПД: 213694421636224 [08:22:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082258&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145603&fm=213694421636224&tin=02508201610067®Number=0000000000091683&sum=200000 [08:22:56]OFD Sender: Processing packet 145603 [packets to send 205, broken 204] [08:22:56]ProducePacketName [08:22:56]name=ofd_packets/00145603 [08:22:56]OFD Sender: To server: pG, [08:22:56]CommunicateWithHost lk.salyk.kg:30040 [08:22:56]ConnectInit lk.salyk.kg [08:22:56]written 0, free lines is 4095 [08:22:56]Connected sock=10 [08:22:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 BD DF 04 01 4D FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 62 F8 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C3 38 02 00 35 04 06 00 C2 5A 9C 17 94 80 98 3B D3 E9 5A 72 6A 0E [08:22:57]Write to MH i2c: 01 00 00 59 1D 76 [08:22:57]Write i2c OK [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: 01 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: 01 07 00 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: 01 07 00 59 1D 00 00 00 00 00 BE 0C 47 [08:22:57]RasterBufferAndPrint [08:22:57]line [08:22:57]line [08:22:57]line [08:22:57]line [08:22:57]line [08:22:57]written 0, free lines is 3267 [08:22:57]MH_Cut [08:22:57]Write to MH i2c: D1 01 00 60 1D 01 4F [08:22:57]Write i2c OK [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: D1 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: D1 01 00 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: D1 01 00 60 1D 00 4E [08:22:57]Write to MH i2c: 01 00 00 61 1D 7E [08:22:57]Write i2c OK [08:22:57]MH_I2C_Read... [08:22:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 77 EA 47 00 08 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 31 37 34 35 10 04 04 00 C3 38 02 00 F4 03 04 00 90 9D 1D 67 B6 04 01 00 00 24 CB 93 3E E9 3D 89 9E [08:22:57]CommunicateWithHost err = 0 [08:22:57]CheckOFDResponse [08:22:57]1017 (14) - 77093643461234 [08:22:57]1041 (16) - 0000000000871745 [08:22:57]1040 (4) - 145603 [08:22:57]1012 (4) - 27.10.2024 01:55 [08:22:57]1206 (1) - 0 [08:22:57]OFD Sender: Remove packet 145603 [08:22:57]ProducePacketName [08:22:57]name=ofd_packets/00145603 [08:22:57]NVStorageDeleteData [08:22:57]OFD Sender: No OFD packet to send [08:22:58]*** Cut start [08:22:58]*** Partial cut [08:22:58]*** CUTSNS_PIN = 1 [08:22:58]*** CUTSNS_PIN = 0 [08:22:58]*** Brake cut motor [08:22:58]Read from MH i2c: 01 [08:22:58]MH_I2C_Read... [08:22:58]*** Stop cut motor [08:22:58]*** Cut end [08:22:58]Read from MH i2c: 01 07 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: 01 07 00 61 1D 00 00 00 00 00 FF 0F 93 [08:22:58]process_action close_receipt done [08:22:58]requested_data is exist [08:22:58]produce_requested_data [08:22:58]requested_item fm.sn is exist - process it [08:22:58]wFMCommunicate request_size=4 [08:22:58]MH_SAM_APDU [08:22:58]CAPDU: 80 11 00 00 [08:22:58]Write to MH i2c: E2 08 00 62 1D 80 11 00 00 00 00 00 00 F9 [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:58]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 17 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 17 00 62 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 4C [08:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:22:58]wFMCommunicate OK [08:22:58]requested_item fd.num is exist - process it [08:22:58]SAM_PROTO_GetFieldsCounters [08:22:58]wFMCommunicate request_size=4 [08:22:58]MH_SAM_APDU [08:22:58]CAPDU: 80 13 00 00 [08:22:58]Write to MH i2c: E2 08 00 63 1D 80 13 00 00 00 00 00 00 FC [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:58]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 62 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 62 00 63 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C3 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [08:22:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C3 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:58]wFMCommunicate OK [08:22:58]SAM_PROTO_GetFieldsCounters done [08:22:58]requested_item shift.num is exist - process it [08:22:58]requested_item shift.opened is exist - process it [08:22:58]req_shift_opened [08:22:58]FM_GetShiftState [08:22:58]SAM_PROTO_GetShiftState [08:22:58]wFMCommunicate request_size=4 [08:22:58]MH_SAM_APDU [08:22:58]CAPDU: 80 13 01 00 [08:22:58]Write to MH i2c: E2 08 00 64 1D 80 13 01 00 00 00 00 00 FE [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:58]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 0E 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 0E 00 64 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 76 [08:22:58]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:22:58]wFMCommunicate OK [08:22:58]SAM_PROTO_GetShiftState done [08:22:58]FM_GetShiftState done [08:22:58]req_shift_opened done [08:22:58]requested_item shift.open_date is exist - process it [08:22:58]req_shift_open_date [08:22:58]req_shift_open_date done [08:22:58]produce_requested_data done [08:22:58]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145603,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [08:22:58]process_action_free close_receipt [08:22:58]json_value_free [08:22:58]json_value_free done [08:22:58]process_json_proto returns [08:22:58]Send response to host [08:22:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145603,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [08:22:58]free response buf [08:22:58]execute_script done [08:22:58]execute_script returns [08:22:58]free content buf [08:22:58]Sock 9.Close socket [08:22:58]Sock 9.Thread stoped [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24: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:19]accept exits with 7 [08:26:19]New connection [08:26:19]New thread 3067149668 created [08:26:19]Thread 3067006308 joined [08:26:19]Waiting for new connection... [08:26:19] Sock 7.Parse request [08:26:19]Sock 7.Check first char [08:26:19]Sock 7.First char is OK [08:26:19]request: POST /json_proto HTTP/1.0 [08:26:19]Method: POST [08:26:19]URL: /json_proto [08:26:19]Method is POST - this is cgi request [08:26:19]url: /json_proto [08:26:19]query_string will be loaded in cgi processing [08:26:19]execute_cgi json_proto POST (null) [08:26:19]execute_cgi path=json_proto method=POST [08:26:19]POST find Content-Length [08:26:19]Host: 172.17.40.195:8080 [08:26:19]Content-Length: 677 [08:26:19]Content-Type: application/json [08:26:19] [08:26:19]POST finish read [08:26:19]Found Content-Length = 677 [08:26:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:19]execute_script... [08:26: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)160354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:19]POST & json_proto [08:26:19]process_json_proto [08:26:19]json parsed OK: [08:26:19]protocol is kg_v1.0 [08:26:19]action value=close_receipt [08:26:19]process_action close_receipt [08:26:19]cmd_close_receipt [08:26:19]MH_GetDate [08:26:19]Write to MH i2c: F0 00 00 65 1D 71 [08:26:19]Write i2c OK [08:26:19]MH_I2C_Read... [08:26:19]Read from MH i2c: F0 [08:26:19]MH_I2C_Read... [08:26:19]Read from MH i2c: F0 09 00 [08:26:19]MH_I2C_Read... [08:26:19]Read from MH i2c: F0 09 00 65 1D 00 2F F9 1D 67 D5 8D 6C 64 58 [08:26:19]GetLastDocTimeStamp 1730017378 [08:26:19]current date 1730017583 [08:26:19]FM_GetShiftState [08:26:19]SAM_PROTO_GetShiftState [08:26:19]wFMCommunicate request_size=4 [08:26:19]MH_SAM_APDU [08:26:19]CAPDU: 80 13 01 00 [08:26:19]Write to MH i2c: E2 08 00 66 1D 80 13 01 00 00 00 00 00 00 [08:26:19]Write i2c OK [08:26:19]MH_I2C_Read... [08:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:19]Read from MH i2c: E2 [08:26:19]MH_I2C_Read... [08:26:19]Read from MH i2c: E2 0E 00 [08:26:19]MH_I2C_Read... [08:26:19]Read from MH i2c: E2 0E 00 66 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 78 [08:26:19]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:26:19]wFMCommunicate OK [08:26:19]SAM_PROTO_GetShiftState done [08:26:19]FM_GetShiftState done [08:26:19]opened in 1729988959 [08:26:19]opened+sec_in_day 1730075359 [08:26:19]quantity*price = 30038 [08:26:19]sum+1 = 30039 [08:26:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 27 27.10.2024 08:26 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145604 ФПД: 258359509979134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082623&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145604&fm=258359509979134&tin=02508201610067®Number=0000000000091683&sum=30000 [08:26:21]StoreToDocumentArchive [08:26:21]shift 545 fd 145604 [08:26:21]save to /storage/0545/doc_00145604 [08:26:21]save last doc name /storage/0545/doc_00145604 to /storage/kkm_last_doc_name [08:26:21]save OK [08:26:21]Clear old archive folders... [08:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:21]tlvbuf is 01A8C290 [08:26:21]SAM_PROTO_ClearQueue [08:26:21]wFMCommunicate request_size=4 [08:26:21]MH_SAM_APDU [08:26:21]CAPDU: 80 09 00 00 [08:26:21]Write to MH i2c: E2 08 00 73 1D 80 09 00 00 00 00 00 00 02 [08:26:21]Write i2c OK [08:26:21]MH_I2C_Read... [08:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:21]Read from MH i2c: E2 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 03 00 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 03 00 73 1D 00 90 00 04 [08:26:21]RAPDU: 90 00 [08:26:21]wFMCommunicate OK [08:26:21]SAM_PROTO_ClearQueue done [08:26:21]KKMCreateOFDPacket [08:26:21]OFDProtocolAddRootSTLVToBuf [08:26:21]FM_MakeSignedData [08:26:21]FM_MakeSignedData [08:26:21]SAM_PROTO_SignData [08:26:21]wFMCommunicate request_size=4 [08:26:21]MH_SAM_APDU [08:26:21]CAPDU: 80 0D 01 02 [08:26:21]Write to MH i2c: E2 08 00 74 1D 80 0D 01 02 00 00 00 00 0A [08:26:21]Write i2c OK [08:26:21]MH_I2C_Read... [08:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:21]Read from MH i2c: E2 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 03 00 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 03 00 74 1D 00 90 00 05 [08:26:21]RAPDU: 90 00 [08:26:21]wFMCommunicate OK [08:26:21]wFMCommunicate request_size=255 [08:26:21]MH_SAM_APDU [08:26: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 2F F9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C4 38 02 00 35 04 06 00 EA [08:26:21]Write to MH i2c: E2 02 01 75 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 2F F9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C4 38 02 00 35 04 06 00 EA 00 00 5E [08:26:21]Write i2c OK [08:26:21]MH_I2C_Read... [08:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:21]Read from MH i2c: E2 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 03 00 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 03 00 75 1D 00 90 00 06 [08:26:21]RAPDU: 90 00 [08:26:21]wFMCommunicate OK [08:26:21]wFMCommunicate request_size=10 [08:26:21]MH_SAM_APDU [08:26:21]CAPDU: 80 0D 02 02 05 FA 02 D1 0F FE [08:26:21]Write to MH i2c: E2 0D 00 76 1D 80 0D 02 02 05 00 FA 02 D1 0F FE 00 00 F1 [08:26:21]Write i2c OK [08:26:21]MH_I2C_Read... [08:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:21]Read from MH i2c: E2 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 03 00 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 03 00 76 1D 00 90 00 07 [08:26:21]RAPDU: 90 00 [08:26:21]wFMCommunicate OK [08:26:21]wFMCommunicate request_size=4 [08:26:21]MH_SAM_APDU [08:26:21]CAPDU: 80 0D 03 02 [08:26:21]Write to MH i2c: E2 08 00 77 1D 80 0D 03 02 00 00 00 00 0F [08:26:21]Write i2c OK [08:26:21]MH_I2C_Read... [08:26:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:21]Read from MH i2c: E2 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 0B 00 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 0B 00 77 1D 00 41 4A 93 B3 3C 41 84 B7 90 00 99 [08:26:21]RAPDU: 41 4A 93 B3 3C 41 84 B7 90 00 [08:26:21]wFMCommunicate OK [08:26:21]SAM_PROTO_SignData done [08:26:21]FM_MakeSignedData done [08:26:21]CreateOFDProtocolMessage [08:26:21]wFMCommunicate request_size=4 [08:26:21]MH_SAM_APDU [08:26:21]CAPDU: 80 11 00 00 [08:26:21]Write to MH i2c: E2 08 00 78 1D 80 11 00 00 00 00 00 00 0F [08:26:21]Write i2c OK [08:26:21]MH_I2C_Read... [08:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:21]Read from MH i2c: E2 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 17 00 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: E2 17 00 78 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 62 [08:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:26:21]wFMCommunicate OK [08:26:21]CreateOFDProtocolMessage done [08:26:21]OFDSenderStorePacket 145604 [08:26:21]StoreOFDPacket docnum=145604 [08:26:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 23 03 07 01 F8 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 2F F9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C4 38 02 00 35 04 06 00 EA FA 02 D1 0F FE 41 4A 93 B3 3C 41 84 B7 [08:26:21]CheckFolder [08:26:21]dirname=/storage/ofd_packets [08:26:21]CheckFolder done [08:26:21]ProducePacketName [08:26:21]name=ofd_packets/00145604 [08:26:21]NVStorageSaveData ofd_packets/00145604 [08:26:21]File name is /storage/ofd_packets/00145604 [08:26:21]Write 301 bytes [08:26:21]NVStorageSaveData done [08:26:21]OFDSenderStorePacket done [08:26:21]KKMCreateOFDPacket done [08:26:21]NVStorageSaveData kkm_last_timestamp [08:26:21]File name is /storage/kkm_last_timestamp [08:26:21]Write 4 bytes [08:26:21]NVStorageSaveData done [08:26:21]ExternCall_PrintAddStr [08:26:21]wPrintStart [08:26:21]Write to MH i2c: 01 00 00 79 1D 96 [08:26:21]Write i2c OK [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: 01 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: 01 07 00 [08:26:21]MH_I2C_Read... [08:26:21]Read from MH i2c: 01 07 00 79 1D 00 00 00 00 00 FF 0F AB [08:26:21]RasterBufferAndPrint [08:26:21]line Счет N : (1)160354 [08:26:21]line ИНН: 02508201610067 [08:26:21]line Контрольно-Кассовый Чек [08:26:21]line ПРОДАЖА [08:26:21]line ТРК (МРК, ГНК) : 32 [08:26:21]line Товар: 2710124130 [08:26:21]line Аи-92-К-2 [08:26:21]line 4.490 * 66.90 [08:26:21]line = 300.38 [08:26:21]line НДС 12% НСП 1% [08:26:21]line > о реализуемом товаре [08:26:21]line ОКРУГЛЕНИЕ: -0.38 [08:26:21]line ИТОГО: 300.00 [08:26:21]line Внесено: 300.00 [08:26:21]line СДАЧА: 0.00 [08:26:21]line НСП 1% : 2.66 [08:26:21]line НДС 12% : 31.90 [08:26:21]line Наличными: 300.00 [08:26:21]line Безнал.: 0.00 [08:26:21]line Место: АЗС № 126 "Партнер Нефть" [08:26:21]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [08:26:21]line СНО: Общий режим [08:26:21]line Чек 27 27.10.2024 08:26 [08:26:21]line Смена: 545 ФФД: 1.0 [08:26:21]line ЗНМ: 0300000085 [08:26:21]line РНМ: 0000000000091683 [08:26:21]line Версия ККМ: 001 [08:26:21]line ФМ: 0000000000871745 [08:26:21]line ФД: 145604 [08:26:21]line ФПД: 258359509979134 [08:26:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082623&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145604&fm=258359509979134&tin=02508201610067®Number=0000000000091683&sum=30000 [08:26:21]written 0, free lines is 4095 [08:26:21]OFD Sender: Processing packet 145604 [packets to send 205, broken 204] [08:26:21]ProducePacketName [08:26:21]name=ofd_packets/00145604 [08:26:21]OFD Sender: To server: pG, [08:26:21]CommunicateWithHost lk.salyk.kg:30040 [08:26:21]ConnectInit lk.salyk.kg [08:26:22]Connected sock=9 [08:26:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 23 03 07 01 F8 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 2F F9 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C4 38 02 00 35 04 06 00 EA FA 02 D1 0F FE 41 4A 93 B3 3C 41 84 B7 [08:26:22]Write to MH i2c: 01 00 00 A4 1D C1 [08:26:22]Write i2c OK [08:26:22]MH_I2C_Read... [08:26:22]Read from MH i2c: 01 [08:26:22]MH_I2C_Read... [08:26:22]Read from MH i2c: 01 07 00 [08:26:22]MH_I2C_Read... [08:26:22]Read from MH i2c: 01 07 00 A4 1D 00 00 00 00 00 B7 0C 8B [08:26:22]RasterBufferAndPrint [08:26:22]line [08:26:22]line [08:26:22]line [08:26:22]line [08:26:22]line [08:26:22]written 0, free lines is 3263 [08:26:22]MH_Cut [08:26:22]Write to MH i2c: D1 01 00 AB 1D 01 9A [08:26:22]Write i2c OK [08:26:22]MH_I2C_Read... [08:26:22]Read from MH i2c: D1 [08:26:22]MH_I2C_Read... [08:26:22]Read from MH i2c: D1 01 00 [08:26:22]MH_I2C_Read... [08:26:22]Read from MH i2c: D1 01 00 AB 1D 00 99 [08:26:22]Write to MH i2c: 01 00 00 AC 1D C9 [08:26:22]Write i2c OK [08:26:22]MH_I2C_Read... [08:26:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 56 1A 47 00 1E 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 31 37 34 35 10 04 04 00 C4 38 02 00 F4 03 04 00 5D 9E 1D 67 B6 04 01 00 00 2A 46 29 CB B9 99 E3 3F [08:26:22]CommunicateWithHost err = 0 [08:26:22]CheckOFDResponse [08:26:22]1017 (14) - 77093643461234 [08:26:22]1041 (16) - 0000000000871745 [08:26:22]1040 (4) - 145604 [08:26:22]1012 (4) - 27.10.2024 01:58 [08:26:22]1206 (1) - 0 [08:26:22]OFD Sender: Remove packet 145604 [08:26:22]ProducePacketName [08:26:22]name=ofd_packets/00145604 [08:26:22]NVStorageDeleteData [08:26:23]OFD Sender: No OFD packet to send [08:26:23]*** Cut start [08:26:23]*** Partial cut [08:26:23]*** CUTSNS_PIN = 1 [08:26:23]*** CUTSNS_PIN = 0 [08:26:23]*** Brake cut motor [08:26:23]Read from MH i2c: 01 [08:26:23]MH_I2C_Read... [08:26:23]*** Stop cut motor [08:26:23]*** Cut end [08:26:23]Read from MH i2c: 01 07 00 [08:26:23]MH_I2C_Read... [08:26:23]Read from MH i2c: 01 07 00 AC 1D 00 00 00 00 00 FF 0F DE [08:26:23]process_action close_receipt done [08:26:23]requested_data is exist [08:26:23]produce_requested_data [08:26:23]requested_item fm.sn is exist - process it [08:26:23]wFMCommunicate request_size=4 [08:26:23]MH_SAM_APDU [08:26:23]CAPDU: 80 11 00 00 [08:26:23]Write to MH i2c: E2 08 00 AD 1D 80 11 00 00 00 00 00 00 44 [08:26:23]Write i2c OK [08:26:23]MH_I2C_Read... [08:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:23]Read from MH i2c: E2 [08:26:23]MH_I2C_Read... [08:26:23]Read from MH i2c: E2 17 00 [08:26:23]MH_I2C_Read... [08:26:23]Read from MH i2c: E2 17 00 AD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 97 [08:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:26:23]wFMCommunicate OK [08:26:23]requested_item fd.num is exist - process it [08:26:23]SAM_PROTO_GetFieldsCounters [08:26:23]wFMCommunicate request_size=4 [08:26:23]MH_SAM_APDU [08:26:23]CAPDU: 80 13 00 00 [08:26:23]Write to MH i2c: E2 08 00 AE 1D 80 13 00 00 00 00 00 00 47 [08:26:23]Write i2c OK [08:26:23]MH_I2C_Read... [08:26:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:23]Read from MH i2c: E2 [08:26:23]MH_I2C_Read... [08:26:23]Read from MH i2c: E2 62 00 [08:26:23]MH_I2C_Read... [08:26:23]Read from MH i2c: E2 62 00 AE 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C4 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [08:26:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C4 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:23]wFMCommunicate OK [08:26:23]SAM_PROTO_GetFieldsCounters done [08:26:23]requested_item shift.num is exist - process it [08:26:23]requested_item shift.opened is exist - process it [08:26:23]req_shift_opened [08:26:23]FM_GetShiftState [08:26:23]SAM_PROTO_GetShiftState [08:26:23]wFMCommunicate request_size=4 [08:26:23]MH_SAM_APDU [08:26:23]CAPDU: 80 13 01 00 [08:26:23]Write to MH i2c: E2 08 00 AF 1D 80 13 01 00 00 00 00 00 49 [08:26:23]Write i2c OK [08:26:23]MH_I2C_Read... [08:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:24]Read from MH i2c: E2 [08:26:24]MH_I2C_Read... [08:26:24]Read from MH i2c: E2 0E 00 [08:26:24]MH_I2C_Read... [08:26:24]Read from MH i2c: E2 0E 00 AF 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C1 [08:26:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:26:24]wFMCommunicate OK [08:26:24]SAM_PROTO_GetShiftState done [08:26:24]FM_GetShiftState done [08:26:24]req_shift_opened done [08:26:24]requested_item shift.open_date is exist - process it [08:26:24]req_shift_open_date [08:26:24]req_shift_open_date done [08:26:24]produce_requested_data done [08:26:24]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145604,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [08:26:24]process_action_free close_receipt [08:26:24]json_value_free [08:26:24]json_value_free done [08:26:24]process_json_proto returns [08:26:24]Send response to host [08:26:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145604,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [08:26:24]free response buf [08:26:24]execute_script done [08:26:24]execute_script returns [08:26:24]free content buf [08:26:24]Sock 7.Close socket [08:26:24]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:39]accept exits with 10 [08:31:39]New connection [08:31:39]New thread 3067006308 created [08:31:39]Thread 3067149668 joined [08:31:39]Waiting for new connection... [08:31:39] Sock 10.Parse request [08:31:39]Sock 10.Check first char [08:31:39]Sock 10.First char is OK [08:31:39]request: POST /json_proto HTTP/1.0 [08:31:39]Method: POST [08:31:39]URL: /json_proto [08:31:39]Method is POST - this is cgi request [08:31:39]url: /json_proto [08:31:39]query_string will be loaded in cgi processing [08:31:39]execute_cgi json_proto POST (null) [08:31:39]execute_cgi path=json_proto method=POST [08:31:39]POST find Content-Length [08:31:39]Host: 172.17.40.195:8080 [08:31:39]Content-Length: 678 [08:31:39]Content-Type: application/json [08:31:39] [08:31:39]POST finish read [08:31:39]Found Content-Length = 678 [08:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:39]execute_script... [08:31: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)160355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:39]POST & json_proto [08:31:39]process_json_proto [08:31:39]json parsed OK: [08:31:39]protocol is kg_v1.0 [08:31:39]action value=close_receipt [08:31:39]process_action close_receipt [08:31:39]cmd_close_receipt [08:31:39]MH_GetDate [08:31:39]Write to MH i2c: F0 00 00 B0 1D BC [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: F0 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: F0 09 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: F0 09 00 B0 1D 00 6E FA 1D 67 D5 8D 6C 64 E3 [08:31:39]GetLastDocTimeStamp 1730017583 [08:31:39]current date 1730017902 [08:31:39]FM_GetShiftState [08:31:39]SAM_PROTO_GetShiftState [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 13 01 00 [08:31:39]Write to MH i2c: E2 08 00 B1 1D 80 13 01 00 00 00 00 00 4B [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0E 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0E 00 B1 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C3 [08:31:39]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:31:39]wFMCommunicate OK [08:31:39]SAM_PROTO_GetShiftState done [08:31:39]FM_GetShiftState done [08:31:39]opened in 1729988959 [08:31:39]opened+sec_in_day 1730075359 [08:31:39]quantity*price = 70044 [08:31:39]sum+1 = 70045 [08:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 28 27.10.2024 08:31 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145605 ФПД: 274777740441095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083142&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145605&fm=274777740441095&tin=02508201610067®Number=0000000000091683&sum=70000 [08:31:40]StoreToDocumentArchive [08:31:40]shift 545 fd 145605 [08:31:40]save to /storage/0545/doc_00145605 [08:31:40]save last doc name /storage/0545/doc_00145605 to /storage/kkm_last_doc_name [08:31:40]save OK [08:31:40]Clear old archive folders... [08:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:40]tlvbuf is 01AC7830 [08:31:40]SAM_PROTO_ClearQueue [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 09 00 00 [08:31:40]Write to MH i2c: E2 08 00 BE 1D 80 09 00 00 00 00 00 00 4D [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 BE 1D 00 90 00 4F [08:31:40]RAPDU: 90 00 [08:31:40]wFMCommunicate OK [08:31:40]SAM_PROTO_ClearQueue done [08:31:40]KKMCreateOFDPacket [08:31:40]OFDProtocolAddRootSTLVToBuf [08:31:40]FM_MakeSignedData [08:31:40]FM_MakeSignedData [08:31:40]SAM_PROTO_SignData [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 0D 01 02 [08:31:40]Write to MH i2c: E2 08 00 BF 1D 80 0D 01 02 00 00 00 00 55 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 BF 1D 00 90 00 50 [08:31:40]RAPDU: 90 00 [08:31:40]wFMCommunicate OK [08:31:40]wFMCommunicate request_size=255 [08:31:40]MH_SAM_APDU [08:31: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 6E FA 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C5 38 02 00 35 04 06 00 F9 [08:31:40]Write to MH i2c: E2 02 01 C0 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 6E FA 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C5 38 02 00 35 04 06 00 F9 00 00 16 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:41]Read from MH i2c: E2 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 03 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 03 00 C0 1D 00 90 00 51 [08:31:41]RAPDU: 90 00 [08:31:41]wFMCommunicate OK [08:31:41]wFMCommunicate request_size=10 [08:31:41]MH_SAM_APDU [08:31:41]CAPDU: 80 0D 02 02 05 E8 AD 9C 76 07 [08:31:41]Write to MH i2c: E2 0D 00 C1 1D 80 0D 02 02 05 00 E8 AD 9C 76 07 00 00 10 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:41]Read from MH i2c: E2 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 03 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 03 00 C1 1D 00 90 00 52 [08:31:41]RAPDU: 90 00 [08:31:41]wFMCommunicate OK [08:31:41]wFMCommunicate request_size=4 [08:31:41]MH_SAM_APDU [08:31:41]CAPDU: 80 0D 03 02 [08:31:41]Write to MH i2c: E2 08 00 C2 1D 80 0D 03 02 00 00 00 00 5A [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:41]Read from MH i2c: E2 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 0B 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 0B 00 C2 1D 00 0D 35 03 BB 31 E2 E4 CB 90 00 1D [08:31:41]RAPDU: 0D 35 03 BB 31 E2 E4 CB 90 00 [08:31:41]wFMCommunicate OK [08:31:41]SAM_PROTO_SignData done [08:31:41]FM_MakeSignedData done [08:31:41]CreateOFDProtocolMessage [08:31:41]wFMCommunicate request_size=4 [08:31:41]MH_SAM_APDU [08:31:41]CAPDU: 80 11 00 00 [08:31:41]Write to MH i2c: E2 08 00 C3 1D 80 11 00 00 00 00 00 00 5A [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:41]Read from MH i2c: E2 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 17 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 17 00 C3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AD [08:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:31:41]wFMCommunicate OK [08:31:41]CreateOFDProtocolMessage done [08:31:41]OFDSenderStorePacket 145605 [08:31:41]StoreOFDPacket docnum=145605 [08:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 83 3C 07 01 3C 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 6E FA 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C5 38 02 00 35 04 06 00 F9 E8 AD 9C 76 07 0D 35 03 BB 31 E2 E4 CB [08:31:41]CheckFolder [08:31:41]dirname=/storage/ofd_packets [08:31:41]CheckFolder done [08:31:41]ProducePacketName [08:31:41]name=ofd_packets/00145605 [08:31:41]NVStorageSaveData ofd_packets/00145605 [08:31:41]File name is /storage/ofd_packets/00145605 [08:31:41]Write 301 bytes [08:31:41]NVStorageSaveData done [08:31:41]OFDSenderStorePacket done [08:31:41]KKMCreateOFDPacket done [08:31:41]NVStorageSaveData kkm_last_timestamp [08:31:41]File name is /storage/kkm_last_timestamp [08:31:41]Write 4 bytes [08:31:41]NVStorageSaveData done [08:31:41]ExternCall_PrintAddStr [08:31:41]wPrintStart [08:31:41]Write to MH i2c: 01 00 00 C4 1D E1 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 07 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 07 00 C4 1D 00 00 00 00 00 FF 0F F6 [08:31:41]RasterBufferAndPrint [08:31:41]line Счет N : (1)160355 [08:31:41]line ИНН: 02508201610067 [08:31:41]line Контрольно-Кассовый Чек [08:31:41]line ПРОДАЖА [08:31:41]line ТРК (МРК, ГНК) : 62 [08:31:41]line Товар: 2710124130 [08:31:41]line Аи-92-К-2 [08:31:41]line 10.470 * 66.90 [08:31:41]line = 700.44 [08:31:41]line НДС 12% НСП 1% [08:31:41]line > о реализуемом товаре [08:31:41]line ОКРУГЛЕНИЕ: -0.44 [08:31:41]line ИТОГО: 700.00 [08:31:41]line Внесено: 700.00 [08:31:41]line СДАЧА: 0.00 [08:31:41]line НСП 1% : 6.20 [08:31:41]line НДС 12% : 74.38 [08:31:41]line Наличными: 700.00 [08:31:41]line Безнал.: 0.00 [08:31:41]line Место: АЗС № 126 "Партнер Нефть" [08:31:41]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [08:31:41]line СНО: Общий режим [08:31:41]line Чек 28 27.10.2024 08:31 [08:31:41]line Смена: 545 ФФД: 1.0 [08:31:41]line ЗНМ: 0300000085 [08:31:41]line РНМ: 0000000000091683 [08:31:41]line Версия ККМ: 001 [08:31:41]line ФМ: 0000000000871745 [08:31:41]line ФД: 145605 [08:31:41]line ФПД: 274777740441095 [08:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083142&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145605&fm=274777740441095&tin=02508201610067®Number=0000000000091683&sum=70000 [08:31:41]written 0, free lines is 4095 [08:31:41]OFD Sender: Processing packet 145605 [packets to send 205, broken 204] [08:31:41]ProducePacketName [08:31:41]name=ofd_packets/00145605 [08:31:41]OFD Sender: To server: pG, [08:31:41]CommunicateWithHost lk.salyk.kg:30040 [08:31:41]ConnectInit lk.salyk.kg [08:31:41]Connected sock=9 [08:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 83 3C 07 01 3C 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 6E FA 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C5 38 02 00 35 04 06 00 F9 E8 AD 9C 76 07 0D 35 03 BB 31 E2 E4 CB [08:31:41]Write to MH i2c: 01 00 00 EF 1D 0C [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 07 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 07 00 EF 1D 00 00 00 00 00 BE 0C DD [08:31:41]RasterBufferAndPrint [08:31:41]line [08:31:41]line [08:31:41]line [08:31:41]line [08:31:41]line [08:31:41]written 0, free lines is 3268 [08:31:41]MH_Cut [08:31:41]Write to MH i2c: D1 01 00 F6 1D 01 E5 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: D1 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: D1 01 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: D1 01 00 F6 1D 00 E4 [08:31:41]Write to MH i2c: 01 00 00 F7 1D 14 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 7E 68 47 00 D1 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C5 38 02 00 F4 03 04 00 9C 9F 1D 67 B6 04 01 00 00 75 ED 2F 03 5B C9 7A CC [08:31:41]CommunicateWithHost err = 0 [08:31:41]CheckOFDResponse [08:31:41]1017 (14) - 77093643461234 [08:31:41]1041 (16) - 0000000000871745 [08:31:41]1040 (4) - 145605 [08:31:41]1012 (4) - 27.10.2024 02:04 [08:31:41]1206 (1) - 0 [08:31:41]OFD Sender: Remove packet 145605 [08:31:41]ProducePacketName [08:31:41]name=ofd_packets/00145605 [08:31:41]NVStorageDeleteData [08:31:42]OFD Sender: No OFD packet to send [08:31:42]*** Cut start [08:31:42]*** Partial cut [08:31:42]*** CUTSNS_PIN = 1 [08:31:42]*** CUTSNS_PIN = 0 [08:31:42]*** Brake cut motor [08:31:43]Read from MH i2c: 01 [08:31:43]MH_I2C_Read... [08:31:43]*** Stop cut motor [08:31:43]*** Cut end [08:31:43]Read from MH i2c: 01 07 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: 01 07 00 F7 1D 00 00 00 00 00 FF 0F 29 [08:31:43]process_action close_receipt done [08:31:43]requested_data is exist [08:31:43]produce_requested_data [08:31:43]requested_item fm.sn is exist - process it [08:31:43]wFMCommunicate request_size=4 [08:31:43]MH_SAM_APDU [08:31:43]CAPDU: 80 11 00 00 [08:31:43]Write to MH i2c: E2 08 00 F8 1D 80 11 00 00 00 00 00 00 8F [08:31:43]Write i2c OK [08:31:43]MH_I2C_Read... [08:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:43]Read from MH i2c: E2 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 17 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 17 00 F8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E2 [08:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:31:43]wFMCommunicate OK [08:31:43]requested_item fd.num is exist - process it [08:31:43]SAM_PROTO_GetFieldsCounters [08:31:43]wFMCommunicate request_size=4 [08:31:43]MH_SAM_APDU [08:31:43]CAPDU: 80 13 00 00 [08:31:43]Write to MH i2c: E2 08 00 F9 1D 80 13 00 00 00 00 00 00 92 [08:31:43]Write i2c OK [08:31:43]MH_I2C_Read... [08:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:43]Read from MH i2c: E2 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 62 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 62 00 F9 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C5 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [08:31:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C5 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:43]wFMCommunicate OK [08:31:43]SAM_PROTO_GetFieldsCounters done [08:31:43]requested_item shift.num is exist - process it [08:31:43]requested_item shift.opened is exist - process it [08:31:43]req_shift_opened [08:31:43]FM_GetShiftState [08:31:43]SAM_PROTO_GetShiftState [08:31:43]wFMCommunicate request_size=4 [08:31:43]MH_SAM_APDU [08:31:43]CAPDU: 80 13 01 00 [08:31:43]Write to MH i2c: E2 08 00 FA 1D 80 13 01 00 00 00 00 00 94 [08:31:43]Write i2c OK [08:31:43]MH_I2C_Read... [08:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:43]Read from MH i2c: E2 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 0E 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 0E 00 FA 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0C [08:31:43]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:31:43]wFMCommunicate OK [08:31:43]SAM_PROTO_GetShiftState done [08:31:43]FM_GetShiftState done [08:31:43]req_shift_opened done [08:31:43]requested_item shift.open_date is exist - process it [08:31:43]req_shift_open_date [08:31:43]req_shift_open_date done [08:31:43]produce_requested_data done [08:31:43]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145605,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [08:31:43]process_action_free close_receipt [08:31:43]json_value_free [08:31:43]json_value_free done [08:31:43]process_json_proto returns [08:31:43]Send response to host [08:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145605,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [08:31:43]free response buf [08:31:43]execute_script done [08:31:43]execute_script returns [08:31:43]free content buf [08:31:43]Sock 10.Close socket [08:31:43]Sock 10.Thread stoped [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [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:45]accept exits with 7 [08:37:45]New connection [08:37:45]New thread 3067149668 created [08:37:45]Thread 3067006308 joined [08:37:45]Waiting for new connection... [08:37:45] Sock 7.Parse request [08:37:45]Sock 7.Check first char [08:37:45]Sock 7.First char is OK [08:37:45]request: POST /json_proto HTTP/1.0 [08:37:45]Method: POST [08:37:45]URL: /json_proto [08:37:45]Method is POST - this is cgi request [08:37:45]url: /json_proto [08:37:45]query_string will be loaded in cgi processing [08:37:45]execute_cgi json_proto POST (null) [08:37:45]execute_cgi path=json_proto method=POST [08:37:45]POST find Content-Length [08:37:45]Host: 172.17.40.195:8080 [08:37:45]Content-Length: 981 [08:37:45]Content-Type: application/json [08:37:45] [08:37:45]POST finish read [08:37:45]Found Content-Length = 981 [08:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:45]execute_script... [08:37: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)160356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:45]POST & json_proto [08:37:45]process_json_proto [08:37:45]json parsed OK: [08:37:45]protocol is kg_v1.0 [08:37:45]action value=close_receipt [08:37:45]process_action close_receipt [08:37:45]cmd_close_receipt [08:37:45]MH_GetDate [08:37:45]Write to MH i2c: F0 00 00 FB 1D 07 [08:37:45]Write i2c OK [08:37:45]MH_I2C_Read... [08:37:45]Read from MH i2c: F0 [08:37:45]MH_I2C_Read... [08:37:45]Read from MH i2c: F0 09 00 [08:37:45]MH_I2C_Read... [08:37:45]Read from MH i2c: F0 09 00 FB 1D 00 DD FB 1D 67 D5 8D 6C 64 9E [08:37:45]GetLastDocTimeStamp 1730017902 [08:37:45]current date 1730018269 [08:37:45]FM_GetShiftState [08:37:45]SAM_PROTO_GetShiftState [08:37:45]wFMCommunicate request_size=4 [08:37:45]MH_SAM_APDU [08:37:45]CAPDU: 80 13 01 00 [08:37:45]Write to MH i2c: E2 08 00 FC 1D 80 13 01 00 00 00 00 00 96 [08:37:45]Write i2c OK [08:37:45]MH_I2C_Read... [08:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:46]Read from MH i2c: E2 [08:37:46]MH_I2C_Read... [08:37:46]Read from MH i2c: E2 0E 00 [08:37:46]MH_I2C_Read... [08:37:46]Read from MH i2c: E2 0E 00 FC 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0E [08:37:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:37:46]wFMCommunicate OK [08:37:46]SAM_PROTO_GetShiftState done [08:37:46]FM_GetShiftState done [08:37:46]opened in 1729988959 [08:37:46]opened+sec_in_day 1730075359 [08:37:46]quantity*price = 999032 [08:37:46]sum+1 = 999033 [08:37:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 9990.00 Внесено: 10000.00 СДАЧА: 10.00 НСП 1% : 88.41 НДС 12% : 1060.92 Наличными: 9990.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 29 27.10.2024 08:37 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа ДТ номер 126 сэкономлено 132.85 сом ФМ: 0000000000871745 ФД: 145606 ФПД: 29830374289985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083749&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145606&fm=29830374289985&tin=02508201610067®Number=0000000000091683&sum=999000 [08:37:47]StoreToDocumentArchive [08:37:47]shift 545 fd 145606 [08:37:47]save to /storage/0545/doc_00145606 [08:37:47]save last doc name /storage/0545/doc_00145606 to /storage/kkm_last_doc_name [08:37:47]save OK [08:37:47]Clear old archive folders... [08:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:37:47]tlvbuf is 01A87970 [08:37:47]SAM_PROTO_ClearQueue [08:37:47]wFMCommunicate request_size=4 [08:37:47]MH_SAM_APDU [08:37:47]CAPDU: 80 09 00 00 [08:37:47]Write to MH i2c: E2 08 00 09 1E 80 09 00 00 00 00 00 00 99 [08:37:47]Write i2c OK [08:37:47]MH_I2C_Read... [08:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:47]Read from MH i2c: E2 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 03 00 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 03 00 09 1E 00 90 00 9B [08:37:47]RAPDU: 90 00 [08:37:47]wFMCommunicate OK [08:37:47]SAM_PROTO_ClearQueue done [08:37:47]KKMCreateOFDPacket [08:37:47]OFDProtocolAddRootSTLVToBuf [08:37:47]FM_MakeSignedData [08:37:47]FM_MakeSignedData [08:37:47]SAM_PROTO_SignData [08:37:47]wFMCommunicate request_size=4 [08:37:47]MH_SAM_APDU [08:37:47]CAPDU: 80 0D 01 02 [08:37:47]Write to MH i2c: E2 08 00 0A 1E 80 0D 01 02 00 00 00 00 A1 [08:37:47]Write i2c OK [08:37:47]MH_I2C_Read... [08:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:47]Read from MH i2c: E2 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 03 00 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 03 00 0A 1E 00 90 00 9C [08:37:47]RAPDU: 90 00 [08:37:47]wFMCommunicate OK [08:37:47]wFMCommunicate request_size=255 [08:37:47]MH_SAM_APDU [08:37:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 DD FB 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C6 38 02 00 35 04 06 00 1B 21 6C DC [08:37:47]Write to MH i2c: E2 02 01 0B 1E 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 32 FF 03 08 00 03 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 DD FB 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C6 38 02 00 35 04 06 00 1B 21 6C DC 00 00 59 [08:37:47]Write i2c OK [08:37:47]MH_I2C_Read... [08:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:47]Read from MH i2c: E2 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 03 00 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 03 00 0B 1E 00 90 00 9D [08:37:47]RAPDU: 90 00 [08:37:47]wFMCommunicate OK [08:37:47]wFMCommunicate request_size=7 [08:37:47]MH_SAM_APDU [08:37:47]CAPDU: 80 0D 02 02 02 F2 41 [08:37:47]Write to MH i2c: E2 0A 00 0C 1E 80 0D 02 02 02 00 F2 41 00 00 DB [08:37:47]Write i2c OK [08:37:47]MH_I2C_Read... [08:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:47]Read from MH i2c: E2 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 03 00 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 03 00 0C 1E 00 90 00 9E [08:37:47]RAPDU: 90 00 [08:37:47]wFMCommunicate OK [08:37:47]wFMCommunicate request_size=4 [08:37:47]MH_SAM_APDU [08:37:47]CAPDU: 80 0D 03 02 [08:37:47]Write to MH i2c: E2 08 00 0D 1E 80 0D 03 02 00 00 00 00 A6 [08:37:47]Write i2c OK [08:37:47]MH_I2C_Read... [08:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:47]Read from MH i2c: E2 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 0B 00 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 0B 00 0D 1E 00 4F D7 E5 F9 E8 3D 6B 03 90 00 3E [08:37:47]RAPDU: 4F D7 E5 F9 E8 3D 6B 03 90 00 [08:37:47]wFMCommunicate OK [08:37:47]SAM_PROTO_SignData done [08:37:47]FM_MakeSignedData done [08:37:47]CreateOFDProtocolMessage [08:37:47]wFMCommunicate request_size=4 [08:37:47]MH_SAM_APDU [08:37:47]CAPDU: 80 11 00 00 [08:37:47]Write to MH i2c: E2 08 00 0E 1E 80 11 00 00 00 00 00 00 A6 [08:37:47]Write i2c OK [08:37:47]MH_I2C_Read... [08:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:47]Read from MH i2c: E2 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 17 00 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: E2 17 00 0E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F9 [08:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:37:47]wFMCommunicate OK [08:37:47]CreateOFDProtocolMessage done [08:37:47]OFDSenderStorePacket 145606 [08:37:47]StoreOFDPacket docnum=145606 [08:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 D5 A3 04 01 33 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 DD FB 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C6 38 02 00 35 04 06 00 1B 21 6C DC F2 41 4F D7 E5 F9 E8 3D 6B 03 [08:37:47]CheckFolder [08:37:47]dirname=/storage/ofd_packets [08:37:47]CheckFolder done [08:37:47]ProducePacketName [08:37:47]name=ofd_packets/00145606 [08:37:47]NVStorageSaveData ofd_packets/00145606 [08:37:47]File name is /storage/ofd_packets/00145606 [08:37:47]Write 298 bytes [08:37:47]NVStorageSaveData done [08:37:47]OFDSenderStorePacket done [08:37:47]KKMCreateOFDPacket done [08:37:47]NVStorageSaveData kkm_last_timestamp [08:37:47]File name is /storage/kkm_last_timestamp [08:37:47]Write 4 bytes [08:37:47]NVStorageSaveData done [08:37:47]ExternCall_PrintAddStr [08:37:47]wPrintStart [08:37:47]Write to MH i2c: 01 00 00 0F 1E 2D [08:37:47]Write i2c OK [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: 01 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: 01 07 00 [08:37:47]MH_I2C_Read... [08:37:47]Read from MH i2c: 01 07 00 0F 1E 00 00 00 00 00 FF 0F 42 [08:37:47]RasterBufferAndPrint [08:37:47]line Счет N : (1)160356 [08:37:47]line ИНН: 02508201610067 [08:37:47]line Контрольно-Кассовый Чек [08:37:47]line ПРОДАЖА [08:37:47]line ТРК (МРК, ГНК) : 21 [08:37:47]line Товар: 2710194210 [08:37:47]line ДТ-К-2 [08:37:47]line 132.850 * 75.20 [08:37:47]line = 9990.32 [08:37:47]line НДС 12% НСП 1% [08:37:47]line > о реализуемом товаре [08:37:47]line ОКРУГЛЕНИЕ: -0.32 [08:37:47]line ИТОГО: 9990.00 [08:37:47]line Внесено: 10000.00 [08:37:47]line СДАЧА: 10.00 [08:37:47]line НСП 1% : 88.41 [08:37:47]line НДС 12% : 1060.92 [08:37:47]line Наличными: 9990.00 [08:37:47]line Безнал.: 0.00 [08:37:47]line Место: АЗС № 126 "Партнер Нефть" [08:37:47]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [08:37:47]line СНО: Общий режим [08:37:47]line Чек 29 27.10.2024 08:37 [08:37:47]line Смена: 545 ФФД: 1.0 [08:37:47]line ЗНМ: 0300000085 [08:37:47]line РНМ: 0000000000091683 [08:37:47]line Версия ККМ: 001 [08:37:47]line [08:37:47]line Дисконтная программа [08:37:47]line ДТ [08:37:47]line номер 126 [08:37:47]line сэкономлено 132.85 сом [08:37:47]line ФМ: 0000000000871745 [08:37:47]line ФД: 145606 [08:37:47]line ФПД: 29830374289985 [08:37:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083749&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145606&fm=29830374289985&tin=02508201610067®Number=0000000000091683&sum=999000 [08:37:48]OFD Sender: Processing packet 145606 [packets to send 205, broken 204] [08:37:48]ProducePacketName [08:37:48]name=ofd_packets/00145606 [08:37:48]OFD Sender: To server: pG, [08:37:48]CommunicateWithHost lk.salyk.kg:30040 [08:37:48]ConnectInit lk.salyk.kg [08:37:48]written 0, free lines is 4095 [08:37:48]Connected sock=10 [08:37:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 D5 A3 04 01 33 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 DD FB 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C6 38 02 00 35 04 06 00 1B 21 6C DC F2 41 4F D7 E5 F9 E8 3D 6B 03 [08:37:48]Write to MH i2c: 01 00 00 3F 1E 5D [08:37:48]Write i2c OK [08:37:48]MH_I2C_Read... [08:37:48]Read from MH i2c: 01 [08:37:48]MH_I2C_Read... [08:37:48]Read from MH i2c: 01 07 00 [08:37:48]MH_I2C_Read... [08:37:48]Read from MH i2c: 01 07 00 3F 1E 00 00 00 00 00 66 0C D6 [08:37:48]RasterBufferAndPrint [08:37:48]line [08:37:48]line [08:37:48]line [08:37:48]line [08:37:48]line [08:37:48]written 0, free lines is 3182 [08:37:48]MH_Cut [08:37:48]Write to MH i2c: D1 01 00 46 1E 01 36 [08:37:48]Write i2c OK [08:37:48]MH_I2C_Read... [08:37:48]Read from MH i2c: D1 [08:37:48]MH_I2C_Read... [08:37:48]Read from MH i2c: D1 01 00 [08:37:48]MH_I2C_Read... [08:37:48]Read from MH i2c: D1 01 00 46 1E 00 35 [08:37:48]Write to MH i2c: 01 00 00 47 1E 65 [08:37:48]Write i2c OK [08:37:48]MH_I2C_Read... [08:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 5B D4 47 00 85 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C6 38 02 00 F4 03 04 00 0B A1 1D 67 B6 04 01 00 00 C4 80 D2 79 A5 F3 BF D9 [08:37:48]CommunicateWithHost err = 0 [08:37:48]CheckOFDResponse [08:37:48]1017 (14) - 77093643461234 [08:37:48]1041 (16) - 0000000000871745 [08:37:48]1040 (4) - 145606 [08:37:48]1012 (4) - 27.10.2024 02:10 [08:37:48]1206 (1) - 0 [08:37:48]OFD Sender: Remove packet 145606 [08:37:48]ProducePacketName [08:37:48]name=ofd_packets/00145606 [08:37:48]NVStorageDeleteData [08:37:49]OFD Sender: No OFD packet to send [08:37:49]*** Cut start [08:37:49]*** Partial cut [08:37:49]*** CUTSNS_PIN = 1 [08:37:49]*** CUTSNS_PIN = 0 [08:37:49]*** Brake cut motor [08:37:49]Read from MH i2c: 01 [08:37:49]MH_I2C_Read... [08:37:49]*** Stop cut motor [08:37:49]*** Cut end [08:37:49]Read from MH i2c: 01 07 00 [08:37:49]MH_I2C_Read... [08:37:49]Read from MH i2c: 01 07 00 47 1E 00 00 00 00 00 FF 0F 7A [08:37:49]process_action close_receipt done [08:37:49]requested_data is exist [08:37:49]produce_requested_data [08:37:49]requested_item fm.sn is exist - process it [08:37:49]wFMCommunicate request_size=4 [08:37:49]MH_SAM_APDU [08:37:49]CAPDU: 80 11 00 00 [08:37:49]Write to MH i2c: E2 08 00 48 1E 80 11 00 00 00 00 00 00 E0 [08:37:49]Write i2c OK [08:37:49]MH_I2C_Read... [08:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:50]Read from MH i2c: E2 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 17 00 [08:37:50]MH_I2C_Read... [08:37:50]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 31 37 34 35 90 00 33 [08:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:37:50]wFMCommunicate OK [08:37:50]requested_item fd.num is exist - process it [08:37:50]SAM_PROTO_GetFieldsCounters [08:37:50]wFMCommunicate request_size=4 [08:37:50]MH_SAM_APDU [08:37:50]CAPDU: 80 13 00 00 [08:37:50]Write to MH i2c: E2 08 00 49 1E 80 13 00 00 00 00 00 00 E3 [08:37:50]Write i2c OK [08:37:50]MH_I2C_Read... [08:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:50]Read from MH i2c: E2 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 62 00 [08:37:50]MH_I2C_Read... [08:37:50]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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C6 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [08:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C6 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:50]wFMCommunicate OK [08:37:50]SAM_PROTO_GetFieldsCounters done [08:37:50]requested_item shift.num is exist - process it [08:37:50]requested_item shift.opened is exist - process it [08:37:50]req_shift_opened [08:37:50]FM_GetShiftState [08:37:50]SAM_PROTO_GetShiftState [08:37:50]wFMCommunicate request_size=4 [08:37:50]MH_SAM_APDU [08:37:50]CAPDU: 80 13 01 00 [08:37:50]Write to MH i2c: E2 08 00 4A 1E 80 13 01 00 00 00 00 00 E5 [08:37:50]Write i2c OK [08:37:50]MH_I2C_Read... [08:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:50]Read from MH i2c: E2 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 0E 00 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 0E 00 4A 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5D [08:37:50]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:37:50]wFMCommunicate OK [08:37:50]SAM_PROTO_GetShiftState done [08:37:50]FM_GetShiftState done [08:37:50]req_shift_opened done [08:37:50]requested_item shift.open_date is exist - process it [08:37:50]req_shift_open_date [08:37:50]req_shift_open_date done [08:37:50]produce_requested_data done [08:37:50]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145606,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [08:37:50]process_action_free close_receipt [08:37:50]json_value_free [08:37:50]json_value_free done [08:37:50]process_json_proto returns [08:37:50]Send response to host [08:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145606,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [08:37:50]free response buf [08:37:50]execute_script done [08:37:50]execute_script returns [08:37:50]free content buf [08:37:50]Sock 7.Close socket [08:37:50]Sock 7.Thread stoped [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:53]accept exits with 9 [08:40:53]New connection [08:40:53]New thread 3067006308 created [08:40:53]Thread 3067149668 joined [08:40:53]Waiting for new connection... [08:40:53] Sock 9.Parse request [08:40:53]Sock 9.Check first char [08:40:53]Sock 9.First char is OK [08:40:53]request: POST /json_proto HTTP/1.0 [08:40:53]Method: POST [08:40:53]URL: /json_proto [08:40:53]Method is POST - this is cgi request [08:40:53]url: /json_proto [08:40:53]query_string will be loaded in cgi processing [08:40:53]execute_cgi json_proto POST (null) [08:40:53]execute_cgi path=json_proto method=POST [08:40:53]POST find Content-Length [08:40:53]Host: 172.17.40.195:8080 [08:40:53]Content-Length: 677 [08:40:53]Content-Type: application/json [08:40:53] [08:40:53]POST finish read [08:40:53]Found Content-Length = 677 [08:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:53]execute_script... [08:40: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)160357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:53]POST & json_proto [08:40:53]process_json_proto [08:40:53]json parsed OK: [08:40:53]protocol is kg_v1.0 [08:40:53]action value=close_receipt [08:40:53]process_action close_receipt [08:40:53]cmd_close_receipt [08:40:53]MH_GetDate [08:40:53]Write to MH i2c: F0 00 00 4B 1E 58 [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: F0 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: F0 09 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: F0 09 00 4B 1E 00 98 FC 1D 67 D5 8D 6C 64 AB [08:40:53]GetLastDocTimeStamp 1730018269 [08:40:53]current date 1730018456 [08:40:53]FM_GetShiftState [08:40:53]SAM_PROTO_GetShiftState [08:40:53]wFMCommunicate request_size=4 [08:40:53]MH_SAM_APDU [08:40:53]CAPDU: 80 13 01 00 [08:40:53]Write to MH i2c: E2 08 00 4C 1E 80 13 01 00 00 00 00 00 E7 [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:53]Read from MH i2c: E2 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 0E 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 0E 00 4C 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5F [08:40:53]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:40:53]wFMCommunicate OK [08:40:53]SAM_PROTO_GetShiftState done [08:40:53]FM_GetShiftState done [08:40:53]opened in 1729988959 [08:40:53]opened+sec_in_day 1730075359 [08:40:53]quantity*price = 50010 [08:40:53]sum+1 = 50012 [08:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 30 27.10.2024 08:40 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145607 ФПД: 90330035081361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084056&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145607&fm=90330035081361&tin=02508201610067®Number=0000000000091683&sum=50000 [08:40:54]StoreToDocumentArchive [08:40:54]shift 545 fd 145607 [08:40:54]save to /storage/0545/doc_00145607 [08:40:54]save last doc name /storage/0545/doc_00145607 to /storage/kkm_last_doc_name [08:40:54]save OK [08:40:54]Clear old archive folders... [08:40:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:54]tlvbuf is 01A77810 [08:40:54]SAM_PROTO_ClearQueue [08:40:54]wFMCommunicate request_size=4 [08:40:54]MH_SAM_APDU [08:40:54]CAPDU: 80 09 00 00 [08:40:54]Write to MH i2c: E2 08 00 59 1E 80 09 00 00 00 00 00 00 E9 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 59 1E 00 90 00 EB [08:40:54]RAPDU: 90 00 [08:40:54]wFMCommunicate OK [08:40:54]SAM_PROTO_ClearQueue done [08:40:54]KKMCreateOFDPacket [08:40:54]OFDProtocolAddRootSTLVToBuf [08:40:54]FM_MakeSignedData [08:40:54]FM_MakeSignedData [08:40:54]SAM_PROTO_SignData [08:40:54]wFMCommunicate request_size=4 [08:40:54]MH_SAM_APDU [08:40:54]CAPDU: 80 0D 01 02 [08:40:54]Write to MH i2c: E2 08 00 5A 1E 80 0D 01 02 00 00 00 00 F1 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 5A 1E 00 90 00 EC [08:40:54]RAPDU: 90 00 [08:40:54]wFMCommunicate OK [08:40:54]wFMCommunicate request_size=255 [08:40:54]MH_SAM_APDU [08:40: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 98 FC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C7 38 02 00 35 04 06 00 52 [08:40:54]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 98 FC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C7 38 02 00 35 04 06 00 52 00 00 04 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:55]Read from MH i2c: E2 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 03 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 03 00 5B 1E 00 90 00 ED [08:40:55]RAPDU: 90 00 [08:40:55]wFMCommunicate OK [08:40:55]wFMCommunicate request_size=10 [08:40:55]MH_SAM_APDU [08:40:55]CAPDU: 80 0D 02 02 05 27 99 A7 50 91 [08:40:55]Write to MH i2c: E2 0D 00 5C 1E 80 0D 02 02 05 00 27 99 A7 50 91 00 00 46 [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:55]Read from MH i2c: E2 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 03 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 03 00 5C 1E 00 90 00 EE [08:40:55]RAPDU: 90 00 [08:40:55]wFMCommunicate OK [08:40:55]wFMCommunicate request_size=4 [08:40:55]MH_SAM_APDU [08:40:55]CAPDU: 80 0D 03 02 [08:40:55]Write to MH i2c: E2 08 00 5D 1E 80 0D 03 02 00 00 00 00 F6 [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:55]Read from MH i2c: E2 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 0B 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 0B 00 5D 1E 00 DC F9 F3 D5 B5 F8 79 2B 90 00 E5 [08:40:55]RAPDU: DC F9 F3 D5 B5 F8 79 2B 90 00 [08:40:55]wFMCommunicate OK [08:40:55]SAM_PROTO_SignData done [08:40:55]FM_MakeSignedData done [08:40:55]CreateOFDProtocolMessage [08:40:55]wFMCommunicate request_size=4 [08:40:55]MH_SAM_APDU [08:40:55]CAPDU: 80 11 00 00 [08:40:55]Write to MH i2c: E2 08 00 5E 1E 80 11 00 00 00 00 00 00 F6 [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:55]Read from MH i2c: E2 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 17 00 [08:40:55]MH_I2C_Read... [08:40:55]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 31 37 34 35 90 00 49 [08:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:40:55]wFMCommunicate OK [08:40:55]CreateOFDProtocolMessage done [08:40:55]OFDSenderStorePacket 145607 [08:40:55]StoreOFDPacket docnum=145607 [08:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E7 0B 07 01 62 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 98 FC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C7 38 02 00 35 04 06 00 52 27 99 A7 50 91 DC F9 F3 D5 B5 F8 79 2B [08:40:55]CheckFolder [08:40:55]dirname=/storage/ofd_packets [08:40:55]CheckFolder done [08:40:55]ProducePacketName [08:40:55]name=ofd_packets/00145607 [08:40:55]NVStorageSaveData ofd_packets/00145607 [08:40:55]File name is /storage/ofd_packets/00145607 [08:40:55]Write 301 bytes [08:40:55]NVStorageSaveData done [08:40:55]OFDSenderStorePacket done [08:40:55]KKMCreateOFDPacket done [08:40:55]NVStorageSaveData kkm_last_timestamp [08:40:55]File name is /storage/kkm_last_timestamp [08:40:55]Write 4 bytes [08:40:55]NVStorageSaveData done [08:40:55]ExternCall_PrintAddStr [08:40:55]wPrintStart [08:40:55]Write to MH i2c: 01 00 00 5F 1E 7D [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 07 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 07 00 5F 1E 00 00 00 00 00 FF 0F 92 [08:40:55]RasterBufferAndPrint [08:40:55]line Счет N : (1)160357 [08:40:55]line ИНН: 02508201610067 [08:40:55]line Контрольно-Кассовый Чек [08:40:55]line ПРОДАЖА [08:40:55]line ТРК (МРК, ГНК) : 43 [08:40:55]line Товар: 2710124500 [08:40:55]line Аи-95-К-3 [08:40:55]line 6.740 * 74.20 [08:40:55]line = 500.11 [08:40:55]line НДС 12% НСП 1% [08:40:55]line > о реализуемом товаре [08:40:55]line ОКРУГЛЕНИЕ: -0.11 [08:40:55]line ИТОГО: 500.00 [08:40:55]line Внесено: 500.00 [08:40:55]line СДАЧА: 0.00 [08:40:55]line НСП 1% : 4.43 [08:40:55]line НДС 12% : 53.11 [08:40:55]line Наличными: 500.00 [08:40:55]line Безнал.: 0.00 [08:40:55]line Место: АЗС № 126 "Партнер Нефть" [08:40:55]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [08:40:55]line СНО: Общий режим [08:40:55]line Чек 30 27.10.2024 08:40 [08:40:55]line Смена: 545 ФФД: 1.0 [08:40:55]line ЗНМ: 0300000085 [08:40:55]line РНМ: 0000000000091683 [08:40:55]line Версия ККМ: 001 [08:40:55]line ФМ: 0000000000871745 [08:40:55]line ФД: 145607 [08:40:55]line ФПД: 90330035081361 [08:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084056&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145607&fm=90330035081361&tin=02508201610067®Number=0000000000091683&sum=50000 [08:40:55]OFD Sender: Processing packet 145607 [packets to send 205, broken 204] [08:40:55]ProducePacketName [08:40:55]name=ofd_packets/00145607 [08:40:55]OFD Sender: To server: pG, [08:40:55]CommunicateWithHost lk.salyk.kg:30040 [08:40:55]ConnectInit lk.salyk.kg [08:40:55]written 0, free lines is 4095 [08:40:55]Connected sock=10 [08:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E7 0B 07 01 62 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 98 FC 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C7 38 02 00 35 04 06 00 52 27 99 A7 50 91 DC F9 F3 D5 B5 F8 79 2B [08:40:55]Write to MH i2c: 01 00 00 8A 1E A8 [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 07 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 07 00 8A 1E 00 00 00 00 00 B1 0C 6C [08:40:55]RasterBufferAndPrint [08:40:55]line [08:40:55]line [08:40:55]line [08:40:55]line [08:40:55]line [08:40:55]written 0, free lines is 3253 [08:40:55]MH_Cut [08:40:55]Write to MH i2c: D1 01 00 91 1E 01 81 [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: D1 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: D1 01 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: D1 01 00 91 1E 00 80 [08:40:55]Write to MH i2c: 01 00 00 92 1E B0 [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 CF 76 47 00 38 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C7 38 02 00 F4 03 04 00 C7 A1 1D 67 B6 04 01 00 00 02 64 2D 7E 5A 53 34 44 [08:40:56]CommunicateWithHost err = 0 [08:40:56]CheckOFDResponse [08:40:56]1017 (14) - 77093643461234 [08:40:56]1041 (16) - 0000000000871745 [08:40:56]1040 (4) - 145607 [08:40:56]1012 (4) - 27.10.2024 02:13 [08:40:56]1206 (1) - 0 [08:40:56]OFD Sender: Remove packet 145607 [08:40:56]ProducePacketName [08:40:56]name=ofd_packets/00145607 [08:40:56]NVStorageDeleteData [08:40:56]OFD Sender: No OFD packet to send [08:40:56]*** Cut start [08:40:56]*** Partial cut [08:40:56]*** CUTSNS_PIN = 1 [08:40:56]*** CUTSNS_PIN = 0 [08:40:57]*** Brake cut motor [08:40:57]Read from MH i2c: 01 [08:40:57]MH_I2C_Read... [08:40:57]*** Stop cut motor [08:40:57]*** Cut end [08:40:57]Read from MH i2c: 01 07 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: 01 07 00 92 1E 00 00 00 00 00 FF 0F C5 [08:40:57]process_action close_receipt done [08:40:57]requested_data is exist [08:40:57]produce_requested_data [08:40:57]requested_item fm.sn is exist - process it [08:40:57]wFMCommunicate request_size=4 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 11 00 00 [08:40:57]Write to MH i2c: E2 08 00 93 1E 80 11 00 00 00 00 00 00 2B [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 17 00 [08:40:57]MH_I2C_Read... [08:40:57]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 31 37 34 35 90 00 7E [08:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:40:57]wFMCommunicate OK [08:40:57]requested_item fd.num is exist - process it [08:40:57]SAM_PROTO_GetFieldsCounters [08:40:57]wFMCommunicate request_size=4 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 13 00 00 [08:40:57]Write to MH i2c: E2 08 00 94 1E 80 13 00 00 00 00 00 00 2E [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 62 00 [08:40:57]MH_I2C_Read... [08:40:57]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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C7 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [08:40:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C7 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:57]wFMCommunicate OK [08:40:57]SAM_PROTO_GetFieldsCounters done [08:40:57]requested_item shift.num is exist - process it [08:40:57]requested_item shift.opened is exist - process it [08:40:57]req_shift_opened [08:40:57]FM_GetShiftState [08:40:57]SAM_PROTO_GetShiftState [08:40:57]wFMCommunicate request_size=4 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 13 01 00 [08:40:57]Write to MH i2c: E2 08 00 95 1E 80 13 01 00 00 00 00 00 30 [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 0E 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 0E 00 95 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A8 [08:40:57]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:40:57]wFMCommunicate OK [08:40:57]SAM_PROTO_GetShiftState done [08:40:57]FM_GetShiftState done [08:40:57]req_shift_opened done [08:40:57]requested_item shift.open_date is exist - process it [08:40:57]req_shift_open_date [08:40:57]req_shift_open_date done [08:40:57]produce_requested_data done [08:40:57]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145607,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [08:40:57]process_action_free close_receipt [08:40:57]json_value_free [08:40:57]json_value_free done [08:40:57]process_json_proto returns [08:40:57]Send response to host [08:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145607,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [08:40:57]free response buf [08:40:57]execute_script done [08:40:57]execute_script returns [08:40:57]free content buf [08:40:57]Sock 9.Close socket [08:40:57]Sock 9.Thread stoped [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:37]ConnectInit Can't connect to host [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:03]accept exits with 7 [08:52:03]New connection [08:52:03]New thread 3067149668 created [08:52:03]Thread 3067006308 joined [08:52:03]Waiting for new connection... [08:52:03] Sock 7.Parse request [08:52:03]Sock 7.Check first char [08:52:03]Sock 7.First char is OK [08:52:03]request: POST /json_proto HTTP/1.0 [08:52:03]Method: POST [08:52:03]URL: /json_proto [08:52:03]Method is POST - this is cgi request [08:52:03]url: /json_proto [08:52:03]query_string will be loaded in cgi processing [08:52:03]execute_cgi json_proto POST (null) [08:52:03]execute_cgi path=json_proto method=POST [08:52:03]POST find Content-Length [08:52:03]Host: 172.17.40.195:8080 [08:52:03]Content-Length: 682 [08:52:03]Content-Type: application/json [08:52:03] [08:52:03]POST finish read [08:52:03]Found Content-Length = 682 [08:52:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 23.760, "sum" : 1589.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1589.00, "payments": [ { "type": 0, "sum" : 1589.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:03]execute_script... [08:52:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 23.760, "sum" : 1589.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1589.00, "payments": [ { "type": 0, "sum" : 1589.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:03]POST & json_proto [08:52:03]process_json_proto [08:52:03]json parsed OK: [08:52:03]protocol is kg_v1.0 [08:52:03]action value=close_receipt [08:52:03]process_action close_receipt [08:52:03]cmd_close_receipt [08:52:03]MH_GetDate [08:52:03]Write to MH i2c: F0 00 00 96 1E A3 [08:52:03]Write i2c OK [08:52:03]MH_I2C_Read... [08:52:03]Read from MH i2c: F0 [08:52:03]MH_I2C_Read... [08:52:03]Read from MH i2c: F0 09 00 [08:52:03]MH_I2C_Read... [08:52:03]Read from MH i2c: F0 09 00 96 1E 00 37 FF 1D 67 D5 8D 6C 64 98 [08:52:03]GetLastDocTimeStamp 1730018456 [08:52:03]current date 1730019127 [08:52:03]FM_GetShiftState [08:52:03]SAM_PROTO_GetShiftState [08:52:03]wFMCommunicate request_size=4 [08:52:03]MH_SAM_APDU [08:52:03]CAPDU: 80 13 01 00 [08:52:03]Write to MH i2c: E2 08 00 97 1E 80 13 01 00 00 00 00 00 32 [08:52:03]Write i2c OK [08:52:03]MH_I2C_Read... [08:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:04]Read from MH i2c: E2 [08:52:04]MH_I2C_Read... [08:52:04]Read from MH i2c: E2 0E 00 [08:52:04]MH_I2C_Read... [08:52:04]Read from MH i2c: E2 0E 00 97 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AA [08:52:04]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:52:04]wFMCommunicate OK [08:52:04]SAM_PROTO_GetShiftState done [08:52:04]FM_GetShiftState done [08:52:04]opened in 1729988959 [08:52:04]opened+sec_in_day 1730075359 [08:52:04]quantity*price = 158954 [08:52:04]sum+1 = 158955 [08:52:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1589.00 Внесено: 1600.00 СДАЧА: 11.00 НСП 1% : 14.07 НДС 12% : 168.80 Наличными: 1589.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 31 27.10.2024 08:52 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145608 ФПД: 74095287167306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085207&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145608&fm=74095287167306&tin=02508201610067®Number=0000000000091683&sum=158900 [08:52:05]StoreToDocumentArchive [08:52:05]shift 545 fd 145608 [08:52:05]save to /storage/0545/doc_00145608 [08:52:05]save last doc name /storage/0545/doc_00145608 to /storage/kkm_last_doc_name [08:52:05]save OK [08:52:05]Clear old archive folders... [08:52:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:05]tlvbuf is 01A7D990 [08:52:05]SAM_PROTO_ClearQueue [08:52:05]wFMCommunicate request_size=4 [08:52:05]MH_SAM_APDU [08:52:05]CAPDU: 80 09 00 00 [08:52:05]Write to MH i2c: E2 08 00 A4 1E 80 09 00 00 00 00 00 00 34 [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:05]Read from MH i2c: E2 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 A4 1E 00 90 00 36 [08:52:05]RAPDU: 90 00 [08:52:05]wFMCommunicate OK [08:52:05]SAM_PROTO_ClearQueue done [08:52:05]KKMCreateOFDPacket [08:52:05]OFDProtocolAddRootSTLVToBuf [08:52:05]FM_MakeSignedData [08:52:05]FM_MakeSignedData [08:52:05]SAM_PROTO_SignData [08:52:05]wFMCommunicate request_size=4 [08:52:05]MH_SAM_APDU [08:52:05]CAPDU: 80 0D 01 02 [08:52:05]Write to MH i2c: E2 08 00 A5 1E 80 0D 01 02 00 00 00 00 3C [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:05]Read from MH i2c: E2 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 A5 1E 00 90 00 37 [08:52:05]RAPDU: 90 00 [08:52:05]wFMCommunicate OK [08:52:05]wFMCommunicate request_size=255 [08:52:05]MH_SAM_APDU [08:52: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 32 FF 03 08 00 03 D0 5C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA 6C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 6C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 41 00 00 00 00 07 04 06 00 B4 6C 02 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 37 FF 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C8 38 02 00 35 04 06 00 43 [08:52:05]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 32 FF 03 08 00 03 D0 5C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA 6C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 6C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 41 00 00 00 00 07 04 06 00 B4 6C 02 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 37 FF 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C8 38 02 00 35 04 06 00 43 00 00 3F [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:05]Read from MH i2c: E2 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 A6 1E 00 90 00 38 [08:52:05]RAPDU: 90 00 [08:52:05]wFMCommunicate OK [08:52:05]wFMCommunicate request_size=10 [08:52:05]MH_SAM_APDU [08:52:05]CAPDU: 80 0D 02 02 05 63 A7 45 69 4A [08:52:05]Write to MH i2c: E2 0D 00 A7 1E 80 0D 02 02 05 00 63 A7 45 69 4A 00 00 4B [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:05]Read from MH i2c: E2 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 A7 1E 00 90 00 39 [08:52:05]RAPDU: 90 00 [08:52:05]wFMCommunicate OK [08:52:05]wFMCommunicate request_size=4 [08:52:05]MH_SAM_APDU [08:52:05]CAPDU: 80 0D 03 02 [08:52:05]Write to MH i2c: E2 08 00 A8 1E 80 0D 03 02 00 00 00 00 41 [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:05]Read from MH i2c: E2 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 0B 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 0B 00 A8 1E 00 78 FB A4 BA 05 2D 6B A8 90 00 58 [08:52:05]RAPDU: 78 FB A4 BA 05 2D 6B A8 90 00 [08:52:05]wFMCommunicate OK [08:52:05]SAM_PROTO_SignData done [08:52:05]FM_MakeSignedData done [08:52:05]CreateOFDProtocolMessage [08:52:05]wFMCommunicate request_size=4 [08:52:05]MH_SAM_APDU [08:52:05]CAPDU: 80 11 00 00 [08:52:05]Write to MH i2c: E2 08 00 A9 1E 80 11 00 00 00 00 00 00 41 [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:05]Read from MH i2c: E2 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 17 00 [08:52:05]MH_I2C_Read... [08:52:05]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 31 37 34 35 90 00 94 [08:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:52:05]wFMCommunicate OK [08:52:05]CreateOFDProtocolMessage done [08:52:05]OFDSenderStorePacket 145608 [08:52:05]StoreOFDPacket docnum=145608 [08:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F4 55 07 01 5C 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D0 5C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA 6C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 6C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 41 00 00 00 00 07 04 06 00 B4 6C 02 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 37 FF 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C8 38 02 00 35 04 06 00 43 63 A7 45 69 4A 78 FB A4 BA 05 2D 6B A8 [08:52:05]CheckFolder [08:52:05]dirname=/storage/ofd_packets [08:52:05]CheckFolder done [08:52:05]ProducePacketName [08:52:05]name=ofd_packets/00145608 [08:52:05]NVStorageSaveData ofd_packets/00145608 [08:52:05]File name is /storage/ofd_packets/00145608 [08:52:05]Write 301 bytes [08:52:05]NVStorageSaveData done [08:52:05]OFDSenderStorePacket done [08:52:05]KKMCreateOFDPacket done [08:52:05]NVStorageSaveData kkm_last_timestamp [08:52:05]File name is /storage/kkm_last_timestamp [08:52:05]Write 4 bytes [08:52:05]NVStorageSaveData done [08:52:05]ExternCall_PrintAddStr [08:52:05]wPrintStart [08:52:05]Write to MH i2c: 01 00 00 AA 1E C8 [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: 01 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: 01 07 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: 01 07 00 AA 1E 00 00 00 00 00 FF 0F DD [08:52:05]RasterBufferAndPrint [08:52:05]line Счет N : (1)160358 [08:52:05]line ИНН: 02508201610067 [08:52:05]line Контрольно-Кассовый Чек [08:52:05]line ПРОДАЖА [08:52:05]line ТРК (МРК, ГНК) : 52 [08:52:05]line Товар: 2710124130 [08:52:05]line Аи-92-К-2 [08:52:05]line 23.760 * 66.90 [08:52:05]line = 1589.54 [08:52:05]line НДС 12% НСП 1% [08:52:05]line > о реализуемом товаре [08:52:05]line ОКРУГЛЕНИЕ: -0.54 [08:52:05]line ИТОГО: 1589.00 [08:52:05]line Внесено: 1600.00 [08:52:05]line СДАЧА: 11.00 [08:52:05]line НСП 1% : 14.07 [08:52:05]line НДС 12% : 168.80 [08:52:05]line Наличными: 1589.00 [08:52:05]line Безнал.: 0.00 [08:52:05]line Место: АЗС № 126 "Партнер Нефть" [08:52:05]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [08:52:05]line СНО: Общий режим [08:52:05]line Чек 31 27.10.2024 08:52 [08:52:05]line Смена: 545 ФФД: 1.0 [08:52:05]line ЗНМ: 0300000085 [08:52:05]line РНМ: 0000000000091683 [08:52:05]line Версия ККМ: 001 [08:52:05]line ФМ: 0000000000871745 [08:52:05]line ФД: 145608 [08:52:05]line ФПД: 74095287167306 [08:52:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085207&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145608&fm=74095287167306&tin=02508201610067®Number=0000000000091683&sum=158900 [08:52:06]OFD Sender: Processing packet 145608 [packets to send 205, broken 204] [08:52:06]ProducePacketName [08:52:06]name=ofd_packets/00145608 [08:52:06]OFD Sender: To server: pG, [08:52:06]CommunicateWithHost lk.salyk.kg:30040 [08:52:06]ConnectInit lk.salyk.kg [08:52:06]written 0, free lines is 4095 [08:52:06]Connected sock=11 [08:52:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F4 55 07 01 5C 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D0 5C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA 6C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 6C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 41 00 00 00 00 07 04 06 00 B4 6C 02 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 37 FF 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C8 38 02 00 35 04 06 00 43 63 A7 45 69 4A 78 FB A4 BA 05 2D 6B A8 [08:52:06]Write to MH i2c: 01 00 00 D5 1E F3 [08:52:06]Write i2c OK [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: 01 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: 01 07 00 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: 01 07 00 D5 1E 00 00 00 00 00 BF 0C C5 [08:52:06]RasterBufferAndPrint [08:52:06]line [08:52:06]line [08:52:06]line [08:52:06]line [08:52:06]line [08:52:06]written 0, free lines is 3268 [08:52:06]MH_Cut [08:52:06]Write to MH i2c: D1 01 00 DC 1E 01 CC [08:52:06]Write i2c OK [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: D1 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: D1 01 00 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: D1 01 00 DC 1E 00 CB [08:52:06]Write to MH i2c: 01 00 00 DD 1E FB [08:52:06]Write i2c OK [08:52:06]MH_I2C_Read... [08:52:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 71 0E 47 00 F7 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C8 38 02 00 F4 03 04 00 65 A4 1D 67 B6 04 01 00 00 71 C9 D7 74 7B E5 B1 59 [08:52:06]CommunicateWithHost err = 0 [08:52:06]CheckOFDResponse [08:52:06]1017 (14) - 77093643461234 [08:52:06]1041 (16) - 0000000000871745 [08:52:06]1040 (4) - 145608 [08:52:06]1012 (4) - 27.10.2024 02:24 [08:52:06]1206 (1) - 0 [08:52:06]OFD Sender: Remove packet 145608 [08:52:06]ProducePacketName [08:52:06]name=ofd_packets/00145608 [08:52:06]NVStorageDeleteData [08:52:07]OFD Sender: No OFD packet to send [08:52:07]*** Cut start [08:52:07]*** Partial cut [08:52:07]*** CUTSNS_PIN = 1 [08:52:07]*** CUTSNS_PIN = 0 [08:52:07]*** Brake cut motor [08:52:07]Read from MH i2c: 01 [08:52:07]MH_I2C_Read... [08:52:07]*** Stop cut motor [08:52:07]*** Cut end [08:52:07]Read from MH i2c: 01 07 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: 01 07 00 DD 1E 00 00 00 00 00 FF 0F 10 [08:52:07]process_action close_receipt done [08:52:07]requested_data is exist [08:52:07]produce_requested_data [08:52:07]requested_item fm.sn is exist - process it [08:52:07]wFMCommunicate request_size=4 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 11 00 00 [08:52:07]Write to MH i2c: E2 08 00 DE 1E 80 11 00 00 00 00 00 00 76 [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 17 00 [08:52:07]MH_I2C_Read... [08:52:07]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 31 37 34 35 90 00 C9 [08:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:52:07]wFMCommunicate OK [08:52:07]requested_item fd.num is exist - process it [08:52:07]SAM_PROTO_GetFieldsCounters [08:52:07]wFMCommunicate request_size=4 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 13 00 00 [08:52:07]Write to MH i2c: E2 08 00 DF 1E 80 13 00 00 00 00 00 00 79 [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:08]Read from MH i2c: E2 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 62 00 [08:52:08]MH_I2C_Read... [08:52:08]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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C8 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [08:52:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C8 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:08]wFMCommunicate OK [08:52:08]SAM_PROTO_GetFieldsCounters done [08:52:08]requested_item shift.num is exist - process it [08:52:08]requested_item shift.opened is exist - process it [08:52:08]req_shift_opened [08:52:08]FM_GetShiftState [08:52:08]SAM_PROTO_GetShiftState [08:52:08]wFMCommunicate request_size=4 [08:52:08]MH_SAM_APDU [08:52:08]CAPDU: 80 13 01 00 [08:52:08]Write to MH i2c: E2 08 00 E0 1E 80 13 01 00 00 00 00 00 7B [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:08]Read from MH i2c: E2 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 0E 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 0E 00 E0 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F3 [08:52:08]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:52:08]wFMCommunicate OK [08:52:08]SAM_PROTO_GetShiftState done [08:52:08]FM_GetShiftState done [08:52:08]req_shift_opened done [08:52:08]requested_item shift.open_date is exist - process it [08:52:08]req_shift_open_date [08:52:08]req_shift_open_date done [08:52:08]produce_requested_data done [08:52:08]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145608,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [08:52:08]process_action_free close_receipt [08:52:08]json_value_free [08:52:08]json_value_free done [08:52:08]process_json_proto returns [08:52:08]Send response to host [08:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145608,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [08:52:08]free response buf [08:52:08]execute_script done [08:52:08]execute_script returns [08:52:08]free content buf [08:52:08]Sock 7.Close socket [08:52:08]Sock 7.Thread stoped [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:32]accept exits with 9 [08:54:32]New connection [08:54:32]New thread 3067006308 created [08:54:32]Thread 3067149668 joined [08:54:32]Waiting for new connection... [08:54:32] Sock 9.Parse request [08:54:32]Sock 9.Check first char [08:54:32]Sock 9.First char is OK [08:54:32]request: POST /json_proto HTTP/1.0 [08:54:32]Method: POST [08:54:32]URL: /json_proto [08:54:32]Method is POST - this is cgi request [08:54:32]url: /json_proto [08:54:32]query_string will be loaded in cgi processing [08:54:32]execute_cgi json_proto POST (null) [08:54:32]execute_cgi path=json_proto method=POST [08:54:32]POST find Content-Length [08:54:32]Host: 172.17.40.195:8080 [08:54:32]Content-Length: 682 [08:54:32]Content-Type: application/json [08:54:32] [08:54:32]POST finish read [08:54:32]Found Content-Length = 682 [08:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [08:54:32]execute_script... [08:54: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)160359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [08:54:32]POST & json_proto [08:54:32]process_json_proto [08:54:32]json parsed OK: [08:54:32]protocol is kg_v1.0 [08:54:32]action value=close_receipt [08:54:32]process_action close_receipt [08:54:32]cmd_close_receipt [08:54:32]MH_GetDate [08:54:32]Write to MH i2c: F0 00 00 E1 1E EE [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: F0 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: F0 09 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: F0 09 00 E1 1E 00 CC FF 1D 67 D5 8D 6C 64 78 [08:54:32]GetLastDocTimeStamp 1730019127 [08:54:32]current date 1730019276 [08:54:32]FM_GetShiftState [08:54:32]SAM_PROTO_GetShiftState [08:54:32]wFMCommunicate request_size=4 [08:54:32]MH_SAM_APDU [08:54:32]CAPDU: 80 13 01 00 [08:54:32]Write to MH i2c: E2 08 00 E2 1E 80 13 01 00 00 00 00 00 7D [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:32]Read from MH i2c: E2 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: E2 0E 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: E2 0E 00 E2 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F5 [08:54:32]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:54:32]wFMCommunicate OK [08:54:32]SAM_PROTO_GetShiftState done [08:54:32]FM_GetShiftState done [08:54:32]opened in 1729988959 [08:54:32]opened+sec_in_day 1730075359 [08:54:32]quantity*price = 200043 [08:54:32]sum+1 = 200044 [08:54:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 32 27.10.2024 08:54 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145609 ФПД: 202567678444493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085436&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145609&fm=202567678444493&tin=02508201610067®Number=0000000000091683&sum=200000 [08:54:34]StoreToDocumentArchive [08:54:34]shift 545 fd 145609 [08:54:34]save to /storage/0545/doc_00145609 [08:54:34]save last doc name /storage/0545/doc_00145609 to /storage/kkm_last_doc_name [08:54:34]save OK [08:54:34]Clear old archive folders... [08:54:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:34]tlvbuf is 01AF4D50 [08:54:34]SAM_PROTO_ClearQueue [08:54:34]wFMCommunicate request_size=4 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 09 00 00 [08:54:34]Write to MH i2c: E2 08 00 EF 1E 80 09 00 00 00 00 00 00 7F [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 EF 1E 00 90 00 81 [08:54:34]RAPDU: 90 00 [08:54:34]wFMCommunicate OK [08:54:34]SAM_PROTO_ClearQueue done [08:54:34]KKMCreateOFDPacket [08:54:34]OFDProtocolAddRootSTLVToBuf [08:54:34]FM_MakeSignedData [08:54:34]FM_MakeSignedData [08:54:34]SAM_PROTO_SignData [08:54:34]wFMCommunicate request_size=4 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 0D 01 02 [08:54:34]Write to MH i2c: E2 08 00 F0 1E 80 0D 01 02 00 00 00 00 87 [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 F0 1E 00 90 00 82 [08:54:34]RAPDU: 90 00 [08:54:34]wFMCommunicate OK [08:54:34]wFMCommunicate request_size=255 [08:54:34]MH_SAM_APDU [08:54: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 20 00 00 00 F4 03 04 00 CC FF 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C9 38 02 00 35 04 06 00 B8 [08:54:34]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 20 00 00 00 F4 03 04 00 CC FF 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C9 38 02 00 35 04 06 00 B8 00 00 0B [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 F1 1E 00 90 00 83 [08:54:34]RAPDU: 90 00 [08:54:34]wFMCommunicate OK [08:54:34]wFMCommunicate request_size=10 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 0D 02 02 05 3B F6 84 43 CD [08:54:34]Write to MH i2c: E2 0D 00 F2 1E 80 0D 02 02 05 00 3B F6 84 43 CD 00 00 59 [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 F2 1E 00 90 00 84 [08:54:34]RAPDU: 90 00 [08:54:34]wFMCommunicate OK [08:54:34]wFMCommunicate request_size=4 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 0D 03 02 [08:54:34]Write to MH i2c: E2 08 00 F3 1E 80 0D 03 02 00 00 00 00 8C [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 0B 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 0B 00 F3 1E 00 FE A7 EC 79 98 60 0F 0C 90 00 AA [08:54:34]RAPDU: FE A7 EC 79 98 60 0F 0C 90 00 [08:54:34]wFMCommunicate OK [08:54:34]SAM_PROTO_SignData done [08:54:34]FM_MakeSignedData done [08:54:34]CreateOFDProtocolMessage [08:54:34]wFMCommunicate request_size=4 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 11 00 00 [08:54:34]Write to MH i2c: E2 08 00 F4 1E 80 11 00 00 00 00 00 00 8C [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 17 00 [08:54:34]MH_I2C_Read... [08:54:34]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 31 37 34 35 90 00 DF [08:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:54:34]wFMCommunicate OK [08:54:34]CreateOFDProtocolMessage done [08:54:34]OFDSenderStorePacket 145609 [08:54:34]StoreOFDPacket docnum=145609 [08:54:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CB 9F 07 01 45 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 20 00 00 00 F4 03 04 00 CC FF 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C9 38 02 00 35 04 06 00 B8 3B F6 84 43 CD FE A7 EC 79 98 60 0F 0C [08:54:34]CheckFolder [08:54:34]dirname=/storage/ofd_packets [08:54:34]CheckFolder done [08:54:34]ProducePacketName [08:54:34]name=ofd_packets/00145609 [08:54:34]NVStorageSaveData ofd_packets/00145609 [08:54:34]File name is /storage/ofd_packets/00145609 [08:54:34]Write 301 bytes [08:54:34]NVStorageSaveData done [08:54:34]OFDSenderStorePacket done [08:54:34]KKMCreateOFDPacket done [08:54:34]NVStorageSaveData kkm_last_timestamp [08:54:34]File name is /storage/kkm_last_timestamp [08:54:34]Write 4 bytes [08:54:34]NVStorageSaveData done [08:54:34]ExternCall_PrintAddStr [08:54:34]wPrintStart [08:54:34]Write to MH i2c: 01 00 00 F5 1E 13 [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: 01 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: 01 07 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: 01 07 00 F5 1E 00 00 00 00 00 FF 0F 28 [08:54:34]RasterBufferAndPrint [08:54:34]line Счет N : (1)160359 [08:54:34]line ИНН: 02508201610067 [08:54:34]line Контрольно-Кассовый Чек [08:54:34]line ПРОДАЖА [08:54:34]line ТРК (МРК, ГНК) : 33 [08:54:34]line Товар: 2710124500 [08:54:34]line Аи-95-К-3 [08:54:34]line 26.960 * 74.20 [08:54:34]line = 2000.43 [08:54:34]line НДС 12% НСП 1% [08:54:34]line > о реализуемом товаре [08:54:34]line ОКРУГЛЕНИЕ: -0.43 [08:54:34]line ИТОГО: 2000.00 [08:54:34]line Внесено: 2000.00 [08:54:34]line СДАЧА: 0.00 [08:54:34]line НСП 1% : 17.70 [08:54:34]line НДС 12% : 212.43 [08:54:34]line Наличными: 2000.00 [08:54:34]line Безнал.: 0.00 [08:54:34]line Место: АЗС № 126 "Партнер Нефть" [08:54:34]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [08:54:34]line СНО: Общий режим [08:54:34]line Чек 32 27.10.2024 08:54 [08:54:34]line Смена: 545 ФФД: 1.0 [08:54:34]line ЗНМ: 0300000085 [08:54:34]line РНМ: 0000000000091683 [08:54:34]line Версия ККМ: 001 [08:54:34]line ФМ: 0000000000871745 [08:54:34]line ФД: 145609 [08:54:34]line ФПД: 202567678444493 [08:54:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085436&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145609&fm=202567678444493&tin=02508201610067®Number=0000000000091683&sum=200000 [08:54:34]OFD Sender: Processing packet 145609 [packets to send 205, broken 204] [08:54:34]ProducePacketName [08:54:34]name=ofd_packets/00145609 [08:54:34]OFD Sender: To server: pG, [08:54:34]CommunicateWithHost lk.salyk.kg:30040 [08:54:34]ConnectInit lk.salyk.kg [08:54:34]written 0, free lines is 4095 [08:54:35]Connected sock=10 [08:54:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CB 9F 07 01 45 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 20 00 00 00 F4 03 04 00 CC FF 1D 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C9 38 02 00 35 04 06 00 B8 3B F6 84 43 CD FE A7 EC 79 98 60 0F 0C [08:54:35]Write to MH i2c: 01 00 00 20 1F 3F [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: 01 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: 01 07 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: 01 07 00 20 1F 00 00 00 00 00 AF 0C 01 [08:54:35]RasterBufferAndPrint [08:54:35]line [08:54:35]line [08:54:35]line [08:54:35]line [08:54:35]line [08:54:35]written 0, free lines is 3253 [08:54:35]MH_Cut [08:54:35]Write to MH i2c: D1 01 00 27 1F 01 18 [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: D1 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: D1 01 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: D1 01 00 27 1F 00 17 [08:54:35]Write to MH i2c: 01 00 00 28 1F 47 [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 84 D0 47 00 50 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C9 38 02 00 F4 03 04 00 FA A4 1D 67 B6 04 01 00 00 7E A0 17 47 A6 0D A9 4B [08:54:35]CommunicateWithHost err = 0 [08:54:35]CheckOFDResponse [08:54:35]1017 (14) - 77093643461234 [08:54:35]1041 (16) - 0000000000871745 [08:54:35]1040 (4) - 145609 [08:54:35]1012 (4) - 27.10.2024 02:27 [08:54:35]1206 (1) - 0 [08:54:35]OFD Sender: Remove packet 145609 [08:54:35]ProducePacketName [08:54:35]name=ofd_packets/00145609 [08:54:35]NVStorageDeleteData [08:54:35]OFD Sender: No OFD packet to send [08:54:36]*** Cut start [08:54:36]*** Partial cut [08:54:36]*** CUTSNS_PIN = 1 [08:54:36]*** CUTSNS_PIN = 0 [08:54:36]*** Brake cut motor [08:54:36]Read from MH i2c: 01 [08:54:36]MH_I2C_Read... [08:54:36]*** Stop cut motor [08:54:36]*** Cut end [08:54:36]Read from MH i2c: 01 07 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: 01 07 00 28 1F 00 00 00 00 00 FF 0F 5C [08:54:36]process_action close_receipt done [08:54:36]requested_data is exist [08:54:36]produce_requested_data [08:54:36]requested_item fm.sn is exist - process it [08:54:36]wFMCommunicate request_size=4 [08:54:36]MH_SAM_APDU [08:54:36]CAPDU: 80 11 00 00 [08:54:36]Write to MH i2c: E2 08 00 29 1F 80 11 00 00 00 00 00 00 C2 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:36]Read from MH i2c: E2 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 17 00 [08:54:36]MH_I2C_Read... [08:54:36]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 31 37 34 35 90 00 15 [08:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:54:36]wFMCommunicate OK [08:54:36]requested_item fd.num is exist - process it [08:54:36]SAM_PROTO_GetFieldsCounters [08:54:36]wFMCommunicate request_size=4 [08:54:36]MH_SAM_APDU [08:54:36]CAPDU: 80 13 00 00 [08:54:36]Write to MH i2c: E2 08 00 2A 1F 80 13 00 00 00 00 00 00 C5 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:36]Read from MH i2c: E2 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 62 00 [08:54:36]MH_I2C_Read... [08:54:36]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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C9 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [08:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C9 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:36]wFMCommunicate OK [08:54:36]SAM_PROTO_GetFieldsCounters done [08:54:36]requested_item shift.num is exist - process it [08:54:36]requested_item shift.opened is exist - process it [08:54:36]req_shift_opened [08:54:36]FM_GetShiftState [08:54:36]SAM_PROTO_GetShiftState [08:54:36]wFMCommunicate request_size=4 [08:54:36]MH_SAM_APDU [08:54:36]CAPDU: 80 13 01 00 [08:54:36]Write to MH i2c: E2 08 00 2B 1F 80 13 01 00 00 00 00 00 C7 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 0E 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 0E 00 2B 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3F [08:54:37]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:54:37]wFMCommunicate OK [08:54:37]SAM_PROTO_GetShiftState done [08:54:37]FM_GetShiftState done [08:54:37]req_shift_opened done [08:54:37]requested_item shift.open_date is exist - process it [08:54:37]req_shift_open_date [08:54:37]req_shift_open_date done [08:54:37]produce_requested_data done [08:54:37]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145609,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [08:54:37]process_action_free close_receipt [08:54:37]json_value_free [08:54:37]json_value_free done [08:54:37]process_json_proto returns [08:54:37]Send response to host [08:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145609,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [08:54:37]free response buf [08:54:37]execute_script done [08:54:37]execute_script returns [08:54:37]free content buf [08:54:37]Sock 9.Close socket [08:54:37]Sock 9.Thread stoped [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:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:02]accept exits with 7 [08:58:02]New connection [08:58:02]New thread 3067149668 created [08:58:02]Thread 3067006308 joined [08:58:02]Waiting for new connection... [08:58:02] Sock 7.Parse request [08:58:02]Sock 7.Check first char [08:58:02]Sock 7.First char is OK [08:58:02]request: POST /json_proto HTTP/1.0 [08:58:02]Method: POST [08:58:02]URL: /json_proto [08:58:02]Method is POST - this is cgi request [08:58:02]url: /json_proto [08:58:02]query_string will be loaded in cgi processing [08:58:02]execute_cgi json_proto POST (null) [08:58:02]execute_cgi path=json_proto method=POST [08:58:02]POST find Content-Length [08:58:02]Host: 172.17.40.195:8080 [08:58:02]Content-Length: 682 [08:58:02]Content-Type: application/json [08:58:02] [08:58:02]POST finish read [08:58:02]Found Content-Length = 682 [08:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [08:58:02]execute_script... [08:58:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [08:58:02]POST & json_proto [08:58:02]process_json_proto [08:58:02]json parsed OK: [08:58:02]protocol is kg_v1.0 [08:58:02]action value=close_receipt [08:58:02]process_action close_receipt [08:58:02]cmd_close_receipt [08:58:02]MH_GetDate [08:58:02]Write to MH i2c: F0 00 00 2C 1F 3A [08:58:02]Write i2c OK [08:58:02]MH_I2C_Read... [08:58:02]Read from MH i2c: F0 [08:58:02]MH_I2C_Read... [08:58:02]Read from MH i2c: F0 09 00 [08:58:02]MH_I2C_Read... [08:58:02]Read from MH i2c: F0 09 00 2C 1F 00 9E 00 1E 67 D5 8D 6C 64 98 [08:58:02]GetLastDocTimeStamp 1730019276 [08:58:02]current date 1730019486 [08:58:02]FM_GetShiftState [08:58:02]SAM_PROTO_GetShiftState [08:58:02]wFMCommunicate request_size=4 [08:58:02]MH_SAM_APDU [08:58:02]CAPDU: 80 13 01 00 [08:58:02]Write to MH i2c: E2 08 00 2D 1F 80 13 01 00 00 00 00 00 C9 [08:58:02]Write i2c OK [08:58:02]MH_I2C_Read... [08:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:02]Read from MH i2c: E2 [08:58:02]MH_I2C_Read... [08:58:02]Read from MH i2c: E2 0E 00 [08:58:02]MH_I2C_Read... [08:58:02]Read from MH i2c: E2 0E 00 2D 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 41 [08:58:02]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:58:02]wFMCommunicate OK [08:58:02]SAM_PROTO_GetShiftState done [08:58:02]FM_GetShiftState done [08:58:02]opened in 1729988959 [08:58:02]opened+sec_in_day 1730075359 [08:58:02]quantity*price = 200043 [08:58:02]sum+1 = 200044 [08:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 33 27.10.2024 08:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145610 ФПД: 135679959756795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085806&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145610&fm=135679959756795&tin=02508201610067®Number=0000000000091683&sum=200000 [08:58:04]StoreToDocumentArchive [08:58:04]shift 545 fd 145610 [08:58:04]save to /storage/0545/doc_00145610 [08:58:04]save last doc name /storage/0545/doc_00145610 to /storage/kkm_last_doc_name [08:58:04]save OK [08:58:04]Clear old archive folders... [08:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:04]tlvbuf is 01A56080 [08:58:04]SAM_PROTO_ClearQueue [08:58:04]wFMCommunicate request_size=4 [08:58:04]MH_SAM_APDU [08:58:04]CAPDU: 80 09 00 00 [08:58:04]Write to MH i2c: E2 08 00 3A 1F 80 09 00 00 00 00 00 00 CB [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:04]Read from MH i2c: E2 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 03 00 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 03 00 3A 1F 00 90 00 CD [08:58:04]RAPDU: 90 00 [08:58:04]wFMCommunicate OK [08:58:04]SAM_PROTO_ClearQueue done [08:58:04]KKMCreateOFDPacket [08:58:04]OFDProtocolAddRootSTLVToBuf [08:58:04]FM_MakeSignedData [08:58:04]FM_MakeSignedData [08:58:04]SAM_PROTO_SignData [08:58:04]wFMCommunicate request_size=4 [08:58:04]MH_SAM_APDU [08:58:04]CAPDU: 80 0D 01 02 [08:58:04]Write to MH i2c: E2 08 00 3B 1F 80 0D 01 02 00 00 00 00 D3 [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:04]Read from MH i2c: E2 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 03 00 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 03 00 3B 1F 00 90 00 CE [08:58:04]RAPDU: 90 00 [08:58:04]wFMCommunicate OK [08:58:04]wFMCommunicate request_size=255 [08:58:04]MH_SAM_APDU [08:58:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 21 00 00 00 F4 03 04 00 9E 00 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CA 38 02 00 35 04 06 00 7B [08:58:04]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 21 00 00 00 F4 03 04 00 9E 00 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CA 38 02 00 35 04 06 00 7B 00 00 F0 [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:04]Read from MH i2c: E2 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 03 00 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 03 00 3C 1F 00 90 00 CF [08:58:04]RAPDU: 90 00 [08:58:04]wFMCommunicate OK [08:58:04]wFMCommunicate request_size=10 [08:58:04]MH_SAM_APDU [08:58:04]CAPDU: 80 0D 02 02 05 66 73 CD EF FB [08:58:04]Write to MH i2c: E2 0D 00 3D 1F 80 0D 02 02 05 00 66 73 CD EF FB 00 00 70 [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:04]Read from MH i2c: E2 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 03 00 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 03 00 3D 1F 00 90 00 D0 [08:58:04]RAPDU: 90 00 [08:58:04]wFMCommunicate OK [08:58:04]wFMCommunicate request_size=4 [08:58:04]MH_SAM_APDU [08:58:04]CAPDU: 80 0D 03 02 [08:58:04]Write to MH i2c: E2 08 00 3E 1F 80 0D 03 02 00 00 00 00 D8 [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:04]Read from MH i2c: E2 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 0B 00 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 0B 00 3E 1F 00 89 E0 AD C9 F6 CE 1F 2D 90 00 C8 [08:58:04]RAPDU: 89 E0 AD C9 F6 CE 1F 2D 90 00 [08:58:04]wFMCommunicate OK [08:58:04]SAM_PROTO_SignData done [08:58:04]FM_MakeSignedData done [08:58:04]CreateOFDProtocolMessage [08:58:04]wFMCommunicate request_size=4 [08:58:04]MH_SAM_APDU [08:58:04]CAPDU: 80 11 00 00 [08:58:04]Write to MH i2c: E2 08 00 3F 1F 80 11 00 00 00 00 00 00 D8 [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:04]Read from MH i2c: E2 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 17 00 [08:58:04]MH_I2C_Read... [08:58:04]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 31 37 34 35 90 00 2B [08:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:58:04]wFMCommunicate OK [08:58:04]CreateOFDProtocolMessage done [08:58:04]OFDSenderStorePacket 145610 [08:58:04]StoreOFDPacket docnum=145610 [08:58:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F7 9A 07 01 D8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 21 00 00 00 F4 03 04 00 9E 00 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CA 38 02 00 35 04 06 00 7B 66 73 CD EF FB 89 E0 AD C9 F6 CE 1F 2D [08:58:04]CheckFolder [08:58:04]dirname=/storage/ofd_packets [08:58:04]CheckFolder done [08:58:04]ProducePacketName [08:58:04]name=ofd_packets/00145610 [08:58:04]NVStorageSaveData ofd_packets/00145610 [08:58:04]File name is /storage/ofd_packets/00145610 [08:58:04]Write 301 bytes [08:58:04]NVStorageSaveData done [08:58:04]OFDSenderStorePacket done [08:58:04]KKMCreateOFDPacket done [08:58:04]NVStorageSaveData kkm_last_timestamp [08:58:04]File name is /storage/kkm_last_timestamp [08:58:04]Write 4 bytes [08:58:04]NVStorageSaveData done [08:58:04]ExternCall_PrintAddStr [08:58:04]wPrintStart [08:58:04]Write to MH i2c: 01 00 00 40 1F 5F [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: 01 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: 01 07 00 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: 01 07 00 40 1F 00 00 00 00 00 FF 0F 74 [08:58:04]RasterBufferAndPrint [08:58:04]line Счет N : (1)160360 [08:58:04]line ИНН: 02508201610067 [08:58:04]line Контрольно-Кассовый Чек [08:58:04]line ПРОДАЖА [08:58:04]line ТРК (МРК, ГНК) : 53 [08:58:04]line Товар: 2710124500 [08:58:04]line Аи-95-К-3 [08:58:04]line 26.960 * 74.20 [08:58:04]line = 2000.43 [08:58:04]line НДС 12% НСП 1% [08:58:04]line > о реализуемом товаре [08:58:04]line ОКРУГЛЕНИЕ: -0.43 [08:58:04]line ИТОГО: 2000.00 [08:58:04]line Внесено: 2000.00 [08:58:04]line СДАЧА: 0.00 [08:58:04]line НСП 1% : 17.70 [08:58:04]line НДС 12% : 212.43 [08:58:04]line Наличными: 2000.00 [08:58:04]line Безнал.: 0.00 [08:58:04]line Место: АЗС № 126 "Партнер Нефть" [08:58:04]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [08:58:04]line СНО: Общий режим [08:58:04]line Чек 33 27.10.2024 08:58 [08:58:04]line Смена: 545 ФФД: 1.0 [08:58:04]line ЗНМ: 0300000085 [08:58:04]line РНМ: 0000000000091683 [08:58:04]line Версия ККМ: 001 [08:58:04]line ФМ: 0000000000871745 [08:58:04]line ФД: 145610 [08:58:04]line ФПД: 135679959756795 [08:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085806&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145610&fm=135679959756795&tin=02508201610067®Number=0000000000091683&sum=200000 [08:58:04]OFD Sender: Processing packet 145610 [packets to send 205, broken 204] [08:58:04]ProducePacketName [08:58:04]name=ofd_packets/00145610 [08:58:04]OFD Sender: To server: pG, [08:58:04]CommunicateWithHost lk.salyk.kg:30040 [08:58:04]ConnectInit lk.salyk.kg [08:58:04]written 0, free lines is 4095 [08:58:05]Connected sock=10 [08:58:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F7 9A 07 01 D8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 21 00 00 00 F4 03 04 00 9E 00 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CA 38 02 00 35 04 06 00 7B 66 73 CD EF FB 89 E0 AD C9 F6 CE 1F 2D [08:58:05]Write to MH i2c: 01 00 00 6B 1F 8A [08:58:05]Write i2c OK [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 6B 1F 00 00 00 00 00 C1 0C 5E [08:58:05]RasterBufferAndPrint [08:58:05]line [08:58:05]line [08:58:05]line [08:58:05]line [08:58:05]line [08:58:05]written 0, free lines is 3270 [08:58:05]MH_Cut [08:58:05]Write to MH i2c: D1 01 00 72 1F 01 63 [08:58:05]Write i2c OK [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: D1 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: D1 01 00 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: D1 01 00 72 1F 00 62 [08:58:05]Write to MH i2c: 01 00 00 73 1F 92 [08:58:05]Write i2c OK [08:58:05]MH_I2C_Read... [08:58:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 AE E7 47 00 D4 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CA 38 02 00 F4 03 04 00 CC A5 1D 67 B6 04 01 00 00 3D 49 EE C5 33 FB 19 F1 [08:58:05]CommunicateWithHost err = 0 [08:58:05]CheckOFDResponse [08:58:05]1017 (14) - 77093643461234 [08:58:05]1041 (16) - 0000000000871745 [08:58:05]1040 (4) - 145610 [08:58:05]1012 (4) - 27.10.2024 02:30 [08:58:05]1206 (1) - 0 [08:58:05]OFD Sender: Remove packet 145610 [08:58:05]ProducePacketName [08:58:05]name=ofd_packets/00145610 [08:58:05]NVStorageDeleteData [08:58:05]OFD Sender: No OFD packet to send [08:58:06]*** Cut start [08:58:06]*** Partial cut [08:58:06]*** CUTSNS_PIN = 1 [08:58:06]*** CUTSNS_PIN = 0 [08:58:06]*** Brake cut motor [08:58:06]Read from MH i2c: 01 [08:58:06]MH_I2C_Read... [08:58:06]*** Stop cut motor [08:58:06]*** Cut end [08:58:06]Read from MH i2c: 01 07 00 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: 01 07 00 73 1F 00 00 00 00 00 FF 0F A7 [08:58:06]process_action close_receipt done [08:58:06]requested_data is exist [08:58:06]produce_requested_data [08:58:06]requested_item fm.sn is exist - process it [08:58:06]wFMCommunicate request_size=4 [08:58:06]MH_SAM_APDU [08:58:06]CAPDU: 80 11 00 00 [08:58:06]Write to MH i2c: E2 08 00 74 1F 80 11 00 00 00 00 00 00 0D [08:58:06]Write i2c OK [08:58:06]MH_I2C_Read... [08:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:06]Read from MH i2c: E2 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: E2 17 00 [08:58:06]MH_I2C_Read... [08:58:06]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 31 37 34 35 90 00 60 [08:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [08:58:06]wFMCommunicate OK [08:58:06]requested_item fd.num is exist - process it [08:58:06]SAM_PROTO_GetFieldsCounters [08:58:06]wFMCommunicate request_size=4 [08:58:06]MH_SAM_APDU [08:58:06]CAPDU: 80 13 00 00 [08:58:06]Write to MH i2c: E2 08 00 75 1F 80 13 00 00 00 00 00 00 10 [08:58:06]Write i2c OK [08:58:06]MH_I2C_Read... [08:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:06]Read from MH i2c: E2 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: E2 62 00 [08:58:06]MH_I2C_Read... [08:58:06]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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CA 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [08:58:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CA 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:06]wFMCommunicate OK [08:58:06]SAM_PROTO_GetFieldsCounters done [08:58:06]requested_item shift.num is exist - process it [08:58:06]requested_item shift.opened is exist - process it [08:58:06]req_shift_opened [08:58:06]FM_GetShiftState [08:58:06]SAM_PROTO_GetShiftState [08:58:06]wFMCommunicate request_size=4 [08:58:06]MH_SAM_APDU [08:58:06]CAPDU: 80 13 01 00 [08:58:06]Write to MH i2c: E2 08 00 76 1F 80 13 01 00 00 00 00 00 12 [08:58:06]Write i2c OK [08:58:06]MH_I2C_Read... [08:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:07]Read from MH i2c: E2 [08:58:07]MH_I2C_Read... [08:58:07]Read from MH i2c: E2 0E 00 [08:58:07]MH_I2C_Read... [08:58:07]Read from MH i2c: E2 0E 00 76 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8A [08:58:07]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [08:58:07]wFMCommunicate OK [08:58:07]SAM_PROTO_GetShiftState done [08:58:07]FM_GetShiftState done [08:58:07]req_shift_opened done [08:58:07]requested_item shift.open_date is exist - process it [08:58:07]req_shift_open_date [08:58:07]req_shift_open_date done [08:58:07]produce_requested_data done [08:58:07]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145610,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [08:58:07]process_action_free close_receipt [08:58:07]json_value_free [08:58:07]json_value_free done [08:58:07]process_json_proto returns [08:58:07]Send response to host [08:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145610,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [08:58:07]free response buf [08:58:07]execute_script done [08:58:07]execute_script returns [08:58:07]free content buf [08:58:07]Sock 7.Close socket [08:58:07]Sock 7.Thread stoped [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:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:00:56]accept exits with 9 [09:00:56]New connection [09:00:56]New thread 3067006308 created [09:00:56]Thread 3067149668 joined [09:00:56]Waiting for new connection... [09:00:56] Sock 9.Parse request [09:00:56]Sock 9.Check first char [09:00:56]Sock 9.First char is OK [09:00:56]request: POST /json_proto HTTP/1.0 [09:00:56]Method: POST [09:00:56]URL: /json_proto [09:00:56]Method is POST - this is cgi request [09:00:56]url: /json_proto [09:00:56]query_string will be loaded in cgi processing [09:00:56]execute_cgi json_proto POST (null) [09:00:56]execute_cgi path=json_proto method=POST [09:00:56]POST find Content-Length [09:00:56]Host: 172.17.40.195:8080 [09:00:56]Content-Length: 769 [09:00:56]Content-Type: application/json [09:00:56] [09:00:56]POST finish read [09:00:56]Found Content-Length = 769 [09:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:56]execute_script... [09:00: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)160361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:56]POST & json_proto [09:00:56]process_json_proto [09:00:56]json parsed OK: [09:00:56]protocol is kg_v1.0 [09:00:56]action value=close_receipt [09:00:56]process_action close_receipt [09:00:56]cmd_close_receipt [09:00:56]MH_GetDate [09:00:56]Write to MH i2c: F0 00 00 77 1F 85 [09:00:56]Write i2c OK [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: F0 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: F0 09 00 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: F0 09 00 77 1F 00 4C 01 1E 67 D5 8D 6C 64 92 [09:00:56]GetLastDocTimeStamp 1730019486 [09:00:56]current date 1730019660 [09:00:56]FM_GetShiftState [09:00:56]SAM_PROTO_GetShiftState [09:00:56]wFMCommunicate request_size=4 [09:00:56]MH_SAM_APDU [09:00:56]CAPDU: 80 13 01 00 [09:00:56]Write to MH i2c: E2 08 00 78 1F 80 13 01 00 00 00 00 00 14 [09:00:56]Write i2c OK [09:00:56]MH_I2C_Read... [09:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:56]Read from MH i2c: E2 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: E2 0E 00 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: E2 0E 00 78 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8C [09:00:56]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:00:56]wFMCommunicate OK [09:00:56]SAM_PROTO_GetShiftState done [09:00:56]FM_GetShiftState done [09:00:56]opened in 1729988959 [09:00:56]opened+sec_in_day 1730075359 [09:00:56]quantity*price = 100015 [09:00:56]sum+1 = 100017 [09:00:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 34 27.10.2024 09:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145611 ФПД: 201357616688015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090100&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145611&fm=201357616688015&tin=02508201610067®Number=0000000000091683&sum=100016 [09:00:58]StoreToDocumentArchive [09:00:58]shift 545 fd 145611 [09:00:58]save to /storage/0545/doc_00145611 [09:00:58]save last doc name /storage/0545/doc_00145611 to /storage/kkm_last_doc_name [09:00:58]save OK [09:00:58]Clear old archive folders... [09:00:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:58]tlvbuf is B6F889E0 [09:00:58]SAM_PROTO_ClearQueue [09:00:58]wFMCommunicate request_size=4 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 09 00 00 [09:00:58]Write to MH i2c: E2 08 00 85 1F 80 09 00 00 00 00 00 00 16 [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 85 1F 00 90 00 18 [09:00:58]RAPDU: 90 00 [09:00:58]wFMCommunicate OK [09:00:58]SAM_PROTO_ClearQueue done [09:00:58]KKMCreateOFDPacket [09:00:58]OFDProtocolAddRootSTLVToBuf [09:00:58]FM_MakeSignedData [09:00:58]FM_MakeSignedData [09:00:58]SAM_PROTO_SignData [09:00:58]wFMCommunicate request_size=4 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 0D 01 02 [09:00:58]Write to MH i2c: E2 08 00 86 1F 80 0D 01 02 00 00 00 00 1E [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 86 1F 00 90 00 19 [09:00:58]RAPDU: 90 00 [09:00:58]wFMCommunicate OK [09:00:58]wFMCommunicate request_size=255 [09:00:58]MH_SAM_APDU [09:00: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4C 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CB 38 02 00 35 04 06 00 B7 [09:00:58]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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4C 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CB 38 02 00 35 04 06 00 B7 00 00 99 [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 87 1F 00 90 00 1A [09:00:58]RAPDU: 90 00 [09:00:58]wFMCommunicate OK [09:00:58]wFMCommunicate request_size=10 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 0D 02 02 05 22 39 37 2B 8F [09:00:58]Write to MH i2c: E2 0D 00 88 1F 80 0D 02 02 05 00 22 39 37 2B 8F 00 00 77 [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 03 00 88 1F 00 90 00 1B [09:00:58]RAPDU: 90 00 [09:00:58]wFMCommunicate OK [09:00:58]wFMCommunicate request_size=4 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 0D 03 02 [09:00:58]Write to MH i2c: E2 08 00 89 1F 80 0D 03 02 00 00 00 00 23 [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 0B 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 0B 00 89 1F 00 B1 A2 E5 02 ED D5 15 DC 90 00 11 [09:00:58]RAPDU: B1 A2 E5 02 ED D5 15 DC 90 00 [09:00:58]wFMCommunicate OK [09:00:58]SAM_PROTO_SignData done [09:00:58]FM_MakeSignedData done [09:00:58]CreateOFDProtocolMessage [09:00:58]wFMCommunicate request_size=4 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 11 00 00 [09:00:58]Write to MH i2c: E2 08 00 8A 1F 80 11 00 00 00 00 00 00 23 [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 17 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 17 00 8A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 76 [09:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:00:58]wFMCommunicate OK [09:00:58]CreateOFDProtocolMessage done [09:00:58]OFDSenderStorePacket 145611 [09:00:58]StoreOFDPacket docnum=145611 [09:00:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 29 74 07 01 53 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4C 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CB 38 02 00 35 04 06 00 B7 22 39 37 2B 8F B1 A2 E5 02 ED D5 15 DC [09:00:58]CheckFolder [09:00:58]dirname=/storage/ofd_packets [09:00:58]CheckFolder done [09:00:58]ProducePacketName [09:00:58]name=ofd_packets/00145611 [09:00:58]NVStorageSaveData ofd_packets/00145611 [09:00:58]File name is /storage/ofd_packets/00145611 [09:00:58]Write 301 bytes [09:00:58]NVStorageSaveData done [09:00:58]OFDSenderStorePacket done [09:00:58]KKMCreateOFDPacket done [09:00:58]NVStorageSaveData kkm_last_timestamp [09:00:58]File name is /storage/kkm_last_timestamp [09:00:58]Write 4 bytes [09:00:58]NVStorageSaveData done [09:00:58]ExternCall_PrintAddStr [09:00:58]wPrintStart [09:00:58]Write to MH i2c: 01 00 00 8B 1F AA [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: 01 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: 01 07 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: 01 07 00 8B 1F 00 00 00 00 00 FF 0F BF [09:00:58]RasterBufferAndPrint [09:00:58]line Счет N : (1)160361 [09:00:58]line ИНН: 02508201610067 [09:00:58]line Контрольно-Кассовый Чек [09:00:58]line ПРОДАЖА [09:00:58]line ТРК (МРК, ГНК) : 32 [09:00:58]line Товар: 2710124130 [09:00:58]line Аи-92-К-2 [09:00:58]line 14.950 * 66.90 [09:00:58]line = 1000.16 [09:00:58]line НДС 12% НСП 1% [09:00:58]line > о реализуемом товаре [09:00:58]line ИТОГО: 1000.16 [09:00:58]line НСП 1% : 8.85 [09:00:58]line НДС 12% : 106.21 [09:00:58]line Наличными: 0.00 [09:00:58]line Безнал.: 1000.16 [09:00:58]line Место: АЗС № 126 "Партнер Нефть" [09:00:58]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:00:58]line СНО: Общий режим [09:00:58]line Чек 34 27.10.2024 09:01 [09:00:58]line Смена: 545 ФФД: 1.0 [09:00:58]line ЗНМ: 0300000085 [09:00:58]line РНМ: 0000000000091683 [09:00:58]line Версия ККМ: 001 [09:00:58]line Платежная система: Mbank [09:00:58]line ФМ: 0000000000871745 [09:00:58]line ФД: 145611 [09:00:58]line ФПД: 201357616688015 [09:00:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090100&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145611&fm=201357616688015&tin=02508201610067®Number=0000000000091683&sum=100016 [09:00:58]written 0, free lines is 4095 [09:00:58]OFD Sender: Processing packet 145611 [packets to send 205, broken 204] [09:00:58]ProducePacketName [09:00:58]name=ofd_packets/00145611 [09:00:58]OFD Sender: To server: pG, [09:00:58]CommunicateWithHost lk.salyk.kg:30040 [09:00:58]ConnectInit lk.salyk.kg [09:00:58]Connected sock=10 [09:00:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 29 74 07 01 53 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4C 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CB 38 02 00 35 04 06 00 B7 22 39 37 2B 8F B1 A2 E5 02 ED D5 15 DC [09:00:59]Write to MH i2c: 01 00 00 B4 1F D3 [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 07 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 07 00 B4 1F 00 00 00 00 00 D4 0C BA [09:00:59]RasterBufferAndPrint [09:00:59]line [09:00:59]line [09:00:59]line [09:00:59]line [09:00:59]line [09:00:59]written 0, free lines is 3291 [09:00:59]MH_Cut [09:00:59]Write to MH i2c: D1 01 00 BB 1F 01 AC [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: D1 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: D1 01 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: D1 01 00 BB 1F 00 AB [09:00:59]Write to MH i2c: 01 00 00 BC 1F DB [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 DD F7 47 00 7B EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CB 38 02 00 F4 03 04 00 7A A6 1D 67 B6 04 01 00 00 01 1A 1D 33 69 22 74 94 [09:00:59]CommunicateWithHost err = 0 [09:00:59]CheckOFDResponse [09:00:59]1017 (14) - 77093643461234 [09:00:59]1041 (16) - 0000000000871745 [09:00:59]1040 (4) - 145611 [09:00:59]1012 (4) - 27.10.2024 02:33 [09:00:59]1206 (1) - 0 [09:00:59]OFD Sender: Remove packet 145611 [09:00:59]ProducePacketName [09:00:59]name=ofd_packets/00145611 [09:00:59]NVStorageDeleteData [09:00:59]OFD Sender: No OFD packet to send [09:00:59]*** Cut start [09:00:59]*** Partial cut [09:00:59]*** CUTSNS_PIN = 1 [09:00:59]*** CUTSNS_PIN = 0 [09:01:00]*** Brake cut motor [09:01:00]Read from MH i2c: 01 [09:01:00]MH_I2C_Read... [09:01:00]*** Stop cut motor [09:01:00]*** Cut end [09:01:00]Read from MH i2c: 01 07 00 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: 01 07 00 BC 1F 00 00 00 00 00 FF 0F F0 [09:01:00]process_action close_receipt done [09:01:00]requested_data is exist [09:01:00]produce_requested_data [09:01:00]requested_item fm.sn is exist - process it [09:01:00]wFMCommunicate request_size=4 [09:01:00]MH_SAM_APDU [09:01:00]CAPDU: 80 11 00 00 [09:01:00]Write to MH i2c: E2 08 00 BD 1F 80 11 00 00 00 00 00 00 56 [09:01:00]Write i2c OK [09:01:00]MH_I2C_Read... [09:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:00]Read from MH i2c: E2 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 17 00 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 17 00 BD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A9 [09:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:01:00]wFMCommunicate OK [09:01:00]requested_item fd.num is exist - process it [09:01:00]SAM_PROTO_GetFieldsCounters [09:01:00]wFMCommunicate request_size=4 [09:01:00]MH_SAM_APDU [09:01:00]CAPDU: 80 13 00 00 [09:01:00]Write to MH i2c: E2 08 00 BE 1F 80 13 00 00 00 00 00 00 59 [09:01:00]Write i2c OK [09:01:00]MH_I2C_Read... [09:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:00]Read from MH i2c: E2 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 62 00 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 62 00 BE 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CB 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [09:01:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CB 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:00]wFMCommunicate OK [09:01:00]SAM_PROTO_GetFieldsCounters done [09:01:00]requested_item shift.num is exist - process it [09:01:00]requested_item shift.opened is exist - process it [09:01:00]req_shift_opened [09:01:00]FM_GetShiftState [09:01:00]SAM_PROTO_GetShiftState [09:01:00]wFMCommunicate request_size=4 [09:01:00]MH_SAM_APDU [09:01:00]CAPDU: 80 13 01 00 [09:01:00]Write to MH i2c: E2 08 00 BF 1F 80 13 01 00 00 00 00 00 5B [09:01:00]Write i2c OK [09:01:00]MH_I2C_Read... [09:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:00]Read from MH i2c: E2 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 0E 00 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: E2 0E 00 BF 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D3 [09:01:00]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:01:00]wFMCommunicate OK [09:01:00]SAM_PROTO_GetShiftState done [09:01:00]FM_GetShiftState done [09:01:00]req_shift_opened done [09:01:00]requested_item shift.open_date is exist - process it [09:01:00]req_shift_open_date [09:01:00]req_shift_open_date done [09:01:00]produce_requested_data done [09:01:00]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145611,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:01:00]process_action_free close_receipt [09:01:00]json_value_free [09:01:00]json_value_free done [09:01:00]process_json_proto returns [09:01:00]Send response to host [09:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145611,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:01:00]free response buf [09:01:00]execute_script done [09:01:00]execute_script returns [09:01:00]free content buf [09:01:00]Sock 9.Close socket [09:01:00]Sock 9.Thread stoped [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:08]accept exits with 7 [09:02:08]New connection [09:02:08]New thread 3067149668 created [09:02:08]Thread 3067006308 joined [09:02:08]Waiting for new connection... [09:02:08] Sock 7.Parse request [09:02:08]Sock 7.Check first char [09:02:08]Sock 7.First char is OK [09:02:08]request: POST /json_proto HTTP/1.0 [09:02:08]Method: POST [09:02:08]URL: /json_proto [09:02:08]Method is POST - this is cgi request [09:02:08]url: /json_proto [09:02:08]query_string will be loaded in cgi processing [09:02:08]execute_cgi json_proto POST (null) [09:02:08]execute_cgi path=json_proto method=POST [09:02:08]POST find Content-Length [09:02:08]Host: 172.17.40.195:8080 [09:02:08]Content-Length: 677 [09:02:08]Content-Type: application/json [09:02:08] [09:02:08]POST finish read [09:02:08]Found Content-Length = 677 [09:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:08]execute_script... [09:02: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)160362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:08]POST & json_proto [09:02:08]process_json_proto [09:02:08]json parsed OK: [09:02:08]protocol is kg_v1.0 [09:02:08]action value=close_receipt [09:02:08]process_action close_receipt [09:02:08]cmd_close_receipt [09:02:08]MH_GetDate [09:02:08]Write to MH i2c: F0 00 00 C0 1F CE [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: F0 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: F0 09 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: F0 09 00 C0 1F 00 94 01 1E 67 D5 8D 6C 64 23 [09:02:08]GetLastDocTimeStamp 1730019660 [09:02:08]current date 1730019732 [09:02:08]FM_GetShiftState [09:02:08]SAM_PROTO_GetShiftState [09:02:08]wFMCommunicate request_size=4 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 13 01 00 [09:02:08]Write to MH i2c: E2 08 00 C1 1F 80 13 01 00 00 00 00 00 5D [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:08]Read from MH i2c: E2 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 0E 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 0E 00 C1 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D5 [09:02:08]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:02:08]wFMCommunicate OK [09:02:08]SAM_PROTO_GetShiftState done [09:02:08]FM_GetShiftState done [09:02:08]opened in 1729988959 [09:02:08]opened+sec_in_day 1730075359 [09:02:08]quantity*price = 55058 [09:02:08]sum+1 = 55060 [09:02:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 35 27.10.2024 09:02 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145612 ФПД: 143286877641181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090212&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145612&fm=143286877641181&tin=02508201610067®Number=0000000000091683&sum=55000 [09:02:09]StoreToDocumentArchive [09:02:09]shift 545 fd 145612 [09:02:09]save to /storage/0545/doc_00145612 [09:02:09]save last doc name /storage/0545/doc_00145612 to /storage/kkm_last_doc_name [09:02:09]save OK [09:02:09]Clear old archive folders... [09:02:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:09]tlvbuf is B6ED8380 [09:02:09]SAM_PROTO_ClearQueue [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 09 00 00 [09:02:09]Write to MH i2c: E2 08 00 CE 1F 80 09 00 00 00 00 00 00 5F [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 03 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 03 00 CE 1F 00 90 00 61 [09:02:09]RAPDU: 90 00 [09:02:09]wFMCommunicate OK [09:02:09]SAM_PROTO_ClearQueue done [09:02:09]KKMCreateOFDPacket [09:02:09]OFDProtocolAddRootSTLVToBuf [09:02:09]FM_MakeSignedData [09:02:09]FM_MakeSignedData [09:02:09]SAM_PROTO_SignData [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 0D 01 02 [09:02:09]Write to MH i2c: E2 08 00 CF 1F 80 0D 01 02 00 00 00 00 67 [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 03 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 03 00 CF 1F 00 90 00 62 [09:02:09]RAPDU: 90 00 [09:02:09]wFMCommunicate OK [09:02:09]wFMCommunicate request_size=255 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 94 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CC 38 02 00 35 04 06 00 82 [09:02:09]Write to MH i2c: E2 02 01 D0 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 32 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 94 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CC 38 02 00 35 04 06 00 82 00 00 F5 [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]OFD Sender: No OFD packet to send [09:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:10]Read from MH i2c: E2 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 03 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 03 00 D0 1F 00 90 00 63 [09:02:10]RAPDU: 90 00 [09:02:10]wFMCommunicate OK [09:02:10]wFMCommunicate request_size=10 [09:02:10]MH_SAM_APDU [09:02:10]CAPDU: 80 0D 02 02 05 51 93 71 59 DD [09:02:10]Write to MH i2c: E2 0D 00 D1 1F 80 0D 02 02 05 00 51 93 71 59 DD 00 00 FF [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:10]Read from MH i2c: E2 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 03 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 03 00 D1 1F 00 90 00 64 [09:02:10]RAPDU: 90 00 [09:02:10]wFMCommunicate OK [09:02:10]wFMCommunicate request_size=4 [09:02:10]MH_SAM_APDU [09:02:10]CAPDU: 80 0D 03 02 [09:02:10]Write to MH i2c: E2 08 00 D2 1F 80 0D 03 02 00 00 00 00 6C [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:10]Read from MH i2c: E2 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 0B 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 0B 00 D2 1F 00 EE 51 05 75 F1 25 29 A7 90 00 0C [09:02:10]RAPDU: EE 51 05 75 F1 25 29 A7 90 00 [09:02:10]wFMCommunicate OK [09:02:10]SAM_PROTO_SignData done [09:02:10]FM_MakeSignedData done [09:02:10]CreateOFDProtocolMessage [09:02:10]wFMCommunicate request_size=4 [09:02:10]MH_SAM_APDU [09:02:10]CAPDU: 80 11 00 00 [09:02:10]Write to MH i2c: E2 08 00 D3 1F 80 11 00 00 00 00 00 00 6C [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:10]Read from MH i2c: E2 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 17 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 17 00 D3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BF [09:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:02:10]wFMCommunicate OK [09:02:10]CreateOFDProtocolMessage done [09:02:10]OFDSenderStorePacket 145612 [09:02:10]StoreOFDPacket docnum=145612 [09:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DA A0 07 01 72 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 94 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CC 38 02 00 35 04 06 00 82 51 93 71 59 DD EE 51 05 75 F1 25 29 A7 [09:02:10]CheckFolder [09:02:10]dirname=/storage/ofd_packets [09:02:10]CheckFolder done [09:02:10]ProducePacketName [09:02:10]name=ofd_packets/00145612 [09:02:10]NVStorageSaveData ofd_packets/00145612 [09:02:10]File name is /storage/ofd_packets/00145612 [09:02:10]Write 301 bytes [09:02:10]NVStorageSaveData done [09:02:10]OFDSenderStorePacket done [09:02:10]KKMCreateOFDPacket done [09:02:10]NVStorageSaveData kkm_last_timestamp [09:02:10]File name is /storage/kkm_last_timestamp [09:02:10]Write 4 bytes [09:02:10]NVStorageSaveData done [09:02:10]ExternCall_PrintAddStr [09:02:10]wPrintStart [09:02:10]Write to MH i2c: 01 00 00 D4 1F F3 [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: 01 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: 01 07 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: 01 07 00 D4 1F 00 00 00 00 00 FF 0F 08 [09:02:10]RasterBufferAndPrint [09:02:10]line Счет N : (1)160362 [09:02:10]line ИНН: 02508201610067 [09:02:10]line Контрольно-Кассовый Чек [09:02:10]line ПРОДАЖА [09:02:10]line ТРК (МРК, ГНК) : 52 [09:02:10]line Товар: 2710124130 [09:02:10]line Аи-92-К-2 [09:02:10]line 8.230 * 66.90 [09:02:10]line = 550.59 [09:02:10]line НДС 12% НСП 1% [09:02:10]line > о реализуемом товаре [09:02:10]line ОКРУГЛЕНИЕ: -0.59 [09:02:10]line ИТОГО: 550.00 [09:02:10]line Внесено: 550.00 [09:02:10]line СДАЧА: 0.00 [09:02:10]line НСП 1% : 4.87 [09:02:10]line НДС 12% : 58.47 [09:02:10]line Наличными: 550.00 [09:02:10]line Безнал.: 0.00 [09:02:10]line Место: АЗС № 126 "Партнер Нефть" [09:02:10]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:02:10]line СНО: Общий режим [09:02:10]line Чек 35 27.10.2024 09:02 [09:02:10]line Смена: 545 ФФД: 1.0 [09:02:10]line ЗНМ: 0300000085 [09:02:10]line РНМ: 0000000000091683 [09:02:10]line Версия ККМ: 001 [09:02:10]line ФМ: 0000000000871745 [09:02:10]line ФД: 145612 [09:02:10]line ФПД: 143286877641181 [09:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090212&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145612&fm=143286877641181&tin=02508201610067®Number=0000000000091683&sum=55000 [09:02:10]OFD Sender: Processing packet 145612 [packets to send 205, broken 204] [09:02:10]ProducePacketName [09:02:10]name=ofd_packets/00145612 [09:02:10]OFD Sender: To server: pG, [09:02:10]CommunicateWithHost lk.salyk.kg:30040 [09:02:10]ConnectInit lk.salyk.kg [09:02:10]written 0, free lines is 4095 [09:02:10]Connected sock=10 [09:02:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DA A0 07 01 72 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 94 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CC 38 02 00 35 04 06 00 82 51 93 71 59 DD EE 51 05 75 F1 25 29 A7 [09:02:11]Write to MH i2c: 01 00 00 FF 1F 1E [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 07 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 07 00 FF 1F 00 00 00 00 00 C0 0C F1 [09:02:11]RasterBufferAndPrint [09:02:11]line [09:02:11]line [09:02:11]line [09:02:11]line [09:02:11]line [09:02:11]written 0, free lines is 3273 [09:02:11]MH_Cut [09:02:11]Write to MH i2c: D1 01 00 06 20 01 F8 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: D1 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: D1 01 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: D1 01 00 06 20 00 F7 [09:02:11]Write to MH i2c: 01 00 00 07 20 27 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D8 4C 47 00 58 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 31 37 34 35 10 04 04 00 CC 38 02 00 F4 03 04 00 C2 A6 1D 67 B6 04 01 00 00 31 69 EB 19 D0 B5 BC EC [09:02:11]CommunicateWithHost err = 0 [09:02:11]CheckOFDResponse [09:02:11]1017 (14) - 77093643461234 [09:02:11]1041 (16) - 0000000000871745 [09:02:11]1040 (4) - 145612 [09:02:11]1012 (4) - 27.10.2024 02:34 [09:02:11]1206 (1) - 0 [09:02:11]OFD Sender: Remove packet 145612 [09:02:11]ProducePacketName [09:02:11]name=ofd_packets/00145612 [09:02:11]NVStorageDeleteData [09:02:11]OFD Sender: No OFD packet to send [09:02:11]*** Cut start [09:02:11]*** Partial cut [09:02:11]*** CUTSNS_PIN = 1 [09:02:11]*** CUTSNS_PIN = 0 [09:02:12]*** Brake cut motor [09:02:12]Read from MH i2c: 01 [09:02:12]MH_I2C_Read... [09:02:12]*** Stop cut motor [09:02:12]*** Cut end [09:02:12]Read from MH i2c: 01 07 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: 01 07 00 07 20 00 00 00 00 00 FF 0F 3C [09:02:12]process_action close_receipt done [09:02:12]requested_data is exist [09:02:12]produce_requested_data [09:02:12]requested_item fm.sn is exist - process it [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 11 00 00 [09:02:12]Write to MH i2c: E2 08 00 08 20 80 11 00 00 00 00 00 00 A2 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 17 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 17 00 08 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F5 [09:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:02:12]wFMCommunicate OK [09:02:12]requested_item fd.num is exist - process it [09:02:12]SAM_PROTO_GetFieldsCounters [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 13 00 00 [09:02:12]Write to MH i2c: E2 08 00 09 20 80 13 00 00 00 00 00 00 A5 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 62 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 62 00 09 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CC 38 02 00 0E 04 04 00 21 02 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 5A [09:02:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CC 38 02 00 0E 04 04 00 21 02 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 [09:02:12]wFMCommunicate OK [09:02:12]SAM_PROTO_GetFieldsCounters done [09:02:12]requested_item shift.num is exist - process it [09:02:12]requested_item shift.opened is exist - process it [09:02:12]req_shift_opened [09:02:12]FM_GetShiftState [09:02:12]SAM_PROTO_GetShiftState [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 13 01 00 [09:02:12]Write to MH i2c: E2 08 00 0A 20 80 13 01 00 00 00 00 00 A7 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 0E 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 0E 00 0A 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1F [09:02:12]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:02:12]wFMCommunicate OK [09:02:12]SAM_PROTO_GetShiftState done [09:02:12]FM_GetShiftState done [09:02:12]req_shift_opened done [09:02:12]requested_item shift.open_date is exist - process it [09:02:12]req_shift_open_date [09:02:12]req_shift_open_date done [09:02:12]produce_requested_data done [09:02:12]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145612,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:02:12]process_action_free close_receipt [09:02:12]json_value_free [09:02:12]json_value_free done [09:02:12]process_json_proto returns [09:02:12]Send response to host [09:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145612,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:02:12]free response buf [09:02:12]execute_script done [09:02:12]execute_script returns [09:02:12]free content buf [09:02:12]Sock 7.Close socket [09:02:12]Sock 7.Thread stoped [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:20]accept exits with 9 [09:03:20]New connection [09:03:20]New thread 3067006308 created [09:03:20]Thread 3067149668 joined [09:03:20]Waiting for new connection... [09:03:20] Sock 9.Parse request [09:03:20]Sock 9.Check first char [09:03:20]Sock 9.First char is OK [09:03:20]request: POST /json_proto HTTP/1.0 [09:03:20]Method: POST [09:03:20]URL: /json_proto [09:03:20]Method is POST - this is cgi request [09:03:20]url: /json_proto [09:03:20]query_string will be loaded in cgi processing [09:03:20]execute_cgi json_proto POST (null) [09:03:20]execute_cgi path=json_proto method=POST [09:03:20]POST find Content-Length [09:03:20]Host: 172.17.40.195:8080 [09:03:20]Content-Length: 688 [09:03:20]Content-Type: application/json [09:03:20] [09:03:20]POST finish read [09:03:20]Found Content-Length = 688 [09:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.080, "sum" : 1550.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:20]execute_script... [09:03: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)160363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.080, "sum" : 1550.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:20]POST & json_proto [09:03:20]process_json_proto [09:03:20]json parsed OK: [09:03:20]protocol is kg_v1.0 [09:03:20]action value=close_receipt [09:03:20]process_action close_receipt [09:03:20]cmd_close_receipt [09:03:20]MH_GetDate [09:03:20]Write to MH i2c: F0 00 00 0B 20 1A [09:03:20]Write i2c OK [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: F0 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: F0 09 00 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: F0 09 00 0B 20 00 DB 01 1E 67 D5 8D 6C 64 B6 [09:03:20]GetLastDocTimeStamp 1730019732 [09:03:20]current date 1730019803 [09:03:20]FM_GetShiftState [09:03:20]SAM_PROTO_GetShiftState [09:03:20]wFMCommunicate request_size=4 [09:03:20]MH_SAM_APDU [09:03:20]CAPDU: 80 13 01 00 [09:03:20]Write to MH i2c: E2 08 00 0C 20 80 13 01 00 00 00 00 00 A9 [09:03:20]Write i2c OK [09:03:20]MH_I2C_Read... [09:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:20]Read from MH i2c: E2 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: E2 0E 00 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: E2 0E 00 0C 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 21 [09:03:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:03:20]wFMCommunicate OK [09:03:20]SAM_PROTO_GetShiftState done [09:03:20]FM_GetShiftState done [09:03:20]opened in 1729988959 [09:03:20]opened+sec_in_day 1730075359 [09:03:20]quantity*price = 155017 [09:03:20]sum+1 = 155019 [09:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 1550.00 Внесено: 1550.00 СДАЧА: 0.00 НСП 1% : 13.72 НДС 12% : 164.62 Наличными: 1550.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 36 27.10.2024 09:03 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145613 ФПД: 44126651139323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090323&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145613&fm=44126651139323&tin=02508201610067®Number=0000000000091683&sum=155000 [09:03:21]StoreToDocumentArchive [09:03:21]shift 545 fd 145613 [09:03:21]save to /storage/0545/doc_00145613 [09:03:21]save last doc name /storage/0545/doc_00145613 to /storage/kkm_last_doc_name [09:03:21]save OK [09:03:21]Clear old archive folders... [09:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:03:21]tlvbuf is 01A87FB0 [09:03:21]SAM_PROTO_ClearQueue [09:03:21]wFMCommunicate request_size=4 [09:03:21]MH_SAM_APDU [09:03:21]CAPDU: 80 09 00 00 [09:03:21]Write to MH i2c: E2 08 00 19 20 80 09 00 00 00 00 00 00 AB [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:21]Read from MH i2c: E2 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 03 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 03 00 19 20 00 90 00 AD [09:03:21]RAPDU: 90 00 [09:03:21]wFMCommunicate OK [09:03:21]SAM_PROTO_ClearQueue done [09:03:21]KKMCreateOFDPacket [09:03:21]OFDProtocolAddRootSTLVToBuf [09:03:21]FM_MakeSignedData [09:03:21]FM_MakeSignedData [09:03:21]SAM_PROTO_SignData [09:03:21]wFMCommunicate request_size=4 [09:03:21]MH_SAM_APDU [09:03:21]CAPDU: 80 0D 01 02 [09:03:21]Write to MH i2c: E2 08 00 1A 20 80 0D 01 02 00 00 00 00 B3 [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:21]Read from MH i2c: E2 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 03 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 03 00 1A 20 00 90 00 AE [09:03:21]RAPDU: 90 00 [09:03:21]wFMCommunicate OK [09:03:21]wFMCommunicate request_size=255 [09:03:21]MH_SAM_APDU [09:03:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 70 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8A 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 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 DB 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CD 38 02 [09:03:21]Write to MH i2c: E2 02 01 1B 20 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 70 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8A 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 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 DB 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CD 38 02 00 00 04 [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:21]Read from MH i2c: E2 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 03 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 03 00 1B 20 00 90 00 AF [09:03:21]RAPDU: 90 00 [09:03:21]wFMCommunicate OK [09:03:21]wFMCommunicate request_size=16 [09:03:21]MH_SAM_APDU [09:03:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 28 22 09 5D C4 FB [09:03:21]Write to MH i2c: E2 13 00 1C 20 80 0D 02 02 0B 00 00 35 04 06 00 28 22 09 5D C4 FB 00 00 7A [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:21]Read from MH i2c: E2 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 03 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 03 00 1C 20 00 90 00 B0 [09:03:21]RAPDU: 90 00 [09:03:21]wFMCommunicate OK [09:03:21]wFMCommunicate request_size=4 [09:03:21]MH_SAM_APDU [09:03:21]CAPDU: 80 0D 03 02 [09:03:21]Write to MH i2c: E2 08 00 1D 20 80 0D 03 02 00 00 00 00 B8 [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]OFD Sender: No OFD packet to send [09:03:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:21]Read from MH i2c: E2 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 0B 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 0B 00 1D 20 00 05 C9 6B 94 F5 5E C1 9B 90 00 35 [09:03:21]RAPDU: 05 C9 6B 94 F5 5E C1 9B 90 00 [09:03:21]wFMCommunicate OK [09:03:21]SAM_PROTO_SignData done [09:03:21]FM_MakeSignedData done [09:03:21]CreateOFDProtocolMessage [09:03:21]wFMCommunicate request_size=4 [09:03:21]MH_SAM_APDU [09:03:21]CAPDU: 80 11 00 00 [09:03:21]Write to MH i2c: E2 08 00 1E 20 80 11 00 00 00 00 00 00 B8 [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:21]Read from MH i2c: E2 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 17 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 17 00 1E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0B [09:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:03:21]wFMCommunicate OK [09:03:21]CreateOFDProtocolMessage done [09:03:21]OFDSenderStorePacket 145613 [09:03:21]StoreOFDPacket docnum=145613 [09:03:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 2A FD 0D 01 F7 29 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 70 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8A 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 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 DB 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CD 38 02 00 35 04 06 00 28 22 09 5D C4 FB 05 C9 6B 94 F5 5E C1 9B [09:03:21]CheckFolder [09:03:21]dirname=/storage/ofd_packets [09:03:21]CheckFolder done [09:03:21]ProducePacketName [09:03:21]name=ofd_packets/00145613 [09:03:21]NVStorageSaveData ofd_packets/00145613 [09:03:21]File name is /storage/ofd_packets/00145613 [09:03:21]Write 307 bytes [09:03:21]NVStorageSaveData done [09:03:21]OFDSenderStorePacket done [09:03:21]KKMCreateOFDPacket done [09:03:21]NVStorageSaveData kkm_last_timestamp [09:03:21]File name is /storage/kkm_last_timestamp [09:03:21]Write 4 bytes [09:03:21]NVStorageSaveData done [09:03:21]ExternCall_PrintAddStr [09:03:21]wPrintStart [09:03:21]Write to MH i2c: 01 00 00 1F 20 3F [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: 01 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: 01 07 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: 01 07 00 1F 20 00 00 00 00 00 FF 0F 54 [09:03:21]RasterBufferAndPrint [09:03:21]line Счет N : (1)160363 [09:03:21]line ИНН: 02508201610067 [09:03:21]line Контрольно-Кассовый Чек [09:03:21]line ПРОДАЖА [09:03:21]line ТРК (МРК, ГНК) : 31 [09:03:21]line Товар: 2710194240 [09:03:21]line D-Energy Дт-К-2 [09:03:21]line 20.080 * 77.20 [09:03:21]line = 1550.18 [09:03:21]line НДС 12% НСП 1% [09:03:21]line > о реализуемом товаре [09:03:21]line ОКРУГЛЕНИЕ: -0.18 [09:03:21]line ИТОГО: 1550.00 [09:03:21]line Внесено: 1550.00 [09:03:21]line СДАЧА: 0.00 [09:03:21]line НСП 1% : 13.72 [09:03:21]line НДС 12% : 164.62 [09:03:21]line Наличными: 1550.00 [09:03:21]line Безнал.: 0.00 [09:03:21]line Место: АЗС № 126 "Партнер Нефть" [09:03:21]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:03:21]line СНО: Общий режим [09:03:21]line Чек 36 27.10.2024 09:03 [09:03:21]line Смена: 545 ФФД: 1.0 [09:03:21]line ЗНМ: 0300000085 [09:03:21]line РНМ: 0000000000091683 [09:03:21]line Версия ККМ: 001 [09:03:21]line ФМ: 0000000000871745 [09:03:21]line ФД: 145613 [09:03:21]line ФПД: 44126651139323 [09:03:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090323&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145613&fm=44126651139323&tin=02508201610067®Number=0000000000091683&sum=155000 [09:03:21]OFD Sender: Processing packet 145613 [packets to send 205, broken 204] [09:03:21]ProducePacketName [09:03:21]name=ofd_packets/00145613 [09:03:21]OFD Sender: To server: pG, [09:03:22]CommunicateWithHost lk.salyk.kg:30040 [09:03:22]ConnectInit lk.salyk.kg [09:03:22]written 0, free lines is 4095 [09:03:22]Connected sock=10 [09:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 2A FD 0D 01 F7 29 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 70 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8A 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 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 DB 01 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CD 38 02 00 35 04 06 00 28 22 09 5D C4 FB 05 C9 6B 94 F5 5E C1 9B [09:03:22]Write to MH i2c: 01 00 00 4A 20 6A [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: 01 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: 01 07 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: 01 07 00 4A 20 00 00 00 00 00 C2 0C 3F [09:03:22]RasterBufferAndPrint [09:03:22]line [09:03:22]line [09:03:22]line [09:03:22]line [09:03:22]line [09:03:22]written 0, free lines is 3271 [09:03:22]MH_Cut [09:03:22]Write to MH i2c: D1 01 00 51 20 01 43 [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: D1 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: D1 01 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: D1 01 00 51 20 00 42 [09:03:22]Write to MH i2c: 01 00 00 52 20 72 [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 17 B0 47 00 D1 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CD 38 02 00 F4 03 04 00 09 A7 1D 67 B6 04 01 00 00 AE 9B 4C 83 29 FE 32 98 [09:03:22]CommunicateWithHost err = 0 [09:03:22]CheckOFDResponse [09:03:22]1017 (14) - 77093643461234 [09:03:22]1041 (16) - 0000000000871745 [09:03:22]1040 (4) - 145613 [09:03:22]1012 (4) - 27.10.2024 02:35 [09:03:22]1206 (1) - 0 [09:03:22]OFD Sender: Remove packet 145613 [09:03:22]ProducePacketName [09:03:22]name=ofd_packets/00145613 [09:03:22]NVStorageDeleteData [09:03:23]OFD Sender: No OFD packet to send [09:03:23]*** Cut start [09:03:23]*** Partial cut [09:03:23]*** CUTSNS_PIN = 1 [09:03:23]*** CUTSNS_PIN = 0 [09:03:23]*** Brake cut motor [09:03:24]Read from MH i2c: 01 [09:03:24]MH_I2C_Read... [09:03:24]*** Stop cut motor [09:03:24]*** Cut end [09:03:24]Read from MH i2c: 01 07 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: 01 07 00 52 20 00 00 00 00 00 FF 0F 87 [09:03:24]process_action close_receipt done [09:03:24]requested_data is exist [09:03:24]produce_requested_data [09:03:24]requested_item fm.sn is exist - process it [09:03:24]wFMCommunicate request_size=4 [09:03:24]MH_SAM_APDU [09:03:24]CAPDU: 80 11 00 00 [09:03:24]Write to MH i2c: E2 08 00 53 20 80 11 00 00 00 00 00 00 ED [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:24]Read from MH i2c: E2 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 17 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 17 00 53 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 40 [09:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:03:24]wFMCommunicate OK [09:03:24]requested_item fd.num is exist - process it [09:03:24]SAM_PROTO_GetFieldsCounters [09:03:24]wFMCommunicate request_size=4 [09:03:24]MH_SAM_APDU [09:03:24]CAPDU: 80 13 00 00 [09:03:24]Write to MH i2c: E2 08 00 54 20 80 13 00 00 00 00 00 00 F0 [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:24]Read from MH i2c: E2 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 62 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 62 00 54 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CD 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [09:03:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CD 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:24]wFMCommunicate OK [09:03:24]SAM_PROTO_GetFieldsCounters done [09:03:24]requested_item shift.num is exist - process it [09:03:24]requested_item shift.opened is exist - process it [09:03:24]req_shift_opened [09:03:24]FM_GetShiftState [09:03:24]SAM_PROTO_GetShiftState [09:03:24]wFMCommunicate request_size=4 [09:03:24]MH_SAM_APDU [09:03:24]CAPDU: 80 13 01 00 [09:03:24]Write to MH i2c: E2 08 00 55 20 80 13 01 00 00 00 00 00 F2 [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:24]Read from MH i2c: E2 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 0E 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 0E 00 55 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6A [09:03:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:03:24]wFMCommunicate OK [09:03:24]SAM_PROTO_GetShiftState done [09:03:24]FM_GetShiftState done [09:03:24]req_shift_opened done [09:03:24]requested_item shift.open_date is exist - process it [09:03:24]req_shift_open_date [09:03:24]req_shift_open_date done [09:03:24]produce_requested_data done [09:03:24]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145613,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:03:24]process_action_free close_receipt [09:03:24]json_value_free [09:03:24]json_value_free done [09:03:24]process_json_proto returns [09:03:24]Send response to host [09:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145613,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:03:24]free response buf [09:03:24]execute_script done [09:03:24]execute_script returns [09:03:24]free content buf [09:03:24]Sock 9.Close socket [09:03:24]Sock 9.Thread stoped [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07: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:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:19]accept exits with 7 [09:14:19]New connection [09:14:19]New thread 3067149668 created [09:14:19]Thread 3067006308 joined [09:14:19]Waiting for new connection... [09:14:19] Sock 7.Parse request [09:14:19]Sock 7.Check first char [09:14:19]Sock 7.First char is OK [09:14:19]request: POST /json_proto HTTP/1.0 [09:14:19]Method: POST [09:14:19]URL: /json_proto [09:14:19]Method is POST - this is cgi request [09:14:19]url: /json_proto [09:14:19]query_string will be loaded in cgi processing [09:14:19]execute_cgi json_proto POST (null) [09:14:19]execute_cgi path=json_proto method=POST [09:14:19]POST find Content-Length [09:14:19]Host: 172.17.40.195:8080 [09:14:19]Content-Length: 677 [09:14:19]Content-Type: application/json [09:14:19] [09:14:19]POST finish read [09:14:19]Found Content-Length = 677 [09:14:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:19]execute_script... [09:14: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)160364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:19]POST & json_proto [09:14:19]process_json_proto [09:14:19]json parsed OK: [09:14:19]protocol is kg_v1.0 [09:14:19]action value=close_receipt [09:14:19]process_action close_receipt [09:14:19]cmd_close_receipt [09:14:19]MH_GetDate [09:14:19]Write to MH i2c: F0 00 00 56 20 65 [09:14:19]Write i2c OK [09:14:19]MH_I2C_Read... [09:14:19]Read from MH i2c: F0 [09:14:19]MH_I2C_Read... [09:14:19]Read from MH i2c: F0 09 00 [09:14:19]MH_I2C_Read... [09:14:19]Read from MH i2c: F0 09 00 56 20 00 6F 04 1E 67 D5 8D 6C 64 98 [09:14:19]GetLastDocTimeStamp 1730019803 [09:14:19]current date 1730020463 [09:14:19]FM_GetShiftState [09:14:19]SAM_PROTO_GetShiftState [09:14:19]wFMCommunicate request_size=4 [09:14:19]MH_SAM_APDU [09:14:19]CAPDU: 80 13 01 00 [09:14:19]Write to MH i2c: E2 08 00 57 20 80 13 01 00 00 00 00 00 F4 [09:14:19]Write i2c OK [09:14:19]MH_I2C_Read... [09:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:19]Read from MH i2c: E2 [09:14:19]MH_I2C_Read... [09:14:19]Read from MH i2c: E2 0E 00 [09:14:19]MH_I2C_Read... [09:14:19]Read from MH i2c: E2 0E 00 57 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6C [09:14:19]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:14:19]wFMCommunicate OK [09:14:19]SAM_PROTO_GetShiftState done [09:14:19]FM_GetShiftState done [09:14:19]opened in 1729988959 [09:14:19]opened+sec_in_day 1730075359 [09:14:19]quantity*price = 50041 [09:14:19]sum+1 = 50042 [09:14:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 37 27.10.2024 09:14 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145614 ФПД: 274532389409569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091423&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145614&fm=274532389409569&tin=02508201610067®Number=0000000000091683&sum=50000 [09:14:20]StoreToDocumentArchive [09:14:20]shift 545 fd 145614 [09:14:20]save to /storage/0545/doc_00145614 [09:14:20]save last doc name /storage/0545/doc_00145614 to /storage/kkm_last_doc_name [09:14:20]save OK [09:14:20]Clear old archive folders... [09:14:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:20]tlvbuf is B6F0A950 [09:14:20]SAM_PROTO_ClearQueue [09:14:20]wFMCommunicate request_size=4 [09:14:20]MH_SAM_APDU [09:14:20]CAPDU: 80 09 00 00 [09:14:20]Write to MH i2c: E2 08 00 64 20 80 09 00 00 00 00 00 00 F6 [09:14:20]Write i2c OK [09:14:20]MH_I2C_Read... [09:14:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:20]Read from MH i2c: E2 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: E2 03 00 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: E2 03 00 64 20 00 90 00 F8 [09:14:20]RAPDU: 90 00 [09:14:20]wFMCommunicate OK [09:14:20]SAM_PROTO_ClearQueue done [09:14:20]KKMCreateOFDPacket [09:14:20]OFDProtocolAddRootSTLVToBuf [09:14:20]FM_MakeSignedData [09:14:20]FM_MakeSignedData [09:14:20]SAM_PROTO_SignData [09:14:20]wFMCommunicate request_size=4 [09:14:20]MH_SAM_APDU [09:14:20]CAPDU: 80 0D 01 02 [09:14:20]Write to MH i2c: E2 08 00 65 20 80 0D 01 02 00 00 00 00 FE [09:14:20]Write i2c OK [09:14:20]MH_I2C_Read... [09:14:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:20]Read from MH i2c: E2 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: E2 03 00 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: E2 03 00 65 20 00 90 00 F9 [09:14:20]RAPDU: 90 00 [09:14:20]wFMCommunicate OK [09:14:20]wFMCommunicate request_size=255 [09:14:20]MH_SAM_APDU [09:14: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6F 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CE 38 02 00 35 04 06 00 F9 [09:14:20]Write to MH i2c: E2 02 01 66 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6F 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CE 38 02 00 35 04 06 00 F9 00 00 CD [09:14:20]Write i2c OK [09:14:20]MH_I2C_Read... [09:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:21]Read from MH i2c: E2 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: E2 03 00 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: E2 03 00 66 20 00 90 00 FA [09:14:21]RAPDU: 90 00 [09:14:21]wFMCommunicate OK [09:14:21]wFMCommunicate request_size=10 [09:14:21]MH_SAM_APDU [09:14:21]CAPDU: 80 0D 02 02 05 AF 8D 8C D3 21 [09:14:21]Write to MH i2c: E2 0D 00 67 20 80 0D 02 02 05 00 AF 8D 8C D3 21 00 00 C7 [09:14:21]Write i2c OK [09:14:21]MH_I2C_Read... [09:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:21]Read from MH i2c: E2 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: E2 03 00 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: E2 03 00 67 20 00 90 00 FB [09:14:21]RAPDU: 90 00 [09:14:21]wFMCommunicate OK [09:14:21]wFMCommunicate request_size=4 [09:14:21]MH_SAM_APDU [09:14:21]CAPDU: 80 0D 03 02 [09:14:21]Write to MH i2c: E2 08 00 68 20 80 0D 03 02 00 00 00 00 03 [09:14:21]Write i2c OK [09:14:21]MH_I2C_Read... [09:14:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:21]Read from MH i2c: E2 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: E2 0B 00 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: E2 0B 00 68 20 00 C1 E9 28 FA FC C8 32 85 90 00 4B [09:14:21]RAPDU: C1 E9 28 FA FC C8 32 85 90 00 [09:14:21]wFMCommunicate OK [09:14:21]SAM_PROTO_SignData done [09:14:21]FM_MakeSignedData done [09:14:21]CreateOFDProtocolMessage [09:14:21]wFMCommunicate request_size=4 [09:14:21]MH_SAM_APDU [09:14:21]CAPDU: 80 11 00 00 [09:14:21]Write to MH i2c: E2 08 00 69 20 80 11 00 00 00 00 00 00 03 [09:14:21]Write i2c OK [09:14:21]MH_I2C_Read... [09:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:21]Read from MH i2c: E2 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: E2 17 00 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: E2 17 00 69 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 56 [09:14:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:14:21]wFMCommunicate OK [09:14:21]CreateOFDProtocolMessage done [09:14:21]OFDSenderStorePacket 145614 [09:14:21]StoreOFDPacket docnum=145614 [09:14:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9D 53 07 01 B4 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6F 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CE 38 02 00 35 04 06 00 F9 AF 8D 8C D3 21 C1 E9 28 FA FC C8 32 85 [09:14:21]CheckFolder [09:14:21]dirname=/storage/ofd_packets [09:14:21]CheckFolder done [09:14:21]ProducePacketName [09:14:21]name=ofd_packets/00145614 [09:14:21]NVStorageSaveData ofd_packets/00145614 [09:14:21]File name is /storage/ofd_packets/00145614 [09:14:21]Write 301 bytes [09:14:21]NVStorageSaveData done [09:14:21]OFDSenderStorePacket done [09:14:21]KKMCreateOFDPacket done [09:14:21]NVStorageSaveData kkm_last_timestamp [09:14:21]File name is /storage/kkm_last_timestamp [09:14:21]Write 4 bytes [09:14:21]NVStorageSaveData done [09:14:21]ExternCall_PrintAddStr [09:14:21]wPrintStart [09:14:21]Write to MH i2c: 01 00 00 6A 20 8A [09:14:21]Write i2c OK [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: 01 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: 01 07 00 [09:14:21]MH_I2C_Read... [09:14:21]Read from MH i2c: 01 07 00 6A 20 00 00 00 00 00 FF 0F 9F [09:14:21]RasterBufferAndPrint [09:14:21]line Счет N : (1)160364 [09:14:21]line ИНН: 02508201610067 [09:14:21]line Контрольно-Кассовый Чек [09:14:21]line ПРОДАЖА [09:14:21]line ТРК (МРК, ГНК) : 32 [09:14:21]line Товар: 2710124130 [09:14:21]line Аи-92-К-2 [09:14:21]line 7.480 * 66.90 [09:14:21]line = 500.41 [09:14:21]line НДС 12% НСП 1% [09:14:21]line > о реализуемом товаре [09:14:21]line ОКРУГЛЕНИЕ: -0.41 [09:14:21]line ИТОГО: 500.00 [09:14:21]line Внесено: 500.00 [09:14:21]line СДАЧА: 0.00 [09:14:21]line НСП 1% : 4.43 [09:14:21]line НДС 12% : 53.14 [09:14:21]line Наличными: 500.00 [09:14:21]line Безнал.: 0.00 [09:14:21]line Место: АЗС № 126 "Партнер Нефть" [09:14:21]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:14:21]line СНО: Общий режим [09:14:21]line Чек 37 27.10.2024 09:14 [09:14:21]line Смена: 545 ФФД: 1.0 [09:14:21]line ЗНМ: 0300000085 [09:14:21]line РНМ: 0000000000091683 [09:14:21]line Версия ККМ: 001 [09:14:21]line ФМ: 0000000000871745 [09:14:21]line ФД: 145614 [09:14:21]line ФПД: 274532389409569 [09:14:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091423&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145614&fm=274532389409569&tin=02508201610067®Number=0000000000091683&sum=50000 [09:14:21]written 0, free lines is 4095 [09:14:21]OFD Sender: Processing packet 145614 [packets to send 205, broken 204] [09:14:21]ProducePacketName [09:14:21]name=ofd_packets/00145614 [09:14:21]OFD Sender: To server: pG, [09:14:21]CommunicateWithHost lk.salyk.kg:30040 [09:14:21]ConnectInit lk.salyk.kg [09:14:21]Connected sock=10 [09:14:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9D 53 07 01 B4 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6F 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CE 38 02 00 35 04 06 00 F9 AF 8D 8C D3 21 C1 E9 28 FA FC C8 32 85 [09:14:22]Write to MH i2c: 01 00 00 95 20 B5 [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: 01 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: 01 07 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: 01 07 00 95 20 00 00 00 00 00 A4 0C 6C [09:14:22]RasterBufferAndPrint [09:14:22]line [09:14:22]line [09:14:22]line [09:14:22]line [09:14:22]line [09:14:22]written 0, free lines is 3242 [09:14:22]MH_Cut [09:14:22]Write to MH i2c: D1 01 00 9C 20 01 8E [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: D1 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: D1 01 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: D1 01 00 9C 20 00 8D [09:14:22]Write to MH i2c: 01 00 00 9D 20 BD [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A2 0C 47 00 1D D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CE 38 02 00 F4 03 04 00 9D A9 1D 67 B6 04 01 00 00 41 E7 03 A6 DA 22 06 6C [09:14:22]CommunicateWithHost err = 0 [09:14:22]CheckOFDResponse [09:14:22]1017 (14) - 77093643461234 [09:14:22]1041 (16) - 0000000000871745 [09:14:22]1040 (4) - 145614 [09:14:22]1012 (4) - 27.10.2024 02:46 [09:14:22]1206 (1) - 0 [09:14:22]OFD Sender: Remove packet 145614 [09:14:22]ProducePacketName [09:14:22]name=ofd_packets/00145614 [09:14:22]NVStorageDeleteData [09:14:22]OFD Sender: No OFD packet to send [09:14:22]*** Cut start [09:14:22]*** Partial cut [09:14:22]*** CUTSNS_PIN = 1 [09:14:22]*** CUTSNS_PIN = 0 [09:14:23]*** Brake cut motor [09:14:23]Read from MH i2c: 01 [09:14:23]MH_I2C_Read... [09:14:23]*** Stop cut motor [09:14:23]*** Cut end [09:14:23]Read from MH i2c: 01 07 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: 01 07 00 9D 20 00 00 00 00 00 FF 0F D2 [09:14:23]process_action close_receipt done [09:14:23]requested_data is exist [09:14:23]produce_requested_data [09:14:23]requested_item fm.sn is exist - process it [09:14:23]wFMCommunicate request_size=4 [09:14:23]MH_SAM_APDU [09:14:23]CAPDU: 80 11 00 00 [09:14:23]Write to MH i2c: E2 08 00 9E 20 80 11 00 00 00 00 00 00 38 [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:23]Read from MH i2c: E2 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 17 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 17 00 9E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8B [09:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:14:23]wFMCommunicate OK [09:14:23]requested_item fd.num is exist - process it [09:14:23]SAM_PROTO_GetFieldsCounters [09:14:23]wFMCommunicate request_size=4 [09:14:23]MH_SAM_APDU [09:14:23]CAPDU: 80 13 00 00 [09:14:23]Write to MH i2c: E2 08 00 9F 20 80 13 00 00 00 00 00 00 3B [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:23]Read from MH i2c: E2 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 62 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 62 00 9F 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CE 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [09:14:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CE 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:23]wFMCommunicate OK [09:14:23]SAM_PROTO_GetFieldsCounters done [09:14:23]requested_item shift.num is exist - process it [09:14:23]requested_item shift.opened is exist - process it [09:14:23]req_shift_opened [09:14:23]FM_GetShiftState [09:14:23]SAM_PROTO_GetShiftState [09:14:23]wFMCommunicate request_size=4 [09:14:23]MH_SAM_APDU [09:14:23]CAPDU: 80 13 01 00 [09:14:23]Write to MH i2c: E2 08 00 A0 20 80 13 01 00 00 00 00 00 3D [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:23]Read from MH i2c: E2 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 0E 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 0E 00 A0 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B5 [09:14:23]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:14:23]wFMCommunicate OK [09:14:23]SAM_PROTO_GetShiftState done [09:14:23]FM_GetShiftState done [09:14:23]req_shift_opened done [09:14:23]requested_item shift.open_date is exist - process it [09:14:23]req_shift_open_date [09:14:23]req_shift_open_date done [09:14:23]produce_requested_data done [09:14:23]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145614,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:14:23]process_action_free close_receipt [09:14:23]json_value_free [09:14:23]json_value_free done [09:14:23]process_json_proto returns [09:14:23]Send response to host [09:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145614,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:14:23]free response buf [09:14:23]execute_script done [09:14:23]execute_script returns [09:14:23]free content buf [09:14:23]Sock 7.Close socket [09:14:23]Sock 7.Thread stoped [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]accept exits with 9 [09:15:37]New connection [09:15:37]New thread 3067006308 created [09:15:37]Thread 3067149668 joined [09:15:37]Waiting for new connection... [09:15:37] Sock 9.Parse request [09:15:37]Sock 9.Check first char [09:15:37]Sock 9.First char is OK [09:15:37]request: POST /json_proto HTTP/1.0 [09:15:37]Method: POST [09:15:37]URL: /json_proto [09:15:37]Method is POST - this is cgi request [09:15:37]url: /json_proto [09:15:37]query_string will be loaded in cgi processing [09:15:37]execute_cgi json_proto POST (null) [09:15:37]execute_cgi path=json_proto method=POST [09:15:37]POST find Content-Length [09:15:37]Host: 172.17.40.195:8080 [09:15:37]Content-Length: 678 [09:15:37]Content-Type: application/json [09:15:37] [09:15:37]POST finish read [09:15:37]Found Content-Length = 678 [09:15:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:37]execute_script... [09:15:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:37]POST & json_proto [09:15:37]process_json_proto [09:15:37]json parsed OK: [09:15:37]protocol is kg_v1.0 [09:15:37]action value=close_receipt [09:15:37]process_action close_receipt [09:15:37]cmd_close_receipt [09:15:37]MH_GetDate [09:15:37]Write to MH i2c: F0 00 00 A1 20 B0 [09:15:37]Write i2c OK [09:15:37]MH_I2C_Read... [09:15:37]Read from MH i2c: F0 [09:15:37]MH_I2C_Read... [09:15:37]Read from MH i2c: F0 09 00 [09:15:37]MH_I2C_Read... [09:15:37]Read from MH i2c: F0 09 00 A1 20 00 BC 04 1E 67 D5 8D 6C 64 30 [09:15:37]GetLastDocTimeStamp 1730020463 [09:15:37]current date 1730020540 [09:15:37]FM_GetShiftState [09:15:37]SAM_PROTO_GetShiftState [09:15:37]wFMCommunicate request_size=4 [09:15:37]MH_SAM_APDU [09:15:37]CAPDU: 80 13 01 00 [09:15:37]Write to MH i2c: E2 08 00 A2 20 80 13 01 00 00 00 00 00 3F [09:15:37]Write i2c OK [09:15:37]MH_I2C_Read... [09:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:37]Read from MH i2c: E2 [09:15:37]MH_I2C_Read... [09:15:37]Read from MH i2c: E2 0E 00 [09:15:37]MH_I2C_Read... [09:15:37]Read from MH i2c: E2 0E 00 A2 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B7 [09:15:37]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:15:37]wFMCommunicate OK [09:15:37]SAM_PROTO_GetShiftState done [09:15:37]FM_GetShiftState done [09:15:37]opened in 1729988959 [09:15:37]opened+sec_in_day 1730075359 [09:15:37]quantity*price = 90047 [09:15:37]sum+1 = 90048 [09:15:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 38 27.10.2024 09:15 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145615 ФПД: 188214727759551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091541&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145615&fm=188214727759551&tin=02508201610067®Number=0000000000091683&sum=90000 [09:15:38]StoreToDocumentArchive [09:15:38]shift 545 fd 145615 [09:15:38]save to /storage/0545/doc_00145615 [09:15:38]save last doc name /storage/0545/doc_00145615 to /storage/kkm_last_doc_name [09:15:38]save OK [09:15:38]Clear old archive folders... [09:15:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:38]tlvbuf is 01A8BC60 [09:15:38]SAM_PROTO_ClearQueue [09:15:38]wFMCommunicate request_size=4 [09:15:38]MH_SAM_APDU [09:15:38]CAPDU: 80 09 00 00 [09:15:38]Write to MH i2c: E2 08 00 AF 20 80 09 00 00 00 00 00 00 41 [09:15:38]Write i2c OK [09:15:38]MH_I2C_Read... [09:15:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:38]Read from MH i2c: E2 [09:15:38]MH_I2C_Read... [09:15:38]Read from MH i2c: E2 03 00 [09:15:38]MH_I2C_Read... [09:15:38]Read from MH i2c: E2 03 00 AF 20 00 90 00 43 [09:15:38]RAPDU: 90 00 [09:15:38]wFMCommunicate OK [09:15:38]SAM_PROTO_ClearQueue done [09:15:38]KKMCreateOFDPacket [09:15:38]OFDProtocolAddRootSTLVToBuf [09:15:38]FM_MakeSignedData [09:15:38]FM_MakeSignedData [09:15:38]SAM_PROTO_SignData [09:15:38]wFMCommunicate request_size=4 [09:15:38]MH_SAM_APDU [09:15:38]CAPDU: 80 0D 01 02 [09:15:38]Write to MH i2c: E2 08 00 B0 20 80 0D 01 02 00 00 00 00 49 [09:15:38]Write i2c OK [09:15:38]MH_I2C_Read... [09:15:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:38]Read from MH i2c: E2 [09:15:38]MH_I2C_Read... [09:15:38]Read from MH i2c: E2 03 00 [09:15:38]MH_I2C_Read... [09:15:38]Read from MH i2c: E2 03 00 B0 20 00 90 00 44 [09:15:38]RAPDU: 90 00 [09:15:38]wFMCommunicate OK [09:15:38]wFMCommunicate request_size=255 [09:15:38]MH_SAM_APDU [09:15:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BD 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CF 38 02 00 35 04 06 00 AB [09:15:38]Write to MH i2c: E2 02 01 B1 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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BD 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CF 38 02 00 35 04 06 00 AB 00 00 37 [09:15:38]Write i2c OK [09:15:38]MH_I2C_Read... [09:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:39]Read from MH i2c: E2 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 B1 20 00 90 00 45 [09:15:39]RAPDU: 90 00 [09:15:39]wFMCommunicate OK [09:15:39]wFMCommunicate request_size=10 [09:15:39]MH_SAM_APDU [09:15:39]CAPDU: 80 0D 02 02 05 2E 27 FD 56 BF [09:15:39]Write to MH i2c: E2 0D 00 B2 20 80 0D 02 02 05 00 2E 27 FD 56 BF 00 00 BD [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:39]Read from MH i2c: E2 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 03 00 B2 20 00 90 00 46 [09:15:39]RAPDU: 90 00 [09:15:39]wFMCommunicate OK [09:15:39]wFMCommunicate request_size=4 [09:15:39]MH_SAM_APDU [09:15:39]CAPDU: 80 0D 03 02 [09:15:39]Write to MH i2c: E2 08 00 B3 20 80 0D 03 02 00 00 00 00 4E [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:39]Read from MH i2c: E2 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 0B 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 0B 00 B3 20 00 6E B1 AE 51 5E 44 FA 5F 90 00 68 [09:15:39]RAPDU: 6E B1 AE 51 5E 44 FA 5F 90 00 [09:15:39]wFMCommunicate OK [09:15:39]SAM_PROTO_SignData done [09:15:39]FM_MakeSignedData done [09:15:39]CreateOFDProtocolMessage [09:15:39]wFMCommunicate request_size=4 [09:15:39]MH_SAM_APDU [09:15:39]CAPDU: 80 11 00 00 [09:15:39]Write to MH i2c: E2 08 00 B4 20 80 11 00 00 00 00 00 00 4E [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:39]Read from MH i2c: E2 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 17 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: E2 17 00 B4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A1 [09:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:15:39]wFMCommunicate OK [09:15:39]CreateOFDProtocolMessage done [09:15:39]OFDSenderStorePacket 145615 [09:15:39]StoreOFDPacket docnum=145615 [09:15:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 67 81 07 01 D3 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BD 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CF 38 02 00 35 04 06 00 AB 2E 27 FD 56 BF 6E B1 AE 51 5E 44 FA 5F [09:15:39]CheckFolder [09:15:39]dirname=/storage/ofd_packets [09:15:39]CheckFolder done [09:15:39]ProducePacketName [09:15:39]name=ofd_packets/00145615 [09:15:39]NVStorageSaveData ofd_packets/00145615 [09:15:39]File name is /storage/ofd_packets/00145615 [09:15:39]Write 301 bytes [09:15:39]NVStorageSaveData done [09:15:39]OFDSenderStorePacket done [09:15:39]KKMCreateOFDPacket done [09:15:39]NVStorageSaveData kkm_last_timestamp [09:15:39]File name is /storage/kkm_last_timestamp [09:15:39]Write 4 bytes [09:15:39]NVStorageSaveData done [09:15:39]ExternCall_PrintAddStr [09:15:39]wPrintStart [09:15:39]Write to MH i2c: 01 00 00 B5 20 D5 [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: 01 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: 01 07 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: 01 07 00 B5 20 00 00 00 00 00 FF 0F EA [09:15:39]RasterBufferAndPrint [09:15:39]line Счет N : (1)160365 [09:15:39]line ИНН: 02508201610067 [09:15:39]line Контрольно-Кассовый Чек [09:15:39]line ПРОДАЖА [09:15:39]line ТРК (МРК, ГНК) : 62 [09:15:39]line Товар: 2710124130 [09:15:39]line Аи-92-К-2 [09:15:39]line 13.460 * 66.90 [09:15:39]line = 900.47 [09:15:39]line НДС 12% НСП 1% [09:15:39]line > о реализуемом товаре [09:15:39]line ОКРУГЛЕНИЕ: -0.47 [09:15:39]line ИТОГО: 900.00 [09:15:39]line Внесено: 900.00 [09:15:39]line СДАЧА: 0.00 [09:15:39]line НСП 1% : 7.97 [09:15:39]line НДС 12% : 95.62 [09:15:39]line Наличными: 900.00 [09:15:39]line Безнал.: 0.00 [09:15:39]line Место: АЗС № 126 "Партнер Нефть" [09:15:39]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:15:39]line СНО: Общий режим [09:15:39]line Чек 38 27.10.2024 09:15 [09:15:39]line Смена: 545 ФФД: 1.0 [09:15:39]line ЗНМ: 0300000085 [09:15:39]line РНМ: 0000000000091683 [09:15:39]line Версия ККМ: 001 [09:15:39]line ФМ: 0000000000871745 [09:15:39]line ФД: 145615 [09:15:39]line ФПД: 188214727759551 [09:15:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091541&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145615&fm=188214727759551&tin=02508201610067®Number=0000000000091683&sum=90000 [09:15:39]written 0, free lines is 4095 [09:15:39]OFD Sender: Processing packet 145615 [packets to send 205, broken 204] [09:15:39]ProducePacketName [09:15:39]name=ofd_packets/00145615 [09:15:39]OFD Sender: To server: pG, [09:15:39]CommunicateWithHost lk.salyk.kg:30040 [09:15:39]ConnectInit lk.salyk.kg [09:15:39]Connected sock=10 [09:15:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 67 81 07 01 D3 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BD 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CF 38 02 00 35 04 06 00 AB 2E 27 FD 56 BF 6E B1 AE 51 5E 44 FA 5F [09:15:39]Write to MH i2c: 01 00 00 E0 20 00 [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: 01 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: 01 07 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: 01 07 00 E0 20 00 00 00 00 00 A6 0C B9 [09:15:39]RasterBufferAndPrint [09:15:39]line [09:15:39]line [09:15:39]line [09:15:39]line [09:15:39]line [09:15:39]written 0, free lines is 3243 [09:15:39]MH_Cut [09:15:39]Write to MH i2c: D1 01 00 E7 20 01 D9 [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: D1 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: D1 01 00 [09:15:39]MH_I2C_Read... [09:15:39]Read from MH i2c: D1 01 00 E7 20 00 D8 [09:15:39]Write to MH i2c: 01 00 00 E8 20 08 [09:15:39]Write i2c OK [09:15:39]MH_I2C_Read... [09:15:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 9E A5 47 00 9E B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CF 38 02 00 F4 03 04 00 EB A9 1D 67 B6 04 01 00 00 F3 85 59 C9 38 A7 D9 17 [09:15:40]CommunicateWithHost err = 0 [09:15:40]CheckOFDResponse [09:15:40]1017 (14) - 77093643461234 [09:15:40]1041 (16) - 0000000000871745 [09:15:40]1040 (4) - 145615 [09:15:40]1012 (4) - 27.10.2024 02:48 [09:15:40]1206 (1) - 0 [09:15:40]OFD Sender: Remove packet 145615 [09:15:40]ProducePacketName [09:15:40]name=ofd_packets/00145615 [09:15:40]NVStorageDeleteData [09:15:40]OFD Sender: No OFD packet to send [09:15:40]*** Cut start [09:15:40]*** Partial cut [09:15:40]*** CUTSNS_PIN = 1 [09:15:40]*** CUTSNS_PIN = 0 [09:15:41]*** Brake cut motor [09:15:41]Read from MH i2c: 01 [09:15:41]MH_I2C_Read... [09:15:41]*** Stop cut motor [09:15:41]Read from MH i2c: *** Cut end [09:15:41]01 07 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: 01 07 00 E8 20 00 00 00 00 00 FF 0F 1D [09:15:41]process_action close_receipt done [09:15:41]requested_data is exist [09:15:41]produce_requested_data [09:15:41]requested_item fm.sn is exist - process it [09:15:41]wFMCommunicate request_size=4 [09:15:41]MH_SAM_APDU [09:15:41]CAPDU: 80 11 00 00 [09:15:41]Write to MH i2c: E2 08 00 E9 20 80 11 00 00 00 00 00 00 83 [09:15:41]Write i2c OK [09:15:41]MH_I2C_Read... [09:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:41]Read from MH i2c: E2 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 17 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 17 00 E9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D6 [09:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:15:41]wFMCommunicate OK [09:15:41]requested_item fd.num is exist - process it [09:15:41]SAM_PROTO_GetFieldsCounters [09:15:41]wFMCommunicate request_size=4 [09:15:41]MH_SAM_APDU [09:15:41]CAPDU: 80 13 00 00 [09:15:41]Write to MH i2c: E2 08 00 EA 20 80 13 00 00 00 00 00 00 86 [09:15:41]Write i2c OK [09:15:41]MH_I2C_Read... [09:15:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:41]Read from MH i2c: E2 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 62 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 62 00 EA 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CF 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [09:15:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CF 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:41]wFMCommunicate OK [09:15:41]SAM_PROTO_GetFieldsCounters done [09:15:41]requested_item shift.num is exist - process it [09:15:41]requested_item shift.opened is exist - process it [09:15:41]req_shift_opened [09:15:41]FM_GetShiftState [09:15:41]SAM_PROTO_GetShiftState [09:15:41]wFMCommunicate request_size=4 [09:15:41]MH_SAM_APDU [09:15:41]CAPDU: 80 13 01 00 [09:15:41]Write to MH i2c: E2 08 00 EB 20 80 13 01 00 00 00 00 00 88 [09:15:41]Write i2c OK [09:15:41]MH_I2C_Read... [09:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:41]Read from MH i2c: E2 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 0E 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 0E 00 EB 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 00 [09:15:41]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:15:41]wFMCommunicate OK [09:15:41]SAM_PROTO_GetShiftState done [09:15:41]FM_GetShiftState done [09:15:41]req_shift_opened done [09:15:41]requested_item shift.open_date is exist - process it [09:15:41]req_shift_open_date [09:15:41]req_shift_open_date done [09:15:41]produce_requested_data done [09:15:41]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145615,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:15:41]process_action_free close_receipt [09:15:41]json_value_free [09:15:41]json_value_free done [09:15:41]process_json_proto returns [09:15:41]Send response to host [09:15:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145615,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:15:41]free response buf [09:15:41]execute_script done [09:15:41]execute_script returns [09:15:41]free content buf [09:15:41]Sock 9.Close socket [09:15:41]Sock 9.Thread stoped [09:15:41]accept exits with 7 [09:15:41]New connection [09:15:41]New thread 3067149668 created [09:15:41]Thread 3067006308 joined [09:15:41]Waiting for new connection... [09:15:41] Sock 7.Parse request [09:15:41]Sock 7.Check first char [09:15:41]Sock 7.First char is OK [09:15:41]request: POST /json_proto HTTP/1.0 [09:15:41]Method: POST [09:15:41]URL: /json_proto [09:15:41]Method is POST - this is cgi request [09:15:41]url: /json_proto [09:15:41]query_string will be loaded in cgi processing [09:15:41]execute_cgi json_proto POST (null) [09:15:41]execute_cgi path=json_proto method=POST [09:15:41]POST find Content-Length [09:15:41]Host: 172.17.40.195:8080 [09:15:41]Content-Length: 677 [09:15:41]Content-Type: application/json [09:15:41] [09:15:41]POST finish read [09:15:41]Found Content-Length = 677 [09:15:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:41]execute_script... [09:15: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)160366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:41]POST & json_proto [09:15:41]process_json_proto [09:15:41]json parsed OK: [09:15:41]protocol is kg_v1.0 [09:15:41]action value=close_receipt [09:15:41]process_action close_receipt [09:15:41]cmd_close_receipt [09:15:41]MH_GetDate [09:15:41]Write to MH i2c: F0 00 00 EC 20 FB [09:15:41]Write i2c OK [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: F0 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: F0 09 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: F0 09 00 EC 20 00 C1 04 1E 67 D5 8D 6C 64 80 [09:15:41]GetLastDocTimeStamp 1730020541 [09:15:41]current date 1730020545 [09:15:41]FM_GetShiftState [09:15:41]SAM_PROTO_GetShiftState [09:15:41]wFMCommunicate request_size=4 [09:15:41]MH_SAM_APDU [09:15:41]CAPDU: 80 13 01 00 [09:15:41]Write to MH i2c: E2 08 00 ED 20 80 13 01 00 00 00 00 00 8A [09:15:41]Write i2c OK [09:15:41]MH_I2C_Read... [09:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:41]Read from MH i2c: E2 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 0E 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 0E 00 ED 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 02 [09:15:41]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:15:41]wFMCommunicate OK [09:15:41]SAM_PROTO_GetShiftState done [09:15:41]FM_GetShiftState done [09:15:41]opened in 1729988959 [09:15:41]opened+sec_in_day 1730075359 [09:15:41]quantity*price = 20003 [09:15:41]sum+1 = 20004 [09:15:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 39 27.10.2024 09:15 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145616 ФПД: 10911224595299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091545&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145616&fm=10911224595299&tin=02508201610067®Number=0000000000091683&sum=20000 [09:15:43]StoreToDocumentArchive [09:15:43]shift 545 fd 145616 [09:15:43]save to /storage/0545/doc_00145616 [09:15:43]save last doc name /storage/0545/doc_00145616 to /storage/kkm_last_doc_name [09:15:43]save OK [09:15:43]Clear old archive folders... [09:15:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:43]tlvbuf is 01B164C0 [09:15:43]SAM_PROTO_ClearQueue [09:15:43]wFMCommunicate request_size=4 [09:15:43]MH_SAM_APDU [09:15:43]CAPDU: 80 09 00 00 [09:15:43]Write to MH i2c: E2 08 00 FA 20 80 09 00 00 00 00 00 00 8C [09:15:43]Write i2c OK [09:15:43]MH_I2C_Read... [09:15:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:43]Read from MH i2c: E2 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 03 00 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 03 00 FA 20 00 90 00 8E [09:15:43]RAPDU: 90 00 [09:15:43]wFMCommunicate OK [09:15:43]SAM_PROTO_ClearQueue done [09:15:43]KKMCreateOFDPacket [09:15:43]OFDProtocolAddRootSTLVToBuf [09:15:43]FM_MakeSignedData [09:15:43]FM_MakeSignedData [09:15:43]SAM_PROTO_SignData [09:15:43]wFMCommunicate request_size=4 [09:15:43]MH_SAM_APDU [09:15:43]CAPDU: 80 0D 01 02 [09:15:43]Write to MH i2c: E2 08 00 FB 20 80 0D 01 02 00 00 00 00 94 [09:15:43]Write i2c OK [09:15:43]MH_I2C_Read... [09:15:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:43]Read from MH i2c: E2 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 03 00 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 03 00 FB 20 00 90 00 8F [09:15:43]RAPDU: 90 00 [09:15:43]wFMCommunicate OK [09:15:43]wFMCommunicate request_size=255 [09:15:43]MH_SAM_APDU [09:15: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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C1 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D0 38 02 00 35 04 06 00 09 [09:15:43]Write to MH i2c: E2 02 01 FC 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C1 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D0 38 02 00 35 04 06 00 09 00 00 8B [09:15:43]Write i2c OK [09:15:43]MH_I2C_Read... [09:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:43]Read from MH i2c: E2 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 03 00 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 03 00 FC 20 00 90 00 90 [09:15:43]RAPDU: 90 00 [09:15:43]wFMCommunicate OK [09:15:43]wFMCommunicate request_size=10 [09:15:43]MH_SAM_APDU [09:15:43]CAPDU: 80 0D 02 02 05 EC 77 AA 83 63 [09:15:43]Write to MH i2c: E2 0D 00 FD 20 80 0D 02 02 05 00 EC 77 AA 83 63 00 00 94 [09:15:43]Write i2c OK [09:15:43]MH_I2C_Read... [09:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:43]Read from MH i2c: E2 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 03 00 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 03 00 FD 20 00 90 00 91 [09:15:43]RAPDU: 90 00 [09:15:43]wFMCommunicate OK [09:15:43]wFMCommunicate request_size=4 [09:15:43]MH_SAM_APDU [09:15:43]CAPDU: 80 0D 03 02 [09:15:43]Write to MH i2c: E2 08 00 FE 20 80 0D 03 02 00 00 00 00 99 [09:15:43]Write i2c OK [09:15:43]MH_I2C_Read... [09:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:43]Read from MH i2c: E2 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 0B 00 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 0B 00 FE 20 00 D0 A3 0B 11 6D CF 09 06 90 00 74 [09:15:43]RAPDU: D0 A3 0B 11 6D CF 09 06 90 00 [09:15:43]wFMCommunicate OK [09:15:43]SAM_PROTO_SignData done [09:15:43]FM_MakeSignedData done [09:15:43]CreateOFDProtocolMessage [09:15:43]wFMCommunicate request_size=4 [09:15:43]MH_SAM_APDU [09:15:43]CAPDU: 80 11 00 00 [09:15:43]Write to MH i2c: E2 08 00 FF 20 80 11 00 00 00 00 00 00 99 [09:15:43]Write i2c OK [09:15:43]MH_I2C_Read... [09:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:43]Read from MH i2c: E2 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 17 00 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 17 00 FF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EC [09:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:15:44]wFMCommunicate OK [09:15:44]CreateOFDProtocolMessage done [09:15:44]OFDSenderStorePacket 145616 [09:15:44]StoreOFDPacket docnum=145616 [09:15:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 7C 9C 07 01 D7 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C1 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D0 38 02 00 35 04 06 00 09 EC 77 AA 83 63 D0 A3 0B 11 6D CF 09 06 [09:15:44]CheckFolder [09:15:44]dirname=/storage/ofd_packets [09:15:44]CheckFolder done [09:15:44]ProducePacketName [09:15:44]name=ofd_packets/00145616 [09:15:44]NVStorageSaveData ofd_packets/00145616 [09:15:44]File name is /storage/ofd_packets/00145616 [09:15:44]Write 301 bytes [09:15:44]NVStorageSaveData done [09:15:44]OFDSenderStorePacket done [09:15:44]KKMCreateOFDPacket done [09:15:44]NVStorageSaveData kkm_last_timestamp [09:15:44]File name is /storage/kkm_last_timestamp [09:15:44]Write 4 bytes [09:15:44]NVStorageSaveData done [09:15:44]ExternCall_PrintAddStr [09:15:44]wPrintStart [09:15:44]Write to MH i2c: 01 00 00 00 21 21 [09:15:44]OFD Sender: Processing packet 145616 [packets to send 205, broken 204] [09:15:44]ProducePacketName [09:15:44]name=ofd_packets/00145616 [09:15:44]OFD Sender: To server: pG, [09:15:44]CommunicateWithHost lk.salyk.kg:30040 [09:15:44]ConnectInit lk.salyk.kg [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 07 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 07 00 00 21 00 00 00 00 00 FF 0F 36 [09:15:44]RasterBufferAndPrint [09:15:44]line Счет N : (1)160366 [09:15:44]line ИНН: 02508201610067 [09:15:44]line Контрольно-Кассовый Чек [09:15:44]line ПРОДАЖА [09:15:44]line ТРК (МРК, ГНК) : 42 [09:15:44]line Товар: 2710124130 [09:15:44]line Аи-92-К-2 [09:15:44]line 2.990 * 66.90 [09:15:44]line = 200.03 [09:15:44]line НДС 12% НСП 1% [09:15:44]line > о реализуемом товаре [09:15:44]line ОКРУГЛЕНИЕ: -0.03 [09:15:44]line ИТОГО: 200.00 [09:15:44]line Внесено: 200.00 [09:15:44]line СДАЧА: 0.00 [09:15:44]line НСП 1% : 1.77 [09:15:44]line НДС 12% : 21.24 [09:15:44]line Наличными: 200.00 [09:15:44]line Безнал.: 0.00 [09:15:44]line Место: АЗС № 126 "Партнер Нефть" [09:15:44]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:15:44]line СНО: Общий режим [09:15:44]line Чек 39 27.10.2024 09:15 [09:15:44]line Смена: 545 ФФД: 1.0 [09:15:44]line ЗНМ: 0300000085 [09:15:44]line РНМ: 0000000000091683 [09:15:44]line Версия ККМ: 001 [09:15:44]line ФМ: 0000000000871745 [09:15:44]line ФД: 145616 [09:15:44]line ФПД: 10911224595299 [09:15:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091545&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145616&fm=10911224595299&tin=02508201610067®Number=0000000000091683&sum=20000 [09:15:44]written 0, free lines is 4095 [09:15:44]Connected sock=10 [09:15:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 7C 9C 07 01 D7 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C1 04 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D0 38 02 00 35 04 06 00 09 EC 77 AA 83 63 D0 A3 0B 11 6D CF 09 06 [09:15:44]Write to MH i2c: 01 00 00 2B 21 4C [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 07 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 07 00 2B 21 00 00 00 00 00 BA 0C 19 [09:15:44]RasterBufferAndPrint [09:15:44]line [09:15:44]line [09:15:44]line [09:15:44]line [09:15:44]line [09:15:44]written 0, free lines is 3271 [09:15:44]MH_Cut [09:15:44]Write to MH i2c: D1 01 00 32 21 01 25 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: D1 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: D1 01 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: D1 01 00 32 21 00 24 [09:15:44]Write to MH i2c: 01 00 00 33 21 54 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 79 03 47 00 E7 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D0 38 02 00 F4 03 04 00 EF A9 1D 67 B6 04 01 00 00 72 FE 30 71 9F 98 B5 76 [09:15:44]CommunicateWithHost err = 0 [09:15:44]CheckOFDResponse [09:15:44]1017 (14) - 77093643461234 [09:15:44]1041 (16) - 0000000000871745 [09:15:44]1040 (4) - 145616 [09:15:44]1012 (4) - 27.10.2024 02:48 [09:15:44]1206 (1) - 0 [09:15:44]OFD Sender: Remove packet 145616 [09:15:44]ProducePacketName [09:15:44]name=ofd_packets/00145616 [09:15:44]NVStorageDeleteData [09:15:45]OFD Sender: No OFD packet to send [09:15:45]*** Cut start [09:15:45]*** Partial cut [09:15:45]*** CUTSNS_PIN = 1 [09:15:45]*** CUTSNS_PIN = 0 [09:15:45]*** Brake cut motor [09:15:45]Read from MH i2c: 01 [09:15:45]MH_I2C_Read... [09:15:45]*** Stop cut motor [09:15:45]*** Cut end [09:15:45]Read from MH i2c: 01 07 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: 01 07 00 33 21 00 00 00 00 00 FF 0F 69 [09:15:45]process_action close_receipt done [09:15:45]requested_data is exist [09:15:45]produce_requested_data [09:15:45]requested_item fm.sn is exist - process it [09:15:45]wFMCommunicate request_size=4 [09:15:45]MH_SAM_APDU [09:15:45]CAPDU: 80 11 00 00 [09:15:45]Write to MH i2c: E2 08 00 34 21 80 11 00 00 00 00 00 00 CF [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:45]Read from MH i2c: E2 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 17 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 17 00 34 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 22 [09:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:15:45]wFMCommunicate OK [09:15:45]requested_item fd.num is exist - process it [09:15:45]SAM_PROTO_GetFieldsCounters [09:15:45]wFMCommunicate request_size=4 [09:15:45]MH_SAM_APDU [09:15:45]CAPDU: 80 13 00 00 [09:15:45]Write to MH i2c: E2 08 00 35 21 80 13 00 00 00 00 00 00 D2 [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:46]Read from MH i2c: E2 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 62 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 62 00 35 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D0 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [09:15:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D0 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:46]wFMCommunicate OK [09:15:46]SAM_PROTO_GetFieldsCounters done [09:15:46]requested_item shift.num is exist - process it [09:15:46]requested_item shift.opened is exist - process it [09:15:46]req_shift_opened [09:15:46]FM_GetShiftState [09:15:46]SAM_PROTO_GetShiftState [09:15:46]wFMCommunicate request_size=4 [09:15:46]MH_SAM_APDU [09:15:46]CAPDU: 80 13 01 00 [09:15:46]Write to MH i2c: E2 08 00 36 21 80 13 01 00 00 00 00 00 D4 [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:46]Read from MH i2c: E2 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 0E 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 0E 00 36 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4C [09:15:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:15:46]wFMCommunicate OK [09:15:46]SAM_PROTO_GetShiftState done [09:15:46]FM_GetShiftState done [09:15:46]req_shift_opened done [09:15:46]requested_item shift.open_date is exist - process it [09:15:46]req_shift_open_date [09:15:46]req_shift_open_date done [09:15:46]produce_requested_data done [09:15:46]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145616,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:15:46]process_action_free close_receipt [09:15:46]json_value_free [09:15:46]json_value_free done [09:15:46]process_json_proto returns [09:15:46]Send response to host [09:15:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145616,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:15:46]free response buf [09:15:46]execute_script done [09:15:46]execute_script returns [09:15:46]free content buf [09:15:46]Sock 7.Close socket [09:15:46]Sock 7.Thread stoped [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:07]accept exits with 9 [09:20:07]New connection [09:20:07]New thread 3067006308 created [09:20:07]Thread 3067149668 joined [09:20:07]Waiting for new connection... [09:20:07] Sock 9.Parse request [09:20:07]Sock 9.Check first char [09:20:07]Sock 9.First char is OK [09:20:07]request: POST /json_proto HTTP/1.0 [09:20:07]Method: POST [09:20:07]URL: /json_proto [09:20:07]Method is POST - this is cgi request [09:20:07]url: /json_proto [09:20:07]query_string will be loaded in cgi processing [09:20:07]execute_cgi json_proto POST (null) [09:20:07]execute_cgi path=json_proto method=POST [09:20:07]POST find Content-Length [09:20:07]Host: 172.17.40.195:8080 [09:20:07]Content-Length: 751 [09:20:07]Content-Type: application/json [09:20:07] [09:20:07]POST finish read [09:20:07]Found Content-Length = 751 [09:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:07]execute_script... [09:20: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)160367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:07]POST & json_proto [09:20:07]process_json_proto [09:20:07]json parsed OK: [09:20:07]protocol is kg_v1.0 [09:20:07]action value=close_receipt [09:20:07]process_action close_receipt [09:20:07]cmd_close_receipt [09:20:07]MH_GetDate [09:20:07]Write to MH i2c: F0 00 00 37 21 47 [09:20:07]Write i2c OK [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: F0 [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: F0 09 00 [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: F0 09 00 37 21 00 CA 05 1E 67 D5 8D 6C 64 D6 [09:20:07]GetLastDocTimeStamp 1730020545 [09:20:07]current date 1730020810 [09:20:07]FM_GetShiftState [09:20:07]SAM_PROTO_GetShiftState [09:20:07]wFMCommunicate request_size=4 [09:20:07]MH_SAM_APDU [09:20:07]CAPDU: 80 13 01 00 [09:20:07]Write to MH i2c: E2 08 00 38 21 80 13 01 00 00 00 00 00 D6 [09:20:07]Write i2c OK [09:20:07]MH_I2C_Read... [09:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:07]Read from MH i2c: E2 [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: E2 0E 00 [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: E2 0E 00 38 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4E [09:20:07]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:20:07]wFMCommunicate OK [09:20:07]SAM_PROTO_GetShiftState done [09:20:07]FM_GetShiftState done [09:20:07]opened in 1729988959 [09:20:07]opened+sec_in_day 1730075359 [09:20:07]quantity*price = 0 [09:20:07]sum+1 = 1 [09:20:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 40 27.10.2024 09:20 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097887 ФМ: 0000000000871745 ФД: 145617 ФПД: 153721649846576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092010&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145617&fm=153721649846576&tin=02508201610067®Number=0000000000091683&sum=0 [09:20:08]StoreToDocumentArchive [09:20:08]shift 545 fd 145617 [09:20:08]save to /storage/0545/doc_00145617 [09:20:08]save last doc name /storage/0545/doc_00145617 to /storage/kkm_last_doc_name [09:20:08]save OK [09:20:08]Clear old archive folders... [09:20:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:20:08]tlvbuf is 01A5B300 [09:20:08]SAM_PROTO_ClearQueue [09:20:08]wFMCommunicate request_size=4 [09:20:08]MH_SAM_APDU [09:20:08]CAPDU: 80 09 00 00 [09:20:08]Write to MH i2c: E2 08 00 45 21 80 09 00 00 00 00 00 00 D8 [09:20:08]Write i2c OK [09:20:08]MH_I2C_Read... [09:20:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:08]Read from MH i2c: E2 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 03 00 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 03 00 45 21 00 90 00 DA [09:20:08]RAPDU: 90 00 [09:20:08]wFMCommunicate OK [09:20:08]SAM_PROTO_ClearQueue done [09:20:08]KKMCreateOFDPacket [09:20:08]OFDProtocolAddRootSTLVToBuf [09:20:08]FM_MakeSignedData [09:20:08]FM_MakeSignedData [09:20:08]SAM_PROTO_SignData [09:20:08]wFMCommunicate request_size=4 [09:20:08]MH_SAM_APDU [09:20:08]CAPDU: 80 0D 01 02 [09:20:08]Write to MH i2c: E2 08 00 46 21 80 0D 01 02 00 00 00 00 E0 [09:20:08]Write i2c OK [09:20:08]MH_I2C_Read... [09:20:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:08]Read from MH i2c: E2 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 03 00 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 03 00 46 21 00 90 00 DB [09:20:08]RAPDU: 90 00 [09:20:08]wFMCommunicate OK [09:20:08]wFMCommunicate request_size=255 [09:20:08]MH_SAM_APDU [09:20: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 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CA 05 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D1 38 02 00 35 04 06 00 8B CF 1C 55 [09:20:08]Write to MH i2c: E2 02 01 47 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 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CA 05 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D1 38 02 00 35 04 06 00 8B CF 1C 55 00 00 83 [09:20:08]Write i2c OK [09:20:08]MH_I2C_Read... [09:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:08]Read from MH i2c: E2 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 03 00 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 03 00 47 21 00 90 00 DC [09:20:08]RAPDU: 90 00 [09:20:08]wFMCommunicate OK [09:20:08]wFMCommunicate request_size=7 [09:20:08]MH_SAM_APDU [09:20:08]CAPDU: 80 0D 02 02 02 59 30 [09:20:08]Write to MH i2c: E2 0A 00 48 21 80 0D 02 02 02 00 59 30 00 00 70 [09:20:08]Write i2c OK [09:20:08]MH_I2C_Read... [09:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:08]Read from MH i2c: E2 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 03 00 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 03 00 48 21 00 90 00 DD [09:20:08]RAPDU: 90 00 [09:20:08]wFMCommunicate OK [09:20:08]wFMCommunicate request_size=4 [09:20:08]MH_SAM_APDU [09:20:08]CAPDU: 80 0D 03 02 [09:20:08]Write to MH i2c: E2 08 00 49 21 80 0D 03 02 00 00 00 00 E5 [09:20:08]Write i2c OK [09:20:08]MH_I2C_Read... [09:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:08]Read from MH i2c: E2 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 0B 00 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 0B 00 49 21 00 1B 17 B2 96 69 D9 70 B8 90 00 CA [09:20:08]RAPDU: 1B 17 B2 96 69 D9 70 B8 90 00 [09:20:08]wFMCommunicate OK [09:20:08]SAM_PROTO_SignData done [09:20:08]FM_MakeSignedData done [09:20:08]CreateOFDProtocolMessage [09:20:08]wFMCommunicate request_size=4 [09:20:08]MH_SAM_APDU [09:20:08]CAPDU: 80 11 00 00 [09:20:08]Write to MH i2c: E2 08 00 4A 21 80 11 00 00 00 00 00 00 E5 [09:20:08]Write i2c OK [09:20:08]MH_I2C_Read... [09:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:08]Read from MH i2c: E2 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 17 00 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: E2 17 00 4A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 38 [09:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:20:08]wFMCommunicate OK [09:20:08]CreateOFDProtocolMessage done [09:20:08]OFDSenderStorePacket 145617 [09:20:08]StoreOFDPacket docnum=145617 [09:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 FA F1 04 01 79 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CA 05 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D1 38 02 00 35 04 06 00 8B CF 1C 55 59 30 1B 17 B2 96 69 D9 70 B8 [09:20:08]CheckFolder [09:20:08]dirname=/storage/ofd_packets [09:20:08]CheckFolder done [09:20:08]ProducePacketName [09:20:08]name=ofd_packets/00145617 [09:20:08]NVStorageSaveData ofd_packets/00145617 [09:20:08]File name is /storage/ofd_packets/00145617 [09:20:08]Write 298 bytes [09:20:08]NVStorageSaveData done [09:20:08]OFDSenderStorePacket done [09:20:08]KKMCreateOFDPacket done [09:20:08]NVStorageSaveData kkm_last_timestamp [09:20:08]File name is /storage/kkm_last_timestamp [09:20:08]Write 4 bytes [09:20:08]NVStorageSaveData done [09:20:08]ExternCall_PrintAddStr [09:20:08]wPrintStart [09:20:08]Write to MH i2c: 01 00 00 4B 21 6C [09:20:08]Write i2c OK [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: 01 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: 01 07 00 [09:20:08]MH_I2C_Read... [09:20:08]Read from MH i2c: 01 07 00 4B 21 00 00 00 00 00 FF 0F 81 [09:20:08]RasterBufferAndPrint [09:20:08]line Счет N : (1)160367 [09:20:08]line ИНН: 02508201610067 [09:20:08]line Контрольно-Кассовый Чек [09:20:08]line ПРОДАЖА [09:20:08]line ТРК (МРК, ГНК) : 21 [09:20:08]line Товар: 2710194210 [09:20:08]line ДТ-К-2 [09:20:08]line 15.000 * 0.00 [09:20:08]line = 0.00 [09:20:08]line НДС 12% НСП 1% [09:20:08]line > о реализуемом товаре [09:20:08]line ИТОГО: 0.00 [09:20:08]line НСП 1% : 0.00 [09:20:08]line НДС 12% : 0.00 [09:20:08]line Наличными: 0.00 [09:20:08]line Безнал.: 0.00 [09:20:08]line Место: АЗС № 126 "Партнер Нефть" [09:20:08]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:20:08]line СНО: Общий режим [09:20:08]line Чек 40 27.10.2024 09:20 [09:20:08]line Смена: 545 ФФД: 1.0 [09:20:08]line ЗНМ: 0300000085 [09:20:08]line РНМ: 0000000000091683 [09:20:08]line Версия ККМ: 001 [09:20:08]line Талоны: ТК ГПНА Online [09:20:08]line 30097887 [09:20:08]line ФМ: 0000000000871745 [09:20:08]line ФД: 145617 [09:20:08]line ФПД: 153721649846576 [09:20:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092010&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145617&fm=153721649846576&tin=02508201610067®Number=0000000000091683&sum=0 [09:20:09]OFD Sender: Processing packet 145617 [packets to send 205, broken 204] [09:20:09]ProducePacketName [09:20:09]name=ofd_packets/00145617 [09:20:09]OFD Sender: To server: pG, [09:20:09]CommunicateWithHost lk.salyk.kg:30040 [09:20:09]ConnectInit lk.salyk.kg [09:20:09]written 0, free lines is 4095 [09:20:09]Write to MH i2c: 01 00 00 75 21 96 [09:20:09]Write i2c OK [09:20:09]MH_I2C_Read... [09:20:09]Read from MH i2c: 01 [09:20:09]MH_I2C_Read... [09:20:09]Read from MH i2c: 01 07 00 [09:20:09]MH_I2C_Read... [09:20:09]Read from MH i2c: 01 07 00 75 21 00 00 00 00 00 B7 0C 60 [09:20:09]RasterBufferAndPrint [09:20:09]line [09:20:09]line [09:20:09]line [09:20:09]line [09:20:09]line [09:20:09]written 0, free lines is 3259 [09:20:09]MH_Cut [09:20:09]Write to MH i2c: D1 01 00 7C 21 01 6F [09:20:09]Write i2c OK [09:20:09]MH_I2C_Read... [09:20:09]Read from MH i2c: D1 [09:20:09]MH_I2C_Read... [09:20:09]Read from MH i2c: D1 01 00 [09:20:09]MH_I2C_Read... [09:20:09]Read from MH i2c: D1 01 00 7C 21 00 6E [09:20:09]Write to MH i2c: 01 00 00 7D 21 9E [09:20:09]Write i2c OK [09:20:09]MH_I2C_Read... [09:20:09]Connected sock=11 [09:20:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 FA F1 04 01 79 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 CA 05 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D1 38 02 00 35 04 06 00 8B CF 1C 55 59 30 1B 17 B2 96 69 D9 70 B8 [09:20:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 88 B9 47 00 58 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D1 38 02 00 F4 03 04 00 F9 AA 1D 67 B6 04 01 00 00 B1 10 6B B2 55 5C 82 12 [09:20:09]CommunicateWithHost err = 0 [09:20:09]CheckOFDResponse [09:20:09]1017 (14) - 77093643461234 [09:20:09]1041 (16) - 0000000000871745 [09:20:09]1040 (4) - 145617 [09:20:09]1012 (4) - 27.10.2024 02:52 [09:20:09]1206 (1) - 0 [09:20:09]OFD Sender: Remove packet 145617 [09:20:09]ProducePacketName [09:20:09]name=ofd_packets/00145617 [09:20:09]NVStorageDeleteData [09:20:10]*** Cut start [09:20:10]*** Partial cut [09:20:10]*** CUTSNS_PIN = 1 [09:20:10]*** CUTSNS_PIN = 0 [09:20:10]OFD Sender: No OFD packet to send [09:20:10]*** Brake cut motor [09:20:10]Read from MH i2c: 01 [09:20:10]MH_I2C_Read... [09:20:10]*** Stop cut motor [09:20:10]*** Cut end [09:20:10]Read from MH i2c: 01 07 00 [09:20:10]MH_I2C_Read... [09:20:10]Read from MH i2c: 01 07 00 7D 21 00 00 00 00 00 FF 0F B3 [09:20:10]process_action close_receipt done [09:20:10]requested_data is exist [09:20:10]produce_requested_data [09:20:10]requested_item fm.sn is exist - process it [09:20:10]wFMCommunicate request_size=4 [09:20:10]MH_SAM_APDU [09:20:10]CAPDU: 80 11 00 00 [09:20:10]Write to MH i2c: E2 08 00 7E 21 80 11 00 00 00 00 00 00 19 [09:20:10]Write i2c OK [09:20:10]MH_I2C_Read... [09:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:11]Read from MH i2c: E2 [09:20:11]MH_I2C_Read... [09:20:11]Read from MH i2c: E2 17 00 [09:20:11]MH_I2C_Read... [09:20:11]Read from MH i2c: E2 17 00 7E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6C [09:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:20:11]wFMCommunicate OK [09:20:11]requested_item fd.num is exist - process it [09:20:11]SAM_PROTO_GetFieldsCounters [09:20:11]wFMCommunicate request_size=4 [09:20:11]MH_SAM_APDU [09:20:11]CAPDU: 80 13 00 00 [09:20:11]Write to MH i2c: E2 08 00 7F 21 80 13 00 00 00 00 00 00 1C [09:20:11]Write i2c OK [09:20:11]MH_I2C_Read... [09:20:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:11]Read from MH i2c: E2 [09:20:11]MH_I2C_Read... [09:20:11]Read from MH i2c: E2 62 00 [09:20:11]MH_I2C_Read... [09:20:11]Read from MH i2c: E2 62 00 7F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D1 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [09:20:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D1 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:11]wFMCommunicate OK [09:20:11]SAM_PROTO_GetFieldsCounters done [09:20:11]requested_item shift.num is exist - process it [09:20:11]requested_item shift.opened is exist - process it [09:20:11]req_shift_opened [09:20:11]FM_GetShiftState [09:20:11]SAM_PROTO_GetShiftState [09:20:11]wFMCommunicate request_size=4 [09:20:11]MH_SAM_APDU [09:20:11]CAPDU: 80 13 01 00 [09:20:11]Write to MH i2c: E2 08 00 80 21 80 13 01 00 00 00 00 00 1E [09:20:11]Write i2c OK [09:20:11]MH_I2C_Read... [09:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:11]Read from MH i2c: E2 [09:20:11]MH_I2C_Read... [09:20:11]Read from MH i2c: E2 0E 00 [09:20:11]MH_I2C_Read... [09:20:11]Read from MH i2c: E2 0E 00 80 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 96 [09:20:11]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:20:11]wFMCommunicate OK [09:20:11]SAM_PROTO_GetShiftState done [09:20:11]FM_GetShiftState done [09:20:11]req_shift_opened done [09:20:11]requested_item shift.open_date is exist - process it [09:20:11]req_shift_open_date [09:20:11]req_shift_open_date done [09:20:11]produce_requested_data done [09:20:11]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145617,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:20:11]process_action_free close_receipt [09:20:11]json_value_free [09:20:11]json_value_free done [09:20:11]process_json_proto returns [09:20:11]Send response to host [09:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145617,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:20:11]free response buf [09:20:11]execute_script done [09:20:11]execute_script returns [09:20:11]free content buf [09:20:11]Sock 9.Close socket [09:20:11]Sock 9.Thread stoped [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]accept exits with 7 [09:20:40]New connection [09:20:40]New thread 3067149668 created [09:20:40]Thread 3067006308 joined [09:20:40]Waiting for new connection... [09:20:40] Sock 7.Parse request [09:20:40]Sock 7.Check first char [09:20:40]Sock 7.First char is OK [09:20:40]request: POST /json_proto HTTP/1.0 [09:20:40]Method: POST [09:20:40]URL: /json_proto [09:20:40]Method is POST - this is cgi request [09:20:40]url: /json_proto [09:20:40]query_string will be loaded in cgi processing [09:20:40]execute_cgi json_proto POST (null) [09:20:40]execute_cgi path=json_proto method=POST [09:20:40]POST find Content-Length [09:20:40]Host: 172.17.40.195:8080 [09:20:40]Content-Length: 984 [09:20:40]Content-Type: application/json [09:20:40] [09:20:40]POST finish read [09:20:40]Found Content-Length = 984 [09:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 27.140, "sum" : 2000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 13.57 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:40]execute_script... [09:20: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)160368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 27.140, "sum" : 2000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 13.57 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:40]POST & json_proto [09:20:40]process_json_proto [09:20:40]json parsed OK: [09:20:40]protocol is kg_v1.0 [09:20:40]action value=close_receipt [09:20:40]process_action close_receipt [09:20:40]cmd_close_receipt [09:20:40]MH_GetDate [09:20:40]Write to MH i2c: F0 00 00 81 21 91 [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: F0 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: F0 09 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: F0 09 00 81 21 00 EB 05 1E 67 D5 8D 6C 64 41 [09:20:40]GetLastDocTimeStamp 1730020810 [09:20:40]current date 1730020843 [09:20:40]FM_GetShiftState [09:20:40]SAM_PROTO_GetShiftState [09:20:40]wFMCommunicate request_size=4 [09:20:40]MH_SAM_APDU [09:20:40]CAPDU: 80 13 01 00 [09:20:40]Write to MH i2c: E2 08 00 82 21 80 13 01 00 00 00 00 00 20 [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:40]Read from MH i2c: E2 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 0E 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 0E 00 82 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 98 [09:20:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:20:40]wFMCommunicate OK [09:20:40]SAM_PROTO_GetShiftState done [09:20:40]FM_GetShiftState done [09:20:40]opened in 1729988959 [09:20:40]opened+sec_in_day 1730075359 [09:20:40]quantity*price = 200021 [09:20:40]sum+1 = 200023 [09:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 41 27.10.2024 09:20 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-95 номер 126 сэкономлено 13.57 сом ФМ: 0000000000871745 ФД: 145618 ФПД: 129471219881130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092043&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145618&fm=129471219881130&tin=02508201610067®Number=0000000000091683&sum=200000 [09:20:41]StoreToDocumentArchive [09:20:41]shift 545 fd 145618 [09:20:41]save to /storage/0545/doc_00145618 [09:20:41]save last doc name /storage/0545/doc_00145618 to /storage/kkm_last_doc_name [09:20:41]save OK [09:20:41]Clear old archive folders... [09:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:41]tlvbuf is 01A5AEF0 [09:20:41]SAM_PROTO_ClearQueue [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 09 00 00 [09:20:41]Write to MH i2c: E2 08 00 8F 21 80 09 00 00 00 00 00 00 22 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 8F 21 00 90 00 24 [09:20:41]RAPDU: 90 00 [09:20:41]wFMCommunicate OK [09:20:41]SAM_PROTO_ClearQueue done [09:20:41]KKMCreateOFDPacket [09:20:41]OFDProtocolAddRootSTLVToBuf [09:20:41]FM_MakeSignedData [09:20:41]FM_MakeSignedData [09:20:41]SAM_PROTO_SignData [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 0D 01 02 [09:20:41]Write to MH i2c: E2 08 00 90 21 80 0D 01 02 00 00 00 00 2A [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 90 21 00 90 00 25 [09:20:41]RAPDU: 90 00 [09:20:41]wFMCommunicate OK [09:20:41]wFMCommunicate request_size=255 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 04 6A 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 56 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 F9 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 29 00 00 00 F4 03 04 00 EB 05 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D2 38 02 00 35 04 06 00 75 [09:20:41]Write to MH i2c: E2 02 01 91 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 04 6A 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 56 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 F9 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 29 00 00 00 F4 03 04 00 EB 05 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D2 38 02 00 35 04 06 00 75 00 00 0F [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 91 21 00 90 00 26 [09:20:41]RAPDU: 90 00 [09:20:41]wFMCommunicate OK [09:20:41]wFMCommunicate request_size=10 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 0D 02 02 05 C0 DE 11 D4 AA [09:20:41]Write to MH i2c: E2 0D 00 92 21 80 0D 02 02 05 00 C0 DE 11 D4 AA 00 00 64 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 92 21 00 90 00 27 [09:20:41]RAPDU: 90 00 [09:20:41]wFMCommunicate OK [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 0D 03 02 [09:20:41]Write to MH i2c: E2 08 00 93 21 80 0D 03 02 00 00 00 00 2F [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 0B 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 0B 00 93 21 00 7D B1 91 9C E0 D5 89 92 90 00 5B [09:20:41]RAPDU: 7D B1 91 9C E0 D5 89 92 90 00 [09:20:41]wFMCommunicate OK [09:20:41]SAM_PROTO_SignData done [09:20:41]FM_MakeSignedData done [09:20:41]CreateOFDProtocolMessage [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 11 00 00 [09:20:41]Write to MH i2c: E2 08 00 94 21 80 11 00 00 00 00 00 00 2F [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 17 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 17 00 94 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 82 [09:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:20:41]wFMCommunicate OK [09:20:41]CreateOFDProtocolMessage done [09:20:41]OFDSenderStorePacket 145618 [09:20:41]StoreOFDPacket docnum=145618 [09:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 AA 94 07 01 B9 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 04 6A 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 56 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 F9 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 29 00 00 00 F4 03 04 00 EB 05 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D2 38 02 00 35 04 06 00 75 C0 DE 11 D4 AA 7D B1 91 9C E0 D5 89 92 [09:20:41]CheckFolder [09:20:41]dirname=/storage/ofd_packets [09:20:41]CheckFolder done [09:20:41]ProducePacketName [09:20:41]name=ofd_packets/00145618 [09:20:41]NVStorageSaveData ofd_packets/00145618 [09:20:41]File name is /storage/ofd_packets/00145618 [09:20:41]Write 301 bytes [09:20:41]NVStorageSaveData done [09:20:41]OFDSenderStorePacket done [09:20:41]KKMCreateOFDPacket done [09:20:41]NVStorageSaveData kkm_last_timestamp [09:20:41]File name is /storage/kkm_last_timestamp [09:20:41]Write 4 bytes [09:20:41]NVStorageSaveData done [09:20:41]ExternCall_PrintAddStr [09:20:41]wPrintStart [09:20:41]Write to MH i2c: 01 00 00 95 21 B6 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: 01 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: 01 07 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: 01 07 00 95 21 00 00 00 00 00 FF 0F CB [09:20:41]RasterBufferAndPrint [09:20:41]line Счет N : (1)160368 [09:20:41]line ИНН: 02508201610067 [09:20:41]line Контрольно-Кассовый Чек [09:20:41]line ПРОДАЖА [09:20:41]line ТРК (МРК, ГНК) : 53 [09:20:41]line Товар: 2710124500 [09:20:41]line Аи-95-К-3 [09:20:41]line 27.140 * 73.70 [09:20:41]line = 2000.22 [09:20:41]line НДС 12% НСП 1% [09:20:41]line > о реализуемом товаре [09:20:41]line ОКРУГЛЕНИЕ: -0.22 [09:20:41]line ИТОГО: 2000.00 [09:20:41]line Внесено: 2000.00 [09:20:41]line СДАЧА: 0.00 [09:20:41]line НСП 1% : 17.70 [09:20:41]line НДС 12% : 212.41 [09:20:41]line Наличными: 2000.00 [09:20:41]line Безнал.: 0.00 [09:20:41]line Место: АЗС № 126 "Партнер Нефть" [09:20:41]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:20:41]line СНО: Общий режим [09:20:41]line Чек 41 27.10.2024 09:20 [09:20:41]line Смена: 545 ФФД: 1.0 [09:20:41]line ЗНМ: 0300000085 [09:20:41]line РНМ: 0000000000091683 [09:20:41]line Версия ККМ: 001 [09:20:41]line [09:20:41]line Дисконтная программа [09:20:41]line АИ-95 [09:20:41]line номер 126 [09:20:41]line сэкономлено 13.57 сом [09:20:41]line ФМ: 0000000000871745 [09:20:41]line ФД: 145618 [09:20:41]line ФПД: 129471219881130 [09:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092043&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145618&fm=129471219881130&tin=02508201610067®Number=0000000000091683&sum=200000 [09:20:41]written 0, free lines is 4095 [09:20:41]OFD Sender: Processing packet 145618 [packets to send 205, broken 204] [09:20:41]ProducePacketName [09:20:41]name=ofd_packets/00145618 [09:20:41]OFD Sender: To server: pG, [09:20:41]CommunicateWithHost lk.salyk.kg:30040 [09:20:41]ConnectInit lk.salyk.kg [09:20:42]Write to MH i2c: 01 00 00 C5 21 E6 [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: 01 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: 01 07 00 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: 01 07 00 C5 21 00 00 00 00 00 4E 0C 47 [09:20:42]RasterBufferAndPrint [09:20:42]line [09:20:42]line [09:20:42]line [09:20:42]line [09:20:42]line [09:20:42]written 0, free lines is 3154 [09:20:42]MH_Cut [09:20:42]Write to MH i2c: D1 01 00 CC 21 01 BF [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: D1 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: D1 01 00 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: D1 01 00 CC 21 00 BE [09:20:42]Write to MH i2c: 01 00 00 CD 21 EE [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:43]*** Cut start [09:20:43]*** Partial cut [09:20:43]*** CUTSNS_PIN = 1 [09:20:43]*** CUTSNS_PIN = 0 [09:20:43]*** Brake cut motor [09:20:43]Read from MH i2c: 01 [09:20:43]MH_I2C_Read... [09:20:43]*** Stop cut motor [09:20:43]*** Cut end [09:20:43]Read from MH i2c: 01 07 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: 01 07 00 CD 21 00 00 00 00 00 FF 0F 03 [09:20:43]process_action close_receipt done [09:20:43]requested_data is exist [09:20:43]produce_requested_data [09:20:43]requested_item fm.sn is exist - process it [09:20:43]wFMCommunicate request_size=4 [09:20:43]MH_SAM_APDU [09:20:43]CAPDU: 80 11 00 00 [09:20:43]Write to MH i2c: E2 08 00 CE 21 80 11 00 00 00 00 00 00 69 [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:43]Read from MH i2c: E2 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 17 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 17 00 CE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BC [09:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:20:43]wFMCommunicate OK [09:20:43]requested_item fd.num is exist - process it [09:20:43]SAM_PROTO_GetFieldsCounters [09:20:43]wFMCommunicate request_size=4 [09:20:43]MH_SAM_APDU [09:20:43]CAPDU: 80 13 00 00 [09:20:43]Write to MH i2c: E2 08 00 CF 21 80 13 00 00 00 00 00 00 6C [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:44]Read from MH i2c: E2 [09:20:44]MH_I2C_Read... [09:20:44]Read from MH i2c: E2 62 00 [09:20:44]MH_I2C_Read... [09:20:44]Read from MH i2c: E2 62 00 CF 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D2 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [09:20:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D2 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:44]wFMCommunicate OK [09:20:44]SAM_PROTO_GetFieldsCounters done [09:20:44]requested_item shift.num is exist - process it [09:20:44]requested_item shift.opened is exist - process it [09:20:44]req_shift_opened [09:20:44]FM_GetShiftState [09:20:44]SAM_PROTO_GetShiftState [09:20:44]wFMCommunicate request_size=4 [09:20:44]MH_SAM_APDU [09:20:44]CAPDU: 80 13 01 00 [09:20:44]Write to MH i2c: E2 08 00 D0 21 80 13 01 00 00 00 00 00 6E [09:20:44]Write i2c OK [09:20:44]MH_I2C_Read... [09:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:44]Read from MH i2c: E2 [09:20:44]MH_I2C_Read... [09:20:44]Read from MH i2c: E2 0E 00 [09:20:44]MH_I2C_Read... [09:20:44]Read from MH i2c: E2 0E 00 D0 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E6 [09:20:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:20:44]wFMCommunicate OK [09:20:44]SAM_PROTO_GetShiftState done [09:20:44]FM_GetShiftState done [09:20:44]req_shift_opened done [09:20:44]requested_item shift.open_date is exist - process it [09:20:44]req_shift_open_date [09:20:44]req_shift_open_date done [09:20:44]produce_requested_data done [09:20:44]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145618,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:20:44]process_action_free close_receipt [09:20:44]json_value_free [09:20:44]json_value_free done [09:20:44]process_json_proto returns [09:20:44]Send response to host [09:20:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145618,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:20:44]free response buf [09:20:44]execute_script done [09:20:44]execute_script returns [09:20:44]free content buf [09:20:44]Sock 7.Close socket [09:20:44]Sock 7.Thread stoped [09:22:55]ConnectInit Can't connect to host [09:22:55]CommunicateWithHost connect error [09:22:55]CommunicateWithHost err = -1 [09:22:55]OFD Sender: Server communicate error [09:23:00]OFD Sender: Processing packet 145618 [packets to send 205, broken 204] [09:23:00]ProducePacketName [09:23:00]name=ofd_packets/00145618 [09:23:00]OFD Sender: To server: pG, [09:23:00]CommunicateWithHost lk.salyk.kg:30040 [09:23:00]ConnectInit lk.salyk.kg [09:23:01]Connected sock=7 [09:23:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 AA 94 07 01 B9 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 04 6A 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 56 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 F9 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 29 00 00 00 F4 03 04 00 EB 05 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D2 38 02 00 35 04 06 00 75 C0 DE 11 D4 AA 7D B1 91 9C E0 D5 89 92 [09:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A6 F2 47 00 B4 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D2 38 02 00 F4 03 04 00 A4 AB 1D 67 B6 04 01 00 00 A3 52 65 25 93 F5 BE 33 [09:23:01]CommunicateWithHost err = 0 [09:23:01]CheckOFDResponse [09:23:01]1017 (14) - 77093643461234 [09:23:01]1041 (16) - 0000000000871745 [09:23:01]1040 (4) - 145618 [09:23:01]1012 (4) - 27.10.2024 02:55 [09:23:01]1206 (1) - 0 [09:23:01]OFD Sender: Remove packet 145618 [09:23:01]ProducePacketName [09:23:01]name=ofd_packets/00145618 [09:23:01]NVStorageDeleteData [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:22]accept exits with 9 [09:24:22]New connection [09:24:22]New thread 3067006308 created [09:24:22]Thread 3067149668 joined [09:24:22]Waiting for new connection... [09:24:22] Sock 9.Parse request [09:24:22]Sock 9.Check first char [09:24:22]Sock 9.First char is OK [09:24:22]request: POST /json_proto HTTP/1.0 [09:24:22]Method: POST [09:24:22]URL: /json_proto [09:24:22]Method is POST - this is cgi request [09:24:22]url: /json_proto [09:24:22]query_string will be loaded in cgi processing [09:24:22]execute_cgi json_proto POST (null) [09:24:22]execute_cgi path=json_proto method=POST [09:24:22]POST find Content-Length [09:24:22]Host: 172.17.40.195:8080 [09:24:22]Content-Length: 677 [09:24:22]Content-Type: application/json [09:24:22] [09:24:22]POST finish read [09:24:22]Found Content-Length = 677 [09:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:22]execute_script... [09:24: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)160369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:22]POST & json_proto [09:24:22]process_json_proto [09:24:22]json parsed OK: [09:24:22]protocol is kg_v1.0 [09:24:22]action value=close_receipt [09:24:22]process_action close_receipt [09:24:22]cmd_close_receipt [09:24:22]MH_GetDate [09:24:22]Write to MH i2c: F0 00 00 D1 21 E1 [09:24:22]Write i2c OK [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: F0 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: F0 09 00 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: F0 09 00 D1 21 00 CA 06 1E 67 D5 8D 6C 64 71 [09:24:22]GetLastDocTimeStamp 1730020843 [09:24:22]current date 1730021066 [09:24:22]FM_GetShiftState [09:24:22]SAM_PROTO_GetShiftState [09:24:22]wFMCommunicate request_size=4 [09:24:22]MH_SAM_APDU [09:24:22]CAPDU: 80 13 01 00 [09:24:22]Write to MH i2c: E2 08 00 D2 21 80 13 01 00 00 00 00 00 70 [09:24:22]Write i2c OK [09:24:22]MH_I2C_Read... [09:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:22]Read from MH i2c: E2 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 0E 00 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 0E 00 D2 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E8 [09:24:22]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:24:22]wFMCommunicate OK [09:24:22]SAM_PROTO_GetShiftState done [09:24:22]FM_GetShiftState done [09:24:22]opened in 1729988959 [09:24:22]opened+sec_in_day 1730075359 [09:24:22]quantity*price = 30038 [09:24:22]sum+1 = 30039 [09:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 42 27.10.2024 09:24 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145619 ФПД: 182681033756078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092426&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145619&fm=182681033756078&tin=02508201610067®Number=0000000000091683&sum=30000 [09:24:23]StoreToDocumentArchive [09:24:23]shift 545 fd 145619 [09:24:23]save to /storage/0545/doc_00145619 [09:24:23]save last doc name /storage/0545/doc_00145619 to /storage/kkm_last_doc_name [09:24:23]save OK [09:24:23]Clear old archive folders... [09:24:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:23]tlvbuf is 01A8C210 [09:24:23]SAM_PROTO_ClearQueue [09:24:23]wFMCommunicate request_size=4 [09:24:23]MH_SAM_APDU [09:24:23]CAPDU: 80 09 00 00 [09:24:23]Write to MH i2c: E2 08 00 DF 21 80 09 00 00 00 00 00 00 72 [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:23]Read from MH i2c: E2 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 03 00 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 03 00 DF 21 00 90 00 74 [09:24:23]RAPDU: 90 00 [09:24:23]wFMCommunicate OK [09:24:23]SAM_PROTO_ClearQueue done [09:24:23]KKMCreateOFDPacket [09:24:23]OFDProtocolAddRootSTLVToBuf [09:24:23]FM_MakeSignedData [09:24:23]FM_MakeSignedData [09:24:23]SAM_PROTO_SignData [09:24:23]wFMCommunicate request_size=4 [09:24:23]MH_SAM_APDU [09:24:23]CAPDU: 80 0D 01 02 [09:24:23]Write to MH i2c: E2 08 00 E0 21 80 0D 01 02 00 00 00 00 7A [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:23]Read from MH i2c: E2 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 03 00 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 03 00 E0 21 00 90 00 75 [09:24:23]RAPDU: 90 00 [09:24:23]wFMCommunicate OK [09:24:23]wFMCommunicate request_size=255 [09:24:23]MH_SAM_APDU [09:24: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CA 06 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D3 38 02 00 35 04 06 00 A6 [09:24:23]Write to MH i2c: E2 02 01 E1 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CA 06 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D3 38 02 00 35 04 06 00 A6 00 00 51 [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:24]Read from MH i2c: E2 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 03 00 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 03 00 E1 21 00 90 00 76 [09:24:24]RAPDU: 90 00 [09:24:24]wFMCommunicate OK [09:24:24]wFMCommunicate request_size=10 [09:24:24]MH_SAM_APDU [09:24:24]CAPDU: 80 0D 02 02 05 25 BE 1F CD AE [09:24:24]Write to MH i2c: E2 0D 00 E2 21 80 0D 02 02 05 00 25 BE 1F CD AE 00 00 04 [09:24:24]Write i2c OK [09:24:24]MH_I2C_Read... [09:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:24]Read from MH i2c: E2 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 03 00 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 03 00 E2 21 00 90 00 77 [09:24:24]RAPDU: 90 00 [09:24:24]wFMCommunicate OK [09:24:24]wFMCommunicate request_size=4 [09:24:24]MH_SAM_APDU [09:24:24]CAPDU: 80 0D 03 02 [09:24:24]Write to MH i2c: E2 08 00 E3 21 80 0D 03 02 00 00 00 00 7F [09:24:24]Write i2c OK [09:24:24]MH_I2C_Read... [09:24:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:24]Read from MH i2c: E2 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 0B 00 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 0B 00 E3 21 00 2E 65 41 F3 65 D5 06 CB 90 00 52 [09:24:24]RAPDU: 2E 65 41 F3 65 D5 06 CB 90 00 [09:24:24]wFMCommunicate OK [09:24:24]SAM_PROTO_SignData done [09:24:24]FM_MakeSignedData done [09:24:24]CreateOFDProtocolMessage [09:24:24]wFMCommunicate request_size=4 [09:24:24]MH_SAM_APDU [09:24:24]CAPDU: 80 11 00 00 [09:24:24]Write to MH i2c: E2 08 00 E4 21 80 11 00 00 00 00 00 00 7F [09:24:24]Write i2c OK [09:24:24]MH_I2C_Read... [09:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:24]Read from MH i2c: E2 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 17 00 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 17 00 E4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D2 [09:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:24:24]wFMCommunicate OK [09:24:24]CreateOFDProtocolMessage done [09:24:24]OFDSenderStorePacket 145619 [09:24:24]StoreOFDPacket docnum=145619 [09:24:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F1 42 07 01 BD F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CA 06 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D3 38 02 00 35 04 06 00 A6 25 BE 1F CD AE 2E 65 41 F3 65 D5 06 CB [09:24:24]CheckFolder [09:24:24]dirname=/storage/ofd_packets [09:24:24]CheckFolder done [09:24:24]ProducePacketName [09:24:24]name=ofd_packets/00145619 [09:24:24]NVStorageSaveData ofd_packets/00145619 [09:24:24]File name is /storage/ofd_packets/00145619 [09:24:24]Write 301 bytes [09:24:24]NVStorageSaveData done [09:24:24]OFDSenderStorePacket done [09:24:24]KKMCreateOFDPacket done [09:24:24]NVStorageSaveData kkm_last_timestamp [09:24:24]File name is /storage/kkm_last_timestamp [09:24:24]Write 4 bytes [09:24:24]NVStorageSaveData done [09:24:24]ExternCall_PrintAddStr [09:24:24]wPrintStart [09:24:24]Write to MH i2c: 01 00 00 E5 21 06 [09:24:24]Write i2c OK [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: 01 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: 01 07 00 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: 01 07 00 E5 21 00 00 00 00 00 FF 0F 1B [09:24:24]RasterBufferAndPrint [09:24:24]line Счет N : (1)160369 [09:24:24]line ИНН: 02508201610067 [09:24:24]line Контрольно-Кассовый Чек [09:24:24]line ПРОДАЖА [09:24:24]line ТРК (МРК, ГНК) : 42 [09:24:24]line Товар: 2710124130 [09:24:24]line Аи-92-К-2 [09:24:24]line 4.490 * 66.90 [09:24:24]line = 300.38 [09:24:24]line НДС 12% НСП 1% [09:24:24]line > о реализуемом товаре [09:24:24]line ОКРУГЛЕНИЕ: -0.38 [09:24:24]line ИТОГО: 300.00 [09:24:24]line Внесено: 300.00 [09:24:24]line СДАЧА: 0.00 [09:24:24]line НСП 1% : 2.66 [09:24:24]line НДС 12% : 31.90 [09:24:24]line Наличными: 300.00 [09:24:24]line Безнал.: 0.00 [09:24:24]line Место: АЗС № 126 "Партнер Нефть" [09:24:24]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:24:24]line СНО: Общий режим [09:24:24]line Чек 42 27.10.2024 09:24 [09:24:24]line Смена: 545 ФФД: 1.0 [09:24:24]line ЗНМ: 0300000085 [09:24:24]line РНМ: 0000000000091683 [09:24:24]line Версия ККМ: 001 [09:24:24]line ФМ: 0000000000871745 [09:24:24]line ФД: 145619 [09:24:24]line ФПД: 182681033756078 [09:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092426&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145619&fm=182681033756078&tin=02508201610067®Number=0000000000091683&sum=30000 [09:24:24]written 0, free lines is 4095 [09:24:24]OFD Sender: Processing packet 145619 [packets to send 205, broken 204] [09:24:24]ProducePacketName [09:24:24]name=ofd_packets/00145619 [09:24:24]OFD Sender: To server: pG, [09:24:24]CommunicateWithHost lk.salyk.kg:30040 [09:24:24]ConnectInit lk.salyk.kg [09:24:24]Connected sock=10 [09:24:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F1 42 07 01 BD F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CA 06 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D3 38 02 00 35 04 06 00 A6 25 BE 1F CD AE 2E 65 41 F3 65 D5 06 CB [09:24:25]Write to MH i2c: 01 00 00 10 22 32 [09:24:25]Write i2c OK [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: 01 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: 01 07 00 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: 01 07 00 10 22 00 00 00 00 00 B1 0C F6 [09:24:25]RasterBufferAndPrint [09:24:25]line [09:24:25]line [09:24:25]line [09:24:25]line [09:24:25]line [09:24:25]written 0, free lines is 3256 [09:24:25]MH_Cut [09:24:25]Write to MH i2c: D1 01 00 17 22 01 0B [09:24:25]Write i2c OK [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: D1 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: D1 01 00 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: D1 01 00 17 22 00 0A [09:24:25]Write to MH i2c: 01 00 00 18 22 3A [09:24:25]Write i2c OK [09:24:25]MH_I2C_Read... [09:24:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 BC B4 47 00 87 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D3 38 02 00 F4 03 04 00 F8 AB 1D 67 B6 04 01 00 00 71 69 04 BB 5E 82 10 D7 [09:24:25]CommunicateWithHost err = 0 [09:24:25]CheckOFDResponse [09:24:25]1017 (14) - 77093643461234 [09:24:25]1041 (16) - 0000000000871745 [09:24:25]1040 (4) - 145619 [09:24:25]1012 (4) - 27.10.2024 02:56 [09:24:25]1206 (1) - 0 [09:24:25]OFD Sender: Remove packet 145619 [09:24:25]ProducePacketName [09:24:25]name=ofd_packets/00145619 [09:24:25]NVStorageDeleteData [09:24:25]OFD Sender: No OFD packet to send [09:24:25]*** Cut start [09:24:25]*** Partial cut [09:24:25]*** CUTSNS_PIN = 1 [09:24:25]*** CUTSNS_PIN = 0 [09:24:26]*** Brake cut motor [09:24:26]Read from MH i2c: 01 [09:24:26]MH_I2C_Read... [09:24:26]*** Stop cut motor [09:24:26]*** Cut end [09:24:26]Read from MH i2c: 01 07 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: 01 07 00 18 22 00 00 00 00 00 FF 0F 4F [09:24:26]process_action close_receipt done [09:24:26]requested_data is exist [09:24:26]produce_requested_data [09:24:26]requested_item fm.sn is exist - process it [09:24:26]wFMCommunicate request_size=4 [09:24:26]MH_SAM_APDU [09:24:26]CAPDU: 80 11 00 00 [09:24:26]Write to MH i2c: E2 08 00 19 22 80 11 00 00 00 00 00 00 B5 [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:26]Read from MH i2c: E2 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 17 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 17 00 19 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 08 [09:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:24:26]wFMCommunicate OK [09:24:26]requested_item fd.num is exist - process it [09:24:26]SAM_PROTO_GetFieldsCounters [09:24:26]wFMCommunicate request_size=4 [09:24:26]MH_SAM_APDU [09:24:26]CAPDU: 80 13 00 00 [09:24:26]Write to MH i2c: E2 08 00 1A 22 80 13 00 00 00 00 00 00 B8 [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:26]Read from MH i2c: E2 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 62 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 62 00 1A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D3 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [09:24:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D3 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:26]wFMCommunicate OK [09:24:26]SAM_PROTO_GetFieldsCounters done [09:24:26]requested_item shift.num is exist - process it [09:24:26]requested_item shift.opened is exist - process it [09:24:26]req_shift_opened [09:24:26]FM_GetShiftState [09:24:26]SAM_PROTO_GetShiftState [09:24:26]wFMCommunicate request_size=4 [09:24:26]MH_SAM_APDU [09:24:26]CAPDU: 80 13 01 00 [09:24:26]Write to MH i2c: E2 08 00 1B 22 80 13 01 00 00 00 00 00 BA [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:26]Read from MH i2c: E2 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 0E 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 0E 00 1B 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 32 [09:24:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:24:26]wFMCommunicate OK [09:24:26]SAM_PROTO_GetShiftState done [09:24:26]FM_GetShiftState done [09:24:26]req_shift_opened done [09:24:26]requested_item shift.open_date is exist - process it [09:24:26]req_shift_open_date [09:24:26]req_shift_open_date done [09:24:26]produce_requested_data done [09:24:26]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145619,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:24:26]process_action_free close_receipt [09:24:26]json_value_free [09:24:26]json_value_free done [09:24:26]process_json_proto returns [09:24:26]Send response to host [09:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145619,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:24:26]free response buf [09:24:26]execute_script done [09:24:26]execute_script returns [09:24:26]free content buf [09:24:26]Sock 9.Close socket [09:24:26]Sock 9.Thread stoped [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:04]accept exits with 7 [09:31:04]New connection [09:31:04]New thread 3067149668 created [09:31:04]Thread 3067006308 joined [09:31:04]Waiting for new connection... [09:31:04] Sock 7.Parse request [09:31:04]Sock 7.Check first char [09:31:04]Sock 7.First char is OK [09:31:04]request: POST /json_proto HTTP/1.0 [09:31:04]Method: POST [09:31:04]URL: /json_proto [09:31:04]Method is POST - this is cgi request [09:31:04]url: /json_proto [09:31:04]query_string will be loaded in cgi processing [09:31:04]execute_cgi json_proto POST (null) [09:31:04]execute_cgi path=json_proto method=POST [09:31:04]POST find Content-Length [09:31:04]Host: 172.17.40.195:8080 [09:31:04]Content-Length: 751 [09:31:04]Content-Type: application/json [09:31:04] [09:31:04]POST finish read [09:31:04]Found Content-Length = 751 [09:31:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:04]execute_script... [09:31:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:04]POST & json_proto [09:31:04]process_json_proto [09:31:04]json parsed OK: [09:31:04]protocol is kg_v1.0 [09:31:04]action value=close_receipt [09:31:04]process_action close_receipt [09:31:04]cmd_close_receipt [09:31:04]MH_GetDate [09:31:04]Write to MH i2c: F0 00 00 1C 22 2D [09:31:04]Write i2c OK [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: F0 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: F0 09 00 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: F0 09 00 1C 22 00 5C 08 1E 67 D5 8D 6C 64 51 [09:31:04]GetLastDocTimeStamp 1730021066 [09:31:04]current date 1730021468 [09:31:04]FM_GetShiftState [09:31:04]SAM_PROTO_GetShiftState [09:31:04]wFMCommunicate request_size=4 [09:31:04]MH_SAM_APDU [09:31:04]CAPDU: 80 13 01 00 [09:31:04]Write to MH i2c: E2 08 00 1D 22 80 13 01 00 00 00 00 00 BC [09:31:04]Write i2c OK [09:31:04]MH_I2C_Read... [09:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:04]Read from MH i2c: E2 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: E2 0E 00 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: E2 0E 00 1D 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 34 [09:31:04]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:31:04]wFMCommunicate OK [09:31:04]SAM_PROTO_GetShiftState done [09:31:04]FM_GetShiftState done [09:31:04]opened in 1729988959 [09:31:04]opened+sec_in_day 1730075359 [09:31:04]quantity*price = 0 [09:31:04]sum+1 = 1 [09:31:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 43 27.10.2024 09:31 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097887 ФМ: 0000000000871745 ФД: 145620 ФПД: 50209117826265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093108&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145620&fm=50209117826265&tin=02508201610067®Number=0000000000091683&sum=0 [09:31:05]StoreToDocumentArchive [09:31:05]shift 545 fd 145620 [09:31:05]save to /storage/0545/doc_00145620 [09:31:05]save last doc name /storage/0545/doc_00145620 to /storage/kkm_last_doc_name [09:31:05]save OK [09:31:05]Clear old archive folders... [09:31:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:31:05]tlvbuf is B6DD8010 [09:31:05]SAM_PROTO_ClearQueue [09:31:05]wFMCommunicate request_size=4 [09:31:05]MH_SAM_APDU [09:31:05]CAPDU: 80 09 00 00 [09:31:05]Write to MH i2c: E2 08 00 2A 22 80 09 00 00 00 00 00 00 BE [09:31:05]Write i2c OK [09:31:05]MH_I2C_Read... [09:31:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:05]Read from MH i2c: E2 [09:31:05]MH_I2C_Read... [09:31:05]Read from MH i2c: E2 03 00 [09:31:05]MH_I2C_Read... [09:31:05]Read from MH i2c: E2 03 00 2A 22 00 90 00 C0 [09:31:05]RAPDU: 90 00 [09:31:05]wFMCommunicate OK [09:31:05]SAM_PROTO_ClearQueue done [09:31:05]KKMCreateOFDPacket [09:31:05]OFDProtocolAddRootSTLVToBuf [09:31:05]FM_MakeSignedData [09:31:05]FM_MakeSignedData [09:31:05]SAM_PROTO_SignData [09:31:05]wFMCommunicate request_size=4 [09:31:05]MH_SAM_APDU [09:31:05]CAPDU: 80 0D 01 02 [09:31:05]Write to MH i2c: E2 08 00 2B 22 80 0D 01 02 00 00 00 00 C6 [09:31:05]Write i2c OK [09:31:05]MH_I2C_Read... [09:31:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:05]Read from MH i2c: E2 [09:31:05]MH_I2C_Read... [09:31:05]Read from MH i2c: E2 03 00 [09:31:05]MH_I2C_Read... [09:31:05]Read from MH i2c: E2 03 00 2B 22 00 90 00 C1 [09:31:05]RAPDU: 90 00 [09:31:05]wFMCommunicate OK [09:31:05]wFMCommunicate request_size=255 [09:31:05]MH_SAM_APDU [09:31: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5C 08 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D4 38 02 00 35 04 06 00 2D AA 38 A1 [09:31:05]Write to MH i2c: E2 02 01 2C 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5C 08 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D4 38 02 00 35 04 06 00 2D AA 38 A1 00 00 4E [09:31:05]Write i2c OK [09:31:05]MH_I2C_Read... [09:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 03 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 03 00 2C 22 00 90 00 C2 [09:31:06]RAPDU: 90 00 [09:31:06]wFMCommunicate OK [09:31:06]wFMCommunicate request_size=7 [09:31:06]MH_SAM_APDU [09:31:06]CAPDU: 80 0D 02 02 02 EC D9 [09:31:06]Write to MH i2c: E2 0A 00 2D 22 80 0D 02 02 02 00 EC D9 00 00 92 [09:31:06]Write i2c OK [09:31:06]MH_I2C_Read... [09:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 03 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 03 00 2D 22 00 90 00 C3 [09:31:06]RAPDU: 90 00 [09:31:06]wFMCommunicate OK [09:31:06]wFMCommunicate request_size=4 [09:31:06]MH_SAM_APDU [09:31:06]CAPDU: 80 0D 03 02 [09:31:06]Write to MH i2c: E2 08 00 2E 22 80 0D 03 02 00 00 00 00 CB [09:31:06]Write i2c OK [09:31:06]MH_I2C_Read... [09:31:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 0B 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 0B 00 2E 22 00 32 76 52 86 27 D3 FC 18 90 00 5A [09:31:06]RAPDU: 32 76 52 86 27 D3 FC 18 90 00 [09:31:06]wFMCommunicate OK [09:31:06]SAM_PROTO_SignData done [09:31:06]FM_MakeSignedData done [09:31:06]CreateOFDProtocolMessage [09:31:06]wFMCommunicate request_size=4 [09:31:06]MH_SAM_APDU [09:31:06]CAPDU: 80 11 00 00 [09:31:06]Write to MH i2c: E2 08 00 2F 22 80 11 00 00 00 00 00 00 CB [09:31:06]Write i2c OK [09:31:06]MH_I2C_Read... [09:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 17 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 17 00 2F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1E [09:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:31:06]wFMCommunicate OK [09:31:06]CreateOFDProtocolMessage done [09:31:06]OFDSenderStorePacket 145620 [09:31:06]StoreOFDPacket docnum=145620 [09:31:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 AD 22 04 01 0D AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5C 08 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D4 38 02 00 35 04 06 00 2D AA 38 A1 EC D9 32 76 52 86 27 D3 FC 18 [09:31:06]CheckFolder [09:31:06]dirname=/storage/ofd_packets [09:31:06]CheckFolder done [09:31:06]ProducePacketName [09:31:06]name=ofd_packets/00145620 [09:31:06]NVStorageSaveData ofd_packets/00145620 [09:31:06]File name is /storage/ofd_packets/00145620 [09:31:06]Write 298 bytes [09:31:06]NVStorageSaveData done [09:31:06]OFDSenderStorePacket done [09:31:06]KKMCreateOFDPacket done [09:31:06]NVStorageSaveData kkm_last_timestamp [09:31:06]File name is /storage/kkm_last_timestamp [09:31:06]Write 4 bytes [09:31:06]NVStorageSaveData done [09:31:06]ExternCall_PrintAddStr [09:31:06]wPrintStart [09:31:06]Write to MH i2c: 01 00 00 30 22 52 [09:31:06]Write i2c OK [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: 01 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: 01 07 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: 01 07 00 30 22 00 00 00 00 00 FF 0F 67 [09:31:06]RasterBufferAndPrint [09:31:06]line Счет N : (1)160370 [09:31:06]line ИНН: 02508201610067 [09:31:06]line Контрольно-Кассовый Чек [09:31:06]line ПРОДАЖА [09:31:06]line ТРК (МРК, ГНК) : 11 [09:31:06]line Товар: 2710194210 [09:31:06]line ДТ-К-2 [09:31:06]line 10.000 * 0.00 [09:31:06]line = 0.00 [09:31:06]line НДС 12% НСП 1% [09:31:06]line > о реализуемом товаре [09:31:06]line ИТОГО: 0.00 [09:31:06]line НСП 1% : 0.00 [09:31:06]line НДС 12% : 0.00 [09:31:06]line Наличными: 0.00 [09:31:06]line Безнал.: 0.00 [09:31:06]line Место: АЗС № 126 "Партнер Нефть" [09:31:06]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:31:06]line СНО: Общий режим [09:31:06]line Чек 43 27.10.2024 09:31 [09:31:06]line Смена: 545 ФФД: 1.0 [09:31:06]line ЗНМ: 0300000085 [09:31:06]line РНМ: 0000000000091683 [09:31:06]line Версия ККМ: 001 [09:31:06]line Талоны: ТК ГПНА Online [09:31:06]line 30097887 [09:31:06]line ФМ: 0000000000871745 [09:31:06]line ФД: 145620 [09:31:06]line ФПД: 50209117826265 [09:31:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093108&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145620&fm=50209117826265&tin=02508201610067®Number=0000000000091683&sum=0 [09:31:06]OFD Sender: Processing packet 145620 [packets to send 205, broken 204] [09:31:06]ProducePacketName [09:31:06]name=ofd_packets/00145620 [09:31:06]OFD Sender: To server: pG, [09:31:06]CommunicateWithHost lk.salyk.kg:30040 [09:31:06]ConnectInit lk.salyk.kg [09:31:06]written 0, free lines is 4095 [09:31:06]Connected sock=10 [09:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 AD 22 04 01 0D AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5C 08 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D4 38 02 00 35 04 06 00 2D AA 38 A1 EC D9 32 76 52 86 27 D3 FC 18 [09:31:07]Write to MH i2c: 01 00 00 5A 22 7C [09:31:07]Write i2c OK [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: 01 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: 01 07 00 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: 01 07 00 5A 22 00 00 00 00 00 B0 0C 3F [09:31:07]RasterBufferAndPrint [09:31:07]line [09:31:07]line [09:31:07]line [09:31:07]line [09:31:07]line [09:31:07]written 0, free lines is 3252 [09:31:07]MH_Cut [09:31:07]Write to MH i2c: D1 01 00 61 22 01 55 [09:31:07]Write i2c OK [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: D1 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: D1 01 00 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: D1 01 00 61 22 00 54 [09:31:07]Write to MH i2c: 01 00 00 62 22 84 [09:31:07]Write i2c OK [09:31:07]MH_I2C_Read... [09:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 60 75 47 00 5A EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D4 38 02 00 F4 03 04 00 8A AD 1D 67 B6 04 01 00 00 35 31 9F FC 5F D9 AB 30 [09:31:07]CommunicateWithHost err = 0 [09:31:07]CheckOFDResponse [09:31:07]1017 (14) - 77093643461234 [09:31:07]1041 (16) - 0000000000871745 [09:31:07]1040 (4) - 145620 [09:31:07]1012 (4) - 27.10.2024 03:03 [09:31:07]1206 (1) - 0 [09:31:07]OFD Sender: Remove packet 145620 [09:31:07]ProducePacketName [09:31:07]name=ofd_packets/00145620 [09:31:07]NVStorageDeleteData [09:31:07]OFD Sender: No OFD packet to send [09:31:07]*** Cut start [09:31:07]*** Partial cut [09:31:07]*** CUTSNS_PIN = 1 [09:31:07]*** CUTSNS_PIN = 0 [09:31:08]*** Brake cut motor [09:31:08]Read from MH i2c: 01 [09:31:08]MH_I2C_Read... [09:31:08]*** Stop cut motor [09:31:08]*** Cut end [09:31:08]Read from MH i2c: 01 07 00 [09:31:08]MH_I2C_Read... [09:31:08]Read from MH i2c: 01 07 00 62 22 00 00 00 00 00 FF 0F 99 [09:31:08]process_action close_receipt done [09:31:08]requested_data is exist [09:31:08]produce_requested_data [09:31:08]requested_item fm.sn is exist - process it [09:31:08]wFMCommunicate request_size=4 [09:31:08]MH_SAM_APDU [09:31:08]CAPDU: 80 11 00 00 [09:31:08]Write to MH i2c: E2 08 00 63 22 80 11 00 00 00 00 00 00 FF [09:31:08]Write i2c OK [09:31:08]MH_I2C_Read... [09:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:08]Read from MH i2c: E2 [09:31:08]MH_I2C_Read... [09:31:08]Read from MH i2c: E2 17 00 [09:31:08]MH_I2C_Read... [09:31:08]Read from MH i2c: E2 17 00 63 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 52 [09:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:31:08]wFMCommunicate OK [09:31:08]requested_item fd.num is exist - process it [09:31:08]SAM_PROTO_GetFieldsCounters [09:31:08]wFMCommunicate request_size=4 [09:31:08]MH_SAM_APDU [09:31:08]CAPDU: 80 13 00 00 [09:31:08]Write to MH i2c: E2 08 00 64 22 80 13 00 00 00 00 00 00 02 [09:31:08]Write i2c OK [09:31:08]MH_I2C_Read... [09:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:08]Read from MH i2c: E2 [09:31:08]MH_I2C_Read... [09:31:08]Read from MH i2c: E2 62 00 [09:31:08]MH_I2C_Read... [09:31:08]Read from MH i2c: E2 62 00 64 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D4 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [09:31:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D4 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:08]wFMCommunicate OK [09:31:08]SAM_PROTO_GetFieldsCounters done [09:31:08]requested_item shift.num is exist - process it [09:31:08]requested_item shift.opened is exist - process it [09:31:08]req_shift_opened [09:31:08]FM_GetShiftState [09:31:08]SAM_PROTO_GetShiftState [09:31:08]wFMCommunicate request_size=4 [09:31:08]MH_SAM_APDU [09:31:08]CAPDU: 80 13 01 00 [09:31:08]Write to MH i2c: E2 08 00 65 22 80 13 01 00 00 00 00 00 04 [09:31:08]Write i2c OK [09:31:08]MH_I2C_Read... [09:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:08]Read from MH i2c: E2 [09:31:08]MH_I2C_Read... [09:31:08]Read from MH i2c: E2 0E 00 [09:31:08]MH_I2C_Read... [09:31:08]Read from MH i2c: E2 0E 00 65 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7C [09:31:08]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:31:08]wFMCommunicate OK [09:31:08]SAM_PROTO_GetShiftState done [09:31:08]FM_GetShiftState done [09:31:08]req_shift_opened done [09:31:08]requested_item shift.open_date is exist - process it [09:31:08]req_shift_open_date [09:31:08]req_shift_open_date done [09:31:08]produce_requested_data done [09:31:08]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145620,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:31:08]process_action_free close_receipt [09:31:08]json_value_free [09:31:08]json_value_free done [09:31:08]process_json_proto returns [09:31:08]Send response to host [09:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145620,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:31:08]free response buf [09:31:08]execute_script done [09:31:08]execute_script returns [09:31:08]free content buf [09:31:08]Sock 7.Close socket [09:31:08]Sock 7.Thread stoped [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:15]accept exits with 9 [09:32:15]New connection [09:32:15]New thread 3067006308 created [09:32:15]Thread 3067149668 joined [09:32:15]Waiting for new connection... [09:32:15] Sock 9.Parse request [09:32:15]Sock 9.Check first char [09:32:15]Sock 9.First char is OK [09:32:15]request: POST /json_proto HTTP/1.0 [09:32:15]Method: POST [09:32:15]URL: /json_proto [09:32:15]Method is POST - this is cgi request [09:32:15]url: /json_proto [09:32:15]query_string will be loaded in cgi processing [09:32:15]execute_cgi json_proto POST (null) [09:32:15]execute_cgi path=json_proto method=POST [09:32:15]POST find Content-Length [09:32:15]Host: 172.17.40.195:8080 [09:32:15]Content-Length: 679 [09:32:15]Content-Type: application/json [09:32:15] [09:32:15]POST finish read [09:32:15]Found Content-Length = 679 [09:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 29.380, "sum" : 2238.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2238.00, "total" : 2238.00, "payments": [ { "type": 0, "sum" : 2238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:15]execute_script... [09:32:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 29.380, "sum" : 2238.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2238.00, "total" : 2238.00, "payments": [ { "type": 0, "sum" : 2238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:15]POST & json_proto [09:32:15]process_json_proto [09:32:15]json parsed OK: [09:32:15]protocol is kg_v1.0 [09:32:15]action value=close_receipt [09:32:15]process_action close_receipt [09:32:15]cmd_close_receipt [09:32:15]MH_GetDate [09:32:15]Write to MH i2c: F0 00 00 66 22 77 [09:32:15]Write i2c OK [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: F0 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: F0 09 00 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: F0 09 00 66 22 00 A2 08 1E 67 D5 8D 6C 64 E1 [09:32:15]GetLastDocTimeStamp 1730021468 [09:32:15]current date 1730021538 [09:32:15]FM_GetShiftState [09:32:15]SAM_PROTO_GetShiftState [09:32:15]wFMCommunicate request_size=4 [09:32:15]MH_SAM_APDU [09:32:15]CAPDU: 80 13 01 00 [09:32:15]Write to MH i2c: E2 08 00 67 22 80 13 01 00 00 00 00 00 06 [09:32:15]Write i2c OK [09:32:15]MH_I2C_Read... [09:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:15]Read from MH i2c: E2 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: E2 0E 00 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: E2 0E 00 67 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7E [09:32:15]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:32:15]wFMCommunicate OK [09:32:15]SAM_PROTO_GetShiftState done [09:32:15]FM_GetShiftState done [09:32:15]opened in 1729988959 [09:32:15]opened+sec_in_day 1730075359 [09:32:15]quantity*price = 223875 [09:32:15]sum+1 = 223877 [09:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 2238.00 Внесено: 2238.00 СДАЧА: 0.00 НСП 1% : 19.81 НДС 12% : 237.74 Наличными: 2238.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 44 27.10.2024 09:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145621 ФПД: 115582558716255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093218&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145621&fm=115582558716255&tin=02508201610067®Number=0000000000091683&sum=223800 [09:32:16]StoreToDocumentArchive [09:32:16]shift 545 fd 145621 [09:32:16]save to /storage/0545/doc_00145621 [09:32:16]save last doc name /storage/0545/doc_00145621 to /storage/kkm_last_doc_name [09:32:16]save OK [09:32:16]Clear old archive folders... [09:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:32:16]tlvbuf is 01A5F350 [09:32:16]SAM_PROTO_ClearQueue [09:32:16]wFMCommunicate request_size=4 [09:32:16]MH_SAM_APDU [09:32:16]CAPDU: 80 09 00 00 [09:32:16]Write to MH i2c: E2 08 00 74 22 80 09 00 00 00 00 00 00 08 [09:32:16]Write i2c OK [09:32:16]MH_I2C_Read... [09:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:16]Read from MH i2c: E2 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 03 00 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 03 00 74 22 00 90 00 0A [09:32:16]RAPDU: 90 00 [09:32:16]wFMCommunicate OK [09:32:16]SAM_PROTO_ClearQueue done [09:32:16]KKMCreateOFDPacket [09:32:16]OFDProtocolAddRootSTLVToBuf [09:32:16]FM_MakeSignedData [09:32:16]FM_MakeSignedData [09:32:16]SAM_PROTO_SignData [09:32:16]wFMCommunicate request_size=4 [09:32:16]MH_SAM_APDU [09:32:16]CAPDU: 80 0D 01 02 [09:32:16]Write to MH i2c: E2 08 00 75 22 80 0D 01 02 00 00 00 00 10 [09:32:16]Write i2c OK [09:32:16]MH_I2C_Read... [09:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:16]Read from MH i2c: E2 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 03 00 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 03 00 75 22 00 90 00 0B [09:32:16]RAPDU: 90 00 [09:32:16]wFMCommunicate OK [09:32:16]wFMCommunicate request_size=255 [09:32:16]MH_SAM_APDU [09:32: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 32 FF 03 08 00 03 C4 72 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 84 6A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 6A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 5C 00 00 00 00 07 04 06 00 38 6A 03 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 A2 08 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D5 38 02 00 35 04 06 00 69 1F 29 5A [09:32:16]Write to MH i2c: E2 02 01 76 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C4 72 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 84 6A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 6A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 5C 00 00 00 00 07 04 06 00 38 6A 03 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 A2 08 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D5 38 02 00 35 04 06 00 69 1F 29 5A 00 00 54 [09:32:16]Write i2c OK [09:32:16]MH_I2C_Read... [09:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:16]Read from MH i2c: E2 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 03 00 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 03 00 76 22 00 90 00 0C [09:32:16]RAPDU: 90 00 [09:32:16]wFMCommunicate OK [09:32:16]wFMCommunicate request_size=7 [09:32:16]MH_SAM_APDU [09:32:16]CAPDU: 80 0D 02 02 02 C1 5F [09:32:16]Write to MH i2c: E2 0A 00 77 22 80 0D 02 02 02 00 C1 5F 00 00 37 [09:32:16]Write i2c OK [09:32:16]MH_I2C_Read... [09:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:16]Read from MH i2c: E2 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 03 00 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 03 00 77 22 00 90 00 0D [09:32:16]RAPDU: 90 00 [09:32:16]wFMCommunicate OK [09:32:16]wFMCommunicate request_size=4 [09:32:16]MH_SAM_APDU [09:32:16]CAPDU: 80 0D 03 02 [09:32:16]Write to MH i2c: E2 08 00 78 22 80 0D 03 02 00 00 00 00 15 [09:32:16]Write i2c OK [09:32:16]MH_I2C_Read... [09:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:16]Read from MH i2c: E2 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 0B 00 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 0B 00 78 22 00 CF C4 BD 82 6B 76 01 10 90 00 DA [09:32:16]RAPDU: CF C4 BD 82 6B 76 01 10 90 00 [09:32:16]wFMCommunicate OK [09:32:16]SAM_PROTO_SignData done [09:32:16]FM_MakeSignedData done [09:32:16]CreateOFDProtocolMessage [09:32:16]wFMCommunicate request_size=4 [09:32:16]MH_SAM_APDU [09:32:16]CAPDU: 80 11 00 00 [09:32:16]Write to MH i2c: E2 08 00 79 22 80 11 00 00 00 00 00 00 15 [09:32:16]Write i2c OK [09:32:16]MH_I2C_Read... [09:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:16]Read from MH i2c: E2 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 17 00 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: E2 17 00 79 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 68 [09:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:32:16]wFMCommunicate OK [09:32:16]CreateOFDProtocolMessage done [09:32:16]OFDSenderStorePacket 145621 [09:32:16]StoreOFDPacket docnum=145621 [09:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 1E E0 04 01 68 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C4 72 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 84 6A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 6A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 5C 00 00 00 00 07 04 06 00 38 6A 03 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 A2 08 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D5 38 02 00 35 04 06 00 69 1F 29 5A C1 5F CF C4 BD 82 6B 76 01 10 [09:32:16]CheckFolder [09:32:16]dirname=/storage/ofd_packets [09:32:16]CheckFolder done [09:32:16]ProducePacketName [09:32:16]name=ofd_packets/00145621 [09:32:16]NVStorageSaveData ofd_packets/00145621 [09:32:16]File name is /storage/ofd_packets/00145621 [09:32:16]Write 298 bytes [09:32:16]NVStorageSaveData done [09:32:16]OFDSenderStorePacket done [09:32:16]KKMCreateOFDPacket done [09:32:16]NVStorageSaveData kkm_last_timestamp [09:32:16]File name is /storage/kkm_last_timestamp [09:32:16]Write 4 bytes [09:32:16]NVStorageSaveData done [09:32:16]ExternCall_PrintAddStr [09:32:16]wPrintStart [09:32:16]Write to MH i2c: 01 00 00 7A 22 9C [09:32:16]Write i2c OK [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: 01 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: 01 07 00 [09:32:16]MH_I2C_Read... [09:32:16]Read from MH i2c: 01 07 00 7A 22 00 00 00 00 00 FF 0F B1 [09:32:16]RasterBufferAndPrint [09:32:16]line Счет N : (1)160371 [09:32:16]line ИНН: 02508201610067 [09:32:16]line Контрольно-Кассовый Чек [09:32:16]line ПРОДАЖА [09:32:16]line ТРК (МРК, ГНК) : 11 [09:32:16]line Товар: 2710194210 [09:32:16]line ДТ-К-2 [09:32:16]line 29.380 * 76.20 [09:32:16]line = 2238.76 [09:32:16]line НДС 12% НСП 1% [09:32:16]line > о реализуемом товаре [09:32:16]line ОКРУГЛЕНИЕ: -0.76 [09:32:16]line ИТОГО: 2238.00 [09:32:16]line Внесено: 2238.00 [09:32:16]line СДАЧА: 0.00 [09:32:16]line НСП 1% : 19.81 [09:32:16]line НДС 12% : 237.74 [09:32:16]line Наличными: 2238.00 [09:32:16]line Безнал.: 0.00 [09:32:16]line Место: АЗС № 126 "Партнер Нефть" [09:32:16]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:32:16]line СНО: Общий режим [09:32:16]line Чек 44 27.10.2024 09:32 [09:32:16]line Смена: 545 ФФД: 1.0 [09:32:16]line ЗНМ: 0300000085 [09:32:16]line РНМ: 0000000000091683 [09:32:16]line Версия ККМ: 001 [09:32:16]line ФМ: 0000000000871745 [09:32:16]line ФД: 145621 [09:32:16]line ФПД: 115582558716255 [09:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093218&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145621&fm=115582558716255&tin=02508201610067®Number=0000000000091683&sum=223800 [09:32:17]OFD Sender: Processing packet 145621 [packets to send 205, broken 204] [09:32:17]ProducePacketName [09:32:17]name=ofd_packets/00145621 [09:32:17]OFD Sender: To server: pG, [09:32:17]CommunicateWithHost lk.salyk.kg:30040 [09:32:17]ConnectInit lk.salyk.kg [09:32:17]written 0, free lines is 4095 [09:32:17]Connected sock=10 [09:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 1E E0 04 01 68 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C4 72 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 84 6A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 6A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 5C 00 00 00 00 07 04 06 00 38 6A 03 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 A2 08 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D5 38 02 00 35 04 06 00 69 1F 29 5A C1 5F CF C4 BD 82 6B 76 01 10 [09:32:17]Write to MH i2c: 01 00 00 A5 22 C7 [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: 01 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: 01 07 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: 01 07 00 A5 22 00 00 00 00 00 B0 0C 8A [09:32:17]RasterBufferAndPrint [09:32:17]line [09:32:17]line [09:32:17]line [09:32:17]line [09:32:17]line [09:32:17]written 0, free lines is 3252 [09:32:17]MH_Cut [09:32:17]Write to MH i2c: D1 01 00 AC 22 01 A0 [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: D1 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: D1 01 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: D1 01 00 AC 22 00 9F [09:32:17]Write to MH i2c: 01 00 00 AD 22 CF [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 AE EB 47 00 AA 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D5 38 02 00 F4 03 04 00 D0 AD 1D 67 B6 04 01 00 00 D5 82 4E 4F 58 91 30 EF [09:32:17]CommunicateWithHost err = 0 [09:32:17]CheckOFDResponse [09:32:17]1017 (14) - 77093643461234 [09:32:17]1041 (16) - 0000000000871745 [09:32:17]1040 (4) - 145621 [09:32:17]1012 (4) - 27.10.2024 03:04 [09:32:17]1206 (1) - 0 [09:32:17]OFD Sender: Remove packet 145621 [09:32:17]ProducePacketName [09:32:17]name=ofd_packets/00145621 [09:32:17]NVStorageDeleteData [09:32:18]OFD Sender: No OFD packet to send [09:32:18]*** Cut start [09:32:18]*** Partial cut [09:32:18]*** CUTSNS_PIN = 1 [09:32:18]*** CUTSNS_PIN = 0 [09:32:18]*** Brake cut motor [09:32:19]Read from MH i2c: 01 [09:32:19]MH_I2C_Read... [09:32:19]*** Stop cut motor [09:32:19]*** Cut end [09:32:19]Read from MH i2c: 01 07 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: 01 07 00 AD 22 00 00 00 00 00 FF 0F E4 [09:32:19]process_action close_receipt done [09:32:19]requested_data is exist [09:32:19]produce_requested_data [09:32:19]requested_item fm.sn is exist - process it [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 11 00 00 [09:32:19]Write to MH i2c: E2 08 00 AE 22 80 11 00 00 00 00 00 00 4A [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 17 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 17 00 AE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9D [09:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:32:19]wFMCommunicate OK [09:32:19]requested_item fd.num is exist - process it [09:32:19]SAM_PROTO_GetFieldsCounters [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 13 00 00 [09:32:19]Write to MH i2c: E2 08 00 AF 22 80 13 00 00 00 00 00 00 4D [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 62 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 62 00 AF 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D5 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [09:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D5 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:19]wFMCommunicate OK [09:32:19]SAM_PROTO_GetFieldsCounters done [09:32:19]requested_item shift.num is exist - process it [09:32:19]requested_item shift.opened is exist - process it [09:32:19]req_shift_opened [09:32:19]FM_GetShiftState [09:32:19]SAM_PROTO_GetShiftState [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 13 01 00 [09:32:19]Write to MH i2c: E2 08 00 B0 22 80 13 01 00 00 00 00 00 4F [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0E 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0E 00 B0 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C7 [09:32:19]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:32:19]wFMCommunicate OK [09:32:19]SAM_PROTO_GetShiftState done [09:32:19]FM_GetShiftState done [09:32:19]req_shift_opened done [09:32:19]requested_item shift.open_date is exist - process it [09:32:19]req_shift_open_date [09:32:19]req_shift_open_date done [09:32:19]produce_requested_data done [09:32:19]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145621,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:32:19]process_action_free close_receipt [09:32:19]json_value_free [09:32:19]json_value_free done [09:32:19]process_json_proto returns [09:32:19]Send response to host [09:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145621,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:32:19]free response buf [09:32:19]execute_script done [09:32:19]execute_script returns [09:32:19]free content buf [09:32:19]Sock 9.Close socket [09:32:19]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:23]int [09:35:23]Write to MH i2c: 01 00 00 B1 22 D3 [09:35:23]*** FLAG_PRN_KEY set [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 07 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 07 00 B1 22 00 08 00 00 00 FF 0F F0 [09:35:23]state=0 [09:35:23]Key pressed [09:35:23]Feed [09:35:23]Write to MH i2c: D8 00 00 B2 22 AB [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: D8 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: D8 01 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: D8 01 00 B2 22 00 AC [09:35:23]int [09:35:23]Write to MH i2c: 01 00 00 B3 22 D5 [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 07 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 07 00 B3 22 00 48 00 00 00 3C 00 60 [09:35:23]state=2 [09:35:23]Key pressed [09:35:23]int [09:35:23]Write to MH i2c: 01 00 00 B4 22 D6 [09:35:23]*** FLAG_PRN_KEY reset [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 07 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 07 00 B4 22 00 00 00 00 00 F6 0F E2 [09:35:23]state=2 [09:35:23]Stop feed [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:07]accept exits with 7 [09:37:07]New connection [09:37:07]New thread 3067149668 created [09:37:07]Thread 3067006308 joined [09:37:07]Waiting for new connection... [09:37:07] Sock 7.Parse request [09:37:07]Sock 7.Check first char [09:37:07]Sock 7.First char is OK [09:37:07]request: POST /json_proto HTTP/1.0 [09:37:07]Method: POST [09:37:07]URL: /json_proto [09:37:07]Method is POST - this is cgi request [09:37:07]url: /json_proto [09:37:07]query_string will be loaded in cgi processing [09:37:07]execute_cgi json_proto POST (null) [09:37:07]execute_cgi path=json_proto method=POST [09:37:07]POST find Content-Length [09:37:07]Host: 172.17.40.195:8080 [09:37:07]Content-Length: 675 [09:37:07]Content-Type: application/json [09:37:07] [09:37:07]POST finish read [09:37:07]Found Content-Length = 675 [09:37:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.370, "sum" : 790.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 790.00, "total" : 790.00, "payments": [ { "type": 0, "sum" : 790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:07]execute_script... [09:37: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)160373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.370, "sum" : 790.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 790.00, "total" : 790.00, "payments": [ { "type": 0, "sum" : 790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:07]POST & json_proto [09:37:07]process_json_proto [09:37:07]json parsed OK: [09:37:07]protocol is kg_v1.0 [09:37:07]action value=close_receipt [09:37:07]process_action close_receipt [09:37:07]cmd_close_receipt [09:37:07]MH_GetDate [09:37:07]Write to MH i2c: F0 00 00 B5 22 C6 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: F0 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: F0 09 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: F0 09 00 B5 22 00 C7 09 1E 67 D5 8D 6C 64 56 [09:37:07]GetLastDocTimeStamp 1730021538 [09:37:07]current date 1730021831 [09:37:07]FM_GetShiftState [09:37:07]SAM_PROTO_GetShiftState [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 13 01 00 [09:37:07]Write to MH i2c: E2 08 00 B6 22 80 13 01 00 00 00 00 00 55 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0E 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0E 00 B6 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CD [09:37:07]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_GetShiftState done [09:37:07]FM_GetShiftState done [09:37:07]opened in 1729988959 [09:37:07]opened+sec_in_day 1730075359 [09:37:07]quantity*price = 79019 [09:37:07]sum+1 = 79020 [09:37:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 790.00 Внесено: 790.00 СДАЧА: 0.00 НСП 1% : 6.99 НДС 12% : 83.91 Наличными: 790.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 45 27.10.2024 09:37 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145622 ФПД: 182613774404836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093711&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145622&fm=182613774404836&tin=02508201610067®Number=0000000000091683&sum=79000 [09:37:08]StoreToDocumentArchive [09:37:08]shift 545 fd 145622 [09:37:08]save to /storage/0545/doc_00145622 [09:37:08]save last doc name /storage/0545/doc_00145622 to /storage/kkm_last_doc_name [09:37:08]save OK [09:37:08]Clear old archive folders... [09:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:37:08]tlvbuf is B6EF17F0 [09:37:08]SAM_PROTO_ClearQueue [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 09 00 00 [09:37:08]Write to MH i2c: E2 08 00 C3 22 80 09 00 00 00 00 00 00 57 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:08]OFD Sender: No OFD packet to send [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 C3 22 00 90 00 59 [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]SAM_PROTO_ClearQueue done [09:37:08]KKMCreateOFDPacket [09:37:08]OFDProtocolAddRootSTLVToBuf [09:37:08]FM_MakeSignedData [09:37:08]FM_MakeSignedData [09:37:08]SAM_PROTO_SignData [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 0D 01 02 [09:37:08]Write to MH i2c: E2 08 00 C4 22 80 0D 01 02 00 00 00 00 5F [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 C4 22 00 90 00 5A [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]wFMCommunicate request_size=255 [09:37:08]MH_SAM_APDU [09:37: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 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C7 09 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D6 38 02 00 35 04 06 00 A6 16 15 27 [09:37:08]Write to MH i2c: E2 02 01 C5 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C7 09 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D6 38 02 00 35 04 06 00 A6 16 15 27 00 00 11 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 C5 22 00 90 00 5B [09:37:09]RAPDU: 90 00 [09:37:09]wFMCommunicate OK [09:37:09]wFMCommunicate request_size=7 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 0D 02 02 02 8C E4 [09:37:09]Write to MH i2c: E2 0A 00 C6 22 80 0D 02 02 02 00 8C E4 00 00 D6 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 C6 22 00 90 00 5C [09:37:09]RAPDU: 90 00 [09:37:09]wFMCommunicate OK [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 0D 03 02 [09:37:09]Write to MH i2c: E2 08 00 C7 22 80 0D 03 02 00 00 00 00 64 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 0B 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 0B 00 C7 22 00 31 DE FA EA AB 9A F5 0E 90 00 A0 [09:37:09]RAPDU: 31 DE FA EA AB 9A F5 0E 90 00 [09:37:09]wFMCommunicate OK [09:37:09]SAM_PROTO_SignData done [09:37:09]FM_MakeSignedData done [09:37:09]CreateOFDProtocolMessage [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 11 00 00 [09:37:09]Write to MH i2c: E2 08 00 C8 22 80 11 00 00 00 00 00 00 64 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 C8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B7 [09:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:37:09]wFMCommunicate OK [09:37:09]CreateOFDProtocolMessage done [09:37:09]OFDSenderStorePacket 145622 [09:37:09]StoreOFDPacket docnum=145622 [09:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 2C 8D 04 01 9B 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C7 09 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D6 38 02 00 35 04 06 00 A6 16 15 27 8C E4 31 DE FA EA AB 9A F5 0E [09:37:09]CheckFolder [09:37:09]dirname=/storage/ofd_packets [09:37:09]CheckFolder done [09:37:09]ProducePacketName [09:37:09]name=ofd_packets/00145622 [09:37:09]NVStorageSaveData ofd_packets/00145622 [09:37:09]File name is /storage/ofd_packets/00145622 [09:37:09]Write 298 bytes [09:37:09]NVStorageSaveData done [09:37:09]OFDSenderStorePacket done [09:37:09]KKMCreateOFDPacket done [09:37:09]NVStorageSaveData kkm_last_timestamp [09:37:09]File name is /storage/kkm_last_timestamp [09:37:09]Write 4 bytes [09:37:09]NVStorageSaveData done [09:37:09]ExternCall_PrintAddStr [09:37:09]wPrintStart [09:37:09]Write to MH i2c: 01 00 00 C9 22 EB [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 C9 22 00 00 00 00 00 FF 0F 00 [09:37:09]RasterBufferAndPrint [09:37:09]line Счет N : (1)160373 [09:37:09]line ИНН: 02508201610067 [09:37:09]line Контрольно-Кассовый Чек [09:37:09]line ПРОДАЖА [09:37:09]line ТРК (МРК, ГНК) : 11 [09:37:09]line Товар: 2710194210 [09:37:09]line ДТ-К-2 [09:37:09]line 10.370 * 76.20 [09:37:09]line = 790.19 [09:37:09]line НДС 12% НСП 1% [09:37:09]line > о реализуемом товаре [09:37:09]line ОКРУГЛЕНИЕ: -0.19 [09:37:09]line ИТОГО: 790.00 [09:37:09]line Внесено: 790.00 [09:37:09]line СДАЧА: 0.00 [09:37:09]line НСП 1% : 6.99 [09:37:09]line НДС 12% : 83.91 [09:37:09]line Наличными: 790.00 [09:37:09]line Безнал.: 0.00 [09:37:09]line Место: АЗС № 126 "Партнер Нефть" [09:37:09]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:37:09]line СНО: Общий режим [09:37:09]line Чек 45 27.10.2024 09:37 [09:37:09]line Смена: 545 ФФД: 1.0 [09:37:09]line ЗНМ: 0300000085 [09:37:09]line РНМ: 0000000000091683 [09:37:09]line Версия ККМ: 001 [09:37:09]line ФМ: 0000000000871745 [09:37:09]line ФД: 145622 [09:37:09]line ФПД: 182613774404836 [09:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093711&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145622&fm=182613774404836&tin=02508201610067®Number=0000000000091683&sum=79000 [09:37:09]OFD Sender: Processing packet 145622 [packets to send 205, broken 204] [09:37:09]ProducePacketName [09:37:09]name=ofd_packets/00145622 [09:37:09]OFD Sender: To server: pG, [09:37:09]CommunicateWithHost lk.salyk.kg:30040 [09:37:09]ConnectInit lk.salyk.kg [09:37:09]written 0, free lines is 4095 [09:37:09]Connected sock=10 [09: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 31 37 34 35 0C 01 00 00 2C 8D 04 01 9B 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C7 09 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D6 38 02 00 35 04 06 00 A6 16 15 27 8C E4 31 DE FA EA AB 9A F5 0E [09:37:09]Write to MH i2c: 01 00 00 F4 22 16 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 F4 22 00 00 00 00 00 AE 0C D7 [09:37:09]RasterBufferAndPrint [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]written 0, free lines is 3253 [09:37:09]MH_Cut [09:37:09]Write to MH i2c: D1 01 00 FB 22 01 EF [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: D1 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: D1 01 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: D1 01 00 FB 22 00 EE [09:37:09]Write to MH i2c: 01 00 00 FC 22 1E [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 54 EE 47 00 4A 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 31 37 34 35 10 04 04 00 D6 38 02 00 F4 03 04 00 F5 AE 1D 67 B6 04 01 00 00 83 1D C5 FA 9F 7C 88 F5 [09:37:10]CommunicateWithHost err = 0 [09:37:10]CheckOFDResponse [09:37:10]1017 (14) - 77093643461234 [09:37:10]1041 (16) - 0000000000871745 [09:37:10]1040 (4) - 145622 [09:37:10]1012 (4) - 27.10.2024 03:09 [09:37:10]1206 (1) - 0 [09:37:10]OFD Sender: Remove packet 145622 [09:37:10]ProducePacketName [09:37:10]name=ofd_packets/00145622 [09:37:10]NVStorageDeleteData [09:37:10]OFD Sender: No OFD packet to send [09:37:10]*** Cut start [09:37:10]*** Partial cut [09:37:10]*** CUTSNS_PIN = 1 [09:37:10]*** CUTSNS_PIN = 0 [09:37:10]*** Brake cut motor [09:37:11]Read from MH i2c: 01 [09:37:11]MH_I2C_Read... [09:37:11]*** Stop cut motor [09:37:11]*** Cut end [09:37:11]Read from MH i2c: 01 07 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 07 00 FC 22 00 00 00 00 00 FF 0F 33 [09:37:11]process_action close_receipt done [09:37:11]requested_data is exist [09:37:11]produce_requested_data [09:37:11]requested_item fm.sn is exist - process it [09:37:11]wFMCommunicate request_size=4 [09:37:11]MH_SAM_APDU [09:37:11]CAPDU: 80 11 00 00 [09:37:11]Write to MH i2c: E2 08 00 FD 22 80 11 00 00 00 00 00 00 99 [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:11]Read from MH i2c: E2 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 17 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 17 00 FD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EC [09:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:37:11]wFMCommunicate OK [09:37:11]requested_item fd.num is exist - process it [09:37:11]SAM_PROTO_GetFieldsCounters [09:37:11]wFMCommunicate request_size=4 [09:37:11]MH_SAM_APDU [09:37:11]CAPDU: 80 13 00 00 [09:37:11]Write to MH i2c: E2 08 00 FE 22 80 13 00 00 00 00 00 00 9C [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:11]Read from MH i2c: E2 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 62 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 62 00 FE 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D6 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [09:37:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D6 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:11]wFMCommunicate OK [09:37:11]SAM_PROTO_GetFieldsCounters done [09:37:11]requested_item shift.num is exist - process it [09:37:11]requested_item shift.opened is exist - process it [09:37:11]req_shift_opened [09:37:11]FM_GetShiftState [09:37:11]SAM_PROTO_GetShiftState [09:37:11]wFMCommunicate request_size=4 [09:37:11]MH_SAM_APDU [09:37:11]CAPDU: 80 13 01 00 [09:37:11]Write to MH i2c: E2 08 00 FF 22 80 13 01 00 00 00 00 00 9E [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:11]Read from MH i2c: E2 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 0E 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 0E 00 FF 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 16 [09:37:11]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:37:11]wFMCommunicate OK [09:37:11]SAM_PROTO_GetShiftState done [09:37:11]FM_GetShiftState done [09:37:11]req_shift_opened done [09:37:11]requested_item shift.open_date is exist - process it [09:37:11]req_shift_open_date [09:37:11]req_shift_open_date done [09:37:11]produce_requested_data done [09:37:11]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145622,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:37:11]process_action_free close_receipt [09:37:11]json_value_free [09:37:11]json_value_free done [09:37:11]process_json_proto returns [09:37:11]Send response to host [09:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145622,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:37:11]free response buf [09:37:11]execute_script done [09:37:11]execute_script returns [09:37:11]free content buf [09:37:11]Sock 7.Close socket [09:37:11]Sock 7.Thread stoped [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:22]int [09:37:22]Write to MH i2c: 01 00 00 00 23 23 [09:37:22]*** FLAG_PRN_KEY set [09:37:22]Write i2c OK [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: 01 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: 01 07 00 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: 01 07 00 00 23 00 08 00 00 00 FF 0F 40 [09:37:22]state=0 [09:37:22]Key pressed [09:37:22]Feed [09:37:22]Write to MH i2c: D8 00 00 01 23 FB [09:37:22]Write i2c OK [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: D8 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: D8 01 00 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: D8 01 00 01 23 00 FC [09:37:22]int [09:37:22]Write to MH i2c: 01 00 00 02 23 25 [09:37:22]Write i2c OK [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: 01 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: 01 07 00 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: 01 07 00 02 23 00 48 00 00 00 3C 00 B0 [09:37:22]state=2 [09:37:22]Key pressed [09:37:22]int [09:37:22]Write to MH i2c: 01 00 00 03 23 26 [09:37:22]*** FLAG_PRN_KEY reset [09:37:22]Write i2c OK [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: 01 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: 01 07 00 [09:37:22]MH_I2C_Read... [09:37:22]Read from MH i2c: 01 07 00 03 23 00 00 00 00 00 F6 0F 32 [09:37:22]state=2 [09:37:22]Stop feed [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]accept exits with 9 [09:39:40]New connection [09:39:40]New thread 3067006308 created [09:39:40]Thread 3067149668 joined [09:39:40]Waiting for new connection... [09:39:40] Sock 9.Parse request [09:39:40]Sock 9.Check first char [09:39:40]Sock 9.First char is OK [09:39:40]request: POST /json_proto HTTP/1.0 [09:39:40]Method: POST [09:39:40]URL: /json_proto [09:39:40]Method is POST - this is cgi request [09:39:40]url: /json_proto [09:39:40]query_string will be loaded in cgi processing [09:39:40]execute_cgi json_proto POST (null) [09:39:40]execute_cgi path=json_proto method=POST [09:39:40]POST find Content-Length [09:39:40]Host: 172.17.40.195:8080 [09:39:40]Content-Length: 681 [09:39:40]Content-Type: application/json [09:39:40] [09:39:40]POST finish read [09:39:40]Found Content-Length = 681 [09:39:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 9989.00, "payments": [ { "type": 0, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:40]execute_script... [09:39:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 9989.00, "payments": [ { "type": 0, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:40]POST & json_proto [09:39:40]process_json_proto [09:39:40]json parsed OK: [09:39:40]protocol is kg_v1.0 [09:39:40]action value=close_receipt [09:39:40]process_action close_receipt [09:39:40]cmd_close_receipt [09:39:40]MH_GetDate [09:39:40]Write to MH i2c: F0 00 00 04 23 16 [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: F0 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: F0 09 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: F0 09 00 04 23 00 5F 0A 1E 67 D5 8D 6C 64 3F [09:39:40]GetLastDocTimeStamp 1730021831 [09:39:40]current date 1730021983 [09:39:40]FM_GetShiftState [09:39:40]SAM_PROTO_GetShiftState [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 01 00 [09:39:40]Write to MH i2c: E2 08 00 05 23 80 13 01 00 00 00 00 00 A5 [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 05 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1D [09:39:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetShiftState done [09:39:40]FM_GetShiftState done [09:39:40]opened in 1729988959 [09:39:40]opened+sec_in_day 1730075359 [09:39:40]quantity*price = 998982 [09:39:40]sum+1 = 998983 [09:39:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 Внесено: 10000.00 СДАЧА: 11.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 9989.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 46 27.10.2024 09:39 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145623 ФПД: 46657394180449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093943&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145623&fm=46657394180449&tin=02508201610067®Number=0000000000091683&sum=998900 [09:39:41]StoreToDocumentArchive [09:39:41]shift 545 fd 145623 [09:39:41]save to /storage/0545/doc_00145623 [09:39:41]save last doc name /storage/0545/doc_00145623 to /storage/kkm_last_doc_name [09:39:41]save OK [09:39:41]Clear old archive folders... [09:39:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:39:41]tlvbuf is B6ED8370 [09:39:41]SAM_PROTO_ClearQueue [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 09 00 00 [09:39:41]Write to MH i2c: E2 08 00 12 23 80 09 00 00 00 00 00 00 A7 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 12 23 00 90 00 A9 [09:39:41]RAPDU: 90 00 [09:39:41]wFMCommunicate OK [09:39:41]SAM_PROTO_ClearQueue done [09:39:41]KKMCreateOFDPacket [09:39:41]OFDProtocolAddRootSTLVToBuf [09:39:41]FM_MakeSignedData [09:39:41]FM_MakeSignedData [09:39:41]SAM_PROTO_SignData [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 0D 01 02 [09:39:41]Write to MH i2c: E2 08 00 13 23 80 0D 01 02 00 00 00 00 AF [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 13 23 00 90 00 AA [09:39:41]RAPDU: 90 00 [09:39:41]wFMCommunicate OK [09:39:41]wFMCommunicate request_size=255 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 F4 3D 0F 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 5F 0A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D7 38 02 00 35 04 06 00 2A 6F 45 68 [09:39:41]Write to MH i2c: E2 02 01 14 23 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 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 F4 3D 0F 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 5F 0A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D7 38 02 00 35 04 06 00 2A 6F 45 68 00 00 63 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 14 23 00 90 00 AB [09:39:41]RAPDU: 90 00 [09:39:41]wFMCommunicate OK [09:39:41]wFMCommunicate request_size=7 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 0D 02 02 02 01 61 [09:39:41]Write to MH i2c: E2 0A 00 15 23 80 0D 02 02 02 00 01 61 00 00 18 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 03 00 15 23 00 90 00 AC [09:39:41]RAPDU: 90 00 [09:39:41]wFMCommunicate OK [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 0D 03 02 [09:39:41]Write to MH i2c: E2 08 00 16 23 80 0D 03 02 00 00 00 00 B4 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 0B 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 0B 00 16 23 00 50 79 39 15 00 38 7B 89 90 00 08 [09:39:41]RAPDU: 50 79 39 15 00 38 7B 89 90 00 [09:39:41]wFMCommunicate OK [09:39:41]SAM_PROTO_SignData done [09:39:41]FM_MakeSignedData done [09:39:41]CreateOFDProtocolMessage [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 11 00 00 [09:39:41]Write to MH i2c: E2 08 00 17 23 80 11 00 00 00 00 00 00 B4 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:41]Read from MH i2c: E2 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: E2 17 00 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: E2 17 00 17 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 07 [09:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:39:42]wFMCommunicate OK [09:39:42]CreateOFDProtocolMessage done [09:39:42]OFDSenderStorePacket 145623 [09:39:42]StoreOFDPacket docnum=145623 [09:39:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 20 0C 04 01 45 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 F4 3D 0F 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 5F 0A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D7 38 02 00 35 04 06 00 2A 6F 45 68 01 61 50 79 39 15 00 38 7B 89 [09:39:42]CheckFolder [09:39:42]dirname=/storage/ofd_packets [09:39:42]CheckFolder done [09:39:42]ProducePacketName [09:39:42]name=ofd_packets/00145623 [09:39:42]NVStorageSaveData ofd_packets/00145623 [09:39:42]File name is /storage/ofd_packets/00145623 [09:39:42]Write 298 bytes [09:39:42]NVStorageSaveData done [09:39:42]OFDSenderStorePacket done [09:39:42]KKMCreateOFDPacket done [09:39:42]NVStorageSaveData kkm_last_timestamp [09:39:42]File name is /storage/kkm_last_timestamp [09:39:42]Write 4 bytes [09:39:42]NVStorageSaveData done [09:39:42]ExternCall_PrintAddStr [09:39:42]wPrintStart [09:39:42]Write to MH i2c: 01 00 00 18 23 3B [09:39:42]Write i2c OK [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: 01 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: 01 07 00 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: 01 07 00 18 23 00 00 00 00 00 FF 0F 50 [09:39:42]RasterBufferAndPrint [09:39:42]line Счет N : (1)160372 [09:39:42]line ИНН: 02508201610067 [09:39:42]line Контрольно-Кассовый Чек [09:39:42]line ПРОДАЖА [09:39:42]line ТРК (МРК, ГНК) : 21 [09:39:42]line Товар: 2710194210 [09:39:42]line ДТ-К-2 [09:39:42]line 131.100 * 76.20 [09:39:42]line = 9989.82 [09:39:42]line НДС 12% НСП 1% [09:39:42]line > о реализуемом товаре [09:39:42]line ОКРУГЛЕНИЕ: -0.82 [09:39:42]line ИТОГО: 9989.00 [09:39:42]line Внесено: 10000.00 [09:39:42]line СДАЧА: 11.00 [09:39:42]line НСП 1% : 88.40 [09:39:42]line НДС 12% : 1060.87 [09:39:42]line Наличными: 9989.00 [09:39:42]line Безнал.: 0.00 [09:39:42]line Место: АЗС № 126 "Партнер Нефть" [09:39:42]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:39:42]line СНО: Общий режим [09:39:42]line Чек 46 27.10.2024 09:39 [09:39:42]line Смена: 545 ФФД: 1.0 [09:39:42]line ЗНМ: 0300000085 [09:39:42]line РНМ: 0000000000091683 [09:39:42]line Версия ККМ: 001 [09:39:42]line ФМ: 0000000000871745 [09:39:42]line ФД: 145623 [09:39:42]line ФПД: 46657394180449 [09:39:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093943&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145623&fm=46657394180449&tin=02508201610067®Number=0000000000091683&sum=998900 [09:39:42]OFD Sender: Processing packet 145623 [packets to send 205, broken 204] [09:39:42]ProducePacketName [09:39:42]name=ofd_packets/00145623 [09:39:42]OFD Sender: To server: pG, [09:39:42]CommunicateWithHost lk.salyk.kg:30040 [09:39:42]ConnectInit lk.salyk.kg [09:39:42]written 0, free lines is 4095 [09:39:42]Connected sock=11 [09:39:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 20 0C 04 01 45 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 F4 3D 0F 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 5F 0A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D7 38 02 00 35 04 06 00 2A 6F 45 68 01 61 50 79 39 15 00 38 7B 89 [09:39:42]Write to MH i2c: 01 00 00 43 23 66 [09:39:42]Write i2c OK [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: 01 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: 01 07 00 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: 01 07 00 43 23 00 00 00 00 00 BA 0C 33 [09:39:42]RasterBufferAndPrint [09:39:42]line [09:39:42]line [09:39:42]line [09:39:42]line [09:39:42]line [09:39:42]written 0, free lines is 3265 [09:39:42]MH_Cut [09:39:42]Write to MH i2c: D1 01 00 4A 23 01 3F [09:39:42]Write i2c OK [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: D1 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: D1 01 00 [09:39:42]MH_I2C_Read... [09:39:42]Read from MH i2c: D1 01 00 4A 23 00 3E [09:39:42]Write to MH i2c: 01 00 00 4B 23 6E [09:39:42]Write i2c OK [09:39:42]MH_I2C_Read... [09:39:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 1A D4 47 00 97 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D7 38 02 00 F4 03 04 00 8D AF 1D 67 B6 04 01 00 00 04 CC 2C 32 96 B1 1D 35 [09:39:42]CommunicateWithHost err = 0 [09:39:42]CheckOFDResponse [09:39:42]1017 (14) - 77093643461234 [09:39:42]1041 (16) - 0000000000871745 [09:39:42]1040 (4) - 145623 [09:39:42]1012 (4) - 27.10.2024 03:12 [09:39:42]1206 (1) - 0 [09:39:42]OFD Sender: Remove packet 145623 [09:39:42]ProducePacketName [09:39:42]name=ofd_packets/00145623 [09:39:42]NVStorageDeleteData [09:39:43]OFD Sender: No OFD packet to send [09:39:43]*** Cut start [09:39:43]*** Partial cut [09:39:43]*** CUTSNS_PIN = 1 [09:39:43]*** CUTSNS_PIN = 0 [09:39:43]*** Brake cut motor [09:39:44]Read from MH i2c: 01 [09:39:44]MH_I2C_Read... [09:39:44]*** Stop cut motor [09:39:44]*** Cut end [09:39:44]Read from MH i2c: 01 07 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 07 00 4B 23 00 00 00 00 00 FF 0F 83 [09:39:44]process_action close_receipt done [09:39:44]requested_data is exist [09:39:44]produce_requested_data [09:39:44]requested_item fm.sn is exist - process it [09:39:44]wFMCommunicate request_size=4 [09:39:44]MH_SAM_APDU [09:39:44]CAPDU: 80 11 00 00 [09:39:44]Write to MH i2c: E2 08 00 4C 23 80 11 00 00 00 00 00 00 E9 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:44]Read from MH i2c: E2 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 17 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 17 00 4C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3C [09:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:39:44]wFMCommunicate OK [09:39:44]requested_item fd.num is exist - process it [09:39:44]SAM_PROTO_GetFieldsCounters [09:39:44]wFMCommunicate request_size=4 [09:39:44]MH_SAM_APDU [09:39:44]CAPDU: 80 13 00 00 [09:39:44]Write to MH i2c: E2 08 00 4D 23 80 13 00 00 00 00 00 00 EC [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]int [09:39:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:44]*** FLAG_PRN_KEY set [09:39:44]Read from MH i2c: E2 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 62 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 62 00 4D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D7 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [09:39:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D7 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:44]wFMCommunicate OK [09:39:44]SAM_PROTO_GetFieldsCounters done [09:39:44]requested_item shift.num is exist - process it [09:39:44]requested_item shift.opened is exist - process it [09:39:44]req_shift_opened [09:39:44]FM_GetShiftState [09:39:44]SAM_PROTO_GetShiftState [09:39:44]wFMCommunicate request_size=4 [09:39:44]MH_SAM_APDU [09:39:44]CAPDU: 80 13 01 00 [09:39:44]Write to MH i2c: 01 00 00 4E 23 71 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 07 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 07 00 4E 23 00 08 00 00 00 FF 0F 8E [09:39:44]state=0 [09:39:44]Key pressed [09:39:44]Feed [09:39:44]Write to MH i2c: D8 00 00 4F 23 49 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: D8 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: D8 01 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: D8 01 00 4F 23 00 4A [09:39:44]Write to MH i2c: E2 08 00 50 23 80 13 01 00 00 00 00 00 F0 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]int [09:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:44]Read from MH i2c: E2 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 0E 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 0E 00 50 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 68 [09:39:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:39:44]wFMCommunicate OK [09:39:44]SAM_PROTO_GetShiftState done [09:39:44]FM_GetShiftState done [09:39:44]req_shift_opened done [09:39:44]requested_item shift.open_date is exist - process it [09:39:44]req_shift_open_date [09:39:44]req_shift_open_date done [09:39:44]produce_requested_data done [09:39:44]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145623,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:39:44]process_action_free close_receipt [09:39:44]json_value_free [09:39:44]json_value_free done [09:39:44]process_json_proto returns [09:39:44]Send response to host [09:39:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145623,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:39:44]free response buf [09:39:44]execute_script done [09:39:44]execute_script returns [09:39:44]free content buf [09:39:44]Sock 9.Close socket [09:39:44]Sock 9.Thread stoped [09:39:44]Write to MH i2c: 01 00 00 51 23 74 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 07 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 07 00 51 23 00 48 00 00 00 3C 00 FF [09:39:44]state=2 [09:39:44]Key pressed [09:39:44]int [09:39:44]Write to MH i2c: 01 00 00 52 23 75 [09:39:44]*** FLAG_PRN_KEY reset [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 07 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: 01 07 00 52 23 00 00 00 00 00 FF 0F 8A [09:39:44]state=2 [09:39:44]Stop feed [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:24]accept exits with 10 [09:44:24]New connection [09:44:24]New thread 3067149668 created [09:44:24]Thread 3067006308 joined [09:44:24]Waiting for new connection... [09:44:24] Sock 10.Parse request [09:44:24]Sock 10.Check first char [09:44:24]Sock 10.First char is OK [09:44:24]request: POST /json_proto HTTP/1.0 [09:44:24]Method: POST [09:44:24]URL: /json_proto [09:44:24]Method is POST - this is cgi request [09:44:24]url: /json_proto [09:44:24]query_string will be loaded in cgi processing [09:44:24]execute_cgi json_proto POST (null) [09:44:24]execute_cgi path=json_proto method=POST [09:44:24]POST find Content-Length [09:44:24]Host: 172.17.40.195:8080 [09:44:24]Content-Length: 679 [09:44:24]Content-Type: application/json [09:44:24] [09:44:24]POST finish read [09:44:24]Found Content-Length = 679 [09:44:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:24]execute_script... [09:44: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)160374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:24]POST & json_proto [09:44:24]process_json_proto [09:44:24]json parsed OK: [09:44:24]protocol is kg_v1.0 [09:44:24]action value=close_receipt [09:44:24]process_action close_receipt [09:44:24]cmd_close_receipt [09:44:24]MH_GetDate [09:44:24]Write to MH i2c: F0 00 00 53 23 65 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: F0 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: F0 09 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: F0 09 00 53 23 00 7B 0B 1E 67 D5 8D 6C 64 AB [09:44:24]GetLastDocTimeStamp 1730021983 [09:44:24]current date 1730022267 [09:44:24]FM_GetShiftState [09:44:24]SAM_PROTO_GetShiftState [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 13 01 00 [09:44:24]Write to MH i2c: E2 08 00 54 23 80 13 01 00 00 00 00 00 F4 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 0E 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 0E 00 54 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6C [09:44:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:44:24]wFMCommunicate OK [09:44:24]SAM_PROTO_GetShiftState done [09:44:24]FM_GetShiftState done [09:44:24]opened in 1729988959 [09:44:24]opened+sec_in_day 1730075359 [09:44:24]quantity*price = 100050 [09:44:24]sum+1 = 100052 [09:44:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 47 27.10.2024 09:44 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145624 ФПД: 194304167572226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094427&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145624&fm=194304167572226&tin=02508201610067®Number=0000000000091683&sum=100000 [09:44:25]StoreToDocumentArchive [09:44:25]shift 545 fd 145624 [09:44:25]save to /storage/0545/doc_00145624 [09:44:25]save last doc name /storage/0545/doc_00145624 to /storage/kkm_last_doc_name [09:44:25]save OK [09:44:25]Clear old archive folders... [09:44:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:44:25]tlvbuf is 01A2D7B0 [09:44:25]SAM_PROTO_ClearQueue [09:44:25]wFMCommunicate request_size=4 [09:44:25]MH_SAM_APDU [09:44:25]CAPDU: 80 09 00 00 [09:44:25]Write to MH i2c: E2 08 00 61 23 80 09 00 00 00 00 00 00 F6 [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:25]Read from MH i2c: E2 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 03 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 03 00 61 23 00 90 00 F8 [09:44:25]RAPDU: 90 00 [09:44:25]wFMCommunicate OK [09:44:25]SAM_PROTO_ClearQueue done [09:44:25]KKMCreateOFDPacket [09:44:25]OFDProtocolAddRootSTLVToBuf [09:44:25]FM_MakeSignedData [09:44:25]FM_MakeSignedData [09:44:25]SAM_PROTO_SignData [09:44:25]wFMCommunicate request_size=4 [09:44:25]MH_SAM_APDU [09:44:25]CAPDU: 80 0D 01 02 [09:44:25]Write to MH i2c: E2 08 00 62 23 80 0D 01 02 00 00 00 00 FE [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:25]Read from MH i2c: E2 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 03 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 03 00 62 23 00 90 00 F9 [09:44:25]RAPDU: 90 00 [09:44:25]wFMCommunicate OK [09:44:25]wFMCommunicate request_size=255 [09:44:25]MH_SAM_APDU [09:44:25]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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7B 0B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D8 38 02 00 35 04 06 00 B0 B7 F6 E2 [09:44:25]Write to MH i2c: E2 02 01 63 23 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7B 0B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D8 38 02 00 35 04 06 00 B0 B7 F6 E2 00 00 30 [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:25]Read from MH i2c: E2 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 03 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 03 00 63 23 00 90 00 FA [09:44:25]RAPDU: 90 00 [09:44:25]wFMCommunicate OK [09:44:25]wFMCommunicate request_size=7 [09:44:25]MH_SAM_APDU [09:44:25]CAPDU: 80 0D 02 02 02 F3 02 [09:44:25]Write to MH i2c: E2 0A 00 64 23 80 0D 02 02 02 00 F3 02 00 00 FA [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:25]Read from MH i2c: E2 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 03 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 03 00 64 23 00 90 00 FB [09:44:25]RAPDU: 90 00 [09:44:25]wFMCommunicate OK [09:44:25]wFMCommunicate request_size=4 [09:44:25]MH_SAM_APDU [09:44:25]CAPDU: 80 0D 03 02 [09:44:25]Write to MH i2c: E2 08 00 65 23 80 0D 03 02 00 00 00 00 03 [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:25]Read from MH i2c: E2 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 0B 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 0B 00 65 23 00 81 E6 24 CA 96 23 C2 74 90 00 48 [09:44:25]RAPDU: 81 E6 24 CA 96 23 C2 74 90 00 [09:44:25]wFMCommunicate OK [09:44:25]SAM_PROTO_SignData done [09:44:25]FM_MakeSignedData done [09:44:25]CreateOFDProtocolMessage [09:44:25]wFMCommunicate request_size=4 [09:44:25]MH_SAM_APDU [09:44:25]CAPDU: 80 11 00 00 [09:44:25]Write to MH i2c: E2 08 00 66 23 80 11 00 00 00 00 00 00 03 [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:25]Read from MH i2c: E2 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 17 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 17 00 66 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 56 [09:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:44:25]wFMCommunicate OK [09:44:25]CreateOFDProtocolMessage done [09:44:25]OFDSenderStorePacket 145624 [09:44:25]StoreOFDPacket docnum=145624 [09:44:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 45 63 04 01 AF 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7B 0B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D8 38 02 00 35 04 06 00 B0 B7 F6 E2 F3 02 81 E6 24 CA 96 23 C2 74 [09:44:25]CheckFolder [09:44:25]dirname=/storage/ofd_packets [09:44:25]CheckFolder done [09:44:25]ProducePacketName [09:44:25]name=ofd_packets/00145624 [09:44:25]NVStorageSaveData ofd_packets/00145624 [09:44:25]File name is /storage/ofd_packets/00145624 [09:44:25]Write 298 bytes [09:44:25]NVStorageSaveData done [09:44:25]OFDSenderStorePacket done [09:44:25]KKMCreateOFDPacket done [09:44:25]NVStorageSaveData kkm_last_timestamp [09:44:25]File name is /storage/kkm_last_timestamp [09:44:25]Write 4 bytes [09:44:25]NVStorageSaveData done [09:44:25]ExternCall_PrintAddStr [09:44:25]wPrintStart [09:44:25]Write to MH i2c: 01 00 00 67 23 8A [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: 01 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: 01 07 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: 01 07 00 67 23 00 00 00 00 00 FF 0F 9F [09:44:25]RasterBufferAndPrint [09:44:25]line Счет N : (1)160374 [09:44:25]line ИНН: 02508201610067 [09:44:25]line Контрольно-Кассовый Чек [09:44:25]line ПРОДАЖА [09:44:25]line ТРК (МРК, ГНК) : 21 [09:44:25]line Товар: 2710194210 [09:44:25]line ДТ-К-2 [09:44:25]line 13.130 * 76.20 [09:44:25]line = 1000.51 [09:44:25]line НДС 12% НСП 1% [09:44:25]line > о реализуемом товаре [09:44:25]line ОКРУГЛЕНИЕ: -0.51 [09:44:25]line ИТОГО: 1000.00 [09:44:25]line Внесено: 1000.00 [09:44:25]line СДАЧА: 0.00 [09:44:25]line НСП 1% : 8.85 [09:44:25]line НДС 12% : 106.25 [09:44:25]line Наличными: 1000.00 [09:44:25]line Безнал.: 0.00 [09:44:25]line Место: АЗС № 126 "Партнер Нефть" [09:44:25]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:44:25]line СНО: Общий режим [09:44:25]line Чек 47 27.10.2024 09:44 [09:44:25]line Смена: 545 ФФД: 1.0 [09:44:25]line ЗНМ: 0300000085 [09:44:25]line РНМ: 0000000000091683 [09:44:25]line Версия ККМ: 001 [09:44:25]line ФМ: 0000000000871745 [09:44:25]line ФД: 145624 [09:44:25]line ФПД: 194304167572226 [09:44:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094427&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145624&fm=194304167572226&tin=02508201610067®Number=0000000000091683&sum=100000 [09:44:26]OFD Sender: Processing packet 145624 [packets to send 205, broken 204] [09:44:26]ProducePacketName [09:44:26]name=ofd_packets/00145624 [09:44:26]OFD Sender: To server: pG, [09:44:26]CommunicateWithHost lk.salyk.kg:30040 [09:44:26]ConnectInit lk.salyk.kg [09:44:26]written 0, free lines is 4095 [09:44:26]Connected sock=9 [09:44:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 45 63 04 01 AF 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7B 0B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D8 38 02 00 35 04 06 00 B0 B7 F6 E2 F3 02 81 E6 24 CA 96 23 C2 74 [09:44:26]Write to MH i2c: 01 00 00 92 23 B5 [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: 01 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: 01 07 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: 01 07 00 92 23 00 00 00 00 00 B9 0C 81 [09:44:26]RasterBufferAndPrint [09:44:26]line [09:44:26]line [09:44:26]line [09:44:26]line [09:44:26]line [09:44:26]written 0, free lines is 3263 [09:44:26]MH_Cut [09:44:26]Write to MH i2c: D1 01 00 99 23 01 8E [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: D1 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: D1 01 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: D1 01 00 99 23 00 8D [09:44:26]Write to MH i2c: 01 00 00 9A 23 BD [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C7 ED 47 00 A1 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D8 38 02 00 F4 03 04 00 A9 B0 1D 67 B6 04 01 00 00 B8 05 ED C4 8D 4F 8E 71 [09:44:26]CommunicateWithHost err = 0 [09:44:26]CheckOFDResponse [09:44:26]1017 (14) - 77093643461234 [09:44:26]1041 (16) - 0000000000871745 [09:44:26]1040 (4) - 145624 [09:44:26]1012 (4) - 27.10.2024 03:16 [09:44:26]1206 (1) - 0 [09:44:26]OFD Sender: Remove packet 145624 [09:44:26]ProducePacketName [09:44:26]name=ofd_packets/00145624 [09:44:26]NVStorageDeleteData [09:44:27]OFD Sender: No OFD packet to send [09:44:27]*** Cut start [09:44:27]*** Partial cut [09:44:27]*** CUTSNS_PIN = 1 [09:44:27]*** CUTSNS_PIN = 0 [09:44:27]*** Brake cut motor [09:44:28]Read from MH i2c: 01 [09:44:28]MH_I2C_Read... [09:44:28]*** Stop cut motor [09:44:28]*** Cut end [09:44:28]Read from MH i2c: 01 07 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 9A 23 00 00 00 00 00 FF 0F D2 [09:44:28]process_action close_receipt done [09:44:28]requested_data is exist [09:44:28]produce_requested_data [09:44:28]requested_item fm.sn is exist - process it [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 11 00 00 [09:44:28]Write to MH i2c: E2 08 00 9B 23 80 11 00 00 00 00 00 00 38 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 9B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8B [09:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:44:28]wFMCommunicate OK [09:44:28]requested_item fd.num is exist - process it [09:44:28]SAM_PROTO_GetFieldsCounters [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 13 00 00 [09:44:28]Write to MH i2c: E2 08 00 9C 23 80 13 00 00 00 00 00 00 3B [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 62 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 62 00 9C 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D8 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [09:44:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D8 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:28]wFMCommunicate OK [09:44:28]SAM_PROTO_GetFieldsCounters done [09:44:28]requested_item shift.num is exist - process it [09:44:28]requested_item shift.opened is exist - process it [09:44:28]req_shift_opened [09:44:28]FM_GetShiftState [09:44:28]SAM_PROTO_GetShiftState [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 13 01 00 [09:44:28]Write to MH i2c: E2 08 00 9D 23 80 13 01 00 00 00 00 00 3D [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 0E 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 0E 00 9D 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B5 [09:44:28]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:44:28]wFMCommunicate OK [09:44:28]SAM_PROTO_GetShiftState done [09:44:28]FM_GetShiftState done [09:44:28]req_shift_opened done [09:44:28]requested_item shift.open_date is exist - process it [09:44:28]req_shift_open_date [09:44:28]req_shift_open_date done [09:44:28]produce_requested_data done [09:44:28]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145624,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:44:28]process_action_free close_receipt [09:44:28]json_value_free [09:44:28]json_value_free done [09:44:28]process_json_proto returns [09:44:28]Send response to host [09:44:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145624,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:44:28]free response buf [09:44:28]execute_script done [09:44:28]execute_script returns [09:44:28]free content buf [09:44:28]Sock 10.Close socket [09:44:28]Sock 10.Thread stoped [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:44:58]accept exits with 7 [09:44:58]New connection [09:44:58]New thread 3067006308 created [09:44:58]Thread 3067149668 joined [09:44:58]Waiting for new connection... [09:44:58] Sock 7.Parse request [09:44:58]Sock 7.Check first char [09:44:58]Sock 7.First char is OK [09:44:58]request: POST /json_proto HTTP/1.0 [09:44:58]Method: POST [09:44:58]URL: /json_proto [09:44:58]Method is POST - this is cgi request [09:44:58]url: /json_proto [09:44:58]query_string will be loaded in cgi processing [09:44:58]execute_cgi json_proto POST (null) [09:44:58]execute_cgi path=json_proto method=POST [09:44:58]POST find Content-Length [09:44:58]Host: 172.17.40.195:8080 [09:44:58]Content-Length: 677 [09:44:58]Content-Type: application/json [09:44:58] [09:44:58]POST finish read [09:44:58]Found Content-Length = 677 [09:44:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [09:44:58]execute_script... [09:44: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)160377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [09:44:58]POST & json_proto [09:44:58]process_json_proto [09:44:58]json parsed OK: [09:44:58]protocol is kg_v1.0 [09:44:58]action value=close_receipt [09:44:58]process_action close_receipt [09:44:58]cmd_close_receipt [09:44:58]MH_GetDate [09:44:58]Write to MH i2c: F0 00 00 9E 23 B0 [09:44:58]Write i2c OK [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: F0 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: F0 09 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: F0 09 00 9E 23 00 9E 0B 1E 67 D5 8D 6C 64 19 [09:44:58]GetLastDocTimeStamp 1730022267 [09:44:58]current date 1730022302 [09:44:58]FM_GetShiftState [09:44:58]SAM_PROTO_GetShiftState [09:44:58]wFMCommunicate request_size=4 [09:44:58]MH_SAM_APDU [09:44:58]CAPDU: 80 13 01 00 [09:44:58]Write to MH i2c: E2 08 00 9F 23 80 13 01 00 00 00 00 00 3F [09:44:58]Write i2c OK [09:44:58]MH_I2C_Read... [09:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:58]Read from MH i2c: E2 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 0E 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 0E 00 9F 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B7 [09:44:58]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:44:58]wFMCommunicate OK [09:44:58]SAM_PROTO_GetShiftState done [09:44:58]FM_GetShiftState done [09:44:58]opened in 1729988959 [09:44:58]opened+sec_in_day 1730075359 [09:44:58]quantity*price = 15052 [09:44:58]sum+1 = 15054 [09:44:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 48 27.10.2024 09:45 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145625 ФПД: 76788993472554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094502&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145625&fm=76788993472554&tin=02508201610067®Number=0000000000091683&sum=15000 [09:44:59]StoreToDocumentArchive [09:44:59]shift 545 fd 145625 [09:44:59]save to /storage/0545/doc_00145625 [09:44:59]save last doc name /storage/0545/doc_00145625 to /storage/kkm_last_doc_name [09:44:59]save OK [09:44:59]Clear old archive folders... [09:44:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:59]tlvbuf is 01AEA500 [09:44:59]SAM_PROTO_ClearQueue [09:44:59]wFMCommunicate request_size=4 [09:44:59]MH_SAM_APDU [09:44:59]CAPDU: 80 09 00 00 [09:44:59]Write to MH i2c: E2 08 00 AC 23 80 09 00 00 00 00 00 00 41 [09:44:59]Write i2c OK [09:44:59]MH_I2C_Read... [09:44:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:59]Read from MH i2c: E2 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: E2 03 00 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: E2 03 00 AC 23 00 90 00 43 [09:44:59]RAPDU: 90 00 [09:44:59]wFMCommunicate OK [09:44:59]SAM_PROTO_ClearQueue done [09:44:59]KKMCreateOFDPacket [09:44:59]OFDProtocolAddRootSTLVToBuf [09:44:59]FM_MakeSignedData [09:44:59]FM_MakeSignedData [09:44:59]SAM_PROTO_SignData [09:44:59]wFMCommunicate request_size=4 [09:44:59]MH_SAM_APDU [09:44:59]CAPDU: 80 0D 01 02 [09:44:59]Write to MH i2c: E2 08 00 AD 23 80 0D 01 02 00 00 00 00 49 [09:44:59]Write i2c OK [09:44:59]MH_I2C_Read... [09:44:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:59]Read from MH i2c: E2 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: E2 03 00 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: E2 03 00 AD 23 00 90 00 44 [09:44:59]RAPDU: 90 00 [09:44:59]wFMCommunicate OK [09:44:59]wFMCommunicate request_size=255 [09:44:59]MH_SAM_APDU [09:44: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 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 9E 0B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D9 38 02 00 35 04 06 00 45 [09:44:59]Write to MH i2c: E2 02 01 AE 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 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 9E 0B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D9 38 02 00 35 04 06 00 45 00 00 AD [09:44:59]Write i2c OK [09:44:59]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 AE 23 00 90 00 45 [09:45:00]RAPDU: 90 00 [09:45:00]wFMCommunicate OK [09:45:00]wFMCommunicate request_size=10 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 0D 02 02 05 D6 D4 AD B8 2A [09:45:00]Write to MH i2c: E2 0D 00 AF 23 80 0D 02 02 05 00 D6 D4 AD B8 2A 00 00 8F [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 AF 23 00 90 00 46 [09:45:00]RAPDU: 90 00 [09:45:00]wFMCommunicate OK [09:45:00]wFMCommunicate request_size=4 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 0D 03 02 [09:45:00]Write to MH i2c: E2 08 00 B0 23 80 0D 03 02 00 00 00 00 4E [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 0B 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 0B 00 B0 23 00 71 CC 37 DC 32 8E 6C 28 90 00 F3 [09:45:00]RAPDU: 71 CC 37 DC 32 8E 6C 28 90 00 [09:45:00]wFMCommunicate OK [09:45:00]SAM_PROTO_SignData done [09:45:00]FM_MakeSignedData done [09:45:00]CreateOFDProtocolMessage [09:45:00]wFMCommunicate request_size=4 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 11 00 00 [09:45:00]Write to MH i2c: E2 08 00 B1 23 80 11 00 00 00 00 00 00 4E [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 17 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 17 00 B1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A1 [09:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:45:00]wFMCommunicate OK [09:45:00]CreateOFDProtocolMessage done [09:45:00]OFDSenderStorePacket 145625 [09:45:00]StoreOFDPacket docnum=145625 [09:45:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E5 7E 07 01 97 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 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 9E 0B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D9 38 02 00 35 04 06 00 45 D6 D4 AD B8 2A 71 CC 37 DC 32 8E 6C 28 [09:45:00]CheckFolder [09:45:00]dirname=/storage/ofd_packets [09:45:00]CheckFolder done [09:45:00]ProducePacketName [09:45:00]name=ofd_packets/00145625 [09:45:00]NVStorageSaveData ofd_packets/00145625 [09:45:00]File name is /storage/ofd_packets/00145625 [09:45:00]Write 301 bytes [09:45:00]NVStorageSaveData done [09:45:00]OFDSenderStorePacket done [09:45:00]KKMCreateOFDPacket done [09:45:00]NVStorageSaveData kkm_last_timestamp [09:45:00]File name is /storage/kkm_last_timestamp [09:45:00]Write 4 bytes [09:45:00]NVStorageSaveData done [09:45:00]ExternCall_PrintAddStr [09:45:00]wPrintStart [09:45:00]Write to MH i2c: 01 00 00 B2 23 D5 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: 01 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: 01 07 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: 01 07 00 B2 23 00 00 00 00 00 FF 0F EA [09:45:00]RasterBufferAndPrint [09:45:00]line Счет N : (1)160377 [09:45:00]line ИНН: 02508201610067 [09:45:00]line Контрольно-Кассовый Чек [09:45:00]line ПРОДАЖА [09:45:00]line ТРК (МРК, ГНК) : 32 [09:45:00]line Товар: 2710124130 [09:45:00]line Аи-92-К-2 [09:45:00]line 2.250 * 66.90 [09:45:00]line = 150.53 [09:45:00]line НДС 12% НСП 1% [09:45:00]line > о реализуемом товаре [09:45:00]line ОКРУГЛЕНИЕ: -0.53 [09:45:00]line ИТОГО: 150.00 [09:45:00]line Внесено: 150.00 [09:45:00]line СДАЧА: 0.00 [09:45:00]line НСП 1% : 1.33 [09:45:00]line НДС 12% : 15.98 [09:45:00]line Наличными: 150.00 [09:45:00]line Безнал.: 0.00 [09:45:00]line Место: АЗС № 126 "Партнер Нефть" [09:45:00]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:45:00]line СНО: Общий режим [09:45:00]line Чек 48 27.10.2024 09:45 [09:45:00]line Смена: 545 ФФД: 1.0 [09:45:00]line ЗНМ: 0300000085 [09:45:00]line РНМ: 0000000000091683 [09:45:00]line Версия ККМ: 001 [09:45:00]line ФМ: 0000000000871745 [09:45:00]line ФД: 145625 [09:45:00]line ФПД: 76788993472554 [09:45:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094502&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145625&fm=76788993472554&tin=02508201610067®Number=0000000000091683&sum=15000 [09:45:00]OFD Sender: Processing packet 145625 [packets to send 205, broken 204] [09:45:00]ProducePacketName [09:45:00]name=ofd_packets/00145625 [09:45:00]OFD Sender: To server: pG, [09:45:00]CommunicateWithHost lk.salyk.kg:30040 [09:45:00]ConnectInit lk.salyk.kg [09:45:00]written 0, free lines is 4095 [09:45:00]Connected sock=10 [09:45:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E5 7E 07 01 97 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 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 9E 0B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D9 38 02 00 35 04 06 00 45 D6 D4 AD B8 2A 71 CC 37 DC 32 8E 6C 28 [09:45:00]Write to MH i2c: 01 00 00 DD 23 00 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: 01 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: 01 07 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: 01 07 00 DD 23 00 00 00 00 00 A9 0C BC [09:45:00]RasterBufferAndPrint [09:45:00]line [09:45:00]line [09:45:00]line [09:45:00]line [09:45:00]line [09:45:00]written 0, free lines is 3247 [09:45:00]MH_Cut [09:45:00]Write to MH i2c: D1 01 00 E4 23 01 D9 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: D1 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: D1 01 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: D1 01 00 E4 23 00 D8 [09:45:00]Write to MH i2c: 01 00 00 E5 23 08 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 1F C5 47 00 69 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D9 38 02 00 F4 03 04 00 CC B0 1D 67 B6 04 01 00 00 E1 04 C2 2F 54 EB A6 9C [09:45:01]CommunicateWithHost err = 0 [09:45:01]CheckOFDResponse [09:45:01]1017 (14) - 77093643461234 [09:45:01]1041 (16) - 0000000000871745 [09:45:01]1040 (4) - 145625 [09:45:01]1012 (4) - 27.10.2024 03:17 [09:45:01]1206 (1) - 0 [09:45:01]OFD Sender: Remove packet 145625 [09:45:01]ProducePacketName [09:45:01]name=ofd_packets/00145625 [09:45:01]NVStorageDeleteData [09:45:01]OFD Sender: No OFD packet to send [09:45:01]*** Cut start [09:45:01]*** Partial cut [09:45:01]*** CUTSNS_PIN = 1 [09:45:01]*** CUTSNS_PIN = 0 [09:45:01]*** Brake cut motor [09:45:02]Read from MH i2c: 01 [09:45:02]MH_I2C_Read... [09:45:02]*** Stop cut motor [09:45:02]*** Cut end [09:45:02]Read from MH i2c: 01 07 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: 01 07 00 E5 23 00 00 00 00 00 FF 0F 1D [09:45:02]process_action close_receipt done [09:45:02]requested_data is exist [09:45:02]produce_requested_data [09:45:02]requested_item fm.sn is exist - process it [09:45:02]wFMCommunicate request_size=4 [09:45:02]MH_SAM_APDU [09:45:02]CAPDU: 80 11 00 00 [09:45:02]Write to MH i2c: E2 08 00 E6 23 80 11 00 00 00 00 00 00 83 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:02]Read from MH i2c: E2 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 17 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 17 00 E6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D6 [09:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:45:02]wFMCommunicate OK [09:45:02]requested_item fd.num is exist - process it [09:45:02]SAM_PROTO_GetFieldsCounters [09:45:02]wFMCommunicate request_size=4 [09:45:02]MH_SAM_APDU [09:45:02]CAPDU: 80 13 00 00 [09:45:02]Write to MH i2c: E2 08 00 E7 23 80 13 00 00 00 00 00 00 86 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:02]Read from MH i2c: E2 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 62 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 62 00 E7 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D9 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [09:45:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D9 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:02]wFMCommunicate OK [09:45:02]SAM_PROTO_GetFieldsCounters done [09:45:02]requested_item shift.num is exist - process it [09:45:02]requested_item shift.opened is exist - process it [09:45:02]req_shift_opened [09:45:02]FM_GetShiftState [09:45:02]SAM_PROTO_GetShiftState [09:45:02]wFMCommunicate request_size=4 [09:45:02]MH_SAM_APDU [09:45:02]CAPDU: 80 13 01 00 [09:45:02]Write to MH i2c: E2 08 00 E8 23 80 13 01 00 00 00 00 00 88 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:02]Read from MH i2c: E2 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 0E 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 0E 00 E8 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 00 [09:45:02]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:45:02]wFMCommunicate OK [09:45:02]SAM_PROTO_GetShiftState done [09:45:02]FM_GetShiftState done [09:45:02]req_shift_opened done [09:45:02]requested_item shift.open_date is exist - process it [09:45:02]req_shift_open_date [09:45:02]req_shift_open_date done [09:45:02]produce_requested_data done [09:45:02]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145625,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:45:02]process_action_free close_receipt [09:45:02]json_value_free [09:45:02]json_value_free done [09:45:02]process_json_proto returns [09:45:02]Send response to host [09:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145625,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:45:02]free response buf [09:45:02]execute_script done [09:45:02]execute_script returns [09:45:02]free content buf [09:45:02]Sock 7.Close socket [09:45:02]Sock 7.Thread stoped [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]accept exits with 9 [09:47:16]New connection [09:47:16]New thread 3067149668 created [09:47:16]Thread 3067006308 joined [09:47:16]Waiting for new connection... [09:47:16] Sock 9.Parse request [09:47:16]Sock 9.Check first char [09:47:16]Sock 9.First char is OK [09:47:16]request: POST /json_proto HTTP/1.0 [09:47:16]Method: POST [09:47:16]URL: /json_proto [09:47:16]Method is POST - this is cgi request [09:47:16]url: /json_proto [09:47:16]query_string will be loaded in cgi processing [09:47:16]execute_cgi json_proto POST (null) [09:47:16]execute_cgi path=json_proto method=POST [09:47:16]POST find Content-Length [09:47:16]Host: 172.17.40.195:8080 [09:47:16]Content-Length: 978 [09:47:16]Content-Type: application/json [09:47:16] [09:47:16]POST finish read [09:47:16]Found Content-Length = 978 [09:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:16]execute_script... [09:47:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:16]POST & json_proto [09:47:16]process_json_proto [09:47:16]json parsed OK: [09:47:16]protocol is kg_v1.0 [09:47:16]action value=close_receipt [09:47:16]process_action close_receipt [09:47:16]cmd_close_receipt [09:47:16]MH_GetDate [09:47:16]Write to MH i2c: F0 00 00 E9 23 FB [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: F0 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: F0 09 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: F0 09 00 E9 23 00 28 0C 1E 67 D5 8D 6C 64 EF [09:47:16]GetLastDocTimeStamp 1730022302 [09:47:16]current date 1730022440 [09:47:16]FM_GetShiftState [09:47:16]SAM_PROTO_GetShiftState [09:47:16]wFMCommunicate request_size=4 [09:47:16]MH_SAM_APDU [09:47:16]CAPDU: 80 13 01 00 [09:47:16]Write to MH i2c: E2 08 00 EA 23 80 13 01 00 00 00 00 00 8A [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 0E 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 0E 00 EA 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 02 [09:47:16]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:47:16]wFMCommunicate OK [09:47:16]SAM_PROTO_GetShiftState done [09:47:16]FM_GetShiftState done [09:47:16]opened in 1729988959 [09:47:16]opened+sec_in_day 1730075359 [09:47:16]quantity*price = 600020 [09:47:16]sum+1 = 600022 [09:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.19 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 49 27.10.2024 09:47 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа ДТ номер 126 сэкономлено 79.79 сом ФМ: 0000000000871745 ФД: 145626 ФПД: 120541109327051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094720&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145626&fm=120541109327051&tin=02508201610067®Number=0000000000091683&sum=600000 [09:47:17]StoreToDocumentArchive [09:47:17]shift 545 fd 145626 [09:47:17]save to /storage/0545/doc_00145626 [09:47:17]save last doc name /storage/0545/doc_00145626 to /storage/kkm_last_doc_name [09:47:17]save OK [09:47:17]Clear old archive folders... [09:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:47:17]tlvbuf is 01AF4F20 [09:47:17]SAM_PROTO_ClearQueue [09:47:17]wFMCommunicate request_size=4 [09:47:17]MH_SAM_APDU [09:47:17]CAPDU: 80 09 00 00 [09:47:17]Write to MH i2c: E2 08 00 F7 23 80 09 00 00 00 00 00 00 8C [09:47:17]Write i2c OK [09:47:17]MH_I2C_Read... [09:47:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:17]Read from MH i2c: E2 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 03 00 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 03 00 F7 23 00 90 00 8E [09:47:17]RAPDU: 90 00 [09:47:17]wFMCommunicate OK [09:47:17]SAM_PROTO_ClearQueue done [09:47:17]KKMCreateOFDPacket [09:47:17]OFDProtocolAddRootSTLVToBuf [09:47:17]FM_MakeSignedData [09:47:17]FM_MakeSignedData [09:47:17]SAM_PROTO_SignData [09:47:17]wFMCommunicate request_size=4 [09:47:17]MH_SAM_APDU [09:47:17]CAPDU: 80 0D 01 02 [09:47:17]Write to MH i2c: E2 08 00 F8 23 80 0D 01 02 00 00 00 00 94 [09:47:17]Write i2c OK [09:47:17]MH_I2C_Read... [09:47:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:17]Read from MH i2c: E2 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 03 00 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 03 00 F8 23 00 90 00 8F [09:47:17]RAPDU: 90 00 [09:47:17]wFMCommunicate OK [09:47:17]wFMCommunicate request_size=255 [09:47:17]MH_SAM_APDU [09:47: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 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 28 0C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DA 38 02 00 35 04 06 00 6D A1 AA 00 [09:47:17]Write to MH i2c: E2 02 01 F9 23 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 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 28 0C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DA 38 02 00 35 04 06 00 6D A1 AA 00 00 00 C2 [09:47:17]Write i2c OK [09:47:17]MH_I2C_Read... [09:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:18]Read from MH i2c: E2 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 03 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 03 00 F9 23 00 90 00 90 [09:47:18]RAPDU: 90 00 [09:47:18]wFMCommunicate OK [09:47:18]wFMCommunicate request_size=7 [09:47:18]MH_SAM_APDU [09:47:18]CAPDU: 80 0D 02 02 02 94 CB [09:47:18]Write to MH i2c: E2 0A 00 FA 23 80 0D 02 02 02 00 94 CB 00 00 FA [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:18]Read from MH i2c: E2 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 03 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 03 00 FA 23 00 90 00 91 [09:47:18]RAPDU: 90 00 [09:47:18]wFMCommunicate OK [09:47:18]wFMCommunicate request_size=4 [09:47:18]MH_SAM_APDU [09:47:18]CAPDU: 80 0D 03 02 [09:47:18]Write to MH i2c: E2 08 00 FB 23 80 0D 03 02 00 00 00 00 99 [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:18]Read from MH i2c: E2 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 0B 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 0B 00 FB 23 00 32 B2 A6 C4 C9 D3 53 32 90 00 09 [09:47:18]RAPDU: 32 B2 A6 C4 C9 D3 53 32 90 00 [09:47:18]wFMCommunicate OK [09:47:18]SAM_PROTO_SignData done [09:47:18]FM_MakeSignedData done [09:47:18]CreateOFDProtocolMessage [09:47:18]wFMCommunicate request_size=4 [09:47:18]MH_SAM_APDU [09:47:18]CAPDU: 80 11 00 00 [09:47:18]Write to MH i2c: E2 08 00 FC 23 80 11 00 00 00 00 00 00 99 [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:18]Read from MH i2c: E2 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 17 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 17 00 FC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EC [09:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:47:18]wFMCommunicate OK [09:47:18]CreateOFDProtocolMessage done [09:47:18]OFDSenderStorePacket 145626 [09:47:18]StoreOFDPacket docnum=145626 [09:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 41 52 04 01 96 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 28 0C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DA 38 02 00 35 04 06 00 6D A1 AA 00 94 CB 32 B2 A6 C4 C9 D3 53 32 [09:47:18]CheckFolder [09:47:18]dirname=/storage/ofd_packets [09:47:18]CheckFolder done [09:47:18]ProducePacketName [09:47:18]name=ofd_packets/00145626 [09:47:18]NVStorageSaveData ofd_packets/00145626 [09:47:18]File name is /storage/ofd_packets/00145626 [09:47:18]Write 298 bytes [09:47:18]NVStorageSaveData done [09:47:18]OFDSenderStorePacket done [09:47:18]KKMCreateOFDPacket done [09:47:18]NVStorageSaveData kkm_last_timestamp [09:47:18]File name is /storage/kkm_last_timestamp [09:47:18]Write 4 bytes [09:47:18]NVStorageSaveData done [09:47:18]ExternCall_PrintAddStr [09:47:18]wPrintStart [09:47:18]Write to MH i2c: 01 00 00 FD 23 20 [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: 01 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: 01 07 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: 01 07 00 FD 23 00 00 00 00 00 FF 0F 35 [09:47:18]RasterBufferAndPrint [09:47:18]line Счет N : (1)160375 [09:47:18]line ИНН: 02508201610067 [09:47:18]line Контрольно-Кассовый Чек [09:47:18]line ПРОДАЖА [09:47:18]line ТРК (МРК, ГНК) : 11 [09:47:18]line Товар: 2710194210 [09:47:18]line ДТ-К-2 [09:47:18]line 79.790 * 75.20 [09:47:18]line = 6000.21 [09:47:18]line НДС 12% НСП 1% [09:47:18]line > о реализуемом товаре [09:47:18]line ОКРУГЛЕНИЕ: -0.21 [09:47:18]line ИТОГО: 6000.00 [09:47:18]line Внесено: 6000.00 [09:47:18]line СДАЧА: 0.00 [09:47:18]line НСП 1% : 53.10 [09:47:18]line НДС 12% : 637.19 [09:47:18]line Наличными: 6000.00 [09:47:18]line Безнал.: 0.00 [09:47:18]line Место: АЗС № 126 "Партнер Нефть" [09:47:18]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:47:18]line СНО: Общий режим [09:47:18]line Чек 49 27.10.2024 09:47 [09:47:18]line Смена: 545 ФФД: 1.0 [09:47:18]line ЗНМ: 0300000085 [09:47:18]line РНМ: 0000000000091683 [09:47:18]line Версия ККМ: 001 [09:47:18]line [09:47:18]line Дисконтная программа [09:47:18]line ДТ [09:47:18]line номер 126 [09:47:18]line сэкономлено 79.79 сом [09:47:18]line ФМ: 0000000000871745 [09:47:18]line ФД: 145626 [09:47:18]line ФПД: 120541109327051 [09:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094720&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145626&fm=120541109327051&tin=02508201610067®Number=0000000000091683&sum=600000 [09:47:18]OFD Sender: Processing packet 145626 [packets to send 205, broken 204] [09:47:18]ProducePacketName [09:47:18]name=ofd_packets/00145626 [09:47:18]OFD Sender: To server: pG, [09:47:18]CommunicateWithHost lk.salyk.kg:30040 [09:47:18]ConnectInit lk.salyk.kg [09:47:18]written 0, free lines is 4095 [09:47:18]Connected sock=7 [09:47:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 41 52 04 01 96 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 28 0C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DA 38 02 00 35 04 06 00 6D A1 AA 00 94 CB 32 B2 A6 C4 C9 D3 53 32 [09:47:19]Write to MH i2c: 01 00 00 2D 24 51 [09:47:19]Write i2c OK [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: 01 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: 01 07 00 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: 01 07 00 2D 24 00 00 00 00 00 68 0C CC [09:47:19]RasterBufferAndPrint [09:47:19]line [09:47:19]line [09:47:19]line [09:47:19]line [09:47:19]line [09:47:19]written 0, free lines is 3182 [09:47:19]MH_Cut [09:47:19]Write to MH i2c: D1 01 00 34 24 01 2A [09:47:19]Write i2c OK [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: D1 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: D1 01 00 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: D1 01 00 34 24 00 29 [09:47:19]Write to MH i2c: 01 00 00 35 24 59 [09:47:19]Write i2c OK [09:47:19]MH_I2C_Read... [09:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 58 0A 47 00 6C DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DA 38 02 00 F4 03 04 00 56 B1 1D 67 B6 04 01 00 00 85 DF 0B D1 A8 C3 30 F7 [09:47:19]CommunicateWithHost err = 0 [09:47:19]CheckOFDResponse [09:47:19]1017 (14) - 77093643461234 [09:47:19]1041 (16) - 0000000000871745 [09:47:19]1040 (4) - 145626 [09:47:19]1012 (4) - 27.10.2024 03:19 [09:47:19]1206 (1) - 0 [09:47:19]OFD Sender: Remove packet 145626 [09:47:19]ProducePacketName [09:47:19]name=ofd_packets/00145626 [09:47:19]NVStorageDeleteData [09:47:19]OFD Sender: No OFD packet to send [09:47:20]*** Cut start [09:47:20]*** Partial cut [09:47:20]*** CUTSNS_PIN = 1 [09:47:20]*** CUTSNS_PIN = 0 [09:47:20]*** Brake cut motor [09:47:20]Read from MH i2c: 01 [09:47:20]MH_I2C_Read... [09:47:20]*** Stop cut motor [09:47:20]*** Cut end [09:47:20]Read from MH i2c: 01 07 00 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: 01 07 00 35 24 00 00 00 00 00 FF 0F 6E [09:47:20]process_action close_receipt done [09:47:20]requested_data is exist [09:47:20]produce_requested_data [09:47:20]requested_item fm.sn is exist - process it [09:47:20]wFMCommunicate request_size=4 [09:47:20]MH_SAM_APDU [09:47:20]CAPDU: 80 11 00 00 [09:47:20]Write to MH i2c: E2 08 00 36 24 80 11 00 00 00 00 00 00 D4 [09:47:20]Write i2c OK [09:47:20]MH_I2C_Read... [09:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:20]Read from MH i2c: E2 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 17 00 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 17 00 36 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 27 [09:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:47:20]wFMCommunicate OK [09:47:20]requested_item fd.num is exist - process it [09:47:20]SAM_PROTO_GetFieldsCounters [09:47:20]wFMCommunicate request_size=4 [09:47:20]MH_SAM_APDU [09:47:20]CAPDU: 80 13 00 00 [09:47:20]Write to MH i2c: E2 08 00 37 24 80 13 00 00 00 00 00 00 D7 [09:47:20]Write i2c OK [09:47:20]MH_I2C_Read... [09:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:20]Read from MH i2c: E2 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 62 00 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 62 00 37 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DA 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [09:47:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DA 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:20]wFMCommunicate OK [09:47:20]SAM_PROTO_GetFieldsCounters done [09:47:20]requested_item shift.num is exist - process it [09:47:20]requested_item shift.opened is exist - process it [09:47:20]req_shift_opened [09:47:20]FM_GetShiftState [09:47:20]SAM_PROTO_GetShiftState [09:47:20]wFMCommunicate request_size=4 [09:47:20]MH_SAM_APDU [09:47:20]CAPDU: 80 13 01 00 [09:47:20]Write to MH i2c: E2 08 00 38 24 80 13 01 00 00 00 00 00 D9 [09:47:20]Write i2c OK [09:47:20]MH_I2C_Read... [09:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:20]Read from MH i2c: E2 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 0E 00 [09:47:20]MH_I2C_Read... [09:47:20]Read from MH i2c: E2 0E 00 38 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 51 [09:47:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:47:20]wFMCommunicate OK [09:47:20]SAM_PROTO_GetShiftState done [09:47:20]FM_GetShiftState done [09:47:20]req_shift_opened done [09:47:20]requested_item shift.open_date is exist - process it [09:47:20]req_shift_open_date [09:47:20]req_shift_open_date done [09:47:20]produce_requested_data done [09:47:20]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145626,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:47:20]process_action_free close_receipt [09:47:20]json_value_free [09:47:20]json_value_free done [09:47:20]process_json_proto returns [09:47:20]Send response to host [09:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145626,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:47:20]free response buf [09:47:20]execute_script done [09:47:20]execute_script returns [09:47:20]free content buf [09:47:20]Sock 9.Close socket [09:47:20]Sock 9.Thread stoped [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:01]int [09:48:01]Write to MH i2c: 01 00 00 39 24 5D [09:48:01]*** FLAG_PRN_KEY set [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 39 24 00 08 00 00 00 FF 0F 7A [09:48:01]state=0 [09:48:01]Key pressed [09:48:01]Feed [09:48:01]Write to MH i2c: D8 00 00 3A 24 35 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: D8 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: D8 01 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: D8 01 00 3A 24 00 36 [09:48:01]int [09:48:01]Write to MH i2c: 01 00 00 3B 24 5F [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 3B 24 00 48 00 00 00 3C 00 EA [09:48:01]state=2 [09:48:01]Key pressed [09:48:01]int [09:48:01]Write to MH i2c: 01 00 00 3C 24 60 [09:48:01]*** FLAG_PRN_KEY reset [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 3C 24 00 00 00 00 00 F5 0F 6B [09:48:01]state=2 [09:48:01]Stop feed [09:48:01]int [09:48:01]Write to MH i2c: 01 00 00 3D 24 61 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]*** FLAG_PRN_KEY set [09:48:01]*** FLAG_PRN_KEY reset [09:48:01]Read from MH i2c: 01 07 00 3D 24 00 00 00 00 00 F7 0F 6E [09:48:01]state=0 [09:48:01]int [09:48:01]Write to MH i2c: 01 00 00 3E 24 62 [09:48:01]*** FLAG_PRN_KEY set [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 3E 24 00 08 00 00 00 FF 0F 7F [09:48:01]state=0 [09:48:01]Key pressed [09:48:01]Feed [09:48:01]Write to MH i2c: D8 00 00 3F 24 3A [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: D8 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: D8 01 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: D8 01 00 3F 24 00 3B [09:48:01]int [09:48:01]Write to MH i2c: 01 00 00 40 24 64 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 40 24 00 48 00 00 00 3C 00 EF [09:48:01]state=2 [09:48:01]Key pressed [09:48:01]int [09:48:01]Write to MH i2c: 01 00 00 41 24 65 [09:48:01]*** FLAG_PRN_KEY reset [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 41 24 00 00 00 00 00 F6 0F 71 [09:48:01]state=2 [09:48:01]Stop feed [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:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:05]accept exits with 10 [09:53:05]New connection [09:53:05]New thread 3067006308 created [09:53:05]Thread 3067149668 joined [09:53:05]Waiting for new connection... [09:53:05] Sock 10.Parse request [09:53:05]Sock 10.Check first char [09:53:05]Sock 10.First char is OK [09:53:05]request: POST /json_proto HTTP/1.0 [09:53:05]Method: POST [09:53:05]URL: /json_proto [09:53:05]Method is POST - this is cgi request [09:53:05]url: /json_proto [09:53:05]query_string will be loaded in cgi processing [09:53:05]execute_cgi json_proto POST (null) [09:53:05]execute_cgi path=json_proto method=POST [09:53:05]POST find Content-Length [09:53:05]Host: 172.17.40.195:8080 [09:53:05]Content-Length: 688 [09:53:05]Content-Type: application/json [09:53:05] [09:53:05]POST finish read [09:53:05]Found Content-Length = 688 [09:53:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:05]execute_script... [09: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)160378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:05]POST & json_proto [09:53:05]process_json_proto [09:53:05]json parsed OK: [09:53:05]protocol is kg_v1.0 [09:53:05]action value=close_receipt [09:53:05]process_action close_receipt [09:53:05]cmd_close_receipt [09:53:05]MH_GetDate [09:53:05]Write to MH i2c: F0 00 00 42 24 55 [09:53:05]Write i2c OK [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: F0 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: F0 09 00 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: F0 09 00 42 24 00 85 0D 1E 67 D5 8D 6C 64 A7 [09:53:05]GetLastDocTimeStamp 1730022440 [09:53:05]current date 1730022789 [09:53:05]FM_GetShiftState [09:53:05]SAM_PROTO_GetShiftState [09:53:05]wFMCommunicate request_size=4 [09:53:05]MH_SAM_APDU [09:53:05]CAPDU: 80 13 01 00 [09:53:05]Write to MH i2c: E2 08 00 43 24 80 13 01 00 00 00 00 00 E4 [09:53:05]Write i2c OK [09:53:05]MH_I2C_Read... [09:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:05]Read from MH i2c: E2 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 0E 00 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 0E 00 43 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5C [09:53:05]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:53:05]wFMCommunicate OK [09:53:05]SAM_PROTO_GetShiftState done [09:53:05]FM_GetShiftState done [09:53:05]opened in 1729988959 [09:53:05]opened+sec_in_day 1730075359 [09:53:05]quantity*price = 100051 [09:53:05]sum+1 = 100052 [09:53:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 50 27.10.2024 09:53 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145627 ФПД: 117155337436899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095309&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145627&fm=117155337436899&tin=02508201610067®Number=0000000000091683&sum=100000 [09:53:06]StoreToDocumentArchive [09:53:06]shift 545 fd 145627 [09:53:06]save to /storage/0545/doc_00145627 [09:53:06]save last doc name /storage/0545/doc_00145627 to /storage/kkm_last_doc_name [09:53:06]save OK [09:53:06]Clear old archive folders... [09:53:06]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:53:06]tlvbuf is B6F858D0 [09:53:06]SAM_PROTO_ClearQueue [09:53:06]wFMCommunicate request_size=4 [09:53:06]MH_SAM_APDU [09:53:06]CAPDU: 80 09 00 00 [09:53:06]Write to MH i2c: E2 08 00 50 24 80 09 00 00 00 00 00 00 E6 [09:53:06]Write i2c OK [09:53:06]MH_I2C_Read... [09:53:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:06]Read from MH i2c: E2 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 03 00 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 03 00 50 24 00 90 00 E8 [09:53:06]RAPDU: 90 00 [09:53:06]wFMCommunicate OK [09:53:06]SAM_PROTO_ClearQueue done [09:53:06]KKMCreateOFDPacket [09:53:06]OFDProtocolAddRootSTLVToBuf [09:53:06]FM_MakeSignedData [09:53:06]FM_MakeSignedData [09:53:06]SAM_PROTO_SignData [09:53:06]wFMCommunicate request_size=4 [09:53:06]MH_SAM_APDU [09:53:06]CAPDU: 80 0D 01 02 [09:53:06]Write to MH i2c: E2 08 00 51 24 80 0D 01 02 00 00 00 00 EE [09:53:06]Write i2c OK [09:53:06]MH_I2C_Read... [09:53:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:06]Read from MH i2c: E2 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 03 00 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 03 00 51 24 00 90 00 E9 [09:53:06]RAPDU: 90 00 [09:53:06]wFMCommunicate OK [09:53:06]wFMCommunicate request_size=255 [09:53:06]MH_SAM_APDU [09:53:06]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 85 0D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DB 38 02 [09:53:06]Write to MH i2c: E2 02 01 52 24 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 85 0D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DB 38 02 00 00 69 [09:53:06]Write i2c OK [09:53:06]MH_I2C_Read... [09:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:07]Read from MH i2c: E2 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 03 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 03 00 52 24 00 90 00 EA [09:53:07]RAPDU: 90 00 [09:53:07]wFMCommunicate OK [09:53:07]wFMCommunicate request_size=16 [09:53:07]MH_SAM_APDU [09:53:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6A 8D 5A 45 7E E3 [09:53:07]Write to MH i2c: E2 13 00 53 24 80 0D 02 02 0B 00 00 35 04 06 00 6A 8D 5A 45 7E E3 00 00 3D [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:07]Read from MH i2c: E2 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 03 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 03 00 53 24 00 90 00 EB [09:53:07]RAPDU: 90 00 [09:53:07]wFMCommunicate OK [09:53:07]wFMCommunicate request_size=4 [09:53:07]MH_SAM_APDU [09:53:07]CAPDU: 80 0D 03 02 [09:53:07]Write to MH i2c: E2 08 00 54 24 80 0D 03 02 00 00 00 00 F3 [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:07]Read from MH i2c: E2 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 0B 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 0B 00 54 24 00 CC 49 C5 7D 37 4B 1D 0C 90 00 F6 [09:53:07]RAPDU: CC 49 C5 7D 37 4B 1D 0C 90 00 [09:53:07]wFMCommunicate OK [09:53:07]SAM_PROTO_SignData done [09:53:07]FM_MakeSignedData done [09:53:07]CreateOFDProtocolMessage [09:53:07]wFMCommunicate request_size=4 [09:53:07]MH_SAM_APDU [09:53:07]CAPDU: 80 11 00 00 [09:53:07]Write to MH i2c: E2 08 00 55 24 80 11 00 00 00 00 00 00 F3 [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:07]Read from MH i2c: E2 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 17 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 17 00 55 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 46 [09:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:53:07]wFMCommunicate OK [09:53:07]CreateOFDProtocolMessage done [09:53:07]OFDSenderStorePacket 145627 [09:53:07]StoreOFDPacket docnum=145627 [09:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 B1 09 0D 01 36 D8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 85 0D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DB 38 02 00 35 04 06 00 6A 8D 5A 45 7E E3 CC 49 C5 7D 37 4B 1D 0C [09:53:07]CheckFolder [09:53:07]dirname=/storage/ofd_packets [09:53:07]CheckFolder done [09:53:07]ProducePacketName [09:53:07]name=ofd_packets/00145627 [09:53:07]NVStorageSaveData ofd_packets/00145627 [09:53:07]File name is /storage/ofd_packets/00145627 [09:53:07]Write 307 bytes [09:53:07]NVStorageSaveData done [09:53:07]OFDSenderStorePacket done [09:53:07]KKMCreateOFDPacket done [09:53:07]NVStorageSaveData kkm_last_timestamp [09:53:07]File name is /storage/kkm_last_timestamp [09:53:07]Write 4 bytes [09:53:07]NVStorageSaveData done [09:53:07]ExternCall_PrintAddStr [09:53:07]wPrintStart [09:53:07]Write to MH i2c: 01 00 00 56 24 7A [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: 01 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: 01 07 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: 01 07 00 56 24 00 00 00 00 00 FF 0F 8F [09:53:07]RasterBufferAndPrint [09:53:07]line Счет N : (1)160378 [09:53:07]line ИНН: 02508201610067 [09:53:07]line Контрольно-Кассовый Чек [09:53:07]line ПРОДАЖА [09:53:07]line ТРК (МРК, ГНК) : 31 [09:53:07]line Товар: 2710194240 [09:53:07]line D-Energy Дт-К-2 [09:53:07]line 12.960 * 77.20 [09:53:07]line = 1000.51 [09:53:07]line НДС 12% НСП 1% [09:53:07]line > о реализуемом товаре [09:53:07]line ОКРУГЛЕНИЕ: -0.51 [09:53:07]line ИТОГО: 1000.00 [09:53:07]line Внесено: 1000.00 [09:53:07]line СДАЧА: 0.00 [09:53:07]line НСП 1% : 8.85 [09:53:07]line НДС 12% : 106.25 [09:53:07]line Наличными: 1000.00 [09:53:07]line Безнал.: 0.00 [09:53:07]line Место: АЗС № 126 "Партнер Нефть" [09:53:07]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:53:07]line СНО: Общий режим [09:53:07]line Чек 50 27.10.2024 09:53 [09:53:07]line Смена: 545 ФФД: 1.0 [09:53:07]line ЗНМ: 0300000085 [09:53:07]line РНМ: 0000000000091683 [09:53:07]line Версия ККМ: 001 [09:53:07]line ФМ: 0000000000871745 [09:53:07]line ФД: 145627 [09:53:07]line ФПД: 117155337436899 [09:53:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095309&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145627&fm=117155337436899&tin=02508201610067®Number=0000000000091683&sum=100000 [09:53:07]OFD Sender: Processing packet 145627 [packets to send 205, broken 204] [09:53:07]ProducePacketName [09:53:07]name=ofd_packets/00145627 [09:53:07]OFD Sender: To server: pG, [09:53:07]CommunicateWithHost lk.salyk.kg:30040 [09:53:07]ConnectInit lk.salyk.kg [09:53:07]written 0, free lines is 4095 [09:53:07]Connected sock=9 [09: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 31 37 34 35 15 01 00 00 B1 09 0D 01 36 D8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 85 0D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DB 38 02 00 35 04 06 00 6A 8D 5A 45 7E E3 CC 49 C5 7D 37 4B 1D 0C [09:53:07]Write to MH i2c: 01 00 00 81 24 A5 [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: 01 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: 01 07 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: 01 07 00 81 24 00 00 00 00 00 B4 0C 6C [09:53:08]RasterBufferAndPrint [09:53:08]line [09:53:08]line [09:53:08]line [09:53:08]line [09:53:08]line [09:53:08]written 0, free lines is 3258 [09:53:08]MH_Cut [09:53:08]Write to MH i2c: D1 01 00 88 24 01 7E [09:53:08]Write i2c OK [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: D1 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: D1 01 00 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: D1 01 00 88 24 00 7D [09:53:08]Write to MH i2c: 01 00 00 89 24 AD [09:53:08]Write i2c OK [09:53:08]MH_I2C_Read... [09:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 53 5B 47 00 54 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DB 38 02 00 F4 03 04 00 B3 B2 1D 67 B6 04 01 00 00 5D C8 0A 75 23 FC B8 B6 [09:53:08]CommunicateWithHost err = 0 [09:53:08]CheckOFDResponse [09:53:08]1017 (14) - 77093643461234 [09:53:08]1041 (16) - 0000000000871745 [09:53:08]1040 (4) - 145627 [09:53:08]1012 (4) - 27.10.2024 03:25 [09:53:08]1206 (1) - 0 [09:53:08]OFD Sender: Remove packet 145627 [09:53:08]ProducePacketName [09:53:08]name=ofd_packets/00145627 [09:53:08]NVStorageDeleteData [09:53:08]OFD Sender: No OFD packet to send [09:53:08]*** Cut start [09:53:08]*** Partial cut [09:53:08]*** CUTSNS_PIN = 1 [09:53:08]*** CUTSNS_PIN = 0 [09:53:09]*** Brake cut motor [09:53:09]Read from MH i2c: 01 [09:53:09]MH_I2C_Read... [09:53:09]*** Stop cut motor [09:53:09]*** Cut end [09:53:09]Read from MH i2c: 01 07 00 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: 01 07 00 89 24 00 00 00 00 00 FF 0F C2 [09:53:09]process_action close_receipt done [09:53:09]requested_data is exist [09:53:09]produce_requested_data [09:53:09]requested_item fm.sn is exist - process it [09:53:09]wFMCommunicate request_size=4 [09:53:09]MH_SAM_APDU [09:53:09]CAPDU: 80 11 00 00 [09:53:09]Write to MH i2c: E2 08 00 8A 24 80 11 00 00 00 00 00 00 28 [09:53:09]Write i2c OK [09:53:09]MH_I2C_Read... [09:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:09]Read from MH i2c: E2 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 17 00 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 17 00 8A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 7B [09:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:53:09]wFMCommunicate OK [09:53:09]requested_item fd.num is exist - process it [09:53:09]SAM_PROTO_GetFieldsCounters [09:53:09]wFMCommunicate request_size=4 [09:53:09]MH_SAM_APDU [09:53:09]CAPDU: 80 13 00 00 [09:53:09]Write to MH i2c: E2 08 00 8B 24 80 13 00 00 00 00 00 00 2B [09:53:09]Write i2c OK [09:53:09]MH_I2C_Read... [09:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:09]Read from MH i2c: E2 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 62 00 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 62 00 8B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DB 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [09: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DB 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:09]wFMCommunicate OK [09:53:09]SAM_PROTO_GetFieldsCounters done [09:53:09]requested_item shift.num is exist - process it [09:53:09]requested_item shift.opened is exist - process it [09:53:09]req_shift_opened [09:53:09]FM_GetShiftState [09:53:09]SAM_PROTO_GetShiftState [09:53:09]wFMCommunicate request_size=4 [09:53:09]MH_SAM_APDU [09:53:09]CAPDU: 80 13 01 00 [09:53:09]Write to MH i2c: E2 08 00 8C 24 80 13 01 00 00 00 00 00 2D [09:53:09]Write i2c OK [09:53:09]MH_I2C_Read... [09:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:09]Read from MH i2c: E2 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 0E 00 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 0E 00 8C 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A5 [09:53:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:53:09]wFMCommunicate OK [09:53:09]SAM_PROTO_GetShiftState done [09:53:09]FM_GetShiftState done [09:53:09]req_shift_opened done [09:53:09]requested_item shift.open_date is exist - process it [09:53:09]req_shift_open_date [09:53:09]req_shift_open_date done [09:53:09]produce_requested_data done [09:53:09]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145627,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:53:09]process_action_free close_receipt [09:53:09]json_value_free [09:53:09]json_value_free done [09:53:09]process_json_proto returns [09:53:09]Send response to host [09:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145627,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:53:09]free response buf [09:53:09]execute_script done [09:53:09]execute_script returns [09:53:09]free content buf [09:53:09]Sock 10.Close socket [09:53:09]Sock 10.Thread stoped [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:03]accept exits with 7 [09:56:03]New connection [09:56:03]New thread 3067149668 created [09:56:03]Thread 3067006308 joined [09:56:03]Waiting for new connection... [09:56:03] Sock 7.Parse request [09:56:03]Sock 7.Check first char [09:56:03]Sock 7.First char is OK [09:56:03]request: POST /json_proto HTTP/1.0 [09:56:03]Method: POST [09:56:03]URL: /json_proto [09:56:03]Method is POST - this is cgi request [09:56:03]url: /json_proto [09:56:03]query_string will be loaded in cgi processing [09:56:03]execute_cgi json_proto POST (null) [09:56:03]execute_cgi path=json_proto method=POST [09:56:03]POST find Content-Length [09:56:03]Host: 172.17.40.195:8080 [09:56:03]Content-Length: 677 [09:56:03]Content-Type: application/json [09:56:03] [09:56:03]POST finish read [09:56:03]Found Content-Length = 677 [09:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:03]execute_script... [09:56: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)160379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:03]POST & json_proto [09:56:03]process_json_proto [09:56:03]json parsed OK: [09:56:03]protocol is kg_v1.0 [09:56:03]action value=close_receipt [09:56:03]process_action close_receipt [09:56:03]cmd_close_receipt [09:56:03]MH_GetDate [09:56:03]Write to MH i2c: F0 00 00 8D 24 A0 [09:56:03]Write i2c OK [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: F0 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: F0 09 00 [09:56:03]MH_I2C_Read... [09:56:03]Read from MH i2c: F0 09 00 8D 24 00 37 0E 1E 67 D5 8D 6C 64 A5 [09:56:03]GetLastDocTimeStamp 1730022789 [09:56:03]current date 1730022967 [09:56:03]FM_GetShiftState [09:56:03]SAM_PROTO_GetShiftState [09:56:03]wFMCommunicate request_size=4 [09:56:03]MH_SAM_APDU [09:56:03]CAPDU: 80 13 01 00 [09:56:03]Write to MH i2c: E2 08 00 8E 24 80 13 01 00 00 00 00 00 2F [09:56:03]Write i2c OK [09:56:03]MH_I2C_Read... [09:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:04]Read from MH i2c: E2 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 0E 00 [09:56:04]MH_I2C_Read... [09:56:04]Read from MH i2c: E2 0E 00 8E 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A7 [09:56:04]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:56:04]wFMCommunicate OK [09:56:04]SAM_PROTO_GetShiftState done [09:56:04]FM_GetShiftState done [09:56:04]opened in 1729988959 [09:56:04]opened+sec_in_day 1730075359 [09:56:04]quantity*price = 50041 [09:56:04]sum+1 = 50042 [09:56:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 51 27.10.2024 09:56 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145628 ФПД: 81523146937498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095607&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145628&fm=81523146937498&tin=02508201610067®Number=0000000000091683&sum=50000 [09:56:05]StoreToDocumentArchive [09:56:05]shift 545 fd 145628 [09:56:05]save to /storage/0545/doc_00145628 [09:56:05]save last doc name /storage/0545/doc_00145628 to /storage/kkm_last_doc_name [09:56:05]save OK [09:56:05]Clear old archive folders... [09:56:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:05]tlvbuf is B6F883A0 [09:56:05]SAM_PROTO_ClearQueue [09:56:05]wFMCommunicate request_size=4 [09:56:05]MH_SAM_APDU [09:56:05]CAPDU: 80 09 00 00 [09:56:05]Write to MH i2c: E2 08 00 9B 24 80 09 00 00 00 00 00 00 31 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:05]Read from MH i2c: E2 03 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 9B 24 00 90 00 33 [09:56:05]RAPDU: 90 00 [09:56:05]wFMCommunicate OK [09:56:05]SAM_PROTO_ClearQueue done [09:56:05]KKMCreateOFDPacket [09:56:05]OFDProtocolAddRootSTLVToBuf [09:56:05]FM_MakeSignedData [09:56:05]FM_MakeSignedData [09:56:05]SAM_PROTO_SignData [09:56:05]wFMCommunicate request_size=4 [09:56:05]MH_SAM_APDU [09:56:05]CAPDU: 80 0D 01 02 [09:56:05]Write to MH i2c: E2 08 00 9C 24 80 0D 01 02 00 00 00 00 39 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 9C 24 00 90 00 34 [09:56:05]RAPDU: 90 00 [09:56:05]wFMCommunicate OK [09:56:05]wFMCommunicate request_size=255 [09:56:05]MH_SAM_APDU [09:56: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 37 0E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DC 38 02 00 35 04 06 00 4A [09:56:05]Write to MH i2c: E2 02 01 9D 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 37 0E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DC 38 02 00 35 04 06 00 4A 00 00 47 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 9D 24 00 90 00 35 [09:56:05]RAPDU: 90 00 [09:56:05]wFMCommunicate OK [09:56:05]wFMCommunicate request_size=10 [09:56:05]MH_SAM_APDU [09:56:05]CAPDU: 80 0D 02 02 05 25 16 36 D4 9A [09:56:05]Write to MH i2c: E2 0D 00 9E 24 80 0D 02 02 05 00 25 16 36 D4 9A 00 00 25 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 03 00 9E 24 00 90 00 36 [09:56:05]RAPDU: 90 00 [09:56:05]wFMCommunicate OK [09:56:05]wFMCommunicate request_size=4 [09:56:05]MH_SAM_APDU [09:56:05]CAPDU: 80 0D 03 02 [09:56:05]Write to MH i2c: E2 08 00 9F 24 80 0D 03 02 00 00 00 00 3E [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 0B 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 0B 00 9F 24 00 92 34 84 F8 15 D8 EC D6 90 00 30 [09:56:05]RAPDU: 92 34 84 F8 15 D8 EC D6 90 00 [09:56:05]wFMCommunicate OK [09:56:05]SAM_PROTO_SignData done [09:56:05]FM_MakeSignedData done [09:56:05]CreateOFDProtocolMessage [09:56:05]wFMCommunicate request_size=4 [09:56:05]MH_SAM_APDU [09:56:05]CAPDU: 80 11 00 00 [09:56:05]Write to MH i2c: E2 08 00 A0 24 80 11 00 00 00 00 00 00 3E [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:05]Read from MH i2c: E2 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 17 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: E2 17 00 A0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 91 [09:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:56:05]wFMCommunicate OK [09:56:05]CreateOFDProtocolMessage done [09:56:05]OFDSenderStorePacket 145628 [09:56:05]StoreOFDPacket docnum=145628 [09:56:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A7 A6 07 01 96 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 37 0E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DC 38 02 00 35 04 06 00 4A 25 16 36 D4 9A 92 34 84 F8 15 D8 EC D6 [09:56:05]CheckFolder [09:56:05]dirname=/storage/ofd_packets [09:56:05]CheckFolder done [09:56:05]ProducePacketName [09:56:05]name=ofd_packets/00145628 [09:56:05]NVStorageSaveData ofd_packets/00145628 [09:56:05]File name is /storage/ofd_packets/00145628 [09:56:05]Write 301 bytes [09:56:05]NVStorageSaveData done [09:56:05]OFDSenderStorePacket done [09:56:05]KKMCreateOFDPacket done [09:56:05]NVStorageSaveData kkm_last_timestamp [09:56:05]File name is /storage/kkm_last_timestamp [09:56:05]Write 4 bytes [09:56:05]NVStorageSaveData done [09:56:05]ExternCall_PrintAddStr [09:56:05]wPrintStart [09:56:05]Write to MH i2c: 01 00 00 A1 24 C5 [09:56:05]Write i2c OK [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: 01 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: 01 07 00 [09:56:05]MH_I2C_Read... [09:56:05]Read from MH i2c: 01 07 00 A1 24 00 00 00 00 00 FF 0F DA [09:56:05]RasterBufferAndPrint [09:56:05]line Счет N : (1)160379 [09:56:05]line ИНН: 02508201610067 [09:56:05]line Контрольно-Кассовый Чек [09:56:05]line ПРОДАЖА [09:56:05]line ТРК (МРК, ГНК) : 62 [09:56:05]line Товар: 2710124130 [09:56:05]line Аи-92-К-2 [09:56:05]line 7.480 * 66.90 [09:56:05]line = 500.41 [09:56:05]line НДС 12% НСП 1% [09:56:05]line > о реализуемом товаре [09:56:05]line ОКРУГЛЕНИЕ: -0.41 [09:56:05]line ИТОГО: 500.00 [09:56:05]line Внесено: 500.00 [09:56:05]line СДАЧА: 0.00 [09:56:05]line НСП 1% : 4.43 [09:56:05]line НДС 12% : 53.14 [09:56:05]line Наличными: 500.00 [09:56:05]line Безнал.: 0.00 [09:56:05]line Место: АЗС № 126 "Партнер Нефть" [09:56:05]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:56:05]line СНО: Общий режим [09:56:05]line Чек 51 27.10.2024 09:56 [09:56:05]line Смена: 545 ФФД: 1.0 [09:56:05]line ЗНМ: 0300000085 [09:56:05]line РНМ: 0000000000091683 [09:56:05]line Версия ККМ: 001 [09:56:05]line ФМ: 0000000000871745 [09:56:05]line ФД: 145628 [09:56:05]line ФПД: 81523146937498 [09:56:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095607&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145628&fm=81523146937498&tin=02508201610067®Number=0000000000091683&sum=50000 [09:56:06]OFD Sender: Processing packet 145628 [packets to send 205, broken 204] [09:56:06]ProducePacketName [09:56:06]name=ofd_packets/00145628 [09:56:06]OFD Sender: To server: pG, [09:56:06]CommunicateWithHost lk.salyk.kg:30040 [09:56:06]ConnectInit lk.salyk.kg [09:56:06]written 0, free lines is 4095 [09:56:06]Connected sock=10 [09:56:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A7 A6 07 01 96 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 37 0E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DC 38 02 00 35 04 06 00 4A 25 16 36 D4 9A 92 34 84 F8 15 D8 EC D6 [09:56:06]Write to MH i2c: 01 00 00 CC 24 F0 [09:56:06]Write i2c OK [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: 01 [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: 01 07 00 [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: 01 07 00 CC 24 00 00 00 00 00 BB 0C BE [09:56:06]RasterBufferAndPrint [09:56:06]line [09:56:06]line [09:56:06]line [09:56:06]line [09:56:06]line [09:56:06]written 0, free lines is 3266 [09:56:06]MH_Cut [09:56:06]Write to MH i2c: D1 01 00 D3 24 01 C9 [09:56:06]Write i2c OK [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: D1 [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: D1 01 00 [09:56:06]MH_I2C_Read... [09:56:06]Read from MH i2c: D1 01 00 D3 24 00 C8 [09:56:06]Write to MH i2c: 01 00 00 D4 24 F8 [09:56:06]Write i2c OK [09:56:06]MH_I2C_Read... [09:56:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 6E 55 47 00 44 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DC 38 02 00 F4 03 04 00 65 B3 1D 67 B6 04 01 00 00 7D 21 63 34 9D 59 82 7F [09:56:06]CommunicateWithHost err = 0 [09:56:06]CheckOFDResponse [09:56:06]1017 (14) - 77093643461234 [09:56:06]1041 (16) - 0000000000871745 [09:56:06]1040 (4) - 145628 [09:56:06]1012 (4) - 27.10.2024 03:28 [09:56:06]1206 (1) - 0 [09:56:06]OFD Sender: Remove packet 145628 [09:56:06]ProducePacketName [09:56:06]name=ofd_packets/00145628 [09:56:06]NVStorageDeleteData [09:56:07]OFD Sender: No OFD packet to send [09:56:07]*** Cut start [09:56:07]*** Partial cut [09:56:07]*** CUTSNS_PIN = 1 [09:56:07]*** CUTSNS_PIN = 0 [09:56:07]*** Brake cut motor [09:56:07]Read from MH i2c: 01 [09:56:07]MH_I2C_Read... [09:56:07]*** Stop cut motor [09:56:07]*** Cut end [09:56:07]Read from MH i2c: 01 07 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: 01 07 00 D4 24 00 00 00 00 00 FF 0F 0D [09:56:07]process_action close_receipt done [09:56:07]requested_data is exist [09:56:07]produce_requested_data [09:56:07]requested_item fm.sn is exist - process it [09:56:07]wFMCommunicate request_size=4 [09:56:07]MH_SAM_APDU [09:56:07]CAPDU: 80 11 00 00 [09:56:07]Write to MH i2c: E2 08 00 D5 24 80 11 00 00 00 00 00 00 73 [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:07]Read from MH i2c: E2 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 17 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 17 00 D5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C6 [09:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:56:07]wFMCommunicate OK [09:56:07]requested_item fd.num is exist - process it [09:56:07]SAM_PROTO_GetFieldsCounters [09:56:07]wFMCommunicate request_size=4 [09:56:07]MH_SAM_APDU [09:56:07]CAPDU: 80 13 00 00 [09:56:07]Write to MH i2c: E2 08 00 D6 24 80 13 00 00 00 00 00 00 76 [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:08]Read from MH i2c: E2 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 62 00 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 62 00 D6 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DC 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [09:56:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DC 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:08]wFMCommunicate OK [09:56:08]SAM_PROTO_GetFieldsCounters done [09:56:08]requested_item shift.num is exist - process it [09:56:08]requested_item shift.opened is exist - process it [09:56:08]req_shift_opened [09:56:08]FM_GetShiftState [09:56:08]SAM_PROTO_GetShiftState [09:56:08]wFMCommunicate request_size=4 [09:56:08]MH_SAM_APDU [09:56:08]CAPDU: 80 13 01 00 [09:56:08]Write to MH i2c: E2 08 00 D7 24 80 13 01 00 00 00 00 00 78 [09:56:08]Write i2c OK [09:56:08]MH_I2C_Read... [09:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:08]Read from MH i2c: E2 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 0E 00 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 0E 00 D7 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F0 [09:56:08]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:56:08]wFMCommunicate OK [09:56:08]SAM_PROTO_GetShiftState done [09:56:08]FM_GetShiftState done [09:56:08]req_shift_opened done [09:56:08]requested_item shift.open_date is exist - process it [09:56:08]req_shift_open_date [09:56:08]req_shift_open_date done [09:56:08]produce_requested_data done [09:56:08]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145628,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:56:08]process_action_free close_receipt [09:56:08]json_value_free [09:56:08]json_value_free done [09:56:08]process_json_proto returns [09:56:08]Send response to host [09:56:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145628,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:56:08]free response buf [09:56:08]execute_script done [09:56:08]execute_script returns [09:56:08]free content buf [09:56:08]Sock 7.Close socket [09:56:08]Sock 7.Thread stoped [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:43]accept exits with 9 [09:56:43]New connection [09:56:43]New thread 3067006308 created [09:56:43]Thread 3067149668 joined [09:56:43]Waiting for new connection... [09:56:43] Sock 9.Parse request [09:56:43]Sock 9.Check first char [09:56:43]Sock 9.First char is OK [09:56:43]request: POST /json_proto HTTP/1.0 [09:56:43]Method: POST [09:56:43]URL: /json_proto [09:56:43]Method is POST - this is cgi request [09:56:43]url: /json_proto [09:56:43]query_string will be loaded in cgi processing [09:56:43]execute_cgi json_proto POST (null) [09:56:43]execute_cgi path=json_proto method=POST [09:56:43]POST find Content-Length [09:56:43]Host: 172.17.40.195:8080 [09:56:43]Content-Length: 679 [09:56:43]Content-Type: application/json [09:56:43] [09:56:43]POST finish read [09:56:43]Found Content-Length = 679 [09:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.040, "sum" : 2441.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2441.00, "total" : 2441.00, "payments": [ { "type": 0, "sum" : 2441.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:43]execute_script... [09:56: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)160380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.040, "sum" : 2441.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2441.00, "total" : 2441.00, "payments": [ { "type": 0, "sum" : 2441.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:43]POST & json_proto [09:56:43]process_json_proto [09:56:43]json parsed OK: [09:56:43]protocol is kg_v1.0 [09:56:43]action value=close_receipt [09:56:43]process_action close_receipt [09:56:43]cmd_close_receipt [09:56:43]MH_GetDate [09:56:43]Write to MH i2c: F0 00 00 D8 24 EB [09:56:43]Write i2c OK [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: F0 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: F0 09 00 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: F0 09 00 D8 24 00 5F 0E 1E 67 D5 8D 6C 64 18 [09:56:43]GetLastDocTimeStamp 1730022967 [09:56:43]current date 1730023007 [09:56:43]FM_GetShiftState [09:56:43]SAM_PROTO_GetShiftState [09:56:43]wFMCommunicate request_size=4 [09:56:43]MH_SAM_APDU [09:56:43]CAPDU: 80 13 01 00 [09:56:43]Write to MH i2c: E2 08 00 D9 24 80 13 01 00 00 00 00 00 7A [09:56:43]Write i2c OK [09:56:43]MH_I2C_Read... [09:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:43]Read from MH i2c: E2 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: E2 0E 00 [09:56:43]MH_I2C_Read... [09:56:43]Read from MH i2c: E2 0E 00 D9 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F2 [09:56:43]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:56:43]wFMCommunicate OK [09:56:43]SAM_PROTO_GetShiftState done [09:56:43]FM_GetShiftState done [09:56:43]opened in 1729988959 [09:56:43]opened+sec_in_day 1730075359 [09:56:43]quantity*price = 244144 [09:56:43]sum+1 = 244146 [09:56:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 2441.00 Внесено: 2441.00 СДАЧА: 0.00 НСП 1% : 21.61 НДС 12% : 259.27 Наличными: 2441.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 52 27.10.2024 09:56 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145629 ФПД: 275914237528781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095647&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145629&fm=275914237528781&tin=02508201610067®Number=0000000000091683&sum=244100 [09:56:44]StoreToDocumentArchive [09:56:44]shift 545 fd 145629 [09:56:44]save to /storage/0545/doc_00145629 [09:56:44]save last doc name /storage/0545/doc_00145629 to /storage/kkm_last_doc_name [09:56:44]save OK [09:56:44]Clear old archive folders... [09:56:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:56:44]tlvbuf is B6ED81D0 [09:56:44]SAM_PROTO_ClearQueue [09:56:44]wFMCommunicate request_size=4 [09:56:44]MH_SAM_APDU [09:56:44]CAPDU: 80 09 00 00 [09:56:44]Write to MH i2c: E2 08 00 E6 24 80 09 00 00 00 00 00 00 7C [09:56:44]Write i2c OK [09:56:44]MH_I2C_Read... [09:56:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:44]Read from MH i2c: E2 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 03 00 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 03 00 E6 24 00 90 00 7E [09:56:44]RAPDU: 90 00 [09:56:44]wFMCommunicate OK [09:56:44]SAM_PROTO_ClearQueue done [09:56:44]KKMCreateOFDPacket [09:56:44]OFDProtocolAddRootSTLVToBuf [09:56:44]FM_MakeSignedData [09:56:44]FM_MakeSignedData [09:56:44]SAM_PROTO_SignData [09:56:44]wFMCommunicate request_size=4 [09:56:44]MH_SAM_APDU [09:56:44]CAPDU: 80 0D 01 02 [09:56:44]Write to MH i2c: E2 08 00 E7 24 80 0D 01 02 00 00 00 00 84 [09:56:44]Write i2c OK [09:56:44]MH_I2C_Read... [09:56:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:44]Read from MH i2c: E2 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 03 00 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 03 00 E7 24 00 90 00 7F [09:56:44]RAPDU: 90 00 [09:56:44]wFMCommunicate OK [09:56:44]wFMCommunicate request_size=255 [09:56:44]MH_SAM_APDU [09:56:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 7D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 65 00 00 00 00 07 04 06 00 84 B9 03 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 5F 0E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DD 38 02 00 35 04 06 00 FA F1 4A 1D [09:56:44]Write to MH i2c: E2 02 01 E8 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 7D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 65 00 00 00 00 07 04 06 00 84 B9 03 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 5F 0E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DD 38 02 00 35 04 06 00 FA F1 4A 1D 00 00 2A [09:56:44]Write i2c OK [09:56:44]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 E8 24 00 90 00 80 [09:56:45]RAPDU: 90 00 [09:56:45]wFMCommunicate OK [09:56:45]wFMCommunicate request_size=7 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 0D 02 02 02 CA CD [09:56:45]Write to MH i2c: E2 0A 00 E9 24 80 0D 02 02 02 00 CA CD 00 00 22 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 E9 24 00 90 00 81 [09:56:45]RAPDU: 90 00 [09:56:45]wFMCommunicate OK [09:56:45]wFMCommunicate request_size=4 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 0D 03 02 [09:56:45]Write to MH i2c: E2 08 00 EA 24 80 0D 03 02 00 00 00 00 89 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 0B 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 0B 00 EA 24 00 07 A5 8E 46 6A 56 2D 98 90 00 8F [09:56:45]RAPDU: 07 A5 8E 46 6A 56 2D 98 90 00 [09:56:45]wFMCommunicate OK [09:56:45]SAM_PROTO_SignData done [09:56:45]FM_MakeSignedData done [09:56:45]CreateOFDProtocolMessage [09:56:45]wFMCommunicate request_size=4 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 11 00 00 [09:56:45]Write to MH i2c: E2 08 00 EB 24 80 11 00 00 00 00 00 00 89 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 17 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 17 00 EB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 DC [09:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:56:45]wFMCommunicate OK [09:56:45]CreateOFDProtocolMessage done [09:56:45]OFDSenderStorePacket 145629 [09:56:45]StoreOFDPacket docnum=145629 [09:56:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 42 A1 04 01 92 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 7D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 65 00 00 00 00 07 04 06 00 84 B9 03 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 5F 0E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DD 38 02 00 35 04 06 00 FA F1 4A 1D CA CD 07 A5 8E 46 6A 56 2D 98 [09:56:45]CheckFolder [09:56:45]dirname=/storage/ofd_packets [09:56:45]CheckFolder done [09:56:45]ProducePacketName [09:56:45]name=ofd_packets/00145629 [09:56:45]NVStorageSaveData ofd_packets/00145629 [09:56:45]File name is /storage/ofd_packets/00145629 [09:56:45]Write 298 bytes [09:56:45]NVStorageSaveData done [09:56:45]OFDSenderStorePacket done [09:56:45]KKMCreateOFDPacket done [09:56:45]NVStorageSaveData kkm_last_timestamp [09:56:45]File name is /storage/kkm_last_timestamp [09:56:45]Write 4 bytes [09:56:45]NVStorageSaveData done [09:56:45]ExternCall_PrintAddStr [09:56:45]wPrintStart [09:56:45]Write to MH i2c: 01 00 00 EC 24 10 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 07 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 07 00 EC 24 00 00 00 00 00 FF 0F 25 [09:56:45]RasterBufferAndPrint [09:56:45]line Счет N : (1)160380 [09:56:45]line ИНН: 02508201610067 [09:56:45]line Контрольно-Кассовый Чек [09:56:45]line ПРОДАЖА [09:56:45]line ТРК (МРК, ГНК) : 21 [09:56:45]line Товар: 2710194210 [09:56:45]line ДТ-К-2 [09:56:45]line 32.040 * 76.20 [09:56:45]line = 2441.45 [09:56:45]line НДС 12% НСП 1% [09:56:45]line > о реализуемом товаре [09:56:45]line ОКРУГЛЕНИЕ: -0.45 [09:56:45]line ИТОГО: 2441.00 [09:56:45]line Внесено: 2441.00 [09:56:45]line СДАЧА: 0.00 [09:56:45]line НСП 1% : 21.61 [09:56:45]line НДС 12% : 259.27 [09:56:45]line Наличными: 2441.00 [09:56:45]line Безнал.: 0.00 [09:56:45]line Место: АЗС № 126 "Партнер Нефть" [09:56:45]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [09:56:45]line СНО: Общий режим [09:56:45]line Чек 52 27.10.2024 09:56 [09:56:45]line Смена: 545 ФФД: 1.0 [09:56:45]line ЗНМ: 0300000085 [09:56:45]line РНМ: 0000000000091683 [09:56:45]line Версия ККМ: 001 [09:56:45]line ФМ: 0000000000871745 [09:56:45]line ФД: 145629 [09:56:45]line ФПД: 275914237528781 [09:56:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095647&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145629&fm=275914237528781&tin=02508201610067®Number=0000000000091683&sum=244100 [09:56:45]OFD Sender: Processing packet 145629 [packets to send 205, broken 204] [09:56:45]ProducePacketName [09:56:45]name=ofd_packets/00145629 [09:56:45]OFD Sender: To server: pG, [09:56:45]CommunicateWithHost lk.salyk.kg:30040 [09:56:45]ConnectInit lk.salyk.kg [09:56:45]written 0, free lines is 4095 [09:56:45]Connected sock=10 [09:56:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 42 A1 04 01 92 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 7D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 B9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 65 00 00 00 00 07 04 06 00 84 B9 03 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 5F 0E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DD 38 02 00 35 04 06 00 FA F1 4A 1D CA CD 07 A5 8E 46 6A 56 2D 98 [09:56:45]Write to MH i2c: 01 00 00 17 25 3C [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 07 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 07 00 17 25 00 00 00 00 00 C0 0C 0F [09:56:45]RasterBufferAndPrint [09:56:45]line [09:56:45]line [09:56:45]line [09:56:45]line [09:56:45]line [09:56:45]written 0, free lines is 3270 [09:56:45]MH_Cut [09:56:45]Write to MH i2c: D1 01 00 1E 25 01 15 [09:56:46]Write i2c OK [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: D1 [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: D1 01 00 [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: D1 01 00 1E 25 00 14 [09:56:46]Write to MH i2c: 01 00 00 1F 25 44 [09:56:46]Write i2c OK [09:56:46]MH_I2C_Read... [09:56:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E7 F1 47 00 37 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 31 37 34 35 10 04 04 00 DD 38 02 00 F4 03 04 00 8D B3 1D 67 B6 04 01 00 00 9A E0 E3 BA 7A 0E BB 3B [09:56:46]CommunicateWithHost err = 0 [09:56:46]CheckOFDResponse [09:56:46]1017 (14) - 77093643461234 [09:56:46]1041 (16) - 0000000000871745 [09:56:46]1040 (4) - 145629 [09:56:46]1012 (4) - 27.10.2024 03:29 [09:56:46]1206 (1) - 0 [09:56:46]OFD Sender: Remove packet 145629 [09:56:46]ProducePacketName [09:56:46]name=ofd_packets/00145629 [09:56:46]NVStorageDeleteData [09:56:46]OFD Sender: No OFD packet to send [09:56:46]*** Cut start [09:56:46]*** Partial cut [09:56:46]*** CUTSNS_PIN = 1 [09:56:46]*** CUTSNS_PIN = 0 [09:56:47]*** Brake cut motor [09:56:47]Read from MH i2c: 01 [09:56:47]MH_I2C_Read... [09:56:47]*** Stop cut motor [09:56:47]*** Cut end [09:56:47]Read from MH i2c: 01 07 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: 01 07 00 1F 25 00 00 00 00 00 FF 0F 59 [09:56:47]process_action close_receipt done [09:56:47]requested_data is exist [09:56:47]produce_requested_data [09:56:47]requested_item fm.sn is exist - process it [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 11 00 00 [09:56:47]Write to MH i2c: E2 08 00 20 25 80 11 00 00 00 00 00 00 BF [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 17 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 17 00 20 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 12 [09:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [09:56:47]wFMCommunicate OK [09:56:47]requested_item fd.num is exist - process it [09:56:47]SAM_PROTO_GetFieldsCounters [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 13 00 00 [09:56:47]Write to MH i2c: E2 08 00 21 25 80 13 00 00 00 00 00 00 C2 [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 62 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 62 00 21 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DD 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [09:56:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DD 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:47]wFMCommunicate OK [09:56:47]SAM_PROTO_GetFieldsCounters done [09:56:47]requested_item shift.num is exist - process it [09:56:47]requested_item shift.opened is exist - process it [09:56:47]req_shift_opened [09:56:47]FM_GetShiftState [09:56:47]SAM_PROTO_GetShiftState [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 13 01 00 [09:56:47]Write to MH i2c: E2 08 00 22 25 80 13 01 00 00 00 00 00 C4 [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 0E 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 0E 00 22 25 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3C [09:56:47]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [09:56:47]wFMCommunicate OK [09:56:47]SAM_PROTO_GetShiftState done [09:56:47]FM_GetShiftState done [09:56:47]req_shift_opened done [09:56:47]requested_item shift.open_date is exist - process it [09:56:47]req_shift_open_date [09:56:47]req_shift_open_date done [09:56:47]produce_requested_data done [09:56:47]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145629,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [09:56:47]process_action_free close_receipt [09:56:47]json_value_free [09:56:47]json_value_free done [09:56:47]process_json_proto returns [09:56:47]Send response to host [09:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145629,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [09:56:47]free response buf [09:56:47]execute_script done [09:56:47]execute_script returns [09:56:47]free content buf [09:56:47]Sock 9.Close socket [09:56:47]Sock 9.Thread stoped [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:14]accept exits with 7 [10:04:14]New connection [10:04:14]New thread 3067149668 created [10:04:14]Thread 3067006308 joined [10:04:14]Waiting for new connection... [10:04:14] Sock 7.Parse request [10:04:14]Sock 7.Check first char [10:04:14]Sock 7.First char is OK [10:04:14]request: POST /json_proto HTTP/1.0 [10:04:14]Method: POST [10:04:14]URL: /json_proto [10:04:14]Method is POST - this is cgi request [10:04:14]url: /json_proto [10:04:14]query_string will be loaded in cgi processing [10:04:14]execute_cgi json_proto POST (null) [10:04:14]execute_cgi path=json_proto method=POST [10:04:14]POST find Content-Length [10:04:14]Host: 172.17.40.195:8080 [10:04:14]Content-Length: 769 [10:04:14]Content-Type: application/json [10:04:14] [10:04:14]POST finish read [10:04:14]Found Content-Length = 769 [10:04:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:14]execute_script... [10:04:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:14]POST & json_proto [10:04:14]process_json_proto [10:04:14]json parsed OK: [10:04:14]protocol is kg_v1.0 [10:04:14]action value=close_receipt [10:04:14]process_action close_receipt [10:04:14]cmd_close_receipt [10:04:14]MH_GetDate [10:04:14]Write to MH i2c: F0 00 00 23 25 37 [10:04:14]Write i2c OK [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: F0 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: F0 09 00 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: F0 09 00 23 25 00 22 10 1E 67 D5 8D 6C 64 29 [10:04:14]GetLastDocTimeStamp 1730023007 [10:04:14]current date 1730023458 [10:04:14]FM_GetShiftState [10:04:14]SAM_PROTO_GetShiftState [10:04:14]wFMCommunicate request_size=4 [10:04:14]MH_SAM_APDU [10:04:14]CAPDU: 80 13 01 00 [10:04:14]Write to MH i2c: E2 08 00 24 25 80 13 01 00 00 00 00 00 C6 [10:04:14]Write i2c OK [10:04:14]MH_I2C_Read... [10:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:14]Read from MH i2c: E2 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 0E 00 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 0E 00 24 25 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3E [10:04:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:04:14]wFMCommunicate OK [10:04:14]SAM_PROTO_GetShiftState done [10:04:14]FM_GetShiftState done [10:04:14]opened in 1729988959 [10:04:14]opened+sec_in_day 1730075359 [10:04:14]quantity*price = 200031 [10:04:14]sum+1 = 200032 [10:04:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 53 27.10.2024 10:04 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145630 ФПД: 42391234703539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100418&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145630&fm=42391234703539&tin=02508201610067®Number=0000000000091683&sum=200031 [10:04:15]StoreToDocumentArchive [10:04:15]shift 545 fd 145630 [10:04:15]save to /storage/0545/doc_00145630 [10:04:15]save last doc name /storage/0545/doc_00145630 to /storage/kkm_last_doc_name [10:04:15]save OK [10:04:15]Clear old archive folders... [10:04:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:15]tlvbuf is B6ED8180 [10:04:15]SAM_PROTO_ClearQueue [10:04:15]wFMCommunicate request_size=4 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 09 00 00 [10:04:15]Write to MH i2c: E2 08 00 31 25 80 09 00 00 00 00 00 00 C8 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 31 25 00 90 00 CA [10:04:15]RAPDU: 90 00 [10:04:15]wFMCommunicate OK [10:04:15]SAM_PROTO_ClearQueue done [10:04:15]KKMCreateOFDPacket [10:04:15]OFDProtocolAddRootSTLVToBuf [10:04:15]FM_MakeSignedData [10:04:15]FM_MakeSignedData [10:04:15]SAM_PROTO_SignData [10:04:15]wFMCommunicate request_size=4 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 0D 01 02 [10:04:15]Write to MH i2c: E2 08 00 32 25 80 0D 01 02 00 00 00 00 D0 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 32 25 00 90 00 CB [10:04:15]RAPDU: 90 00 [10:04:15]wFMCommunicate OK [10:04:15]wFMCommunicate request_size=255 [10:04:15]MH_SAM_APDU [10:04: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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 22 10 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DE 38 02 00 35 04 06 00 26 [10:04:15]Write to MH i2c: E2 02 01 33 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 22 10 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DE 38 02 00 35 04 06 00 26 00 00 2B [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 33 25 00 90 00 CC [10:04:15]RAPDU: 90 00 [10:04:15]wFMCommunicate OK [10:04:15]wFMCommunicate request_size=10 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 0D 02 02 05 8D FA 7C 70 B3 [10:04:15]Write to MH i2c: E2 0D 00 34 25 80 0D 02 02 05 00 8D FA 7C 70 B3 00 00 03 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 34 25 00 90 00 CD [10:04:15]RAPDU: 90 00 [10:04:15]wFMCommunicate OK [10:04:15]wFMCommunicate request_size=4 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 0D 03 02 [10:04:15]Write to MH i2c: E2 08 00 35 25 80 0D 03 02 00 00 00 00 D5 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 0B 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 0B 00 35 25 00 EB 00 8B EB A7 9B 3A 0D 90 00 C0 [10:04:15]RAPDU: EB 00 8B EB A7 9B 3A 0D 90 00 [10:04:15]wFMCommunicate OK [10:04:15]SAM_PROTO_SignData done [10:04:15]FM_MakeSignedData done [10:04:15]CreateOFDProtocolMessage [10:04:15]wFMCommunicate request_size=4 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 11 00 00 [10:04:15]Write to MH i2c: E2 08 00 36 25 80 11 00 00 00 00 00 00 D5 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:16]Read from MH i2c: E2 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 17 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 17 00 36 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 28 [10:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:04:16]wFMCommunicate OK [10:04:16]CreateOFDProtocolMessage done [10:04:16]OFDSenderStorePacket 145630 [10:04:16]StoreOFDPacket docnum=145630 [10:04:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 90 70 07 01 C2 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 22 10 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DE 38 02 00 35 04 06 00 26 8D FA 7C 70 B3 EB 00 8B EB A7 9B 3A 0D [10:04:16]CheckFolder [10:04:16]dirname=/storage/ofd_packets [10:04:16]CheckFolder done [10:04:16]ProducePacketName [10:04:16]name=ofd_packets/00145630 [10:04:16]NVStorageSaveData ofd_packets/00145630 [10:04:16]File name is /storage/ofd_packets/00145630 [10:04:16]Write 301 bytes [10:04:16]NVStorageSaveData done [10:04:16]OFDSenderStorePacket done [10:04:16]KKMCreateOFDPacket done [10:04:16]NVStorageSaveData kkm_last_timestamp [10:04:16]File name is /storage/kkm_last_timestamp [10:04:16]Write 4 bytes [10:04:16]NVStorageSaveData done [10:04:16]ExternCall_PrintAddStr [10:04:16]wPrintStart [10:04:16]Write to MH i2c: 01 00 00 37 25 5C [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 07 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 07 00 37 25 00 00 00 00 00 FF 0F 71 [10:04:16]RasterBufferAndPrint [10:04:16]line Счет N : (1)160381 [10:04:16]line ИНН: 02508201610067 [10:04:16]line Контрольно-Кассовый Чек [10:04:16]line ПРОДАЖА [10:04:16]line ТРК (МРК, ГНК) : 52 [10:04:16]line Товар: 2710124130 [10:04:16]line Аи-92-К-2 [10:04:16]line 29.900 * 66.90 [10:04:16]line = 2000.31 [10:04:16]line НДС 12% НСП 1% [10:04:16]line > о реализуемом товаре [10:04:16]line ИТОГО: 2000.31 [10:04:16]line НСП 1% : 17.70 [10:04:16]line НДС 12% : 212.42 [10:04:16]line Наличными: 0.00 [10:04:16]line Безнал.: 2000.31 [10:04:16]line Место: АЗС № 126 "Партнер Нефть" [10:04:16]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:04:16]line СНО: Общий режим [10:04:16]line Чек 53 27.10.2024 10:04 [10:04:16]line Смена: 545 ФФД: 1.0 [10:04:16]line ЗНМ: 0300000085 [10:04:16]line РНМ: 0000000000091683 [10:04:16]line Версия ККМ: 001 [10:04:16]line Платежная система: Mbank [10:04:16]line ФМ: 0000000000871745 [10:04:16]line ФД: 145630 [10:04:16]line ФПД: 42391234703539 [10:04:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100418&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145630&fm=42391234703539&tin=02508201610067®Number=0000000000091683&sum=200031 [10:04:16]written 0, free lines is 4095 [10:04:16]OFD Sender: Processing packet 145630 [packets to send 205, broken 204] [10:04:16]ProducePacketName [10:04:16]name=ofd_packets/00145630 [10:04:16]OFD Sender: To server: pG, [10:04:16]CommunicateWithHost lk.salyk.kg:30040 [10:04:16]ConnectInit lk.salyk.kg [10:04:16]Connected sock=10 [10:04:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 90 70 07 01 C2 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 22 10 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DE 38 02 00 35 04 06 00 26 8D FA 7C 70 B3 EB 00 8B EB A7 9B 3A 0D [10:04:16]Write to MH i2c: 01 00 00 60 25 85 [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 07 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 07 00 60 25 00 00 00 00 00 E3 0C 7B [10:04:16]RasterBufferAndPrint [10:04:16]line [10:04:16]line [10:04:16]line [10:04:16]line [10:04:16]line [10:04:16]written 0, free lines is 3306 [10:04:16]MH_Cut [10:04:16]Write to MH i2c: D1 01 00 67 25 01 5E [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: D1 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: D1 01 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: D1 01 00 67 25 00 5D [10:04:16]Write to MH i2c: 01 00 00 68 25 8D [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 51 D8 47 00 64 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DE 38 02 00 F4 03 04 00 4F B5 1D 67 B6 04 01 00 00 58 32 0F 18 F1 3B 50 B3 [10:04:16]CommunicateWithHost err = 0 [10:04:16]CheckOFDResponse [10:04:16]1017 (14) - 77093643461234 [10:04:16]1041 (16) - 0000000000871745 [10:04:16]1040 (4) - 145630 [10:04:16]1012 (4) - 27.10.2024 03:36 [10:04:16]1206 (1) - 0 [10:04:16]OFD Sender: Remove packet 145630 [10:04:16]ProducePacketName [10:04:16]name=ofd_packets/00145630 [10:04:16]NVStorageDeleteData [10:04:17]OFD Sender: No OFD packet to send [10:04:17]*** Cut start [10:04:17]*** Partial cut [10:04:17]*** CUTSNS_PIN = 1 [10:04:17]*** CUTSNS_PIN = 0 [10:04:17]*** Brake cut motor [10:04:17]Read from MH i2c: 01 [10:04:17]MH_I2C_Read... [10:04:17]*** Stop cut motor [10:04:17]*** Cut end [10:04:17]Read from MH i2c: 01 07 00 [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: 01 07 00 68 25 00 00 00 00 00 FF 0F A2 [10:04:17]process_action close_receipt done [10:04:17]requested_data is exist [10:04:17]produce_requested_data [10:04:17]requested_item fm.sn is exist - process it [10:04:17]wFMCommunicate request_size=4 [10:04:17]MH_SAM_APDU [10:04:17]CAPDU: 80 11 00 00 [10:04:17]Write to MH i2c: E2 08 00 69 25 80 11 00 00 00 00 00 00 08 [10:04:17]Write i2c OK [10:04:17]MH_I2C_Read... [10:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:17]Read from MH i2c: E2 [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: E2 17 00 [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: E2 17 00 69 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 5B [10:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:04:17]wFMCommunicate OK [10:04:17]requested_item fd.num is exist - process it [10:04:17]SAM_PROTO_GetFieldsCounters [10:04:17]wFMCommunicate request_size=4 [10:04:17]MH_SAM_APDU [10:04:17]CAPDU: 80 13 00 00 [10:04:17]Write to MH i2c: E2 08 00 6A 25 80 13 00 00 00 00 00 00 0B [10:04:17]Write i2c OK [10:04:17]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 62 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 62 00 6A 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DE 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [10:04:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DE 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:18]wFMCommunicate OK [10:04:18]SAM_PROTO_GetFieldsCounters done [10:04:18]requested_item shift.num is exist - process it [10:04:18]requested_item shift.opened is exist - process it [10:04:18]req_shift_opened [10:04:18]FM_GetShiftState [10:04:18]SAM_PROTO_GetShiftState [10:04:18]wFMCommunicate request_size=4 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 13 01 00 [10:04:18]Write to MH i2c: E2 08 00 6B 25 80 13 01 00 00 00 00 00 0D [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 0E 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 0E 00 6B 25 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 85 [10:04:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:04:18]wFMCommunicate OK [10:04:18]SAM_PROTO_GetShiftState done [10:04:18]FM_GetShiftState done [10:04:18]req_shift_opened done [10:04:18]requested_item shift.open_date is exist - process it [10:04:18]req_shift_open_date [10:04:18]req_shift_open_date done [10:04:18]produce_requested_data done [10:04:18]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145630,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:04:18]process_action_free close_receipt [10:04:18]json_value_free [10:04:18]json_value_free done [10:04:18]process_json_proto returns [10:04:18]Send response to host [10:04:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145630,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:04:18]free response buf [10:04:18]execute_script done [10:04:18]execute_script returns [10:04:18]free content buf [10:04:18]Sock 7.Close socket [10:04:18]Sock 7.Thread stoped [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:09]accept exits with 9 [10:05:09]New connection [10:05:09]New thread 3067006308 created [10:05:09]Thread 3067149668 joined [10:05:09]Waiting for new connection... [10:05:09] Sock 9.Parse request [10:05:09]Sock 9.Check first char [10:05:09]Sock 9.First char is OK [10:05:09]request: POST /json_proto HTTP/1.0 [10:05:09]Method: POST [10:05:09]URL: /json_proto [10:05:09]Method is POST - this is cgi request [10:05:09]url: /json_proto [10:05:09]query_string will be loaded in cgi processing [10:05:09]execute_cgi json_proto POST (null) [10:05:09]execute_cgi path=json_proto method=POST [10:05:09]POST find Content-Length [10:05:09]Host: 172.17.40.195:8080 [10:05:09]Content-Length: 674 [10:05:09]Content-Type: application/json [10:05:09] [10:05:09]POST finish read [10:05:09]Found Content-Length = 674 [10:05:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:05:09]execute_script... [10:05: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)160382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:05:09]POST & json_proto [10:05:09]process_json_proto [10:05:09]json parsed OK: [10:05:09]protocol is kg_v1.0 [10:05:09]action value=close_receipt [10:05:09]process_action close_receipt [10:05:09]cmd_close_receipt [10:05:09]MH_GetDate [10:05:09]Write to MH i2c: F0 00 00 6C 25 80 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: F0 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: F0 09 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: F0 09 00 6C 25 00 58 10 1E 67 D5 8D 6C 64 A8 [10:05:09]GetLastDocTimeStamp 1730023458 [10:05:09]current date 1730023512 [10:05:09]FM_GetShiftState [10:05:09]SAM_PROTO_GetShiftState [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 13 01 00 [10:05:09]Write to MH i2c: E2 08 00 6D 25 80 13 01 00 00 00 00 00 0F [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0E 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0E 00 6D 25 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 87 [10:05:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:05:09]wFMCommunicate OK [10:05:09]SAM_PROTO_GetShiftState done [10:05:09]FM_GetShiftState done [10:05:09]opened in 1729988959 [10:05:09]opened+sec_in_day 1730075359 [10:05:09]quantity*price = 40005 [10:05:09]sum+1 = 40006 [10:05:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 57 27.10.2024 10:12 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145634 ФПД: 95855664464846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101216&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145634&fm=95855664464846&tin=02508201610067®Number=0000000000091683&sum=40006 [10:12:16]StoreToDocumentArchive [10:12:16]shift 545 fd 145634 [10:12:16]save to /storage/0545/doc_00145634 [10:12:16]save last doc name /storage/0545/doc_00145634 to /storage/kkm_last_doc_name [10:12:16]save OK [10:12:16]Clear old archive folders... [10:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:16]tlvbuf is 0040FAC0 [10:12:16]SAM_PROTO_ClearQueue [10:12:16]wFMCommunicate request_size=4 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 09 00 00 [10:12:16]Write to MH i2c: E2 08 00 3C 00 80 09 00 00 00 00 00 00 AE [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:16]Read from MH i2c: E2 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 03 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 03 00 3C 00 00 90 00 B0 [10:12:16]RAPDU: 90 00 [10:12:16]wFMCommunicate OK [10:12:16]SAM_PROTO_ClearQueue done [10:12:16]KKMCreateOFDPacket [10:12:16]OFDProtocolAddRootSTLVToBuf [10:12:16]FM_MakeSignedData [10:12:16]FM_MakeSignedData [10:12:16]SAM_PROTO_SignData [10:12:16]wFMCommunicate request_size=4 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 0D 01 02 [10:12:16]Write to MH i2c: E2 08 00 3D 00 80 0D 01 02 00 00 00 00 B6 [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:16]Read from MH i2c: E2 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 03 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 03 00 3D 00 00 90 00 B1 [10:12:16]RAPDU: 90 00 [10:12:16]wFMCommunicate OK [10:12:16]wFMCommunicate request_size=255 [10:12:16]MH_SAM_APDU [10:12: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 00 12 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E2 38 02 00 35 04 06 00 57 [10:12:16]Write to MH i2c: E2 02 01 3E 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 00 12 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E2 38 02 00 35 04 06 00 57 00 00 85 [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:16]Read from MH i2c: E2 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 03 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 03 00 3E 00 00 90 00 B2 [10:12:16]RAPDU: 90 00 [10:12:16]wFMCommunicate OK [10:12:16]wFMCommunicate request_size=10 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 0D 02 02 05 2E 22 D4 83 CE [10:12:16]Write to MH i2c: E2 0D 00 3F 00 80 0D 02 02 05 00 2E 22 D4 83 CE 00 00 38 [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:16]Read from MH i2c: E2 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 03 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 03 00 3F 00 00 90 00 B3 [10:12:16]RAPDU: 90 00 [10:12:16]wFMCommunicate OK [10:12:16]wFMCommunicate request_size=4 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 0D 03 02 [10:12:16]Write to MH i2c: E2 08 00 40 00 80 0D 03 02 00 00 00 00 BB [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:17]Read from MH i2c: E2 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 0B 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 0B 00 40 00 00 B8 59 BE 09 72 AA 6C 51 90 00 6D [10:12:17]RAPDU: B8 59 BE 09 72 AA 6C 51 90 00 [10:12:17]wFMCommunicate OK [10:12:17]SAM_PROTO_SignData done [10:12:17]FM_MakeSignedData done [10:12:17]CreateOFDProtocolMessage [10:12:17]wFMCommunicate request_size=4 [10:12:17]MH_SAM_APDU [10:12:17]CAPDU: 80 11 00 00 [10:12:17]Write to MH i2c: E2 08 00 41 00 80 11 00 00 00 00 00 00 BB [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:17]Read from MH i2c: E2 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 17 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 17 00 41 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0E [10:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:12:17]wFMCommunicate OK [10:12:17]CreateOFDProtocolMessage done [10:12:17]OFDSenderStorePacket 145634 [10:12:17]StoreOFDPacket docnum=145634 [10:12:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F6 51 07 01 38 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 00 12 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E2 38 02 00 35 04 06 00 57 2E 22 D4 83 CE B8 59 BE 09 72 AA 6C 51 [10:12:17]CheckFolder [10:12:17]dirname=/storage/ofd_packets [10:12:17]CheckFolder done [10:12:17]ProducePacketName [10:12:17]name=ofd_packets/00145634 [10:12:17]NVStorageSaveData ofd_packets/00145634 [10:12:17]File name is /storage/ofd_packets/00145634 [10:12:17]Write 301 bytes [10:12:17]NVStorageSaveData done [10:12:17]OFDSenderStorePacket done [10:12:17]KKMCreateOFDPacket done [10:12:17]NVStorageSaveData kkm_last_timestamp [10:12:17]File name is /storage/kkm_last_timestamp [10:12:17]Write 4 bytes [10:12:17]NVStorageSaveData done [10:12:17]ExternCall_PrintAddStr [10:12:17]wPrintStart [10:12:17]Write to MH i2c: 01 00 00 42 00 42 [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 07 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 07 00 42 00 00 00 00 00 00 FF 0F 57 [10:12:17]RasterBufferAndPrint [10:12:17]line Счет N : (1)160385 [10:12:17]line ИНН: 02508201610067 [10:12:17]line Контрольно-Кассовый Чек [10:12:17]line ПРОДАЖА [10:12:17]line ТРК (МРК, ГНК) : 32 [10:12:17]line Товар: 2710124130 [10:12:17]line Аи-92-К-2 [10:12:17]line 5.980 * 66.90 [10:12:17]line = 400.06 [10:12:17]line НДС 12% НСП 1% [10:12:17]line > о реализуемом товаре [10:12:17]line ИТОГО: 400.06 [10:12:17]line НСП 1% : 3.54 [10:12:17]line НДС 12% : 42.48 [10:12:17]line Наличными: 0.00 [10:12:17]line Безнал.: 400.06 [10:12:17]line Место: АЗС № 126 "Партнер Нефть" [10:12:17]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:12:17]line СНО: Общий режим [10:12:17]line Чек 57 27.10.2024 10:12 [10:12:17]line Смена: 545 ФФД: 1.0 [10:12:17]line ЗНМ: 0300000085 [10:12:17]line РНМ: 0000000000091683 [10:12:17]line Версия ККМ: 001 [10:12:17]line Платежная система: Mbank [10:12:17]line ФМ: 0000000000871745 [10:12:17]line ФД: 145634 [10:12:17]line ФПД: 95855664464846 [10:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101216&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145634&fm=95855664464846&tin=02508201610067®Number=0000000000091683&sum=40006 [10:12:17]OFD Sender: Processing packet 145634 [packets to send 206, broken 205] [10:12:17]ProducePacketName [10:12:17]name=ofd_packets/00145634 [10:12:17]OFD Sender: To server: pG, [10:12:17]CommunicateWithHost lk.salyk.kg:30040 [10:12:17]ConnectInit lk.salyk.kg [10:12:17]written 0, free lines is 4095 [10:12:17]Connected sock=10 [10:12:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F6 51 07 01 38 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 00 12 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E2 38 02 00 35 04 06 00 57 2E 22 D4 83 CE B8 59 BE 09 72 AA 6C 51 [10:12:17]Write to MH i2c: 01 00 00 6B 00 6B [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 07 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: 01 07 00 6B 00 00 00 00 00 00 EA 0C 68 [10:12:17]RasterBufferAndPrint [10:12:17]line [10:12:17]line [10:12:17]line [10:12:17]line [10:12:17]line [10:12:17]written 0, free lines is 3312 [10:12:17]MH_Cut [10:12:17]Write to MH i2c: D1 01 00 72 00 01 44 [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: D1 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: D1 01 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: D1 01 00 72 00 00 43 [10:12:17]Write to MH i2c: 01 00 00 73 00 73 [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 AF 4F 47 00 A8 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E2 38 02 00 F4 03 04 00 2E B7 1D 67 B6 04 01 00 00 AB E7 27 AE 63 D1 49 C6 [10:12:17]CommunicateWithHost err = 0 [10:12:17]CheckOFDResponse [10:12:17]1017 (14) - 77093643461234 [10:12:17]1041 (16) - 0000000000871745 [10:12:17]1040 (4) - 145634 [10:12:17]1012 (4) - 27.10.2024 03:44 [10:12:17]1206 (1) - 0 [10:12:17]OFD Sender: Remove packet 145634 [10:12:17]ProducePacketName [10:12:17]name=ofd_packets/00145634 [10:12:17]NVStorageDeleteData [10:12:18]OFD Sender: No OFD packet to send [10:12:18]*** Cut start [10:12:18]*** Partial cut [10:12:18]*** CUTSNS_PIN = 1 [10:12:18]*** CUTSNS_PIN = 0 [10:12:18]*** Brake cut motor [10:12:18]Read from MH i2c: 01 [10:12:18]MH_I2C_Read... [10:12:18]*** Stop cut motor [10:12:18]*** Cut end [10:12:18]Read from MH i2c: 01 07 00 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: 01 07 00 73 00 00 00 00 00 00 FF 0F 88 [10:12:18]process_action close_receipt done [10:12:18]requested_data is exist [10:12:18]produce_requested_data [10:12:18]requested_item fm.sn is exist - process it [10:12:18]wFMCommunicate request_size=4 [10:12:18]MH_SAM_APDU [10:12:18]CAPDU: 80 11 00 00 [10:12:18]Write to MH i2c: E2 08 00 74 00 80 11 00 00 00 00 00 00 EE [10:12:18]Write i2c OK [10:12:18]MH_I2C_Read... [10:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:18]Read from MH i2c: E2 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: E2 17 00 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: E2 17 00 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 41 [10:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:12:18]wFMCommunicate OK [10:12:18]requested_item fd.num is exist - process it [10:12:18]SAM_PROTO_GetFieldsCounters [10:12:18]wFMCommunicate request_size=4 [10:12:18]MH_SAM_APDU [10:12:18]CAPDU: 80 13 00 00 [10:12:18]Write to MH i2c: E2 08 00 75 00 80 13 00 00 00 00 00 00 F1 [10:12:18]Write i2c OK [10:12:18]MH_I2C_Read... [10:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:19]Read from MH i2c: E2 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 62 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 62 00 75 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E2 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [10:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E2 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:19]wFMCommunicate OK [10:12:19]SAM_PROTO_GetFieldsCounters done [10:12:19]requested_item shift.num is exist - process it [10:12:19]requested_item shift.opened is exist - process it [10:12:19]req_shift_opened [10:12:19]FM_GetShiftState [10:12:19]SAM_PROTO_GetShiftState [10:12:19]wFMCommunicate request_size=4 [10:12:19]MH_SAM_APDU [10:12:19]CAPDU: 80 13 01 00 [10:12:19]Write to MH i2c: E2 08 00 76 00 80 13 01 00 00 00 00 00 F3 [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:19]Read from MH i2c: E2 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 0E 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 0E 00 76 00 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6B [10:12:19]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:12:19]wFMCommunicate OK [10:12:19]SAM_PROTO_GetShiftState done [10:12:19]FM_GetShiftState done [10:12:19]req_shift_opened done [10:12:19]requested_item shift.open_date is exist - process it [10:12:19]req_shift_open_date [10:12:19]req_shift_open_date done [10:12:19]produce_requested_data done [10:12:19]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145634,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:12:19]process_action_free close_receipt [10:12:19]json_value_free [10:12:19]json_value_free done [10:12:19]process_json_proto returns [10:12:19]Send response to host [10:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145634,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:12:19]free response buf [10:12:19]execute_script done [10:12:19]execute_script returns [10:12:19]free content buf [10:12:19]Sock 9.Close socket [10:12:19]Sock 9.Thread stoped [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:20]accept exits with 7 [10:16:20]New connection [10:16:20]New thread 3066596708 created [10:16:20]Thread 3066740068 joined [10:16:20]Waiting for new connection... [10:16:20] Sock 7.Parse request [10:16:20]Sock 7.Check first char [10:16:20]Sock 7.First char is OK [10:16:20]request: POST /json_proto HTTP/1.0 [10:16:20]Method: POST [10:16:20]URL: /json_proto [10:16:20]Method is POST - this is cgi request [10:16:20]url: /json_proto [10:16:20]query_string will be loaded in cgi processing [10:16:20]execute_cgi json_proto POST (null) [10:16:20]execute_cgi path=json_proto method=POST [10:16:20]POST find Content-Length [10:16:20]Host: 172.17.40.195:8080 [10:16:20]Content-Length: 678 [10:16:20]Content-Type: application/json [10:16:20] [10:16:20]POST finish read [10:16:20]Found Content-Length = 678 [10:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:20]execute_script... [10:16: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)160386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:20]POST & json_proto [10:16:20]process_json_proto [10:16:20]json parsed OK: [10:16:20]protocol is kg_v1.0 [10:16:20]action value=close_receipt [10:16:20]process_action close_receipt [10:16:20]cmd_close_receipt [10:16:20]MH_GetDate [10:16:20]Write to MH i2c: F0 00 00 77 00 66 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: F0 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: F0 09 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: F0 09 00 77 00 00 F5 12 1E 67 D5 8D 6C 64 2D [10:16:20]GetLastDocTimeStamp 1730023936 [10:16:20]current date 1730024181 [10:16:20]FM_GetShiftState [10:16:20]SAM_PROTO_GetShiftState [10:16:20]wFMCommunicate request_size=4 [10:16:20]MH_SAM_APDU [10:16:20]CAPDU: 80 13 01 00 [10:16:20]Write to MH i2c: E2 08 00 78 00 80 13 01 00 00 00 00 00 F5 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:20]Read from MH i2c: E2 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 0E 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 0E 00 78 00 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6D [10:16:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:16:20]wFMCommunicate OK [10:16:20]SAM_PROTO_GetShiftState done [10:16:20]FM_GetShiftState done [10:16:20]opened in 1729988959 [10:16:20]opened+sec_in_day 1730075359 [10:16:20]quantity*price = 70044 [10:16:20]sum+1 = 70045 [10:16:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 58 27.10.2024 10:16 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145635 ФПД: 99037361006421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101621&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145635&fm=99037361006421&tin=02508201610067®Number=0000000000091683&sum=70000 [10:16:21]StoreToDocumentArchive [10:16:21]shift 545 fd 145635 [10:16:21]save to /storage/0545/doc_00145635 [10:16:21]save last doc name /storage/0545/doc_00145635 to /storage/kkm_last_doc_name [10:16:21]save OK [10:16:21]Clear old archive folders... [10:16:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:21]tlvbuf is 00406640 [10:16:21]SAM_PROTO_ClearQueue [10:16:21]wFMCommunicate request_size=4 [10:16:21]MH_SAM_APDU [10:16:21]CAPDU: 80 09 00 00 [10:16:21]Write to MH i2c: E2 08 00 85 00 80 09 00 00 00 00 00 00 F7 [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 85 00 00 90 00 F9 [10:16:21]RAPDU: 90 00 [10:16:21]wFMCommunicate OK [10:16:21]SAM_PROTO_ClearQueue done [10:16:21]KKMCreateOFDPacket [10:16:21]OFDProtocolAddRootSTLVToBuf [10:16:21]FM_MakeSignedData [10:16:21]FM_MakeSignedData [10:16:21]SAM_PROTO_SignData [10:16:21]wFMCommunicate request_size=4 [10:16:21]MH_SAM_APDU [10:16:21]CAPDU: 80 0D 01 02 [10:16:21]Write to MH i2c: E2 08 00 86 00 80 0D 01 02 00 00 00 00 FF [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 86 00 00 90 00 FA [10:16:21]RAPDU: 90 00 [10:16:21]wFMCommunicate OK [10:16:21]wFMCommunicate request_size=255 [10:16:21]MH_SAM_APDU [10:16: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F5 12 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E3 38 02 00 35 04 06 00 5A [10:16:21]Write to MH i2c: E2 02 01 87 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F5 12 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E3 38 02 00 35 04 06 00 5A 00 00 FD [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 87 00 00 90 00 FB [10:16:21]RAPDU: 90 00 [10:16:21]wFMCommunicate OK [10:16:21]wFMCommunicate request_size=10 [10:16:21]MH_SAM_APDU [10:16:21]CAPDU: 80 0D 02 02 05 12 EE B8 E7 55 [10:16:21]Write to MH i2c: E2 0D 00 88 00 80 0D 02 02 05 00 12 EE B8 E7 55 00 00 00 [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:22]Read from MH i2c: E2 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 03 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 03 00 88 00 00 90 00 FC [10:16:22]RAPDU: 90 00 [10:16:22]wFMCommunicate OK [10:16:22]wFMCommunicate request_size=4 [10:16:22]MH_SAM_APDU [10:16:22]CAPDU: 80 0D 03 02 [10:16:22]Write to MH i2c: E2 08 00 89 00 80 0D 03 02 00 00 00 00 04 [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:22]Read from MH i2c: E2 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 0B 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 0B 00 89 00 00 18 0B 7F E4 1D 75 74 1E 90 00 AF [10:16:22]RAPDU: 18 0B 7F E4 1D 75 74 1E 90 00 [10:16:22]wFMCommunicate OK [10:16:22]SAM_PROTO_SignData done [10:16:22]FM_MakeSignedData done [10:16:22]CreateOFDProtocolMessage [10:16:22]wFMCommunicate request_size=4 [10:16:22]MH_SAM_APDU [10:16:22]CAPDU: 80 11 00 00 [10:16:22]Write to MH i2c: E2 08 00 8A 00 80 11 00 00 00 00 00 00 04 [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:22]Read from MH i2c: E2 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 17 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 17 00 8A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 57 [10:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:16:22]wFMCommunicate OK [10:16:22]CreateOFDProtocolMessage done [10:16:22]OFDSenderStorePacket 145635 [10:16:22]StoreOFDPacket docnum=145635 [10:16:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1B 67 07 01 13 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F5 12 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E3 38 02 00 35 04 06 00 5A 12 EE B8 E7 55 18 0B 7F E4 1D 75 74 1E [10:16:22]CheckFolder [10:16:22]dirname=/storage/ofd_packets [10:16:22]CheckFolder done [10:16:22]ProducePacketName [10:16:22]name=ofd_packets/00145635 [10:16:22]NVStorageSaveData ofd_packets/00145635 [10:16:22]File name is /storage/ofd_packets/00145635 [10:16:22]Write 301 bytes [10:16:22]NVStorageSaveData done [10:16:22]OFDSenderStorePacket done [10:16:22]KKMCreateOFDPacket done [10:16:22]NVStorageSaveData kkm_last_timestamp [10:16:22]File name is /storage/kkm_last_timestamp [10:16:22]Write 4 bytes [10:16:22]NVStorageSaveData done [10:16:22]ExternCall_PrintAddStr [10:16:22]wPrintStart [10:16:22]Write to MH i2c: 01 00 00 8B 00 8B [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 07 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 07 00 8B 00 00 00 00 00 00 FF 0F A0 [10:16:22]RasterBufferAndPrint [10:16:22]line Счет N : (1)160386 [10:16:22]line ИНН: 02508201610067 [10:16:22]line Контрольно-Кассовый Чек [10:16:22]line ПРОДАЖА [10:16:22]line ТРК (МРК, ГНК) : 52 [10:16:22]line Товар: 2710124130 [10:16:22]line Аи-92-К-2 [10:16:22]line 10.470 * 66.90 [10:16:22]line = 700.44 [10:16:22]line НДС 12% НСП 1% [10:16:22]line > о реализуемом товаре [10:16:22]line ОКРУГЛЕНИЕ: -0.44 [10:16:22]line ИТОГО: 700.00 [10:16:22]line Внесено: 700.00 [10:16:22]line СДАЧА: 0.00 [10:16:22]line НСП 1% : 6.20 [10:16:22]line НДС 12% : 74.38 [10:16:22]line Наличными: 700.00 [10:16:22]line Безнал.: 0.00 [10:16:22]line Место: АЗС № 126 "Партнер Нефть" [10:16:22]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:16:22]line СНО: Общий режим [10:16:22]line Чек 58 27.10.2024 10:16 [10:16:22]line Смена: 545 ФФД: 1.0 [10:16:22]line ЗНМ: 0300000085 [10:16:22]line РНМ: 0000000000091683 [10:16:22]line Версия ККМ: 001 [10:16:22]line ФМ: 0000000000871745 [10:16:22]line ФД: 145635 [10:16:22]line ФПД: 99037361006421 [10:16:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101621&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145635&fm=99037361006421&tin=02508201610067®Number=0000000000091683&sum=70000 [10:16:22]OFD Sender: Processing packet 145635 [packets to send 206, broken 205] [10:16:22]ProducePacketName [10:16:22]name=ofd_packets/00145635 [10:16:22]OFD Sender: To server: pG, [10:16:22]CommunicateWithHost lk.salyk.kg:30040 [10:16:22]ConnectInit lk.salyk.kg [10:16:22]written 0, free lines is 4095 [10:16:22]Connected sock=10 [10:16:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1B 67 07 01 13 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F5 12 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E3 38 02 00 35 04 06 00 5A 12 EE B8 E7 55 18 0B 7F E4 1D 75 74 1E [10:16:22]Write to MH i2c: 01 00 00 B6 00 B6 [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 07 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 AF 0C 78 [10:16:22]RasterBufferAndPrint [10:16:22]line [10:16:22]line [10:16:22]line [10:16:22]line [10:16:22]line [10:16:22]written 0, free lines is 3252 [10:16:22]MH_Cut [10:16:22]Write to MH i2c: D1 01 00 BD 00 01 8F [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: D1 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: D1 01 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: D1 01 00 BD 00 00 8E [10:16:22]Write to MH i2c: 01 00 00 BE 00 BE [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 47 01 47 00 48 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E3 38 02 00 F4 03 04 00 23 B8 1D 67 B6 04 01 00 00 AC 24 06 81 CD BB D3 31 [10:16:22]CommunicateWithHost err = 0 [10:16:22]CheckOFDResponse [10:16:22]1017 (14) - 77093643461234 [10:16:22]1041 (16) - 0000000000871745 [10:16:22]1040 (4) - 145635 [10:16:22]1012 (4) - 27.10.2024 03:48 [10:16:22]1206 (1) - 0 [10:16:22]OFD Sender: Remove packet 145635 [10:16:22]ProducePacketName [10:16:22]name=ofd_packets/00145635 [10:16:22]NVStorageDeleteData [10:16:23]OFD Sender: No OFD packet to send [10:16:23]*** Cut start [10:16:23]*** Partial cut [10:16:23]*** CUTSNS_PIN = 1 [10:16:23]*** CUTSNS_PIN = 0 [10:16:23]*** Brake cut motor [10:16:24]Read from MH i2c: 01 [10:16:24]MH_I2C_Read... [10:16:24]*** Stop cut motor [10:16:24]*** Cut end [10:16:24]Read from MH i2c: 01 07 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: 01 07 00 BE 00 00 00 00 00 00 FF 0F D3 [10:16:24]process_action close_receipt done [10:16:24]requested_data is exist [10:16:24]produce_requested_data [10:16:24]requested_item fm.sn is exist - process it [10:16:24]wFMCommunicate request_size=4 [10:16:24]MH_SAM_APDU [10:16:24]CAPDU: 80 11 00 00 [10:16:24]Write to MH i2c: E2 08 00 BF 00 80 11 00 00 00 00 00 00 39 [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:24]Read from MH i2c: E2 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 17 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 17 00 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8C [10:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:16:24]wFMCommunicate OK [10:16:24]requested_item fd.num is exist - process it [10:16:24]SAM_PROTO_GetFieldsCounters [10:16:24]wFMCommunicate request_size=4 [10:16:24]MH_SAM_APDU [10:16:24]CAPDU: 80 13 00 00 [10:16:24]Write to MH i2c: E2 08 00 C0 00 80 13 00 00 00 00 00 00 3C [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:24]Read from MH i2c: E2 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 62 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 62 00 C0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E3 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [10:16:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E3 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:24]wFMCommunicate OK [10:16:24]SAM_PROTO_GetFieldsCounters done [10:16:24]requested_item shift.num is exist - process it [10:16:24]requested_item shift.opened is exist - process it [10:16:24]req_shift_opened [10:16:24]FM_GetShiftState [10:16:24]SAM_PROTO_GetShiftState [10:16:24]wFMCommunicate request_size=4 [10:16:24]MH_SAM_APDU [10:16:24]CAPDU: 80 13 01 00 [10:16:24]Write to MH i2c: E2 08 00 C1 00 80 13 01 00 00 00 00 00 3E [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:24]Read from MH i2c: E2 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 0E 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 0E 00 C1 00 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B6 [10:16:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:16:24]wFMCommunicate OK [10:16:24]SAM_PROTO_GetShiftState done [10:16:24]FM_GetShiftState done [10:16:24]req_shift_opened done [10:16:24]requested_item shift.open_date is exist - process it [10:16:24]req_shift_open_date [10:16:24]req_shift_open_date done [10:16:24]produce_requested_data done [10:16:24]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145635,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:16:24]process_action_free close_receipt [10:16:24]json_value_free [10:16:24]json_value_free done [10:16:24]process_json_proto returns [10:16:24]Send response to host [10:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145635,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:16:24]free response buf [10:16:24]execute_script done [10:16:24]execute_script returns [10:16:24]free content buf [10:16:24]Sock 7.Close socket [10:16:24]Sock 7.Thread stoped [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:42]accept exits with 9 [10:19:42]New connection [10:19:42]New thread 3066740068 created [10:19:42]Thread 3066596708 joined [10:19:42]Waiting for new connection... [10:19:42] Sock 9.Parse request [10:19:42]Sock 9.Check first char [10:19:42]Sock 9.First char is OK [10:19:42]request: POST /json_proto HTTP/1.0 [10:19:42]Method: POST [10:19:42]URL: /json_proto [10:19:42]Method is POST - this is cgi request [10:19:42]url: /json_proto [10:19:42]query_string will be loaded in cgi processing [10:19:42]execute_cgi json_proto POST (null) [10:19:42]execute_cgi path=json_proto method=POST [10:19:42]POST find Content-Length [10:19:42]Host: 172.17.40.195:8080 [10:19:42]Content-Length: 677 [10:19:42]Content-Type: application/json [10:19:42] [10:19:42]POST finish read [10:19:42]Found Content-Length = 677 [10:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:42]execute_script... [10: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)160387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:42]POST & json_proto [10:19:42]process_json_proto [10:19:42]json parsed OK: [10:19:42]protocol is kg_v1.0 [10:19:42]action value=close_receipt [10:19:42]process_action close_receipt [10:19:42]cmd_close_receipt [10:19:42]MH_GetDate [10:19:42]Write to MH i2c: F0 00 00 C2 00 B1 [10:19:42]Write i2c OK [10:19:42]MH_I2C_Read... [10:19:42]Read from MH i2c: F0 [10:19:42]MH_I2C_Read... [10:19:42]Read from MH i2c: F0 09 00 [10:19:42]MH_I2C_Read... [10:19:42]Read from MH i2c: F0 09 00 C2 00 00 BF 13 1E 67 D5 8D 6C 64 43 [10:19:42]GetLastDocTimeStamp 1730024181 [10:19:42]current date 1730024383 [10:19:42]FM_GetShiftState [10:19:42]SAM_PROTO_GetShiftState [10:19:42]wFMCommunicate request_size=4 [10:19:42]MH_SAM_APDU [10:19:42]CAPDU: 80 13 01 00 [10:19:42]Write to MH i2c: E2 08 00 C3 00 80 13 01 00 00 00 00 00 40 [10:19:42]Write i2c OK [10:19:42]MH_I2C_Read... [10:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:42]Read from MH i2c: E2 [10:19:42]MH_I2C_Read... [10:19:42]Read from MH i2c: E2 0E 00 [10:19:42]MH_I2C_Read... [10:19:42]Read from MH i2c: E2 0E 00 C3 00 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B8 [10:19:42]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:19:42]wFMCommunicate OK [10:19:42]SAM_PROTO_GetShiftState done [10:19:42]FM_GetShiftState done [10:19:42]opened in 1729988959 [10:19:42]opened+sec_in_day 1730075359 [10:19:42]quantity*price = 60009 [10:19:42]sum+1 = 60010 [10:19:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 59 27.10.2024 10:19 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145636 ФПД: 217941085906897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101943&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145636&fm=217941085906897&tin=02508201610067®Number=0000000000091683&sum=60000 [10:19:43]StoreToDocumentArchive [10:19:43]shift 545 fd 145636 [10:19:43]save to /storage/0545/doc_00145636 [10:19:43]save last doc name /storage/0545/doc_00145636 to /storage/kkm_last_doc_name [10:19:43]save OK [10:19:43]Clear old archive folders... [10:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:43]tlvbuf is 003FE1E0 [10:19:43]SAM_PROTO_ClearQueue [10:19:43]wFMCommunicate request_size=4 [10:19:43]MH_SAM_APDU [10:19:43]CAPDU: 80 09 00 00 [10:19:43]Write to MH i2c: E2 08 00 D0 00 80 09 00 00 00 00 00 00 42 [10:19:43]Write i2c OK [10:19:43]MH_I2C_Read... [10:19:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:43]Read from MH i2c: E2 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 03 00 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 03 00 D0 00 00 90 00 44 [10:19:43]RAPDU: 90 00 [10:19:43]wFMCommunicate OK [10:19:43]SAM_PROTO_ClearQueue done [10:19:43]KKMCreateOFDPacket [10:19:43]OFDProtocolAddRootSTLVToBuf [10:19:43]FM_MakeSignedData [10:19:43]FM_MakeSignedData [10:19:43]SAM_PROTO_SignData [10:19:43]wFMCommunicate request_size=4 [10:19:43]MH_SAM_APDU [10:19:43]CAPDU: 80 0D 01 02 [10:19:43]Write to MH i2c: E2 08 00 D1 00 80 0D 01 02 00 00 00 00 4A [10:19:43]Write i2c OK [10:19:43]MH_I2C_Read... [10:19:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:43]Read from MH i2c: E2 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 03 00 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: E2 03 00 D1 00 00 90 00 45 [10:19:43]RAPDU: 90 00 [10:19:43]wFMCommunicate OK [10:19:43]wFMCommunicate request_size=255 [10:19:43]MH_SAM_APDU [10: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BF 13 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E4 38 02 00 35 04 06 00 C6 [10:19:43]Write to MH i2c: E2 02 01 D2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BF 13 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E4 38 02 00 35 04 06 00 C6 00 00 4E [10:19:43]Write i2c OK [10:19:43]MH_I2C_Read... [10:19:43]OFD Sender: No OFD packet to send [10:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:44]Read from MH i2c: E2 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 03 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 03 00 D2 00 00 90 00 46 [10:19:44]RAPDU: 90 00 [10:19:44]wFMCommunicate OK [10:19:44]wFMCommunicate request_size=10 [10:19:44]MH_SAM_APDU [10:19:44]CAPDU: 80 0D 02 02 05 37 5D 01 E7 D1 [10:19:44]Write to MH i2c: E2 0D 00 D3 00 80 0D 02 02 05 00 37 5D 01 E7 D1 00 00 A4 [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:44]Read from MH i2c: E2 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 03 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 03 00 D3 00 00 90 00 47 [10:19:44]RAPDU: 90 00 [10:19:44]wFMCommunicate OK [10:19:44]wFMCommunicate request_size=4 [10:19:44]MH_SAM_APDU [10:19:44]CAPDU: 80 0D 03 02 [10:19:44]Write to MH i2c: E2 08 00 D4 00 80 0D 03 02 00 00 00 00 4F [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:44]Read from MH i2c: E2 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 0B 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 0B 00 D4 00 00 F1 2E 17 67 72 A3 53 98 90 00 ED [10:19:44]RAPDU: F1 2E 17 67 72 A3 53 98 90 00 [10:19:44]wFMCommunicate OK [10:19:44]SAM_PROTO_SignData done [10:19:44]FM_MakeSignedData done [10:19:44]CreateOFDProtocolMessage [10:19:44]wFMCommunicate request_size=4 [10:19:44]MH_SAM_APDU [10:19:44]CAPDU: 80 11 00 00 [10:19:44]Write to MH i2c: E2 08 00 D5 00 80 11 00 00 00 00 00 00 4F [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:44]Read from MH i2c: E2 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 17 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 17 00 D5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A2 [10:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:19:44]wFMCommunicate OK [10:19:44]CreateOFDProtocolMessage done [10:19:44]OFDSenderStorePacket 145636 [10:19:44]StoreOFDPacket docnum=145636 [10:19:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E0 A6 07 01 09 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BF 13 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E4 38 02 00 35 04 06 00 C6 37 5D 01 E7 D1 F1 2E 17 67 72 A3 53 98 [10:19:44]CheckFolder [10:19:44]dirname=/storage/ofd_packets [10:19:44]CheckFolder done [10:19:44]ProducePacketName [10:19:44]name=ofd_packets/00145636 [10:19:44]NVStorageSaveData ofd_packets/00145636 [10:19:44]File name is /storage/ofd_packets/00145636 [10:19:44]Write 301 bytes [10:19:44]NVStorageSaveData done [10:19:44]OFDSenderStorePacket done [10:19:44]KKMCreateOFDPacket done [10:19:44]NVStorageSaveData kkm_last_timestamp [10:19:44]File name is /storage/kkm_last_timestamp [10:19:44]Write 4 bytes [10:19:44]NVStorageSaveData done [10:19:44]ExternCall_PrintAddStr [10:19:44]wPrintStart [10:19:44]Write to MH i2c: 01 00 00 D6 00 D6 [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 07 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 07 00 D6 00 00 00 00 00 00 FF 0F EB [10:19:44]RasterBufferAndPrint [10:19:44]line Счет N : (1)160387 [10:19:44]line ИНН: 02508201610067 [10:19:44]line Контрольно-Кассовый Чек [10:19:44]line ПРОДАЖА [10:19:44]line ТРК (МРК, ГНК) : 32 [10:19:44]line Товар: 2710124130 [10:19:44]line Аи-92-К-2 [10:19:44]line 8.970 * 66.90 [10:19:44]line = 600.09 [10:19:44]line НДС 12% НСП 1% [10:19:44]line > о реализуемом товаре [10:19:44]line ОКРУГЛЕНИЕ: -0.09 [10:19:44]line ИТОГО: 600.00 [10:19:44]line Внесено: 600.00 [10:19:44]line СДАЧА: 0.00 [10:19:44]line НСП 1% : 5.31 [10:19:44]line НДС 12% : 63.73 [10:19:44]line Наличными: 600.00 [10:19:44]line Безнал.: 0.00 [10:19:44]line Место: АЗС № 126 "Партнер Нефть" [10:19:44]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:19:44]line СНО: Общий режим [10:19:44]line Чек 59 27.10.2024 10:19 [10:19:44]line Смена: 545 ФФД: 1.0 [10:19:44]line ЗНМ: 0300000085 [10:19:44]line РНМ: 0000000000091683 [10:19:44]line Версия ККМ: 001 [10:19:44]line ФМ: 0000000000871745 [10:19:44]line ФД: 145636 [10:19:44]line ФПД: 217941085906897 [10:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101943&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145636&fm=217941085906897&tin=02508201610067®Number=0000000000091683&sum=60000 [10:19:44]OFD Sender: Processing packet 145636 [packets to send 206, broken 205] [10:19:44]ProducePacketName [10:19:44]name=ofd_packets/00145636 [10:19:44]OFD Sender: To server: pG, [10:19:44]CommunicateWithHost lk.salyk.kg:30040 [10:19:44]ConnectInit lk.salyk.kg [10:19:44]written 0, free lines is 4095 [10:19:44]Connected sock=10 [10: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 31 37 34 35 0F 01 00 00 E0 A6 07 01 09 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BF 13 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E4 38 02 00 35 04 06 00 C6 37 5D 01 E7 D1 F1 2E 17 67 72 A3 53 98 [10:19:44]Write to MH i2c: 01 00 00 01 01 02 [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 07 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 BE 0C D3 [10:19:44]RasterBufferAndPrint [10:19:44]line [10:19:44]line [10:19:44]line [10:19:44]line [10:19:44]line [10:19:44]written 0, free lines is 3268 [10:19:44]MH_Cut [10:19:44]Write to MH i2c: D1 01 00 08 01 01 DB [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: D1 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: D1 01 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: D1 01 00 08 01 00 DA [10:19:44]Write to MH i2c: 01 00 00 09 01 0A [10:19:44]Write i2c OK [10:19:44]MH_I2C_Read... [10:19:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 49 F0 47 00 D7 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E4 38 02 00 F4 03 04 00 ED B8 1D 67 B6 04 01 00 00 A8 7F C3 CC 39 9A 14 0F [10:19:45]CommunicateWithHost err = 0 [10:19:45]CheckOFDResponse [10:19:45]1017 (14) - 77093643461234 [10:19:45]1041 (16) - 0000000000871745 [10:19:45]1040 (4) - 145636 [10:19:45]1012 (4) - 27.10.2024 03:52 [10:19:45]1206 (1) - 0 [10:19:45]OFD Sender: Remove packet 145636 [10:19:45]ProducePacketName [10:19:45]name=ofd_packets/00145636 [10:19:45]NVStorageDeleteData [10:19:45]OFD Sender: No OFD packet to send [10:19:45]*** Cut start [10:19:45]*** Partial cut [10:19:45]*** CUTSNS_PIN = 1 [10:19:45]*** CUTSNS_PIN = 0 [10:19:45]*** Brake cut motor [10:19:46]Read from MH i2c: 01 [10:19:46]MH_I2C_Read... [10:19:46]*** Stop cut motor [10:19:46]*** Cut end [10:19:46]Read from MH i2c: 01 07 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: 01 07 00 09 01 00 00 00 00 00 FF 0F 1F [10:19:46]process_action close_receipt done [10:19:46]requested_data is exist [10:19:46]produce_requested_data [10:19:46]requested_item fm.sn is exist - process it [10:19:46]wFMCommunicate request_size=4 [10:19:46]MH_SAM_APDU [10:19:46]CAPDU: 80 11 00 00 [10:19:46]Write to MH i2c: E2 08 00 0A 01 80 11 00 00 00 00 00 00 85 [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:46]Read from MH i2c: E2 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 17 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 17 00 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D8 [10:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:19:46]wFMCommunicate OK [10:19:46]requested_item fd.num is exist - process it [10:19:46]SAM_PROTO_GetFieldsCounters [10:19:46]wFMCommunicate request_size=4 [10:19:46]MH_SAM_APDU [10:19:46]CAPDU: 80 13 00 00 [10:19:46]Write to MH i2c: E2 08 00 0B 01 80 13 00 00 00 00 00 00 88 [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:46]Read from MH i2c: E2 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 62 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 62 00 0B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E4 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [10:19:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E4 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:46]wFMCommunicate OK [10:19:46]SAM_PROTO_GetFieldsCounters done [10:19:46]requested_item shift.num is exist - process it [10:19:46]requested_item shift.opened is exist - process it [10:19:46]req_shift_opened [10:19:46]FM_GetShiftState [10:19:46]SAM_PROTO_GetShiftState [10:19:46]wFMCommunicate request_size=4 [10:19:46]MH_SAM_APDU [10:19:46]CAPDU: 80 13 01 00 [10:19:46]Write to MH i2c: E2 08 00 0C 01 80 13 01 00 00 00 00 00 8A [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:46]Read from MH i2c: E2 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 0E 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 0E 00 0C 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 02 [10:19:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:19:46]wFMCommunicate OK [10:19:46]SAM_PROTO_GetShiftState done [10:19:46]FM_GetShiftState done [10:19:46]req_shift_opened done [10:19:46]requested_item shift.open_date is exist - process it [10:19:46]req_shift_open_date [10:19:46]req_shift_open_date done [10:19:46]produce_requested_data done [10:19:46]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145636,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:19:46]process_action_free close_receipt [10:19:46]json_value_free [10:19:46]json_value_free done [10:19:46]process_json_proto returns [10:19:46]Send response to host [10:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145636,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:19:46]free response buf [10:19:46]execute_script done [10:19:46]execute_script returns [10:19:46]free content buf [10:19:46]Sock 9.Close socket [10:19:46]Sock 9.Thread stoped [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]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:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:01]int [10:25:01]Write to MH i2c: 01 00 00 0D 01 0E [10:25:01]*** FLAG_PRN_KEY set [10:25:01]Write i2c OK [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: 01 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: 01 07 00 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: 01 07 00 0D 01 00 08 00 00 00 FF 0F 2B [10:25:01]state=0 [10:25:01]Key pressed [10:25:01]Feed [10:25:01]Write to MH i2c: D8 00 00 0E 01 E6 [10:25:01]Write i2c OK [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: D8 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: D8 01 00 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: D8 01 00 0E 01 00 E7 [10:25:01]int [10:25:01]Write to MH i2c: 01 00 00 0F 01 10 [10:25:01]Write i2c OK [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: 01 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: 01 07 00 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: 01 07 00 0F 01 00 48 00 00 00 3C 00 9B [10:25:01]state=2 [10:25:01]Key pressed [10:25:02]int [10:25:02]Write to MH i2c: 01 00 00 10 01 11 [10:25:02]*** FLAG_PRN_KEY reset [10:25:02]Write i2c OK [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: 01 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: 01 07 00 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 F6 0F 1D [10:25:02]state=2 [10:25:02]Stop feed [10:25:04]int [10:25:04]Write to MH i2c: 01 00 00 11 01 12 [10:25:04]*** FLAG_PRN_KEY set [10:25:04]Write i2c OK [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: 01 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: 01 07 00 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: 01 07 00 11 01 00 08 00 00 00 FF 0F 2F [10:25:04]state=0 [10:25:04]Key pressed [10:25:04]Feed [10:25:04]Write to MH i2c: D8 00 00 12 01 EA [10:25:04]Write i2c OK [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: D8 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: D8 01 00 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: D8 01 00 12 01 00 EB [10:25:04]int [10:25:04]Write to MH i2c: 01 00 00 13 01 14 [10:25:04]Write i2c OK [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: 01 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: 01 07 00 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: 01 07 00 13 01 00 48 00 00 00 3C 00 9F [10:25:04]state=2 [10:25:04]Key pressed [10:25:04]int [10:25:04]Write to MH i2c: 01 00 00 14 01 15 [10:25:04]*** FLAG_PRN_KEY reset [10:25:04]Write i2c OK [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: 01 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: 01 07 00 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: 01 07 00 14 01 00 00 00 00 00 F6 0F 21 [10:25:04]state=2 [10:25:04]Stop feed [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:46]accept exits with 7 [10:27:46]New connection [10:27:46]New thread 3066596708 created [10:27:46]Thread 3066740068 joined [10:27:46]Waiting for new connection... [10:27:46] Sock 7.Parse request [10:27:46]Sock 7.Check first char [10:27:46]Sock 7.First char is OK [10:27:46]request: POST /json_proto HTTP/1.0 [10:27:46]Method: POST [10:27:46]URL: /json_proto [10:27:46]Method is POST - this is cgi request [10:27:46]url: /json_proto [10:27:46]query_string will be loaded in cgi processing [10:27:46]execute_cgi json_proto POST (null) [10:27:46]execute_cgi path=json_proto method=POST [10:27:46]POST find Content-Length [10:27:46]Host: 172.17.40.195:8080 [10:27:46]Content-Length: 682 [10:27:46]Content-Type: application/json [10:27:46] [10:27:46]POST finish read [10:27:46]Found Content-Length = 682 [10:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:46]execute_script... [10:27: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)160388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:46]POST & json_proto [10:27:46]process_json_proto [10:27:46]json parsed OK: [10:27:46]protocol is kg_v1.0 [10:27:46]action value=close_receipt [10:27:46]process_action close_receipt [10:27:46]cmd_close_receipt [10:27:46]MH_GetDate [10:27:46]Write to MH i2c: F0 00 00 15 01 05 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: F0 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: F0 09 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: F0 09 00 15 01 00 A3 15 1E 67 D5 8D 6C 64 7D [10:27:46]GetLastDocTimeStamp 1730024383 [10:27:46]current date 1730024867 [10:27:46]FM_GetShiftState [10:27:46]SAM_PROTO_GetShiftState [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 13 01 00 [10:27:46]Write to MH i2c: E2 08 00 16 01 80 13 01 00 00 00 00 00 94 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 0E 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 0E 00 16 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0C [10:27:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:27:46]wFMCommunicate OK [10:27:46]SAM_PROTO_GetShiftState done [10:27:46]FM_GetShiftState done [10:27:46]opened in 1729988959 [10:27:46]opened+sec_in_day 1730075359 [10:27:46]quantity*price = 120018 [10:27:46]sum+1 = 120020 [10:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 60 27.10.2024 10:27 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145637 ФПД: 1225696324887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102747&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145637&fm=1225696324887&tin=02508201610067®Number=0000000000091683&sum=120000 [10:27:48]StoreToDocumentArchive [10:27:48]shift 545 fd 145637 [10:27:48]save to /storage/0545/doc_00145637 [10:27:48]save last doc name /storage/0545/doc_00145637 to /storage/kkm_last_doc_name [10:27:48]save OK [10:27:48]Clear old archive folders... [10:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:48]tlvbuf is 004467A0 [10:27:48]SAM_PROTO_ClearQueue [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 09 00 00 [10:27:48]Write to MH i2c: E2 08 00 23 01 80 09 00 00 00 00 00 00 96 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 23 01 00 90 00 98 [10:27:48]RAPDU: 90 00 [10:27:48]wFMCommunicate OK [10:27:48]SAM_PROTO_ClearQueue done [10:27:48]KKMCreateOFDPacket [10:27:48]OFDProtocolAddRootSTLVToBuf [10:27:48]FM_MakeSignedData [10:27:48]FM_MakeSignedData [10:27:48]SAM_PROTO_SignData [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 0D 01 02 [10:27:48]Write to MH i2c: E2 08 00 24 01 80 0D 01 02 00 00 00 00 9E [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 24 01 00 90 00 99 [10:27:48]RAPDU: 90 00 [10:27:48]wFMCommunicate OK [10:27:48]wFMCommunicate request_size=255 [10:27:48]MH_SAM_APDU [10: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 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A3 15 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E5 38 02 00 35 04 06 00 01 [10:27:48]Write to MH i2c: E2 02 01 25 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A3 15 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E5 38 02 00 35 04 06 00 01 00 00 EF [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 25 01 00 90 00 9A [10:27:48]RAPDU: 90 00 [10:27:48]wFMCommunicate OK [10:27:48]wFMCommunicate request_size=10 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 0D 02 02 05 1D 61 31 AD 17 [10:27:48]Write to MH i2c: E2 0D 00 26 01 80 0D 02 02 05 00 1D 61 31 AD 17 00 00 1E [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 26 01 00 90 00 9B [10:27:48]RAPDU: 90 00 [10:27:48]wFMCommunicate OK [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 0D 03 02 [10:27:48]Write to MH i2c: E2 08 00 27 01 80 0D 03 02 00 00 00 00 A3 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 0B 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 0B 00 27 01 00 3E 5C E0 2F CC 77 5B 66 90 00 51 [10:27:48]RAPDU: 3E 5C E0 2F CC 77 5B 66 90 00 [10:27:48]wFMCommunicate OK [10:27:48]SAM_PROTO_SignData done [10:27:48]FM_MakeSignedData done [10:27:48]CreateOFDProtocolMessage [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 11 00 00 [10:27:48]Write to MH i2c: E2 08 00 28 01 80 11 00 00 00 00 00 00 A3 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 17 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 17 00 28 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F6 [10:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:27:48]wFMCommunicate OK [10:27:48]CreateOFDProtocolMessage done [10:27:48]OFDSenderStorePacket 145637 [10:27:48]StoreOFDPacket docnum=145637 [10:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CD CA 07 01 25 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A3 15 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E5 38 02 00 35 04 06 00 01 1D 61 31 AD 17 3E 5C E0 2F CC 77 5B 66 [10:27:48]CheckFolder [10:27:48]dirname=/storage/ofd_packets [10:27:48]CheckFolder done [10:27:48]ProducePacketName [10:27:48]name=ofd_packets/00145637 [10:27:48]NVStorageSaveData ofd_packets/00145637 [10:27:48]File name is /storage/ofd_packets/00145637 [10:27:48]Write 301 bytes [10:27:48]NVStorageSaveData done [10:27:48]OFDSenderStorePacket done [10:27:48]KKMCreateOFDPacket done [10:27:48]NVStorageSaveData kkm_last_timestamp [10:27:48]File name is /storage/kkm_last_timestamp [10:27:48]Write 4 bytes [10:27:48]NVStorageSaveData done [10:27:48]ExternCall_PrintAddStr [10:27:48]wPrintStart [10:27:48]Write to MH i2c: 01 00 00 29 01 2A [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 29 01 00 00 00 00 00 FF 0F 3F [10:27:48]RasterBufferAndPrint [10:27:48]line Счет N : (1)160388 [10:27:48]line ИНН: 02508201610067 [10:27:48]line Контрольно-Кассовый Чек [10:27:48]line ПРОДАЖА [10:27:48]line ТРК (МРК, ГНК) : 42 [10:27:48]line Товар: 2710124130 [10:27:48]line Аи-92-К-2 [10:27:48]line 17.940 * 66.90 [10:27:48]line = 1200.19 [10:27:48]line НДС 12% НСП 1% [10:27:48]line > о реализуемом товаре [10:27:48]line ОКРУГЛЕНИЕ: -0.19 [10:27:48]line ИТОГО: 1200.00 [10:27:48]line Внесено: 1200.00 [10:27:48]line СДАЧА: 0.00 [10:27:48]line НСП 1% : 10.62 [10:27:48]line НДС 12% : 127.45 [10:27:48]line Наличными: 1200.00 [10:27:48]line Безнал.: 0.00 [10:27:48]line Место: АЗС № 126 "Партнер Нефть" [10:27:48]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:27:48]line СНО: Общий режим [10:27:48]line Чек 60 27.10.2024 10:27 [10:27:48]line Смена: 545 ФФД: 1.0 [10:27:48]line ЗНМ: 0300000085 [10:27:48]line РНМ: 0000000000091683 [10:27:48]line Версия ККМ: 001 [10:27:48]line ФМ: 0000000000871745 [10:27:48]line ФД: 145637 [10:27:48]line ФПД: 1225696324887 [10:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102747&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145637&fm=1225696324887&tin=02508201610067®Number=0000000000091683&sum=120000 [10:27:48]written 0, free lines is 4095 [10:27:48]OFD Sender: Processing packet 145637 [packets to send 206, broken 205] [10:27:48]ProducePacketName [10:27:48]name=ofd_packets/00145637 [10:27:48]OFD Sender: To server: pG, [10:27:48]CommunicateWithHost lk.salyk.kg:30040 [10:27:48]ConnectInit lk.salyk.kg [10:27:49]Connected sock=10 [10: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 31 37 34 35 0F 01 00 00 CD CA 07 01 25 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A3 15 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E5 38 02 00 35 04 06 00 01 1D 61 31 AD 17 3E 5C E0 2F CC 77 5B 66 [10:27:49]Write to MH i2c: 01 00 00 54 01 55 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: 01 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: 01 07 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: 01 07 00 54 01 00 00 00 00 00 AF 0C 17 [10:27:49]RasterBufferAndPrint [10:27:49]line [10:27:49]line [10:27:49]line [10:27:49]line [10:27:49]line [10:27:49]written 0, free lines is 3253 [10:27:49]MH_Cut [10:27:49]Write to MH i2c: D1 01 00 5B 01 01 2E [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: D1 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: D1 01 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: D1 01 00 5B 01 00 2D [10:27:49]Write to MH i2c: 01 00 00 5C 01 5D [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 AD 72 47 00 68 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E5 38 02 00 F4 03 04 00 D1 BA 1D 67 B6 04 01 00 00 30 F4 F0 86 48 F6 23 C0 [10:27:49]CommunicateWithHost err = 0 [10:27:49]CheckOFDResponse [10:27:49]1017 (14) - 77093643461234 [10:27:49]1041 (16) - 0000000000871745 [10:27:49]1040 (4) - 145637 [10:27:49]1012 (4) - 27.10.2024 04:00 [10:27:49]1206 (1) - 0 [10:27:49]OFD Sender: Remove packet 145637 [10:27:49]ProducePacketName [10:27:49]name=ofd_packets/00145637 [10:27:49]NVStorageDeleteData [10:27:49]OFD Sender: No OFD packet to send [10:27:50]*** Cut start [10:27:50]*** Partial cut [10:27:50]*** CUTSNS_PIN = 1 [10:27:50]*** CUTSNS_PIN = 0 [10:27:50]*** Brake cut motor [10:27:50]Read from MH i2c: 01 [10:27:50]MH_I2C_Read... [10:27:50]*** Stop cut motor [10:27:50]*** Cut end [10:27:50]Read from MH i2c: 01 07 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [10:27:50]process_action close_receipt done [10:27:50]requested_data is exist [10:27:50]produce_requested_data [10:27:50]requested_item fm.sn is exist - process it [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 11 00 00 [10:27:50]Write to MH i2c: E2 08 00 5D 01 80 11 00 00 00 00 00 00 D8 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 17 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 17 00 5D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2B [10:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:27:50]wFMCommunicate OK [10:27:50]requested_item fd.num is exist - process it [10:27:50]SAM_PROTO_GetFieldsCounters [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 13 00 00 [10:27:50]Write to MH i2c: E2 08 00 5E 01 80 13 00 00 00 00 00 00 DB [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 62 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 62 00 5E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E5 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [10:27:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E5 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:50]wFMCommunicate OK [10:27:50]SAM_PROTO_GetFieldsCounters done [10:27:50]requested_item shift.num is exist - process it [10:27:50]requested_item shift.opened is exist - process it [10:27:50]req_shift_opened [10:27:50]FM_GetShiftState [10:27:50]SAM_PROTO_GetShiftState [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 13 01 00 [10:27:50]Write to MH i2c: E2 08 00 5F 01 80 13 01 00 00 00 00 00 DD [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 0E 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 0E 00 5F 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 55 [10:27:51]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:27:51]wFMCommunicate OK [10:27:51]SAM_PROTO_GetShiftState done [10:27:51]FM_GetShiftState done [10:27:51]req_shift_opened done [10:27:51]requested_item shift.open_date is exist - process it [10:27:51]req_shift_open_date [10:27:51]req_shift_open_date done [10:27:51]produce_requested_data done [10:27:51]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145637,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:27:51]process_action_free close_receipt [10:27:51]json_value_free [10:27:51]json_value_free done [10:27:51]process_json_proto returns [10:27:51]Send response to host [10:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145637,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:27:51]free response buf [10:27:51]execute_script done [10:27:51]execute_script returns [10:27:51]free content buf [10:27:51]Sock 7.Close socket [10:27:51]Sock 7.Thread stoped [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:08]accept exits with 9 [10:28:08]New connection [10:28:08]New thread 3066740068 created [10:28:08]Thread 3066596708 joined [10:28:08]Waiting for new connection... [10:28:08] Sock 9.Parse request [10:28:08]Sock 9.Check first char [10:28:08]Sock 9.First char is OK [10:28:08]request: POST /json_proto HTTP/1.0 [10:28:08]Method: POST [10:28:08]URL: /json_proto [10:28:08]Method is POST - this is cgi request [10:28:08]url: /json_proto [10:28:08]query_string will be loaded in cgi processing [10:28:08]execute_cgi json_proto POST (null) [10:28:08]execute_cgi path=json_proto method=POST [10:28:08]POST find Content-Length [10:28:08]Host: 172.17.40.195:8080 [10:28:08]Content-Length: 769 [10:28:08]Content-Type: application/json [10:28:08] [10:28:08]POST finish read [10:28:08]Found Content-Length = 769 [10:28:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:08]execute_script... [10:28: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)160389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:08]POST & json_proto [10:28:08]process_json_proto [10:28:08]json parsed OK: [10:28:08]protocol is kg_v1.0 [10:28:08]action value=close_receipt [10:28:08]process_action close_receipt [10:28:08]cmd_close_receipt [10:28:08]MH_GetDate [10:28:08]Write to MH i2c: F0 00 00 60 01 50 [10:28:08]Write i2c OK [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: F0 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: F0 09 00 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: F0 09 00 60 01 00 B9 15 1E 67 D5 8D 6C 64 DE [10:28:08]GetLastDocTimeStamp 1730024867 [10:28:08]current date 1730024889 [10:28:08]FM_GetShiftState [10:28:08]SAM_PROTO_GetShiftState [10:28:08]wFMCommunicate request_size=4 [10:28:08]MH_SAM_APDU [10:28:08]CAPDU: 80 13 01 00 [10:28:08]Write to MH i2c: E2 08 00 61 01 80 13 01 00 00 00 00 00 DF [10:28:08]Write i2c OK [10:28:08]MH_I2C_Read... [10:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:08]Read from MH i2c: E2 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: E2 0E 00 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: E2 0E 00 61 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 57 [10:28:08]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:28:08]wFMCommunicate OK [10:28:08]SAM_PROTO_GetShiftState done [10:28:08]FM_GetShiftState done [10:28:08]opened in 1729988959 [10:28:08]opened+sec_in_day 1730075359 [10:28:08]quantity*price = 100015 [10:28:08]sum+1 = 100017 [10:28:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 61 27.10.2024 10:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145638 ФПД: 146262921425284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102809&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145638&fm=146262921425284&tin=02508201610067®Number=0000000000091683&sum=100016 [10:28:09]StoreToDocumentArchive [10:28:09]shift 545 fd 145638 [10:28:09]save to /storage/0545/doc_00145638 [10:28:09]save last doc name /storage/0545/doc_00145638 to /storage/kkm_last_doc_name [10:28:09]save OK [10:28:09]Clear old archive folders... [10:28:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:09]tlvbuf is 004471D0 [10:28:09]SAM_PROTO_ClearQueue [10:28:09]wFMCommunicate request_size=4 [10:28:09]MH_SAM_APDU [10:28:09]CAPDU: 80 09 00 00 [10:28:09]Write to MH i2c: E2 08 00 6E 01 80 09 00 00 00 00 00 00 E1 [10:28:09]Write i2c OK [10:28:09]MH_I2C_Read... [10:28:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:09]Read from MH i2c: E2 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: E2 03 00 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: E2 03 00 6E 01 00 90 00 E3 [10:28:09]RAPDU: 90 00 [10:28:09]wFMCommunicate OK [10:28:09]SAM_PROTO_ClearQueue done [10:28:09]KKMCreateOFDPacket [10:28:09]OFDProtocolAddRootSTLVToBuf [10:28:09]FM_MakeSignedData [10:28:09]FM_MakeSignedData [10:28:09]SAM_PROTO_SignData [10:28:09]wFMCommunicate request_size=4 [10:28:09]MH_SAM_APDU [10:28:09]CAPDU: 80 0D 01 02 [10:28:09]Write to MH i2c: E2 08 00 6F 01 80 0D 01 02 00 00 00 00 E9 [10:28:09]Write i2c OK [10:28:09]MH_I2C_Read... [10:28:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:09]Read from MH i2c: E2 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: E2 03 00 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: E2 03 00 6F 01 00 90 00 E4 [10:28:09]RAPDU: 90 00 [10:28:09]wFMCommunicate OK [10:28:09]wFMCommunicate request_size=255 [10:28:09]MH_SAM_APDU [10:28:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B9 15 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E6 38 02 00 35 04 06 00 85 [10:28:09]Write to MH i2c: E2 02 01 70 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B9 15 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E6 38 02 00 35 04 06 00 85 00 00 E9 [10:28:09]Write i2c OK [10:28:09]MH_I2C_Read... [10:28:10]OFD Sender: No OFD packet to send [10:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:10]Read from MH i2c: E2 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 03 00 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 03 00 70 01 00 90 00 E5 [10:28:10]RAPDU: 90 00 [10:28:10]wFMCommunicate OK [10:28:10]wFMCommunicate request_size=10 [10:28:10]MH_SAM_APDU [10:28:10]CAPDU: 80 0D 02 02 05 06 7D 79 B1 84 [10:28:10]Write to MH i2c: E2 0D 00 71 01 80 0D 02 02 05 00 06 7D 79 B1 84 00 00 27 [10:28:10]Write i2c OK [10:28:10]MH_I2C_Read... [10:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:10]Read from MH i2c: E2 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 03 00 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 03 00 71 01 00 90 00 E6 [10:28:10]RAPDU: 90 00 [10:28:10]wFMCommunicate OK [10:28:10]wFMCommunicate request_size=4 [10:28:10]MH_SAM_APDU [10:28:10]CAPDU: 80 0D 03 02 [10:28:10]Write to MH i2c: E2 08 00 72 01 80 0D 03 02 00 00 00 00 EE [10:28:10]Write i2c OK [10:28:10]MH_I2C_Read... [10:28:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:10]Read from MH i2c: E2 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 0B 00 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 0B 00 72 01 00 DC F4 9C 23 1A DB E0 1C 90 00 6F [10:28:10]RAPDU: DC F4 9C 23 1A DB E0 1C 90 00 [10:28:10]wFMCommunicate OK [10:28:10]SAM_PROTO_SignData done [10:28:10]FM_MakeSignedData done [10:28:10]CreateOFDProtocolMessage [10:28:10]wFMCommunicate request_size=4 [10:28:10]MH_SAM_APDU [10:28:10]CAPDU: 80 11 00 00 [10:28:10]Write to MH i2c: E2 08 00 73 01 80 11 00 00 00 00 00 00 EE [10:28:10]Write i2c OK [10:28:10]MH_I2C_Read... [10:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:10]Read from MH i2c: E2 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 17 00 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 17 00 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 41 [10:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:28:10]wFMCommunicate OK [10:28:10]CreateOFDProtocolMessage done [10:28:10]OFDSenderStorePacket 145638 [10:28:10]StoreOFDPacket docnum=145638 [10:28:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A2 B8 07 01 01 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B9 15 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E6 38 02 00 35 04 06 00 85 06 7D 79 B1 84 DC F4 9C 23 1A DB E0 1C [10:28:10]CheckFolder [10:28:10]dirname=/storage/ofd_packets [10:28:10]CheckFolder done [10:28:10]ProducePacketName [10:28:10]name=ofd_packets/00145638 [10:28:10]NVStorageSaveData ofd_packets/00145638 [10:28:10]File name is /storage/ofd_packets/00145638 [10:28:10]Write 301 bytes [10:28:10]NVStorageSaveData done [10:28:10]OFDSenderStorePacket done [10:28:10]KKMCreateOFDPacket done [10:28:10]NVStorageSaveData kkm_last_timestamp [10:28:10]File name is /storage/kkm_last_timestamp [10:28:10]Write 4 bytes [10:28:10]NVStorageSaveData done [10:28:10]ExternCall_PrintAddStr [10:28:10]wPrintStart [10:28:10]Write to MH i2c: 01 00 00 74 01 75 [10:28:10]Write i2c OK [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: 01 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: 01 07 00 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 FF 0F 8A [10:28:10]RasterBufferAndPrint [10:28:10]line Счет N : (1)160389 [10:28:10]line ИНН: 02508201610067 [10:28:10]line Контрольно-Кассовый Чек [10:28:10]line ПРОДАЖА [10:28:10]line ТРК (МРК, ГНК) : 52 [10:28:10]line Товар: 2710124130 [10:28:10]line Аи-92-К-2 [10:28:10]line 14.950 * 66.90 [10:28:10]line = 1000.16 [10:28:10]line НДС 12% НСП 1% [10:28:10]line > о реализуемом товаре [10:28:10]line ИТОГО: 1000.16 [10:28:10]line НСП 1% : 8.85 [10:28:10]line НДС 12% : 106.21 [10:28:10]line Наличными: 0.00 [10:28:10]line Безнал.: 1000.16 [10:28:10]line Место: АЗС № 126 "Партнер Нефть" [10:28:10]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:28:10]line СНО: Общий режим [10:28:10]line Чек 61 27.10.2024 10:28 [10:28:10]line Смена: 545 ФФД: 1.0 [10:28:10]line ЗНМ: 0300000085 [10:28:10]line РНМ: 0000000000091683 [10:28:10]line Версия ККМ: 001 [10:28:10]line Платежная система: Mbank [10:28:10]line ФМ: 0000000000871745 [10:28:10]line ФД: 145638 [10:28:10]line ФПД: 146262921425284 [10:28:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102809&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145638&fm=146262921425284&tin=02508201610067®Number=0000000000091683&sum=100016 [10:28:10]OFD Sender: Processing packet 145638 [packets to send 206, broken 205] [10:28:10]ProducePacketName [10:28:10]name=ofd_packets/00145638 [10:28:10]OFD Sender: To server: pG, [10:28:10]CommunicateWithHost lk.salyk.kg:30040 [10:28:10]ConnectInit lk.salyk.kg [10:28:10]written 0, free lines is 4095 [10:28:10]Connected sock=10 [10:28:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A2 B8 07 01 01 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B9 15 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E6 38 02 00 35 04 06 00 85 06 7D 79 B1 84 DC F4 9C 23 1A DB E0 1C [10:28:10]Write to MH i2c: 01 00 00 9D 01 9E [10:28:10]Write i2c OK [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: 01 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: 01 07 00 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: 01 07 00 9D 01 00 00 00 00 00 CE 0C 7F [10:28:10]RasterBufferAndPrint [10:28:10]line [10:28:10]line [10:28:10]line [10:28:10]line [10:28:10]line [10:28:10]written 0, free lines is 3285 [10:28:11]MH_Cut [10:28:11]Write to MH i2c: D1 01 00 A4 01 01 77 [10:28:11]Write i2c OK [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: D1 [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: D1 01 00 [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: D1 01 00 A4 01 00 76 [10:28:11]Write to MH i2c: 01 00 00 A5 01 A6 [10:28:11]Write i2c OK [10:28:11]MH_I2C_Read... [10:28:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 02 D4 47 00 7E FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E6 38 02 00 F4 03 04 00 E7 BA 1D 67 B6 04 01 00 00 52 09 64 FA CE 07 24 90 [10:28:11]CommunicateWithHost err = 0 [10:28:11]CheckOFDResponse [10:28:11]1017 (14) - 77093643461234 [10:28:11]1041 (16) - 0000000000871745 [10:28:11]1040 (4) - 145638 [10:28:11]1012 (4) - 27.10.2024 04:00 [10:28:11]1206 (1) - 0 [10:28:11]OFD Sender: Remove packet 145638 [10:28:11]ProducePacketName [10:28:11]name=ofd_packets/00145638 [10:28:11]NVStorageDeleteData [10:28:11]OFD Sender: No OFD packet to send [10:28:11]*** Cut start [10:28:11]*** Partial cut [10:28:11]*** CUTSNS_PIN = 1 [10:28:11]*** CUTSNS_PIN = 0 [10:28:12]*** Brake cut motor [10:28:12]Read from MH i2c: 01 [10:28:12]MH_I2C_Read... [10:28:12]*** Stop cut motor [10:28:12]*** Cut end [10:28:12]Read from MH i2c: 01 07 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [10:28:12]process_action close_receipt done [10:28:12]requested_data is exist [10:28:12]produce_requested_data [10:28:12]requested_item fm.sn is exist - process it [10:28:12]wFMCommunicate request_size=4 [10:28:12]MH_SAM_APDU [10:28:12]CAPDU: 80 11 00 00 [10:28:12]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 [10:28:12]MH_I2C_Read... [10:28:12]int [10:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:12]*** FLAG_PRN_KEY set [10:28:12]Read from MH i2c: E2 17 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 74 [10:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:28:12]wFMCommunicate OK [10:28:12]requested_item fd.num is exist - process it [10:28:12]SAM_PROTO_GetFieldsCounters [10:28:12]wFMCommunicate request_size=4 [10:28:12]MH_SAM_APDU [10:28:12]CAPDU: 80 13 00 00 [10:28:12]Write to MH i2c: E2 08 00 A7 01 80 13 00 00 00 00 00 00 24 [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:12]Read from MH i2c: E2 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 62 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 62 00 A7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E6 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [10:28:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E6 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:12]wFMCommunicate OK [10:28:12]SAM_PROTO_GetFieldsCounters done [10:28:12]requested_item shift.num is exist - process it [10:28:12]requested_item shift.opened is exist - process it [10:28:12]req_shift_opened [10:28:12]FM_GetShiftState [10:28:12]SAM_PROTO_GetShiftState [10:28:12]wFMCommunicate request_size=4 [10:28:12]MH_SAM_APDU [10:28:12]CAPDU: 80 13 01 00 [10:28:12]Write to MH i2c: 01 00 00 A8 01 A9 [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: 01 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: 01 07 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: 01 07 00 A8 01 00 08 00 00 00 FF 0F C6 [10:28:12]state=0 [10:28:12]Key pressed [10:28:12]Feed [10:28:12]Write to MH i2c: D8 00 00 A9 01 81 [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: D8 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: D8 01 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: D8 01 00 A9 01 00 82 [10:28:12]Write to MH i2c: E2 08 00 AA 01 80 13 01 00 00 00 00 00 28 [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:12]int [10:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:12]Read from MH i2c: E2 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 0E 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 0E 00 AA 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A0 [10:28:12]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:28:12]wFMCommunicate OK [10:28:12]SAM_PROTO_GetShiftState done [10:28:12]FM_GetShiftState done [10:28:12]req_shift_opened done [10:28:12]requested_item shift.open_date is exist - process it [10:28:12]req_shift_open_date [10:28:12]req_shift_open_date done [10:28:12]produce_requested_data done [10:28:12]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145638,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:28:12]process_action_free close_receipt [10:28:12]json_value_free [10:28:12]json_value_free done [10:28:12]process_json_proto returns [10:28:12]Send response to host [10:28:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145638,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:28:12]free response buf [10:28:12]execute_script done [10:28:12]execute_script returns [10:28:12]free content buf [10:28:12]Sock 9.Close socket [10:28:12]Sock 9.Thread stoped [10:28:12]Write to MH i2c: 01 00 00 AB 01 AC [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: 01 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: 01 07 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: 01 07 00 AB 01 00 48 00 00 00 3C 00 37 [10:28:12]state=2 [10:28:12]Key pressed [10:28:12]int [10:28:12]Write to MH i2c: 01 00 00 AC 01 AD [10:28:12]*** FLAG_PRN_KEY reset [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: 01 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: 01 07 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: 01 07 00 AC 01 00 00 00 00 00 FF 0F C2 [10:28:12]state=2 [10:28:12]Stop feed [10:28:14]int [10:28:14]Write to MH i2c: 01 00 00 AD 01 AE [10:28:14]*** FLAG_PRN_KEY set [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 AD 01 00 08 00 00 00 FF 0F CB [10:28:14]state=0 [10:28:14]Key pressed [10:28:14]Feed [10:28:14]Write to MH i2c: D8 00 00 AE 01 86 [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: D8 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: D8 01 00 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: D8 01 00 AE 01 00 87 [10:28:14]int [10:28:14]Write to MH i2c: 01 00 00 AF 01 B0 [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 AF 01 00 48 00 00 00 3C 00 3B [10:28:14]state=2 [10:28:14]Key pressed [10:28:14]int [10:28:14]*** FLAG_PRN_KEY reset [10:28:14]Write to MH i2c: 01 00 00 B0 01 B1 [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 B0 01 00 00 00 00 00 F6 0F BD [10:28:14]state=2 [10:28:14]Stop feed [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:17]accept exits with 7 [10:31:17]New connection [10:31:17]New thread 3066596708 created [10:31:17]Thread 3066740068 joined [10:31:17]Waiting for new connection... [10:31:17] Sock 7.Parse request [10:31:17]Sock 7.Check first char [10:31:17]Sock 7.First char is OK [10:31:17]request: POST /json_proto HTTP/1.0 [10:31:17]Method: POST [10:31:17]URL: /json_proto [10:31:17]Method is POST - this is cgi request [10:31:17]url: /json_proto [10:31:17]query_string will be loaded in cgi processing [10:31:17]execute_cgi json_proto POST (null) [10:31:17]execute_cgi path=json_proto method=POST [10:31:17]POST find Content-Length [10:31:17]Host: 172.17.40.195:8080 [10:31:17]Content-Length: 677 [10:31:17]Content-Type: application/json [10:31:17] [10:31:17]POST finish read [10:31:17]Found Content-Length = 677 [10:31:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:17]execute_script... [10:31:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:17]POST & json_proto [10:31:17]process_json_proto [10:31:17]json parsed OK: [10:31:17]protocol is kg_v1.0 [10:31:17]action value=close_receipt [10:31:17]process_action close_receipt [10:31:17]cmd_close_receipt [10:31:17]MH_GetDate [10:31:17]Write to MH i2c: F0 00 00 B1 01 A1 [10:31:17]Write i2c OK [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: F0 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: F0 09 00 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: F0 09 00 B1 01 00 76 16 1E 67 D5 8D 6C 64 ED [10:31:17]GetLastDocTimeStamp 1730024889 [10:31:17]current date 1730025078 [10:31:17]FM_GetShiftState [10:31:17]SAM_PROTO_GetShiftState [10:31:17]wFMCommunicate request_size=4 [10:31:17]MH_SAM_APDU [10:31:17]CAPDU: 80 13 01 00 [10:31:17]Write to MH i2c: E2 08 00 B2 01 80 13 01 00 00 00 00 00 30 [10:31:17]Write i2c OK [10:31:17]MH_I2C_Read... [10:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:17]Read from MH i2c: E2 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 0E 00 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 0E 00 B2 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A8 [10:31:17]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:31:17]wFMCommunicate OK [10:31:17]SAM_PROTO_GetShiftState done [10:31:17]FM_GetShiftState done [10:31:17]opened in 1729988959 [10:31:17]opened+sec_in_day 1730075359 [10:31:17]quantity*price = 50041 [10:31:17]sum+1 = 50042 [10:31:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 62 27.10.2024 10:31 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145639 ФПД: 146114793118489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103118&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145639&fm=146114793118489&tin=02508201610067®Number=0000000000091683&sum=50000 [10:31:18]StoreToDocumentArchive [10:31:18]shift 545 fd 145639 [10:31:18]save to /storage/0545/doc_00145639 [10:31:18]save last doc name /storage/0545/doc_00145639 to /storage/kkm_last_doc_name [10:31:18]save OK [10:31:18]Clear old archive folders... [10:31:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:18]tlvbuf is 003FD490 [10:31:18]SAM_PROTO_ClearQueue [10:31:18]wFMCommunicate request_size=4 [10:31:18]MH_SAM_APDU [10:31:18]CAPDU: 80 09 00 00 [10:31:18]Write to MH i2c: E2 08 00 BF 01 80 09 00 00 00 00 00 00 32 [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:18]Read from MH i2c: E2 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 BF 01 00 90 00 34 [10:31:18]RAPDU: 90 00 [10:31:18]wFMCommunicate OK [10:31:18]SAM_PROTO_ClearQueue done [10:31:18]KKMCreateOFDPacket [10:31:18]OFDProtocolAddRootSTLVToBuf [10:31:18]FM_MakeSignedData [10:31:18]FM_MakeSignedData [10:31:18]SAM_PROTO_SignData [10:31:18]wFMCommunicate request_size=4 [10:31:18]MH_SAM_APDU [10:31:18]CAPDU: 80 0D 01 02 [10:31:18]Write to MH i2c: E2 08 00 C0 01 80 0D 01 02 00 00 00 00 3A [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 C0 01 00 90 00 35 [10:31:19]RAPDU: 90 00 [10:31:19]wFMCommunicate OK [10:31:19]wFMCommunicate request_size=255 [10:31:19]MH_SAM_APDU [10:31: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 76 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E7 38 02 00 35 04 06 00 84 [10:31:19]Write to MH i2c: E2 02 01 C1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 76 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E7 38 02 00 35 04 06 00 84 00 00 DF [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 C1 01 00 90 00 36 [10:31:19]RAPDU: 90 00 [10:31:19]wFMCommunicate OK [10:31:19]wFMCommunicate request_size=10 [10:31:19]MH_SAM_APDU [10:31:19]CAPDU: 80 0D 02 02 05 E4 00 57 1B 19 [10:31:19]Write to MH i2c: E2 0D 00 C2 01 80 0D 02 02 05 00 E4 00 57 1B 19 00 00 B6 [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 03 00 C2 01 00 90 00 37 [10:31:19]RAPDU: 90 00 [10:31:19]wFMCommunicate OK [10:31:19]wFMCommunicate request_size=4 [10:31:19]MH_SAM_APDU [10:31:19]CAPDU: 80 0D 03 02 [10:31:19]Write to MH i2c: E2 08 00 C3 01 80 0D 03 02 00 00 00 00 3F [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 0B 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 0B 00 C3 01 00 DE 62 B4 B3 8C 9C DA 27 90 00 10 [10:31:19]RAPDU: DE 62 B4 B3 8C 9C DA 27 90 00 [10:31:19]wFMCommunicate OK [10:31:19]SAM_PROTO_SignData done [10:31:19]FM_MakeSignedData done [10:31:19]CreateOFDProtocolMessage [10:31:19]wFMCommunicate request_size=4 [10:31:19]MH_SAM_APDU [10:31:19]CAPDU: 80 11 00 00 [10:31:19]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 17 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 92 [10:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:31:19]wFMCommunicate OK [10:31:19]CreateOFDProtocolMessage done [10:31:19]OFDSenderStorePacket 145639 [10:31:19]StoreOFDPacket docnum=145639 [10:31:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 08 47 07 01 F6 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 76 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E7 38 02 00 35 04 06 00 84 E4 00 57 1B 19 DE 62 B4 B3 8C 9C DA 27 [10:31:19]CheckFolder [10:31:19]dirname=/storage/ofd_packets [10:31:19]CheckFolder done [10:31:19]ProducePacketName [10:31:19]name=ofd_packets/00145639 [10:31:19]NVStorageSaveData ofd_packets/00145639 [10:31:19]File name is /storage/ofd_packets/00145639 [10:31:19]Write 301 bytes [10:31:19]NVStorageSaveData done [10:31:19]OFDSenderStorePacket done [10:31:19]KKMCreateOFDPacket done [10:31:19]NVStorageSaveData kkm_last_timestamp [10:31:19]File name is /storage/kkm_last_timestamp [10:31:19]Write 4 bytes [10:31:19]NVStorageSaveData done [10:31:19]ExternCall_PrintAddStr [10:31:19]wPrintStart [10:31:19]Write to MH i2c: 01 00 00 C5 01 C6 [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 07 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 FF 0F DB [10:31:19]RasterBufferAndPrint [10:31:19]line Счет N : (1)160391 [10:31:19]line ИНН: 02508201610067 [10:31:19]line Контрольно-Кассовый Чек [10:31:19]line ПРОДАЖА [10:31:19]line ТРК (МРК, ГНК) : 42 [10:31:19]line Товар: 2710124130 [10:31:19]line Аи-92-К-2 [10:31:19]line 7.480 * 66.90 [10:31:19]line = 500.41 [10:31:19]line НДС 12% НСП 1% [10:31:19]line > о реализуемом товаре [10:31:19]line ОКРУГЛЕНИЕ: -0.41 [10:31:19]line ИТОГО: 500.00 [10:31:19]line Внесено: 500.00 [10:31:19]line СДАЧА: 0.00 [10:31:19]line НСП 1% : 4.43 [10:31:19]line НДС 12% : 53.14 [10:31:19]line Наличными: 500.00 [10:31:19]line Безнал.: 0.00 [10:31:19]line Место: АЗС № 126 "Партнер Нефть" [10:31:19]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:31:19]line СНО: Общий режим [10:31:19]line Чек 62 27.10.2024 10:31 [10:31:19]line Смена: 545 ФФД: 1.0 [10:31:19]line ЗНМ: 0300000085 [10:31:19]line РНМ: 0000000000091683 [10:31:19]line Версия ККМ: 001 [10:31:19]line ФМ: 0000000000871745 [10:31:19]line ФД: 145639 [10:31:19]line ФПД: 146114793118489 [10:31:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103118&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145639&fm=146114793118489&tin=02508201610067®Number=0000000000091683&sum=50000 [10:31:19]written 0, free lines is 4095 [10:31:19]OFD Sender: Processing packet 145639 [packets to send 206, broken 205] [10:31:19]ProducePacketName [10:31:19]name=ofd_packets/00145639 [10:31:19]OFD Sender: To server: pG, [10:31:19]CommunicateWithHost lk.salyk.kg:30040 [10:31:19]ConnectInit lk.salyk.kg [10:31:20]Write to MH i2c: 01 00 00 F0 01 F1 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: 01 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: 01 07 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 A4 0C A8 [10:31:20]RasterBufferAndPrint [10:31:20]line [10:31:20]line [10:31:20]line [10:31:20]line [10:31:20]line [10:31:20]written 0, free lines is 3242 [10:31:20]MH_Cut [10:31:20]Write to MH i2c: D1 01 00 F7 01 01 CA [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: D1 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: D1 01 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: D1 01 00 F7 01 00 C9 [10:31:20]Write to MH i2c: 01 00 00 F8 01 F9 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:21]*** Cut start [10:31:21]*** Partial cut [10:31:21]*** CUTSNS_PIN = 1 [10:31:21]*** CUTSNS_PIN = 0 [10:31:21]*** Brake cut motor [10:31:21]Read from MH i2c: 01 [10:31:21]MH_I2C_Read... [10:31:21]*** Stop cut motor [10:31:21]*** Cut end [10:31:21]Read from MH i2c: 01 07 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [10:31:21]process_action close_receipt done [10:31:21]requested_data is exist [10:31:21]produce_requested_data [10:31:21]requested_item fm.sn is exist - process it [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 11 00 00 [10:31:21]Write to MH i2c: E2 08 00 F9 01 80 11 00 00 00 00 00 00 74 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 17 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 17 00 F9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C7 [10:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:31:21]wFMCommunicate OK [10:31:21]requested_item fd.num is exist - process it [10:31:21]SAM_PROTO_GetFieldsCounters [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 13 00 00 [10:31:21]Write to MH i2c: E2 08 00 FA 01 80 13 00 00 00 00 00 00 77 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 62 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 62 00 FA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E7 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [10:31:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E7 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:21]wFMCommunicate OK [10:31:21]SAM_PROTO_GetFieldsCounters done [10:31:21]requested_item shift.num is exist - process it [10:31:21]requested_item shift.opened is exist - process it [10:31:21]req_shift_opened [10:31:21]FM_GetShiftState [10:31:21]SAM_PROTO_GetShiftState [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 13 01 00 [10:31:21]Write to MH i2c: E2 08 00 FB 01 80 13 01 00 00 00 00 00 79 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 0E 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 0E 00 FB 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F1 [10:31:21]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:31:21]wFMCommunicate OK [10:31:21]SAM_PROTO_GetShiftState done [10:31:21]FM_GetShiftState done [10:31:21]req_shift_opened done [10:31:21]requested_item shift.open_date is exist - process it [10:31:21]req_shift_open_date [10:31:21]req_shift_open_date done [10:31:21]produce_requested_data done [10:31:21]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145639,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:31:21]process_action_free close_receipt [10:31:21]json_value_free [10:31:21]json_value_free done [10:31:21]process_json_proto returns [10:31:21]Send response to host [10:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145639,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:31:21]free response buf [10:31:21]execute_script done [10:31:21]execute_script returns [10:31:21]free content buf [10:31:21]Sock 7.Close socket [10:31:21]Sock 7.Thread stoped [10:32:33]accept exits with 9 [10:32:33]New connection [10:32:33]New thread 3066740068 created [10:32:33]Thread 3066596708 joined [10:32:33]Waiting for new connection... [10:32:33] Sock 9.Parse request [10:32:33]Sock 9.Check first char [10:32:33]Sock 9.First char is OK [10:32:33]request: POST /json_proto HTTP/1.0 [10:32:33]Method: POST [10:32:33]URL: /json_proto [10:32:33]Method is POST - this is cgi request [10:32:33]url: /json_proto [10:32:33]query_string will be loaded in cgi processing [10:32:33]execute_cgi json_proto POST (null) [10:32:33]execute_cgi path=json_proto method=POST [10:32:33]POST find Content-Length [10:32:33]Host: 172.17.40.195:8080 [10:32:33]Content-Length: 678 [10:32:33]Content-Type: application/json [10:32:33] [10:32:33]POST finish read [10:32:33]Found Content-Length = 678 [10:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:33]execute_script... [10:32:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:33]POST & json_proto [10:32:33]process_json_proto [10:32:33]json parsed OK: [10:32:33]protocol is kg_v1.0 [10:32:33]action value=close_receipt [10:32:33]process_action close_receipt [10:32:33]cmd_close_receipt [10:32:33]MH_GetDate [10:32:33]Write to MH i2c: F0 00 00 FC 01 EC [10:32:33]Write i2c OK [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: F0 [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: F0 09 00 [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: F0 09 00 FC 01 00 C2 16 1E 67 D5 8D 6C 64 84 [10:32:33]GetLastDocTimeStamp 1730025078 [10:32:33]current date 1730025154 [10:32:33]FM_GetShiftState [10:32:33]SAM_PROTO_GetShiftState [10:32:33]wFMCommunicate request_size=4 [10:32:33]MH_SAM_APDU [10:32:33]CAPDU: 80 13 01 00 [10:32:33]Write to MH i2c: E2 08 00 FD 01 80 13 01 00 00 00 00 00 7B [10:32:33]Write i2c OK [10:32:33]MH_I2C_Read... [10:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:34]Read from MH i2c: E2 [10:32:34]MH_I2C_Read... [10:32:34]Read from MH i2c: E2 0E 00 [10:32:34]MH_I2C_Read... [10:32:34]Read from MH i2c: E2 0E 00 FD 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F3 [10:32:34]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:32:34]wFMCommunicate OK [10:32:34]SAM_PROTO_GetShiftState done [10:32:34]FM_GetShiftState done [10:32:34]opened in 1729988959 [10:32:34]opened+sec_in_day 1730075359 [10:32:34]quantity*price = 90047 [10:32:34]sum+1 = 90048 [10:32:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 63 27.10.2024 10:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145640 ФПД: 158888054455973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103235&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145640&fm=158888054455973&tin=02508201610067®Number=0000000000091683&sum=90000 [10:32:35]StoreToDocumentArchive [10:32:35]shift 545 fd 145640 [10:32:35]save to /storage/0545/doc_00145640 [10:32:35]save last doc name /storage/0545/doc_00145640 to /storage/kkm_last_doc_name [10:32:35]save OK [10:32:35]Clear old archive folders... [10:32:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:35]tlvbuf is 003FEDC0 [10:32:35]SAM_PROTO_ClearQueue [10:32:35]wFMCommunicate request_size=4 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 09 00 00 [10:32:35]Write to MH i2c: E2 08 00 0A 02 80 09 00 00 00 00 00 00 7E [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 0A 02 00 90 00 80 [10:32:35]RAPDU: 90 00 [10:32:35]wFMCommunicate OK [10:32:35]SAM_PROTO_ClearQueue done [10:32:35]KKMCreateOFDPacket [10:32:35]OFDProtocolAddRootSTLVToBuf [10:32:35]FM_MakeSignedData [10:32:35]FM_MakeSignedData [10:32:35]SAM_PROTO_SignData [10:32:35]wFMCommunicate request_size=4 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 0D 01 02 [10:32:35]Write to MH i2c: E2 08 00 0B 02 80 0D 01 02 00 00 00 00 86 [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 0B 02 00 90 00 81 [10:32:35]RAPDU: 90 00 [10:32:35]wFMCommunicate OK [10:32:35]wFMCommunicate request_size=255 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C3 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E8 38 02 00 35 04 06 00 90 [10:32:35]Write to MH i2c: E2 02 01 0C 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C3 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E8 38 02 00 35 04 06 00 90 00 00 A3 [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 0C 02 00 90 00 82 [10:32:35]RAPDU: 90 00 [10:32:35]wFMCommunicate OK [10:32:35]wFMCommunicate request_size=10 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 0D 02 02 05 82 02 0B 7E A5 [10:32:35]Write to MH i2c: E2 0D 00 0D 02 80 0D 02 02 05 00 82 02 0B 7E A5 00 00 45 [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 0D 02 00 90 00 83 [10:32:35]RAPDU: 90 00 [10:32:35]wFMCommunicate OK [10:32:35]wFMCommunicate request_size=4 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 0D 03 02 [10:32:35]Write to MH i2c: E2 08 00 0E 02 80 0D 03 02 00 00 00 00 8B [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 0B 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 0B 00 0E 02 00 79 F9 13 45 F8 14 72 6F 90 00 43 [10:32:35]RAPDU: 79 F9 13 45 F8 14 72 6F 90 00 [10:32:35]wFMCommunicate OK [10:32:35]SAM_PROTO_SignData done [10:32:35]FM_MakeSignedData done [10:32:35]CreateOFDProtocolMessage [10:32:35]wFMCommunicate request_size=4 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 11 00 00 [10:32:35]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 17 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 DE [10:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:32:35]wFMCommunicate OK [10:32:35]CreateOFDProtocolMessage done [10:32:35]OFDSenderStorePacket 145640 [10:32:35]StoreOFDPacket docnum=145640 [10:32:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 04 27 07 01 47 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C3 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E8 38 02 00 35 04 06 00 90 82 02 0B 7E A5 79 F9 13 45 F8 14 72 6F [10:32:35]CheckFolder [10:32:35]dirname=/storage/ofd_packets [10:32:35]CheckFolder done [10:32:35]ProducePacketName [10:32:35]name=ofd_packets/00145640 [10:32:35]NVStorageSaveData ofd_packets/00145640 [10:32:35]File name is /storage/ofd_packets/00145640 [10:32:35]Write 301 bytes [10:32:35]NVStorageSaveData done [10:32:35]OFDSenderStorePacket done [10:32:35]KKMCreateOFDPacket done [10:32:35]NVStorageSaveData kkm_last_timestamp [10:32:35]File name is /storage/kkm_last_timestamp [10:32:35]Write 4 bytes [10:32:35]NVStorageSaveData done [10:32:35]ExternCall_PrintAddStr [10:32:35]wPrintStart [10:32:35]Write to MH i2c: 01 00 00 10 02 12 [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: 01 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: 01 07 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: 01 07 00 10 02 00 00 00 00 00 FF 0F 27 [10:32:35]RasterBufferAndPrint [10:32:35]line Счет N : (1)160390 [10:32:35]line ИНН: 02508201610067 [10:32:35]line Контрольно-Кассовый Чек [10:32:35]line ПРОДАЖА [10:32:35]line ТРК (МРК, ГНК) : 62 [10:32:35]line Товар: 2710124130 [10:32:35]line Аи-92-К-2 [10:32:35]line 13.460 * 66.90 [10:32:35]line = 900.47 [10:32:35]line НДС 12% НСП 1% [10:32:35]line > о реализуемом товаре [10:32:35]line ОКРУГЛЕНИЕ: -0.47 [10:32:35]line ИТОГО: 900.00 [10:32:35]line Внесено: 900.00 [10:32:35]line СДАЧА: 0.00 [10:32:35]line НСП 1% : 7.97 [10:32:35]line НДС 12% : 95.62 [10:32:35]line Наличными: 900.00 [10:32:35]line Безнал.: 0.00 [10:32:35]line Место: АЗС № 126 "Партнер Нефть" [10:32:35]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:32:35]line СНО: Общий режим [10:32:35]line Чек 63 27.10.2024 10:32 [10:32:35]line Смена: 545 ФФД: 1.0 [10:32:35]line ЗНМ: 0300000085 [10:32:35]line РНМ: 0000000000091683 [10:32:35]line Версия ККМ: 001 [10:32:35]line ФМ: 0000000000871745 [10:32:35]line ФД: 145640 [10:32:35]line ФПД: 158888054455973 [10:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103235&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145640&fm=158888054455973&tin=02508201610067®Number=0000000000091683&sum=90000 [10:32:36]written 0, free lines is 4095 [10:32:36]Write to MH i2c: 01 00 00 3B 02 3D [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: 01 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: 01 07 00 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 A8 0C F8 [10:32:36]RasterBufferAndPrint [10:32:36]line [10:32:36]line [10:32:36]line [10:32:36]line [10:32:36]line [10:32:36]written 0, free lines is 3245 [10:32:36]MH_Cut [10:32:36]Write to MH i2c: D1 01 00 42 02 01 16 [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: D1 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: D1 01 00 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: D1 01 00 42 02 00 15 [10:32:36]Write to MH i2c: 01 00 00 43 02 45 [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:37]*** Cut start [10:32:37]*** Partial cut [10:32:37]*** CUTSNS_PIN = 1 [10:32:37]*** CUTSNS_PIN = 0 [10:32:37]*** Brake cut motor [10:32:37]Read from MH i2c: 01 [10:32:37]MH_I2C_Read... [10:32:37]*** Stop cut motor [10:32:37]*** Cut end [10:32:37]Read from MH i2c: 01 07 00 [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 FF 0F 5A [10:32:37]process_action close_receipt done [10:32:37]requested_data is exist [10:32:37]produce_requested_data [10:32:37]requested_item fm.sn is exist - process it [10:32:37]wFMCommunicate request_size=4 [10:32:37]MH_SAM_APDU [10:32:37]CAPDU: 80 11 00 00 [10:32:37]Write to MH i2c: E2 08 00 44 02 80 11 00 00 00 00 00 00 C0 [10:32:37]Write i2c OK [10:32:37]MH_I2C_Read... [10:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:37]Read from MH i2c: E2 [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: E2 17 00 [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: E2 17 00 44 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 13 [10:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:32:37]wFMCommunicate OK [10:32:37]requested_item fd.num is exist - process it [10:32:37]SAM_PROTO_GetFieldsCounters [10:32:37]wFMCommunicate request_size=4 [10:32:37]MH_SAM_APDU [10:32:37]CAPDU: 80 13 00 00 [10:32:37]Write to MH i2c: E2 08 00 45 02 80 13 00 00 00 00 00 00 C3 [10:32:37]Write i2c OK [10:32:37]MH_I2C_Read... [10:32:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:38]Read from MH i2c: E2 [10:32:38]MH_I2C_Read... [10:32:38]Read from MH i2c: E2 62 00 [10:32:38]MH_I2C_Read... [10:32:38]Read from MH i2c: E2 62 00 45 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E8 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [10:32:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E8 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:38]wFMCommunicate OK [10:32:38]SAM_PROTO_GetFieldsCounters done [10:32:38]requested_item shift.num is exist - process it [10:32:38]requested_item shift.opened is exist - process it [10:32:38]req_shift_opened [10:32:38]FM_GetShiftState [10:32:38]SAM_PROTO_GetShiftState [10:32:38]wFMCommunicate request_size=4 [10:32:38]MH_SAM_APDU [10:32:38]CAPDU: 80 13 01 00 [10:32:38]Write to MH i2c: E2 08 00 46 02 80 13 01 00 00 00 00 00 C5 [10:32:38]Write i2c OK [10:32:38]MH_I2C_Read... [10:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:38]Read from MH i2c: E2 [10:32:38]MH_I2C_Read... [10:32:38]Read from MH i2c: E2 0E 00 [10:32:38]MH_I2C_Read... [10:32:38]Read from MH i2c: E2 0E 00 46 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3D [10:32:38]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:32:38]wFMCommunicate OK [10:32:38]SAM_PROTO_GetShiftState done [10:32:38]FM_GetShiftState done [10:32:38]req_shift_opened done [10:32:38]requested_item shift.open_date is exist - process it [10:32:38]req_shift_open_date [10:32:38]req_shift_open_date done [10:32:38]produce_requested_data done [10:32:38]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145640,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:32:38]process_action_free close_receipt [10:32:38]json_value_free [10:32:38]json_value_free done [10:32:38]process_json_proto returns [10:32:38]Send response to host [10:32:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145640,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:32:38]free response buf [10:32:38]execute_script done [10:32:38]execute_script returns [10:32:38]free content buf [10:32:38]Sock 9.Close socket [10:32:38]Sock 9.Thread stoped [10:32:44]accept exits with 7 [10:32:44]New connection [10:32:44]New thread 3066596708 created [10:32:44]Thread 3066740068 joined [10:32:44]Waiting for new connection... [10:32:44] Sock 7.Parse request [10:32:44]Sock 7.Check first char [10:32:44]Sock 7.First char is OK [10:32:44]request: POST /json_proto HTTP/1.0 [10:32:44]Method: POST [10:32:44]URL: /json_proto [10:32:44]Method is POST - this is cgi request [10:32:44]url: /json_proto [10:32:44]query_string will be loaded in cgi processing [10:32:44]execute_cgi json_proto POST (null) [10:32:44]execute_cgi path=json_proto method=POST [10:32:44]POST find Content-Length [10:32:44]Host: 172.17.40.195:8080 [10:32:44]Content-Length: 677 [10:32:44]Content-Type: application/json [10:32:44] [10:32:44]POST finish read [10:32:44]Found Content-Length = 677 [10:32:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:44]execute_script... [10:32: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)160392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:44]POST & json_proto [10:32:44]process_json_proto [10:32:44]json parsed OK: [10:32:44]protocol is kg_v1.0 [10:32:44]action value=close_receipt [10:32:44]process_action close_receipt [10:32:44]cmd_close_receipt [10:32:44]MH_GetDate [10:32:44]Write to MH i2c: F0 00 00 47 02 38 [10:32:44]Write i2c OK [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: F0 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: F0 09 00 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: F0 09 00 47 02 00 CD 16 1E 67 D5 8D 6C 64 DB [10:32:44]GetLastDocTimeStamp 1730025155 [10:32:44]current date 1730025165 [10:32:44]FM_GetShiftState [10:32:44]SAM_PROTO_GetShiftState [10:32:44]wFMCommunicate request_size=4 [10:32:44]MH_SAM_APDU [10:32:44]CAPDU: 80 13 01 00 [10:32:44]Write to MH i2c: E2 08 00 48 02 80 13 01 00 00 00 00 00 C7 [10:32:44]Write i2c OK [10:32:44]MH_I2C_Read... [10:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:44]Read from MH i2c: E2 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: E2 0E 00 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: E2 0E 00 48 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3F [10:32:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:32:44]wFMCommunicate OK [10:32:44]SAM_PROTO_GetShiftState done [10:32:44]FM_GetShiftState done [10:32:44]opened in 1729988959 [10:32:44]opened+sec_in_day 1730075359 [10:32:44]quantity*price = 50041 [10:32:44]sum+1 = 50042 [10:32:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 64 27.10.2024 10:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145641 ФПД: 175307461657253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103245&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145641&fm=175307461657253&tin=02508201610067®Number=0000000000091683&sum=50000 [10:32:45]StoreToDocumentArchive [10:32:45]shift 545 fd 145641 [10:32:45]save to /storage/0545/doc_00145641 [10:32:45]save last doc name /storage/0545/doc_00145641 to /storage/kkm_last_doc_name [10:32:45]save OK [10:32:45]Clear old archive folders... [10:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:45]tlvbuf is 004257F0 [10:32:45]SAM_PROTO_ClearQueue [10:32:45]wFMCommunicate request_size=4 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 09 00 00 [10:32:45]Write to MH i2c: E2 08 00 55 02 80 09 00 00 00 00 00 00 C9 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 55 02 00 90 00 CB [10:32:45]RAPDU: 90 00 [10:32:45]wFMCommunicate OK [10:32:45]SAM_PROTO_ClearQueue done [10:32:45]KKMCreateOFDPacket [10:32:45]OFDProtocolAddRootSTLVToBuf [10:32:45]FM_MakeSignedData [10:32:45]FM_MakeSignedData [10:32:45]SAM_PROTO_SignData [10:32:45]wFMCommunicate request_size=4 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 0D 01 02 [10:32:45]Write to MH i2c: E2 08 00 56 02 80 0D 01 02 00 00 00 00 D1 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 56 02 00 90 00 CC [10:32:45]RAPDU: 90 00 [10:32:45]wFMCommunicate OK [10:32:45]wFMCommunicate request_size=255 [10:32:45]MH_SAM_APDU [10:32: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CD 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E9 38 02 00 35 04 06 00 9F [10:32:45]Write to MH i2c: E2 02 01 57 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CD 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E9 38 02 00 35 04 06 00 9F 00 00 EC [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 57 02 00 90 00 CD [10:32:45]RAPDU: 90 00 [10:32:45]wFMCommunicate OK [10:32:45]wFMCommunicate request_size=10 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 0D 02 02 05 70 F2 FA 82 A5 [10:32:45]Write to MH i2c: E2 0D 00 58 02 80 0D 02 02 05 00 70 F2 FA 82 A5 00 00 61 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 58 02 00 90 00 CE [10:32:45]RAPDU: 90 00 [10:32:45]wFMCommunicate OK [10:32:45]wFMCommunicate request_size=4 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 0D 03 02 [10:32:45]Write to MH i2c: E2 08 00 59 02 80 0D 03 02 00 00 00 00 D6 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 0B 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 0B 00 59 02 00 15 5B 7A 2A 24 BE 88 57 90 00 AC [10:32:45]RAPDU: 15 5B 7A 2A 24 BE 88 57 90 00 [10:32:45]wFMCommunicate OK [10:32:45]SAM_PROTO_SignData done [10:32:45]FM_MakeSignedData done [10:32:45]CreateOFDProtocolMessage [10:32:45]wFMCommunicate request_size=4 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 11 00 00 [10:32:45]Write to MH i2c: E2 08 00 5A 02 80 11 00 00 00 00 00 00 D6 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 17 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 17 00 5A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 29 [10:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:32:45]wFMCommunicate OK [10:32:45]CreateOFDProtocolMessage done [10:32:45]OFDSenderStorePacket 145641 [10:32:45]StoreOFDPacket docnum=145641 [10:32:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 88 F7 07 01 5D 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CD 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E9 38 02 00 35 04 06 00 9F 70 F2 FA 82 A5 15 5B 7A 2A 24 BE 88 57 [10:32:45]CheckFolder [10:32:45]dirname=/storage/ofd_packets [10:32:45]CheckFolder done [10:32:45]ProducePacketName [10:32:45]name=ofd_packets/00145641 [10:32:45]NVStorageSaveData ofd_packets/00145641 [10:32:45]File name is /storage/ofd_packets/00145641 [10:32:45]Write 301 bytes [10:32:45]NVStorageSaveData done [10:32:45]OFDSenderStorePacket done [10:32:45]KKMCreateOFDPacket done [10:32:45]NVStorageSaveData kkm_last_timestamp [10:32:45]File name is /storage/kkm_last_timestamp [10:32:45]Write 4 bytes [10:32:45]NVStorageSaveData done [10:32:45]ExternCall_PrintAddStr [10:32:45]wPrintStart [10:32:45]Write to MH i2c: 01 00 00 5B 02 5D [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: 01 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: 01 07 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: 01 07 00 5B 02 00 00 00 00 00 FF 0F 72 [10:32:45]RasterBufferAndPrint [10:32:45]line Счет N : (1)160392 [10:32:45]line ИНН: 02508201610067 [10:32:45]line Контрольно-Кассовый Чек [10:32:45]line ПРОДАЖА [10:32:45]line ТРК (МРК, ГНК) : 32 [10:32:45]line Товар: 2710124130 [10:32:45]line Аи-92-К-2 [10:32:45]line 7.480 * 66.90 [10:32:45]line = 500.41 [10:32:45]line НДС 12% НСП 1% [10:32:45]line > о реализуемом товаре [10:32:45]line ОКРУГЛЕНИЕ: -0.41 [10:32:45]line ИТОГО: 500.00 [10:32:45]line Внесено: 500.00 [10:32:45]line СДАЧА: 0.00 [10:32:45]line НСП 1% : 4.43 [10:32:45]line НДС 12% : 53.14 [10:32:45]line Наличными: 500.00 [10:32:45]line Безнал.: 0.00 [10:32:45]line Место: АЗС № 126 "Партнер Нефть" [10:32:45]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:32:45]line СНО: Общий режим [10:32:45]line Чек 64 27.10.2024 10:32 [10:32:45]line Смена: 545 ФФД: 1.0 [10:32:45]line ЗНМ: 0300000085 [10:32:45]line РНМ: 0000000000091683 [10:32:45]line Версия ККМ: 001 [10:32:45]line ФМ: 0000000000871745 [10:32:45]line ФД: 145641 [10:32:45]line ФПД: 175307461657253 [10:32:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103245&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145641&fm=175307461657253&tin=02508201610067®Number=0000000000091683&sum=50000 [10:32:45]written 0, free lines is 4095 [10:32:46]Write to MH i2c: 01 00 00 86 02 88 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: 01 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: 01 07 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 AD 0C 48 [10:32:46]RasterBufferAndPrint [10:32:46]line [10:32:46]line [10:32:46]line [10:32:46]line [10:32:46]line [10:32:46]written 0, free lines is 3252 [10:32:46]MH_Cut [10:32:46]Write to MH i2c: D1 01 00 8D 02 01 61 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: D1 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: D1 01 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: D1 01 00 8D 02 00 60 [10:32:46]Write to MH i2c: 01 00 00 8E 02 90 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:47]*** Cut start [10:32:47]*** Partial cut [10:32:47]*** CUTSNS_PIN = 1 [10:32:47]*** CUTSNS_PIN = 0 [10:32:47]*** Brake cut motor [10:32:47]Read from MH i2c: 01 [10:32:47]MH_I2C_Read... [10:32:47]*** Stop cut motor [10:32:47]*** Cut end [10:32:47]Read from MH i2c: 01 07 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 07 00 8E 02 00 00 00 00 00 FF 0F A5 [10:32:47]process_action close_receipt done [10:32:47]requested_data is exist [10:32:47]produce_requested_data [10:32:47]requested_item fm.sn is exist - process it [10:32:47]wFMCommunicate request_size=4 [10:32:47]MH_SAM_APDU [10:32:47]CAPDU: 80 11 00 00 [10:32:47]Write to MH i2c: E2 08 00 8F 02 80 11 00 00 00 00 00 00 0B [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:47]Read from MH i2c: E2 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 17 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 17 00 8F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 5E [10:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:32:47]wFMCommunicate OK [10:32:47]requested_item fd.num is exist - process it [10:32:47]SAM_PROTO_GetFieldsCounters [10:32:47]wFMCommunicate request_size=4 [10:32:47]MH_SAM_APDU [10:32:47]CAPDU: 80 13 00 00 [10:32:47]Write to MH i2c: E2 08 00 90 02 80 13 00 00 00 00 00 00 0E [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:48]Read from MH i2c: E2 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 62 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 62 00 90 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E9 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [10:32:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E9 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:48]wFMCommunicate OK [10:32:48]SAM_PROTO_GetFieldsCounters done [10:32:48]requested_item shift.num is exist - process it [10:32:48]requested_item shift.opened is exist - process it [10:32:48]req_shift_opened [10:32:48]FM_GetShiftState [10:32:48]SAM_PROTO_GetShiftState [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 13 01 00 [10:32:48]Write to MH i2c: E2 08 00 91 02 80 13 01 00 00 00 00 00 10 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:48]Read from MH i2c: E2 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 0E 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 0E 00 91 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 88 [10:32:48]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:32:48]wFMCommunicate OK [10:32:48]SAM_PROTO_GetShiftState done [10:32:48]FM_GetShiftState done [10:32:48]req_shift_opened done [10:32:48]requested_item shift.open_date is exist - process it [10:32:48]req_shift_open_date [10:32:48]req_shift_open_date done [10:32:48]produce_requested_data done [10:32:48]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145641,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:32:48]process_action_free close_receipt [10:32:48]json_value_free [10:32:48]json_value_free done [10:32:48]process_json_proto returns [10:32:48]Send response to host [10:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145641,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:32:48]free response buf [10:32:48]execute_script done [10:32:48]execute_script returns [10:32:48]free content buf [10:32:48]Sock 7.Close socket [10:32:48]Sock 7.Thread stoped [10:33:06]int [10:33:06]Write to MH i2c: 01 00 00 92 02 94 [10:33:06]*** FLAG_PRN_KEY set [10:33:06]Write i2c OK [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: 01 [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: 01 07 00 [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: 01 07 00 92 02 00 08 00 00 00 FF 0F B1 [10:33:06]state=0 [10:33:06]Key pressed [10:33:06]Feed [10:33:06]Write to MH i2c: D8 00 00 93 02 6C [10:33:06]Write i2c OK [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: D8 [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: D8 01 00 [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: D8 01 00 93 02 00 6D [10:33:06]int [10:33:06]Write to MH i2c: 01 00 00 94 02 96 [10:33:06]Write i2c OK [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: 01 [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: 01 07 00 [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: 01 07 00 94 02 00 48 00 00 00 3C 00 21 [10:33:06]state=2 [10:33:06]Key pressed [10:33:06]int [10:33:06]Write to MH i2c: 01 00 00 95 02 97 [10:33:06]*** FLAG_PRN_KEY reset [10:33:06]Write i2c OK [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: 01 [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: 01 07 00 [10:33:06]MH_I2C_Read... [10:33:06]Read from MH i2c: 01 07 00 95 02 00 00 00 00 00 F6 0F A3 [10:33:06]state=2 [10:33:06]Stop feed [10:33:33]ConnectInit Can't connect to host [10:33:33]CommunicateWithHost connect error [10:33:33]CommunicateWithHost err = -1 [10:33:33]OFD Sender: Server communicate error [10:33:33]OFD Sender: Processing packet 145639 [packets to send 208, broken 205] [10:33:33]ProducePacketName [10:33:33]name=ofd_packets/00145639 [10:33:33]OFD Sender: To server: pG, [10:33:33]CommunicateWithHost lk.salyk.kg:30040 [10:33:33]ConnectInit lk.salyk.kg [10:33:33]Connected sock=7 [10:33:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 08 47 07 01 F6 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 76 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E7 38 02 00 35 04 06 00 84 E4 00 57 1B 19 DE 62 B4 B3 8C 9C DA 27 [10:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 DC 2B 47 00 D1 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E7 38 02 00 F4 03 04 00 2A BC 1D 67 B6 04 01 00 00 55 5D CC B3 0A AA 67 B4 [10:33:34]CommunicateWithHost err = 0 [10:33:34]CheckOFDResponse [10:33:34]1017 (14) - 77093643461234 [10:33:34]1041 (16) - 0000000000871745 [10:33:34]1040 (4) - 145639 [10:33:34]1012 (4) - 27.10.2024 04:06 [10:33:34]1206 (1) - 0 [10:33:34]OFD Sender: Remove packet 145639 [10:33:34]ProducePacketName [10:33:34]name=ofd_packets/00145639 [10:33:34]NVStorageDeleteData [10:33:34]OFD Sender: Processing packet 145640 [packets to send 207, broken 205] [10:33:34]ProducePacketName [10:33:34]name=ofd_packets/00145640 [10:33:34]OFD Sender: To server: pG, [10:33:34]CommunicateWithHost lk.salyk.kg:30040 [10:33:34]ConnectInit lk.salyk.kg [10:33:34]Connected sock=7 [10:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 04 27 07 01 47 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C3 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E8 38 02 00 35 04 06 00 90 82 02 0B 7E A5 79 F9 13 45 F8 14 72 6F [10:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 FF 89 47 00 13 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E8 38 02 00 F4 03 04 00 2B BC 1D 67 B6 04 01 00 00 4C 1B F4 3C 9B E9 41 14 [10:33:35]CommunicateWithHost err = 0 [10:33:35]CheckOFDResponse [10:33:35]1017 (14) - 77093643461234 [10:33:35]1041 (16) - 0000000000871745 [10:33:35]1040 (4) - 145640 [10:33:35]1012 (4) - 27.10.2024 04:06 [10:33:35]1206 (1) - 0 [10:33:35]OFD Sender: Remove packet 145640 [10:33:35]ProducePacketName [10:33:35]name=ofd_packets/00145640 [10:33:35]NVStorageDeleteData [10:33:35]OFD Sender: Processing packet 145641 [packets to send 206, broken 205] [10:33:35]ProducePacketName [10:33:35]name=ofd_packets/00145641 [10:33:35]OFD Sender: To server: pG, [10:33:35]CommunicateWithHost lk.salyk.kg:30040 [10:33:35]ConnectInit lk.salyk.kg [10:33:35]Connected sock=7 [10:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 88 F7 07 01 5D 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CD 16 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E9 38 02 00 35 04 06 00 9F 70 F2 FA 82 A5 15 5B 7A 2A 24 BE 88 57 [10:33:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D2 A2 47 00 E6 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E9 38 02 00 F4 03 04 00 2C BC 1D 67 B6 04 01 00 00 E4 97 3F 9F 24 44 E8 A1 [10:33:36]CommunicateWithHost err = 0 [10:33:36]CheckOFDResponse [10:33:36]1017 (14) - 77093643461234 [10:33:36]1041 (16) - 0000000000871745 [10:33:36]1040 (4) - 145641 [10:33:36]1012 (4) - 27.10.2024 04:06 [10:33:36]1206 (1) - 0 [10:33:36]OFD Sender: Remove packet 145641 [10:33:36]ProducePacketName [10:33:36]name=ofd_packets/00145641 [10:33:36]NVStorageDeleteData [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:39]accept exits with 9 [10:34:39]New connection [10:34:39]New thread 3066740068 created [10:34:39]Thread 3066596708 joined [10:34:39]Waiting for new connection... [10:34:39] Sock 9.Parse request [10:34:39]Sock 9.Check first char [10:34:39]Sock 9.First char is OK [10:34:39]request: POST /json_proto HTTP/1.0 [10:34:39]Method: POST [10:34:39]URL: /json_proto [10:34:39]Method is POST - this is cgi request [10:34:39]url: /json_proto [10:34:39]query_string will be loaded in cgi processing [10:34:39]execute_cgi json_proto POST (null) [10:34:39]execute_cgi path=json_proto method=POST [10:34:39]POST find Content-Length [10:34:39]Host: 172.17.40.195:8080 [10:34:39]Content-Length: 682 [10:34:39]Content-Type: application/json [10:34:39] [10:34:39]POST finish read [10:34:39]Found Content-Length = 682 [10:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:39]execute_script... [10:34: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)160393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:39]POST & json_proto [10:34:39]process_json_proto [10:34:39]json parsed OK: [10:34:39]protocol is kg_v1.0 [10:34:39]action value=close_receipt [10:34:39]process_action close_receipt [10:34:39]cmd_close_receipt [10:34:39]MH_GetDate [10:34:39]Write to MH i2c: F0 00 00 96 02 87 [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 09 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 09 00 96 02 00 40 17 1E 67 D5 8D 6C 64 9E [10:34:39]GetLastDocTimeStamp 1730025165 [10:34:39]current date 1730025280 [10:34:39]FM_GetShiftState [10:34:39]SAM_PROTO_GetShiftState [10:34:39]wFMCommunicate request_size=4 [10:34:39]MH_SAM_APDU [10:34:39]CAPDU: 80 13 01 00 [10:34:39]Write to MH i2c: E2 08 00 97 02 80 13 01 00 00 00 00 00 16 [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:39]Read from MH i2c: E2 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 0E 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 0E 00 97 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8E [10:34:39]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:34:39]wFMCommunicate OK [10:34:39]SAM_PROTO_GetShiftState done [10:34:39]FM_GetShiftState done [10:34:39]opened in 1729988959 [10:34:39]opened+sec_in_day 1730075359 [10:34:39]quantity*price = 100015 [10:34:39]sum+1 = 100017 [10:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 65 27.10.2024 10:34 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145642 ФПД: 249497581981721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103440&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145642&fm=249497581981721&tin=02508201610067®Number=0000000000091683&sum=100000 [10:34:40]StoreToDocumentArchive [10:34:40]shift 545 fd 145642 [10:34:40]save to /storage/0545/doc_00145642 [10:34:40]save last doc name /storage/0545/doc_00145642 to /storage/kkm_last_doc_name [10:34:40]save OK [10:34:40]Clear old archive folders... [10:34:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:40]tlvbuf is B6EA66B0 [10:34:40]SAM_PROTO_ClearQueue [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 09 00 00 [10:34:40]Write to MH i2c: E2 08 00 A4 02 80 09 00 00 00 00 00 00 18 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 A4 02 00 90 00 1A [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]SAM_PROTO_ClearQueue done [10:34:40]KKMCreateOFDPacket [10:34:40]OFDProtocolAddRootSTLVToBuf [10:34:40]FM_MakeSignedData [10:34:40]FM_MakeSignedData [10:34:40]SAM_PROTO_SignData [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 0D 01 02 [10:34:40]Write to MH i2c: E2 08 00 A5 02 80 0D 01 02 00 00 00 00 20 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 A5 02 00 90 00 1B [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]wFMCommunicate request_size=255 [10:34:40]MH_SAM_APDU [10:34: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 40 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EA 38 02 00 35 04 06 00 E2 [10:34:40]Write to MH i2c: E2 02 01 A6 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 40 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EA 38 02 00 35 04 06 00 E2 00 00 EE [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 A6 02 00 90 00 1C [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]wFMCommunicate request_size=10 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 0D 02 02 05 EA AE BF 10 19 [10:34:40]Write to MH i2c: E2 0D 00 A7 02 80 0D 02 02 05 00 EA AE BF 10 19 00 00 AD [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 A7 02 00 90 00 1D [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 0D 03 02 [10:34:40]Write to MH i2c: E2 08 00 A8 02 80 0D 03 02 00 00 00 00 25 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0B 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0B 00 A8 02 00 11 E0 DD CE 7A E3 5F E0 90 00 5E [10:34:40]RAPDU: 11 E0 DD CE 7A E3 5F E0 90 00 [10:34:40]wFMCommunicate OK [10:34:40]SAM_PROTO_SignData done [10:34:40]FM_MakeSignedData done [10:34:40]CreateOFDProtocolMessage [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 11 00 00 [10:34:40]Write to MH i2c: E2 08 00 A9 02 80 11 00 00 00 00 00 00 25 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:41]Read from MH i2c: E2 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 17 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 17 00 A9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 78 [10:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:34:41]wFMCommunicate OK [10:34:41]CreateOFDProtocolMessage done [10:34:41]OFDSenderStorePacket 145642 [10:34:41]StoreOFDPacket docnum=145642 [10:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 13 72 07 01 28 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 40 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EA 38 02 00 35 04 06 00 E2 EA AE BF 10 19 11 E0 DD CE 7A E3 5F E0 [10:34:41]CheckFolder [10:34:41]dirname=/storage/ofd_packets [10:34:41]CheckFolder done [10:34:41]ProducePacketName [10:34:41]name=ofd_packets/00145642 [10:34:41]NVStorageSaveData ofd_packets/00145642 [10:34:41]File name is /storage/ofd_packets/00145642 [10:34:41]Write 301 bytes [10:34:41]NVStorageSaveData done [10:34:41]OFDSenderStorePacket done [10:34:41]KKMCreateOFDPacket done [10:34:41]NVStorageSaveData kkm_last_timestamp [10:34:41]File name is /storage/kkm_last_timestamp [10:34:41]Write 4 bytes [10:34:41]NVStorageSaveData done [10:34:41]ExternCall_PrintAddStr [10:34:41]wPrintStart [10:34:41]Write to MH i2c: 01 00 00 AA 02 AC [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 07 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 07 00 AA 02 00 00 00 00 00 FF 0F C1 [10:34:41]RasterBufferAndPrint [10:34:41]line Счет N : (1)160393 [10:34:41]line ИНН: 02508201610067 [10:34:41]line Контрольно-Кассовый Чек [10:34:41]line ПРОДАЖА [10:34:41]line ТРК (МРК, ГНК) : 52 [10:34:41]line Товар: 2710124130 [10:34:41]line Аи-92-К-2 [10:34:41]line 14.950 * 66.90 [10:34:41]line = 1000.16 [10:34:41]line НДС 12% НСП 1% [10:34:41]line > о реализуемом товаре [10:34:41]line ОКРУГЛЕНИЕ: -0.16 [10:34:41]line ИТОГО: 1000.00 [10:34:41]line Внесено: 1000.00 [10:34:41]line СДАЧА: 0.00 [10:34:41]line НСП 1% : 8.85 [10:34:41]line НДС 12% : 106.21 [10:34:41]line Наличными: 1000.00 [10:34:41]line Безнал.: 0.00 [10:34:41]line Место: АЗС № 126 "Партнер Нефть" [10:34:41]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:34:41]line СНО: Общий режим [10:34:41]line Чек 65 27.10.2024 10:34 [10:34:41]line Смена: 545 ФФД: 1.0 [10:34:41]line ЗНМ: 0300000085 [10:34:41]line РНМ: 0000000000091683 [10:34:41]line Версия ККМ: 001 [10:34:41]line ФМ: 0000000000871745 [10:34:41]line ФД: 145642 [10:34:41]line ФПД: 249497581981721 [10:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103440&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145642&fm=249497581981721&tin=02508201610067®Number=0000000000091683&sum=100000 [10:34:41]OFD Sender: Processing packet 145642 [packets to send 206, broken 205] [10:34:41]ProducePacketName [10:34:41]name=ofd_packets/00145642 [10:34:41]OFD Sender: To server: pG, [10:34:41]CommunicateWithHost lk.salyk.kg:30040 [10:34:41]ConnectInit lk.salyk.kg [10:34:41]written 0, free lines is 4095 [10:34:41]Connected sock=10 [10:34:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 13 72 07 01 28 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 40 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EA 38 02 00 35 04 06 00 E2 EA AE BF 10 19 11 E0 DD CE 7A E3 5F E0 [10:34:41]Write to MH i2c: 01 00 00 D5 02 D7 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 07 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 07 00 D5 02 00 00 00 00 00 B9 0C A3 [10:34:41]RasterBufferAndPrint [10:34:41]line [10:34:41]line [10:34:41]line [10:34:41]line [10:34:41]line [10:34:41]written 0, free lines is 3262 [10:34:41]MH_Cut [10:34:41]Write to MH i2c: D1 01 00 DC 02 01 B0 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: D1 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: D1 01 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: D1 01 00 DC 02 00 AF [10:34:41]Write to MH i2c: 01 00 00 DD 02 DF [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 4F 74 47 00 B6 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EA 38 02 00 F4 03 04 00 6E BC 1D 67 B6 04 01 00 00 58 72 3E 78 2D 70 F4 F2 [10:34:41]CommunicateWithHost err = 0 [10:34:41]CheckOFDResponse [10:34:41]1017 (14) - 77093643461234 [10:34:41]1041 (16) - 0000000000871745 [10:34:41]1040 (4) - 145642 [10:34:41]1012 (4) - 27.10.2024 04:07 [10:34:41]1206 (1) - 0 [10:34:41]OFD Sender: Remove packet 145642 [10:34:41]ProducePacketName [10:34:41]name=ofd_packets/00145642 [10:34:41]NVStorageDeleteData [10:34:42]OFD Sender: No OFD packet to send [10:34:42]*** Cut start [10:34:42]*** Partial cut [10:34:42]*** CUTSNS_PIN = 1 [10:34:42]*** CUTSNS_PIN = 0 [10:34:42]*** Brake cut motor [10:34:43]Read from MH i2c: 01 [10:34:43]MH_I2C_Read... [10:34:43]*** Stop cut motor [10:34:43]*** Cut end [10:34:43]Read from MH i2c: 01 07 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: 01 07 00 DD 02 00 00 00 00 00 FF 0F F4 [10:34:43]process_action close_receipt done [10:34:43]requested_data is exist [10:34:43]produce_requested_data [10:34:43]requested_item fm.sn is exist - process it [10:34:43]wFMCommunicate request_size=4 [10:34:43]MH_SAM_APDU [10:34:43]CAPDU: 80 11 00 00 [10:34:43]Write to MH i2c: E2 08 00 DE 02 80 11 00 00 00 00 00 00 5A [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:43]Read from MH i2c: E2 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 17 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 17 00 DE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AD [10:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:34:43]wFMCommunicate OK [10:34:43]requested_item fd.num is exist - process it [10:34:43]SAM_PROTO_GetFieldsCounters [10:34:43]wFMCommunicate request_size=4 [10:34:43]MH_SAM_APDU [10:34:43]CAPDU: 80 13 00 00 [10:34:43]Write to MH i2c: E2 08 00 DF 02 80 13 00 00 00 00 00 00 5D [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:43]Read from MH i2c: E2 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 62 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 62 00 DF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 EA 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [10:34:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 EA 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:43]wFMCommunicate OK [10:34:43]SAM_PROTO_GetFieldsCounters done [10:34:43]requested_item shift.num is exist - process it [10:34:43]requested_item shift.opened is exist - process it [10:34:43]req_shift_opened [10:34:43]FM_GetShiftState [10:34:43]SAM_PROTO_GetShiftState [10:34:43]wFMCommunicate request_size=4 [10:34:43]MH_SAM_APDU [10:34:43]CAPDU: 80 13 01 00 [10:34:43]Write to MH i2c: E2 08 00 E0 02 80 13 01 00 00 00 00 00 5F [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:43]Read from MH i2c: E2 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 0E 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 0E 00 E0 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D7 [10:34:43]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:34:43]wFMCommunicate OK [10:34:43]SAM_PROTO_GetShiftState done [10:34:43]FM_GetShiftState done [10:34:43]req_shift_opened done [10:34:43]requested_item shift.open_date is exist - process it [10:34:43]req_shift_open_date [10:34:43]req_shift_open_date done [10:34:43]produce_requested_data done [10:34:43]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145642,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:34:43]process_action_free close_receipt [10:34:43]json_value_free [10:34:43]json_value_free done [10:34:43]process_json_proto returns [10:34:43]Send response to host [10:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145642,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:34:43]free response buf [10:34:43]execute_script done [10:34:43]execute_script returns [10:34:43]free content buf [10:34:43]Sock 9.Close socket [10:34:43]Sock 9.Thread stoped [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:03]accept exits with 7 [10:36:03]New connection [10:36:03]New thread 3066596708 created [10:36:03]Thread 3066740068 joined [10:36:03]Waiting for new connection... [10:36:03] Sock 7.Parse request [10:36:03]Sock 7.Check first char [10:36:03]Sock 7.First char is OK [10:36:03]request: POST /json_proto HTTP/1.0 [10:36:03]Method: POST [10:36:03]URL: /json_proto [10:36:03]Method is POST - this is cgi request [10:36:03]url: /json_proto [10:36:03]query_string will be loaded in cgi processing [10:36:03]execute_cgi json_proto POST (null) [10:36:03]execute_cgi path=json_proto method=POST [10:36:03]POST find Content-Length [10:36:03]Host: 172.17.40.195:8080 [10:36:03]Content-Length: 754 [10:36:03]Content-Type: application/json [10:36:03] [10:36:03]POST finish read [10:36:03]Found Content-Length = 754 [10:36:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159661", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:03]execute_script... [10:36: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)160394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159661", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:03]POST & json_proto [10:36:03]process_json_proto [10:36:03]json parsed OK: [10:36:03]protocol is kg_v1.0 [10:36:03]action value=close_receipt [10:36:03]process_action close_receipt [10:36:03]cmd_close_receipt [10:36:03]MH_GetDate [10:36:03]Write to MH i2c: F0 00 00 E1 02 D2 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: F0 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: F0 09 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: F0 09 00 E1 02 00 94 17 1E 67 D5 8D 6C 64 3D [10:36:03]GetLastDocTimeStamp 1730025280 [10:36:03]current date 1730025364 [10:36:03]FM_GetShiftState [10:36:03]SAM_PROTO_GetShiftState [10:36:03]wFMCommunicate request_size=4 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 13 01 00 [10:36:03]Write to MH i2c: E2 08 00 E2 02 80 13 01 00 00 00 00 00 61 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 0E 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 0E 00 E2 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D9 [10:36:03]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:36:03]wFMCommunicate OK [10:36:03]SAM_PROTO_GetShiftState done [10:36:03]FM_GetShiftState done [10:36:03]opened in 1729988959 [10:36:03]opened+sec_in_day 1730075359 [10:36:03]quantity*price = 0 [10:36:03]sum+1 = 1 [10:36:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 66 27.10.2024 10:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: ТК ГПНА Online 30159661 ФМ: 0000000000871745 ФД: 145643 ФПД: 96219589234820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103604&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145643&fm=96219589234820&tin=02508201610067®Number=0000000000091683&sum=0 [10:36:04]StoreToDocumentArchive [10:36:04]shift 545 fd 145643 [10:36:04]save to /storage/0545/doc_00145643 [10:36:04]save last doc name /storage/0545/doc_00145643 to /storage/kkm_last_doc_name [10:36:04]save OK [10:36:04]Clear old archive folders... [10:36:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:04]tlvbuf is 00434990 [10:36:04]SAM_PROTO_ClearQueue [10:36:04]wFMCommunicate request_size=4 [10:36:04]MH_SAM_APDU [10:36:04]CAPDU: 80 09 00 00 [10:36:04]Write to MH i2c: E2 08 00 EF 02 80 09 00 00 00 00 00 00 63 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:04]Read from MH i2c: E2 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 EF 02 00 90 00 65 [10:36:04]RAPDU: 90 00 [10:36:04]wFMCommunicate OK [10:36:04]SAM_PROTO_ClearQueue done [10:36:04]KKMCreateOFDPacket [10:36:04]OFDProtocolAddRootSTLVToBuf [10:36:04]FM_MakeSignedData [10:36:04]FM_MakeSignedData [10:36:04]SAM_PROTO_SignData [10:36:04]wFMCommunicate request_size=4 [10:36:04]MH_SAM_APDU [10:36:04]CAPDU: 80 0D 01 02 [10:36:04]Write to MH i2c: E2 08 00 F0 02 80 0D 01 02 00 00 00 00 6B [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:04]Read from MH i2c: E2 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 F0 02 00 90 00 66 [10:36:04]RAPDU: 90 00 [10:36:04]wFMCommunicate OK [10:36:04]wFMCommunicate request_size=255 [10:36:04]MH_SAM_APDU [10:36: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 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 94 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EB 38 02 00 35 04 06 00 57 [10:36:04]Write to MH i2c: E2 02 01 F1 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 94 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EB 38 02 00 35 04 06 00 57 00 00 2A [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:04]Read from MH i2c: E2 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 F1 02 00 90 00 67 [10:36:04]RAPDU: 90 00 [10:36:04]wFMCommunicate OK [10:36:04]wFMCommunicate request_size=10 [10:36:04]MH_SAM_APDU [10:36:04]CAPDU: 80 0D 02 02 05 82 DE 6F D0 84 [10:36:04]Write to MH i2c: E2 0D 00 F2 02 80 0D 02 02 05 00 82 DE 6F D0 84 00 00 9B [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:04]Read from MH i2c: E2 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 F2 02 00 90 00 68 [10:36:04]RAPDU: 90 00 [10:36:04]wFMCommunicate OK [10:36:04]wFMCommunicate request_size=4 [10:36:04]MH_SAM_APDU [10:36:04]CAPDU: 80 0D 03 02 [10:36:04]Write to MH i2c: E2 08 00 F3 02 80 0D 03 02 00 00 00 00 70 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:04]Read from MH i2c: E2 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 0B 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 0B 00 F3 02 00 5F 90 EE C7 94 C0 1C 16 90 00 9B [10:36:04]RAPDU: 5F 90 EE C7 94 C0 1C 16 90 00 [10:36:04]wFMCommunicate OK [10:36:04]SAM_PROTO_SignData done [10:36:04]FM_MakeSignedData done [10:36:04]CreateOFDProtocolMessage [10:36:04]wFMCommunicate request_size=4 [10:36:04]MH_SAM_APDU [10:36:04]CAPDU: 80 11 00 00 [10:36:04]Write to MH i2c: E2 08 00 F4 02 80 11 00 00 00 00 00 00 70 [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 17 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 17 00 F4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C3 [10:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:36:05]wFMCommunicate OK [10:36:05]CreateOFDProtocolMessage done [10:36:05]OFDSenderStorePacket 145643 [10:36:05]StoreOFDPacket docnum=145643 [10:36:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 B5 9F 07 01 66 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 94 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EB 38 02 00 35 04 06 00 57 82 DE 6F D0 84 5F 90 EE C7 94 C0 1C 16 [10:36:05]CheckFolder [10:36:05]dirname=/storage/ofd_packets [10:36:05]CheckFolder done [10:36:05]ProducePacketName [10:36:05]name=ofd_packets/00145643 [10:36:05]NVStorageSaveData ofd_packets/00145643 [10:36:05]File name is /storage/ofd_packets/00145643 [10:36:05]Write 301 bytes [10:36:05]NVStorageSaveData done [10:36:05]OFDSenderStorePacket done [10:36:05]KKMCreateOFDPacket done [10:36:05]NVStorageSaveData kkm_last_timestamp [10:36:05]File name is /storage/kkm_last_timestamp [10:36:05]Write 4 bytes [10:36:05]NVStorageSaveData done [10:36:05]ExternCall_PrintAddStr [10:36:05]wPrintStart [10:36:05]Write to MH i2c: 01 00 00 F5 02 F7 [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 07 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 07 00 F5 02 00 00 00 00 00 FF 0F 0C [10:36:05]RasterBufferAndPrint [10:36:05]line Счет N : (1)160394 [10:36:05]line ИНН: 02508201610067 [10:36:05]line Контрольно-Кассовый Чек [10:36:05]line ПРОДАЖА [10:36:05]line ТРК (МРК, ГНК) : 42 [10:36:05]line Товар: 2710124130 [10:36:05]line Аи-92-К-2 [10:36:05]line 30.000 * 0.00 [10:36:05]line = 0.00 [10:36:05]line НДС 12% НСП 1% [10:36:05]line > о реализуемом товаре [10:36:05]line ИТОГО: 0.00 [10:36:05]line НСП 1% : 0.00 [10:36:05]line НДС 12% : 0.00 [10:36:05]line Наличными: 0.00 [10:36:05]line Безнал.: 0.00 [10:36:05]line Место: АЗС № 126 "Партнер Нефть" [10:36:05]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:36:05]line СНО: Общий режим [10:36:05]line Чек 66 27.10.2024 10:36 [10:36:05]line Смена: 545 ФФД: 1.0 [10:36:05]line ЗНМ: 0300000085 [10:36:05]line РНМ: 0000000000091683 [10:36:05]line Версия ККМ: 001 [10:36:05]line Талоны: ТК ГПНА Online [10:36:05]line 30159661 [10:36:05]line ФМ: 0000000000871745 [10:36:05]line ФД: 145643 [10:36:05]line ФПД: 96219589234820 [10:36:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103604&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145643&fm=96219589234820&tin=02508201610067®Number=0000000000091683&sum=0 [10:36:05]written 0, free lines is 4095 [10:36:05]OFD Sender: Processing packet 145643 [packets to send 206, broken 205] [10:36:05]ProducePacketName [10:36:05]name=ofd_packets/00145643 [10:36:05]OFD Sender: To server: pG, [10:36:05]CommunicateWithHost lk.salyk.kg:30040 [10:36:05]ConnectInit lk.salyk.kg [10:36:05]Write to MH i2c: 01 00 00 1F 03 22 [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 07 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 07 00 1F 03 00 00 00 00 00 B9 0C EE [10:36:05]RasterBufferAndPrint [10:36:05]line [10:36:05]line [10:36:05]line [10:36:05]line [10:36:05]line [10:36:05]written 0, free lines is 3261 [10:36:05]MH_Cut [10:36:05]Write to MH i2c: D1 01 00 26 03 01 FB [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: D1 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: D1 01 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: D1 01 00 26 03 00 FA [10:36:05]Write to MH i2c: 01 00 00 27 03 2A [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]Connected sock=10 [10:36:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 B5 9F 07 01 66 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 94 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EB 38 02 00 35 04 06 00 57 82 DE 6F D0 84 5F 90 EE C7 94 C0 1C 16 [10:36:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 1D 0D 47 00 69 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EB 38 02 00 F4 03 04 00 C2 BC 1D 67 B6 04 01 00 00 A7 D8 AE 1F 87 58 56 AA [10:36:05]CommunicateWithHost err = 0 [10:36:05]CheckOFDResponse [10:36:05]1017 (14) - 77093643461234 [10:36:05]1041 (16) - 0000000000871745 [10:36:05]1040 (4) - 145643 [10:36:05]1012 (4) - 27.10.2024 04:08 [10:36:05]1206 (1) - 0 [10:36:05]OFD Sender: Remove packet 145643 [10:36:05]ProducePacketName [10:36:05]name=ofd_packets/00145643 [10:36:05]NVStorageDeleteData [10:36:06]*** Cut start [10:36:06]*** Partial cut [10:36:06]*** CUTSNS_PIN = 1 [10:36:06]*** CUTSNS_PIN = 0 [10:36:06]OFD Sender: No OFD packet to send [10:36:06]*** Brake cut motor [10:36:06]Read from MH i2c: 01 [10:36:06]MH_I2C_Read... [10:36:06]*** Stop cut motor [10:36:06]*** Cut end [10:36:06]Read from MH i2c: 01 07 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: 01 07 00 27 03 00 00 00 00 00 FF 0F 3F [10:36:06]process_action close_receipt done [10:36:06]requested_data is exist [10:36:06]produce_requested_data [10:36:06]requested_item fm.sn is exist - process it [10:36:06]wFMCommunicate request_size=4 [10:36:06]MH_SAM_APDU [10:36:06]CAPDU: 80 11 00 00 [10:36:06]Write to MH i2c: E2 08 00 28 03 80 11 00 00 00 00 00 00 A5 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:06]Read from MH i2c: E2 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 17 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 17 00 28 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F8 [10:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:36:06]wFMCommunicate OK [10:36:06]requested_item fd.num is exist - process it [10:36:06]SAM_PROTO_GetFieldsCounters [10:36:06]wFMCommunicate request_size=4 [10:36:06]MH_SAM_APDU [10:36:06]CAPDU: 80 13 00 00 [10:36:06]Write to MH i2c: E2 08 00 29 03 80 13 00 00 00 00 00 00 A8 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:07]Read from MH i2c: E2 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 62 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 62 00 29 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 EB 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [10:36:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 EB 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:07]wFMCommunicate OK [10:36:07]SAM_PROTO_GetFieldsCounters done [10:36:07]requested_item shift.num is exist - process it [10:36:07]requested_item shift.opened is exist - process it [10:36:07]req_shift_opened [10:36:07]FM_GetShiftState [10:36:07]SAM_PROTO_GetShiftState [10:36:07]wFMCommunicate request_size=4 [10:36:07]MH_SAM_APDU [10:36:07]CAPDU: 80 13 01 00 [10:36:07]Write to MH i2c: E2 08 00 2A 03 80 13 01 00 00 00 00 00 AA [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:07]Read from MH i2c: E2 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 0E 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 0E 00 2A 03 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 22 [10:36:07]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:36:07]wFMCommunicate OK [10:36:07]SAM_PROTO_GetShiftState done [10:36:07]FM_GetShiftState done [10:36:07]req_shift_opened done [10:36:07]requested_item shift.open_date is exist - process it [10:36:07]req_shift_open_date [10:36:07]req_shift_open_date done [10:36:07]produce_requested_data done [10:36:07]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145643,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:36:07]process_action_free close_receipt [10:36:07]json_value_free [10:36:07]json_value_free done [10:36:07]process_json_proto returns [10:36:07]Send response to host [10:36:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145643,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:36:07]free response buf [10:36:07]execute_script done [10:36:07]execute_script returns [10:36:07]free content buf [10:36:07]Sock 7.Close socket [10:36:07]Sock 7.Thread stoped [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:23]accept exits with 9 [10:36:23]New connection [10:36:23]New thread 3066740068 created [10:36:23]Thread 3066596708 joined [10:36:23]Waiting for new connection... [10:36:23] Sock 9.Parse request [10:36:23]Sock 9.Check first char [10:36:23]Sock 9.First char is OK [10:36:23]request: POST /json_proto HTTP/1.0 [10:36:23]Method: POST [10:36:23]URL: /json_proto [10:36:23]Method is POST - this is cgi request [10:36:23]url: /json_proto [10:36:23]query_string will be loaded in cgi processing [10:36:23]execute_cgi json_proto POST (null) [10:36:23]execute_cgi path=json_proto method=POST [10:36:23]POST find Content-Length [10:36:23]Host: 172.17.40.195:8080 [10:36:23]Content-Length: 682 [10:36:23]Content-Type: application/json [10:36:23] [10:36:23]POST finish read [10:36:23]Found Content-Length = 682 [10:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:23]execute_script... [10:36: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)160395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:23]POST & json_proto [10:36:23]process_json_proto [10:36:23]json parsed OK: [10:36:23]protocol is kg_v1.0 [10:36:23]action value=close_receipt [10:36:23]process_action close_receipt [10:36:23]cmd_close_receipt [10:36:23]MH_GetDate [10:36:23]Write to MH i2c: F0 00 00 2B 03 1D [10:36:23]Write i2c OK [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: F0 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: F0 09 00 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: F0 09 00 2B 03 00 A8 17 1E 67 D5 8D 6C 64 9C [10:36:23]GetLastDocTimeStamp 1730025364 [10:36:23]current date 1730025384 [10:36:23]FM_GetShiftState [10:36:23]SAM_PROTO_GetShiftState [10:36:23]wFMCommunicate request_size=4 [10:36:23]MH_SAM_APDU [10:36:23]CAPDU: 80 13 01 00 [10:36:23]Write to MH i2c: E2 08 00 2C 03 80 13 01 00 00 00 00 00 AC [10:36:23]Write i2c OK [10:36:23]MH_I2C_Read... [10:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:23]Read from MH i2c: E2 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: E2 0E 00 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: E2 0E 00 2C 03 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 24 [10:36:23]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:36:23]wFMCommunicate OK [10:36:23]SAM_PROTO_GetShiftState done [10:36:23]FM_GetShiftState done [10:36:23]opened in 1729988959 [10:36:23]opened+sec_in_day 1730075359 [10:36:23]quantity*price = 100015 [10:36:23]sum+1 = 100017 [10:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 67 27.10.2024 10:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145644 ФПД: 268985400556484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103625&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145644&fm=268985400556484&tin=02508201610067®Number=0000000000091683&sum=100000 [10:36:25]StoreToDocumentArchive [10:36:25]shift 545 fd 145644 [10:36:25]save to /storage/0545/doc_00145644 [10:36:25]save last doc name /storage/0545/doc_00145644 to /storage/kkm_last_doc_name [10:36:25]save OK [10:36:25]Clear old archive folders... [10:36:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:25]tlvbuf is 0042AF10 [10:36:25]SAM_PROTO_ClearQueue [10:36:25]wFMCommunicate request_size=4 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 09 00 00 [10:36:25]Write to MH i2c: E2 08 00 39 03 80 09 00 00 00 00 00 00 AE [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 39 03 00 90 00 B0 [10:36:25]RAPDU: 90 00 [10:36:25]wFMCommunicate OK [10:36:25]SAM_PROTO_ClearQueue done [10:36:25]KKMCreateOFDPacket [10:36:25]OFDProtocolAddRootSTLVToBuf [10:36:25]FM_MakeSignedData [10:36:25]FM_MakeSignedData [10:36:25]SAM_PROTO_SignData [10:36:25]wFMCommunicate request_size=4 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 0D 01 02 [10:36:25]Write to MH i2c: E2 08 00 3A 03 80 0D 01 02 00 00 00 00 B6 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 3A 03 00 90 00 B1 [10:36:25]RAPDU: 90 00 [10:36:25]wFMCommunicate OK [10:36:25]wFMCommunicate request_size=255 [10:36:25]MH_SAM_APDU [10:36: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A9 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EC 38 02 00 35 04 06 00 F4 [10:36:25]Write to MH i2c: E2 02 01 3B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A9 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EC 38 02 00 35 04 06 00 F4 00 00 03 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 3B 03 00 90 00 B2 [10:36:25]RAPDU: 90 00 [10:36:25]wFMCommunicate OK [10:36:25]wFMCommunicate request_size=10 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 0D 02 02 05 A4 0B 3F FB C4 [10:36:25]Write to MH i2c: E2 0D 00 3C 03 80 0D 02 02 05 00 A4 0B 3F FB C4 00 00 70 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 3C 03 00 90 00 B3 [10:36:25]RAPDU: 90 00 [10:36:25]wFMCommunicate OK [10:36:25]wFMCommunicate request_size=4 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 0D 03 02 [10:36:25]Write to MH i2c: E2 08 00 3D 03 80 0D 03 02 00 00 00 00 BB [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 0B 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 0B 00 3D 03 00 DB 68 47 54 05 71 19 FB 90 00 24 [10:36:25]RAPDU: DB 68 47 54 05 71 19 FB 90 00 [10:36:25]wFMCommunicate OK [10:36:25]SAM_PROTO_SignData done [10:36:25]FM_MakeSignedData done [10:36:25]CreateOFDProtocolMessage [10:36:25]wFMCommunicate request_size=4 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 11 00 00 [10:36:25]Write to MH i2c: E2 08 00 3E 03 80 11 00 00 00 00 00 00 BB [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 17 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 17 00 3E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0E [10:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:36:25]wFMCommunicate OK [10:36:25]CreateOFDProtocolMessage done [10:36:25]OFDSenderStorePacket 145644 [10:36:25]StoreOFDPacket docnum=145644 [10:36:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BD 15 07 01 98 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A9 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EC 38 02 00 35 04 06 00 F4 A4 0B 3F FB C4 DB 68 47 54 05 71 19 FB [10:36:25]CheckFolder [10:36:25]dirname=/storage/ofd_packets [10:36:25]CheckFolder done [10:36:25]ProducePacketName [10:36:25]name=ofd_packets/00145644 [10:36:25]NVStorageSaveData ofd_packets/00145644 [10:36:25]File name is /storage/ofd_packets/00145644 [10:36:25]Write 301 bytes [10:36:25]NVStorageSaveData done [10:36:25]OFDSenderStorePacket done [10:36:25]KKMCreateOFDPacket done [10:36:25]NVStorageSaveData kkm_last_timestamp [10:36:25]File name is /storage/kkm_last_timestamp [10:36:25]Write 4 bytes [10:36:25]NVStorageSaveData done [10:36:25]ExternCall_PrintAddStr [10:36:25]wPrintStart [10:36:25]Write to MH i2c: 01 00 00 3F 03 42 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: 01 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: 01 07 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 FF 0F 57 [10:36:25]RasterBufferAndPrint [10:36:25]line Счет N : (1)160395 [10:36:25]line ИНН: 02508201610067 [10:36:25]line Контрольно-Кассовый Чек [10:36:25]line ПРОДАЖА [10:36:25]line ТРК (МРК, ГНК) : 32 [10:36:25]line Товар: 2710124130 [10:36:25]line Аи-92-К-2 [10:36:25]line 14.950 * 66.90 [10:36:25]line = 1000.16 [10:36:25]line НДС 12% НСП 1% [10:36:25]line > о реализуемом товаре [10:36:25]line ОКРУГЛЕНИЕ: -0.16 [10:36:25]line ИТОГО: 1000.00 [10:36:25]line Внесено: 1000.00 [10:36:25]line СДАЧА: 0.00 [10:36:25]line НСП 1% : 8.85 [10:36:25]line НДС 12% : 106.21 [10:36:25]line Наличными: 1000.00 [10:36:25]line Безнал.: 0.00 [10:36:25]line Место: АЗС № 126 "Партнер Нефть" [10:36:25]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:36:25]line СНО: Общий режим [10:36:25]line Чек 67 27.10.2024 10:36 [10:36:25]line Смена: 545 ФФД: 1.0 [10:36:25]line ЗНМ: 0300000085 [10:36:25]line РНМ: 0000000000091683 [10:36:25]line Версия ККМ: 001 [10:36:25]line ФМ: 0000000000871745 [10:36:25]line ФД: 145644 [10:36:25]line ФПД: 268985400556484 [10:36:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103625&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145644&fm=268985400556484&tin=02508201610067®Number=0000000000091683&sum=100000 [10:36:25]OFD Sender: Processing packet 145644 [packets to send 206, broken 205] [10:36:25]ProducePacketName [10:36:25]name=ofd_packets/00145644 [10:36:25]OFD Sender: To server: pG, [10:36:25]CommunicateWithHost lk.salyk.kg:30040 [10:36:25]ConnectInit lk.salyk.kg [10:36:25]written 0, free lines is 4095 [10:36:26]Connected sock=10 [10:36:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BD 15 07 01 98 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A9 17 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EC 38 02 00 35 04 06 00 F4 A4 0B 3F FB C4 DB 68 47 54 05 71 19 FB [10:36:26]Write to MH i2c: 01 00 00 6A 03 6D [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 07 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 07 00 6A 03 00 00 00 00 00 AF 0C 2F [10:36:26]RasterBufferAndPrint [10:36:26]line [10:36:26]line [10:36:26]line [10:36:26]line [10:36:26]line [10:36:26]written 0, free lines is 3253 [10:36:26]MH_Cut [10:36:26]Write to MH i2c: D1 01 00 71 03 01 46 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: D1 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: D1 01 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: D1 01 00 71 03 00 45 [10:36:26]Write to MH i2c: 01 00 00 72 03 75 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E5 8B 47 00 B9 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EC 38 02 00 F4 03 04 00 D6 BC 1D 67 B6 04 01 00 00 8E AE AC 37 44 07 3B F6 [10:36:26]CommunicateWithHost err = 0 [10:36:26]CheckOFDResponse [10:36:26]1017 (14) - 77093643461234 [10:36:26]1041 (16) - 0000000000871745 [10:36:26]1040 (4) - 145644 [10:36:26]1012 (4) - 27.10.2024 04:08 [10:36:26]1206 (1) - 0 [10:36:26]OFD Sender: Remove packet 145644 [10:36:26]ProducePacketName [10:36:26]name=ofd_packets/00145644 [10:36:26]NVStorageDeleteData [10:36:27]OFD Sender: No OFD packet to send [10:36:27]*** Cut start [10:36:27]*** Partial cut [10:36:27]*** CUTSNS_PIN = 1 [10:36:27]*** CUTSNS_PIN = 0 [10:36:27]*** Brake cut motor [10:36:27]Read from MH i2c: 01 [10:36:27]MH_I2C_Read... [10:36:27]*** Stop cut motor [10:36:27]*** Cut end [10:36:27]Read from MH i2c: 01 07 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: 01 07 00 72 03 00 00 00 00 00 FF 0F 8A [10:36:27]process_action close_receipt done [10:36:27]requested_data is exist [10:36:27]produce_requested_data [10:36:27]requested_item fm.sn is exist - process it [10:36:27]wFMCommunicate request_size=4 [10:36:27]MH_SAM_APDU [10:36:27]CAPDU: 80 11 00 00 [10:36:27]Write to MH i2c: E2 08 00 73 03 80 11 00 00 00 00 00 00 F0 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 17 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 17 00 73 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 43 [10:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:36:27]wFMCommunicate OK [10:36:27]requested_item fd.num is exist - process it [10:36:27]SAM_PROTO_GetFieldsCounters [10:36:27]wFMCommunicate request_size=4 [10:36:27]MH_SAM_APDU [10:36:27]CAPDU: 80 13 00 00 [10:36:27]Write to MH i2c: E2 08 00 74 03 80 13 00 00 00 00 00 00 F3 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 62 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 62 00 74 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 EC 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [10:36:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 EC 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:28]wFMCommunicate OK [10:36:28]SAM_PROTO_GetFieldsCounters done [10:36:28]requested_item shift.num is exist - process it [10:36:28]requested_item shift.opened is exist - process it [10:36:28]req_shift_opened [10:36:28]FM_GetShiftState [10:36:28]SAM_PROTO_GetShiftState [10:36:28]wFMCommunicate request_size=4 [10:36:28]MH_SAM_APDU [10:36:28]CAPDU: 80 13 01 00 [10:36:28]Write to MH i2c: E2 08 00 75 03 80 13 01 00 00 00 00 00 F5 [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:28]Read from MH i2c: E2 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 0E 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: E2 0E 00 75 03 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6D [10:36:28]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:36:28]wFMCommunicate OK [10:36:28]SAM_PROTO_GetShiftState done [10:36:28]FM_GetShiftState done [10:36:28]req_shift_opened done [10:36:28]requested_item shift.open_date is exist - process it [10:36:28]req_shift_open_date [10:36:28]req_shift_open_date done [10:36:28]produce_requested_data done [10:36:28]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145644,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:36:28]process_action_free close_receipt [10:36:28]json_value_free [10:36:28]json_value_free done [10:36:28]process_json_proto returns [10:36:28]Send response to host [10:36:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145644,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:36:28]free response buf [10:36:28]execute_script done [10:36:28]execute_script returns [10:36:28]free content buf [10:36:28]Sock 9.Close socket [10:36:28]Sock 9.Thread stoped [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:08]int [10:39:08]Write to MH i2c: 01 00 00 76 03 79 [10:39:08]*** FLAG_PRN_KEY set [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 07 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 07 00 76 03 00 08 00 00 00 FF 0F 96 [10:39:08]state=0 [10:39:08]Key pressed [10:39:08]Feed [10:39:08]Write to MH i2c: D8 00 00 77 03 51 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: D8 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: D8 01 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: D8 01 00 77 03 00 52 [10:39:08]int [10:39:08]Write to MH i2c: 01 00 00 78 03 7B [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 07 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 07 00 78 03 00 48 00 00 00 3C 00 06 [10:39:08]state=2 [10:39:08]Key pressed [10:39:09]int [10:39:09]Write to MH i2c: 01 00 00 79 03 7C [10:39:09]*** FLAG_PRN_KEY reset [10:39:09]Write i2c OK [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 07 00 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 F6 0F 88 [10:39:09]state=2 [10:39:09]Stop feed [10:39:09]int [10:39:09]Write to MH i2c: 01 00 00 7A 03 7D [10:39:09]*** FLAG_PRN_KEY set [10:39:09]Write i2c OK [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 07 00 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 07 00 7A 03 00 08 00 00 00 FF 0F 9A [10:39:09]state=0 [10:39:09]Key pressed [10:39:09]Feed [10:39:09]Write to MH i2c: D8 00 00 7B 03 55 [10:39:09]Write i2c OK [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: D8 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: D8 01 00 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: D8 01 00 7B 03 00 56 [10:39:09]int [10:39:09]Write to MH i2c: 01 00 00 7C 03 7F [10:39:09]Write i2c OK [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 07 00 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 07 00 7C 03 00 48 00 00 00 3C 00 0A [10:39:09]state=2 [10:39:09]Key pressed [10:39:10]int [10:39:10]Write to MH i2c: 01 00 00 7D 03 80 [10:39:10]*** FLAG_PRN_KEY reset [10:39:10]Write i2c OK [10:39:10]MH_I2C_Read... [10:39:10]Read from MH i2c: 01 [10:39:10]MH_I2C_Read... [10:39:10]Read from MH i2c: 01 07 00 [10:39:10]MH_I2C_Read... [10:39:10]Read from MH i2c: 01 07 00 7D 03 00 00 00 00 00 F6 0F 8C [10:39:10]state=2 [10:39:10]Stop feed [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:08]accept exits with 7 [10:40:08]New connection [10:40:08]New thread 3066596708 created [10:40:08]Thread 3066740068 joined [10:40:08]Waiting for new connection... [10:40:08] Sock 7.Parse request [10:40:08]Sock 7.Check first char [10:40:08]Sock 7.First char is OK [10:40:08]request: POST /json_proto HTTP/1.0 [10:40:08]Method: POST [10:40:08]URL: /json_proto [10:40:08]Method is POST - this is cgi request [10:40:08]url: /json_proto [10:40:08]query_string will be loaded in cgi processing [10:40:08]execute_cgi json_proto POST (null) [10:40:08]execute_cgi path=json_proto method=POST [10:40:08]POST find Content-Length [10:40:08]Host: 172.17.40.195:8080 [10:40:08]Content-Length: 677 [10:40:08]Content-Type: application/json [10:40:08] [10:40:08]POST finish read [10:40:08]Found Content-Length = 677 [10:40:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:08]execute_script... [10:40:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:08]POST & json_proto [10:40:08]process_json_proto [10:40:08]json parsed OK: [10:40:08]protocol is kg_v1.0 [10:40:08]action value=close_receipt [10:40:08]process_action close_receipt [10:40:08]cmd_close_receipt [10:40:08]MH_GetDate [10:40:08]Write to MH i2c: F0 00 00 7E 03 70 [10:40:08]Write i2c OK [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: F0 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: F0 09 00 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: F0 09 00 7E 03 00 89 18 1E 67 D5 8D 6C 64 D1 [10:40:08]GetLastDocTimeStamp 1730025385 [10:40:08]current date 1730025609 [10:40:08]FM_GetShiftState [10:40:08]SAM_PROTO_GetShiftState [10:40:08]wFMCommunicate request_size=4 [10:40:08]MH_SAM_APDU [10:40:08]CAPDU: 80 13 01 00 [10:40:08]Write to MH i2c: E2 08 00 7F 03 80 13 01 00 00 00 00 00 FF [10:40:08]Write i2c OK [10:40:08]MH_I2C_Read... [10:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:08]Read from MH i2c: E2 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 0E 00 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 0E 00 7F 03 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 77 [10:40:08]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:40:08]wFMCommunicate OK [10:40:08]SAM_PROTO_GetShiftState done [10:40:08]FM_GetShiftState done [10:40:08]opened in 1729988959 [10:40:08]opened+sec_in_day 1730075359 [10:40:08]quantity*price = 50041 [10:40:08]sum+1 = 50042 [10:40:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 68 27.10.2024 10:40 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145645 ФПД: 147022195760246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104009&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145645&fm=147022195760246&tin=02508201610067®Number=0000000000091683&sum=50000 [10:40:09]StoreToDocumentArchive [10:40:09]shift 545 fd 145645 [10:40:09]save to /storage/0545/doc_00145645 [10:40:09]save last doc name /storage/0545/doc_00145645 to /storage/kkm_last_doc_name [10:40:09]save OK [10:40:09]Clear old archive folders... [10:40:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:09]tlvbuf is 00440550 [10:40:09]SAM_PROTO_ClearQueue [10:40:09]wFMCommunicate request_size=4 [10:40:09]MH_SAM_APDU [10:40:09]CAPDU: 80 09 00 00 [10:40:09]Write to MH i2c: E2 08 00 8C 03 80 09 00 00 00 00 00 00 01 [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 03 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [10:40:09]RAPDU: 90 00 [10:40:09]wFMCommunicate OK [10:40:09]SAM_PROTO_ClearQueue done [10:40:09]KKMCreateOFDPacket [10:40:09]OFDProtocolAddRootSTLVToBuf [10:40:09]FM_MakeSignedData [10:40:09]FM_MakeSignedData [10:40:09]SAM_PROTO_SignData [10:40:09]wFMCommunicate request_size=4 [10:40:09]MH_SAM_APDU [10:40:09]CAPDU: 80 0D 01 02 [10:40:09]Write to MH i2c: E2 08 00 8D 03 80 0D 01 02 00 00 00 00 09 [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 03 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [10:40:09]RAPDU: 90 00 [10:40:09]wFMCommunicate OK [10:40:09]wFMCommunicate request_size=255 [10:40:09]MH_SAM_APDU [10:40:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 89 18 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 ED 38 02 00 35 04 06 00 85 [10:40:09]Write to MH i2c: E2 02 01 8E 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 89 18 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 ED 38 02 00 35 04 06 00 85 00 00 D0 [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 03 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [10:40:09]RAPDU: 90 00 [10:40:09]wFMCommunicate OK [10:40:09]wFMCommunicate request_size=10 [10:40:09]MH_SAM_APDU [10:40:09]CAPDU: 80 0D 02 02 05 B7 45 C0 9C 76 [10:40:09]Write to MH i2c: E2 0D 00 8F 03 80 0D 02 02 05 00 B7 45 C0 9C 76 00 00 E4 [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 03 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [10:40:09]RAPDU: 90 00 [10:40:09]wFMCommunicate OK [10:40:09]wFMCommunicate request_size=4 [10:40:09]MH_SAM_APDU [10:40:09]CAPDU: 80 0D 03 02 [10:40:09]Write to MH i2c: E2 08 00 90 03 80 0D 03 02 00 00 00 00 0E [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 0B 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 0B 00 90 03 00 5B 7D DE 17 58 AB D5 B3 90 00 67 [10:40:09]RAPDU: 5B 7D DE 17 58 AB D5 B3 90 00 [10:40:09]wFMCommunicate OK [10:40:09]SAM_PROTO_SignData done [10:40:09]FM_MakeSignedData done [10:40:09]CreateOFDProtocolMessage [10:40:09]wFMCommunicate request_size=4 [10:40:09]MH_SAM_APDU [10:40:09]CAPDU: 80 11 00 00 [10:40:09]Write to MH i2c: E2 08 00 91 03 80 11 00 00 00 00 00 00 0E [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 17 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 17 00 91 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 61 [10:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:40:09]wFMCommunicate OK [10:40:09]CreateOFDProtocolMessage done [10:40:09]OFDSenderStorePacket 145645 [10:40:09]StoreOFDPacket docnum=145645 [10:40:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E4 CE 07 01 09 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 89 18 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 ED 38 02 00 35 04 06 00 85 B7 45 C0 9C 76 5B 7D DE 17 58 AB D5 B3 [10:40:09]CheckFolder [10:40:09]dirname=/storage/ofd_packets [10:40:09]CheckFolder done [10:40:09]ProducePacketName [10:40:09]name=ofd_packets/00145645 [10:40:09]NVStorageSaveData ofd_packets/00145645 [10:40:09]File name is /storage/ofd_packets/00145645 [10:40:09]Write 301 bytes [10:40:09]NVStorageSaveData done [10:40:09]OFDSenderStorePacket done [10:40:09]KKMCreateOFDPacket done [10:40:09]NVStorageSaveData kkm_last_timestamp [10:40:09]File name is /storage/kkm_last_timestamp [10:40:09]Write 4 bytes [10:40:09]NVStorageSaveData done [10:40:09]ExternCall_PrintAddStr [10:40:09]wPrintStart [10:40:09]Write to MH i2c: 01 00 00 92 03 95 [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 07 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 FF 0F AA [10:40:09]RasterBufferAndPrint [10:40:09]line Счет N : (1)160396 [10:40:09]line ИНН: 02508201610067 [10:40:09]line Контрольно-Кассовый Чек [10:40:09]line ПРОДАЖА [10:40:09]line ТРК (МРК, ГНК) : 42 [10:40:09]line Товар: 2710124130 [10:40:09]line Аи-92-К-2 [10:40:09]line 7.480 * 66.90 [10:40:09]line = 500.41 [10:40:09]line НДС 12% НСП 1% [10:40:09]line > о реализуемом товаре [10:40:09]line ОКРУГЛЕНИЕ: -0.41 [10:40:09]line ИТОГО: 500.00 [10:40:09]line Внесено: 500.00 [10:40:09]line СДАЧА: 0.00 [10:40:09]line НСП 1% : 4.43 [10:40:09]line НДС 12% : 53.14 [10:40:09]line Наличными: 500.00 [10:40:09]line Безнал.: 0.00 [10:40:09]line Место: АЗС № 126 "Партнер Нефть" [10:40:09]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:40:09]line СНО: Общий режим [10:40:09]line Чек 68 27.10.2024 10:40 [10:40:09]line Смена: 545 ФФД: 1.0 [10:40:09]line ЗНМ: 0300000085 [10:40:09]line РНМ: 0000000000091683 [10:40:09]line Версия ККМ: 001 [10:40:09]line ФМ: 0000000000871745 [10:40:09]line ФД: 145645 [10:40:09]line ФПД: 147022195760246 [10:40:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104009&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145645&fm=147022195760246&tin=02508201610067®Number=0000000000091683&sum=50000 [10:40:10]OFD Sender: Processing packet 145645 [packets to send 206, broken 205] [10:40:10]ProducePacketName [10:40:10]name=ofd_packets/00145645 [10:40:10]OFD Sender: To server: pG, [10:40:10]CommunicateWithHost lk.salyk.kg:30040 [10:40:10]ConnectInit lk.salyk.kg [10:40:10]written 0, free lines is 4095 [10:40:10]Connected sock=10 [10:40:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E4 CE 07 01 09 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 89 18 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 ED 38 02 00 35 04 06 00 85 B7 45 C0 9C 76 5B 7D DE 17 58 AB D5 B3 [10:40:10]Write to MH i2c: 01 00 00 BD 03 C0 [10:40:10]Write i2c OK [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: 01 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: 01 07 00 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: 01 07 00 BD 03 00 00 00 00 00 B1 0C 84 [10:40:10]RasterBufferAndPrint [10:40:10]line [10:40:10]line [10:40:10]line [10:40:10]line [10:40:10]line [10:40:10]written 0, free lines is 3254 [10:40:10]MH_Cut [10:40:10]Write to MH i2c: D1 01 00 C4 03 01 99 [10:40:10]Write i2c OK [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: D1 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: D1 01 00 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: D1 01 00 C4 03 00 98 [10:40:10]Write to MH i2c: 01 00 00 C5 03 C8 [10:40:10]Write i2c OK [10:40:10]MH_I2C_Read... [10:40:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 93 13 47 00 8E DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 ED 38 02 00 F4 03 04 00 B7 BD 1D 67 B6 04 01 00 00 5C C5 58 EC 82 95 14 55 [10:40:10]CommunicateWithHost err = 0 [10:40:10]CheckOFDResponse [10:40:10]1017 (14) - 77093643461234 [10:40:10]1041 (16) - 0000000000871745 [10:40:10]1040 (4) - 145645 [10:40:10]1012 (4) - 27.10.2024 04:12 [10:40:10]1206 (1) - 0 [10:40:10]OFD Sender: Remove packet 145645 [10:40:10]ProducePacketName [10:40:10]name=ofd_packets/00145645 [10:40:10]NVStorageDeleteData [10:40:11]OFD Sender: No OFD packet to send [10:40:11]*** Cut start [10:40:11]*** Partial cut [10:40:11]*** CUTSNS_PIN = 1 [10:40:11]*** CUTSNS_PIN = 0 [10:40:11]*** Brake cut motor [10:40:12]Read from MH i2c: 01 [10:40:12]MH_I2C_Read... [10:40:12]*** Stop cut motor [10:40:12]*** Cut end [10:40:12]Read from MH i2c: 01 07 00 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: 01 07 00 C5 03 00 00 00 00 00 FF 0F DD [10:40:12]process_action close_receipt done [10:40:12]requested_data is exist [10:40:12]produce_requested_data [10:40:12]requested_item fm.sn is exist - process it [10:40:12]wFMCommunicate request_size=4 [10:40:12]MH_SAM_APDU [10:40:12]CAPDU: 80 11 00 00 [10:40:12]Write to MH i2c: E2 08 00 C6 03 80 11 00 00 00 00 00 00 43 [10:40:12]Write i2c OK [10:40:12]MH_I2C_Read... [10:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:12]Read from MH i2c: E2 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 17 00 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 17 00 C6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 96 [10:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:40:12]wFMCommunicate OK [10:40:12]requested_item fd.num is exist - process it [10:40:12]SAM_PROTO_GetFieldsCounters [10:40:12]wFMCommunicate request_size=4 [10:40:12]MH_SAM_APDU [10:40:12]CAPDU: 80 13 00 00 [10:40:12]Write to MH i2c: E2 08 00 C7 03 80 13 00 00 00 00 00 00 46 [10:40:12]Write i2c OK [10:40:12]MH_I2C_Read... [10:40:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:12]Read from MH i2c: E2 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 62 00 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 62 00 C7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 ED 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [10:40:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 ED 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:12]wFMCommunicate OK [10:40:12]SAM_PROTO_GetFieldsCounters done [10:40:12]requested_item shift.num is exist - process it [10:40:12]requested_item shift.opened is exist - process it [10:40:12]req_shift_opened [10:40:12]FM_GetShiftState [10:40:12]SAM_PROTO_GetShiftState [10:40:12]wFMCommunicate request_size=4 [10:40:12]MH_SAM_APDU [10:40:12]CAPDU: 80 13 01 00 [10:40:12]Write to MH i2c: E2 08 00 C8 03 80 13 01 00 00 00 00 00 48 [10:40:12]Write i2c OK [10:40:12]MH_I2C_Read... [10:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:12]Read from MH i2c: E2 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 0E 00 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 0E 00 C8 03 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C0 [10:40:12]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:40:12]wFMCommunicate OK [10:40:12]SAM_PROTO_GetShiftState done [10:40:12]FM_GetShiftState done [10:40:12]req_shift_opened done [10:40:12]requested_item shift.open_date is exist - process it [10:40:12]req_shift_open_date [10:40:12]req_shift_open_date done [10:40:12]produce_requested_data done [10:40:12]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145645,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:40:12]process_action_free close_receipt [10:40:12]json_value_free [10:40:12]json_value_free done [10:40:12]process_json_proto returns [10:40:12]Send response to host [10:40:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145645,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:40:12]free response buf [10:40:12]execute_script done [10:40:12]execute_script returns [10:40:12]free content buf [10:40:12]Sock 7.Close socket [10:40:12]Sock 7.Thread stoped [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:50]accept exits with 9 [10:44:50]New connection [10:44:50]New thread 3066740068 created [10:44:50]Thread 3066596708 joined [10:44:50]Waiting for new connection... [10:44:50] Sock 9.Parse request [10:44:50]Sock 9.Check first char [10:44:50]Sock 9.First char is OK [10:44:50]request: POST /json_proto HTTP/1.0 [10:44:50]Method: POST [10:44:50]URL: /json_proto [10:44:50]Method is POST - this is cgi request [10:44:50]url: /json_proto [10:44:50]query_string will be loaded in cgi processing [10:44:50]execute_cgi json_proto POST (null) [10:44:50]execute_cgi path=json_proto method=POST [10:44:50]POST find Content-Length [10:44:50]Host: 172.17.40.195:8080 [10:44:50]Content-Length: 679 [10:44:50]Content-Type: application/json [10:44:50] [10:44:50]POST finish read [10:44:50]Found Content-Length = 679 [10:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:50]execute_script... [10: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)160398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:50]POST & json_proto [10:44:50]process_json_proto [10:44:50]json parsed OK: [10:44:50]protocol is kg_v1.0 [10:44:50]action value=close_receipt [10:44:50]process_action close_receipt [10:44:50]cmd_close_receipt [10:44:50]MH_GetDate [10:44:50]Write to MH i2c: F0 00 00 C9 03 BB [10:44:50]Write i2c OK [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: F0 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: F0 09 00 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: F0 09 00 C9 03 00 A3 19 1E 67 D5 8D 6C 64 37 [10:44:50]GetLastDocTimeStamp 1730025609 [10:44:50]current date 1730025891 [10:44:50]FM_GetShiftState [10:44:50]SAM_PROTO_GetShiftState [10:44:50]wFMCommunicate request_size=4 [10:44:50]MH_SAM_APDU [10:44:50]CAPDU: 80 13 01 00 [10:44:50]Write to MH i2c: E2 08 00 CA 03 80 13 01 00 00 00 00 00 4A [10:44:50]Write i2c OK [10:44:50]MH_I2C_Read... [10:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:50]Read from MH i2c: E2 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: E2 0E 00 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: E2 0E 00 CA 03 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C2 [10:44:50]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:44:50]wFMCommunicate OK [10:44:50]SAM_PROTO_GetShiftState done [10:44:50]FM_GetShiftState done [10:44:50]opened in 1729988959 [10:44:50]opened+sec_in_day 1730075359 [10:44:50]quantity*price = 100050 [10:44:50]sum+1 = 100052 [10:44:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 69 27.10.2024 10:44 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145646 ФПД: 167524358619182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104451&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145646&fm=167524358619182&tin=02508201610067®Number=0000000000091683&sum=100000 [10:44:51]StoreToDocumentArchive [10:44:51]shift 545 fd 145646 [10:44:51]save to /storage/0545/doc_00145646 [10:44:51]save last doc name /storage/0545/doc_00145646 to /storage/kkm_last_doc_name [10:44:51]save OK [10:44:51]Clear old archive folders... [10:44:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:44:51]tlvbuf is 00439980 [10:44:51]SAM_PROTO_ClearQueue [10:44:51]wFMCommunicate request_size=4 [10:44:51]MH_SAM_APDU [10:44:51]CAPDU: 80 09 00 00 [10:44:51]Write to MH i2c: E2 08 00 D7 03 80 09 00 00 00 00 00 00 4C [10:44:51]Write i2c OK [10:44:51]MH_I2C_Read... [10:44:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:51]Read from MH i2c: E2 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: E2 03 00 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: E2 03 00 D7 03 00 90 00 4E [10:44:51]RAPDU: 90 00 [10:44:51]wFMCommunicate OK [10:44:51]SAM_PROTO_ClearQueue done [10:44:51]KKMCreateOFDPacket [10:44:51]OFDProtocolAddRootSTLVToBuf [10:44:51]FM_MakeSignedData [10:44:51]FM_MakeSignedData [10:44:51]SAM_PROTO_SignData [10:44:51]wFMCommunicate request_size=4 [10:44:51]MH_SAM_APDU [10:44:51]CAPDU: 80 0D 01 02 [10:44:51]Write to MH i2c: E2 08 00 D8 03 80 0D 01 02 00 00 00 00 54 [10:44:51]Write i2c OK [10:44:51]MH_I2C_Read... [10:44:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:51]Read from MH i2c: E2 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: E2 03 00 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: E2 03 00 D8 03 00 90 00 4F [10:44:51]RAPDU: 90 00 [10:44:51]wFMCommunicate OK [10:44:51]wFMCommunicate request_size=255 [10:44:51]MH_SAM_APDU [10:44:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 19 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EE 38 02 00 35 04 06 00 98 5C CD E3 [10:44:51]Write to MH i2c: E2 02 01 D9 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 19 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EE 38 02 00 35 04 06 00 98 5C CD E3 00 00 4D [10:44:51]Write i2c OK [10:44:51]MH_I2C_Read... [10:44:51]OFD Sender: No OFD packet to send [10:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:51]Read from MH i2c: E2 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: E2 03 00 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [10:44:51]RAPDU: 90 00 [10:44:51]wFMCommunicate OK [10:44:51]wFMCommunicate request_size=7 [10:44:51]MH_SAM_APDU [10:44:51]CAPDU: 80 0D 02 02 02 00 2E [10:44:51]Write to MH i2c: E2 0A 00 DA 03 80 0D 02 02 02 00 00 2E 00 00 89 [10:44:51]Write i2c OK [10:44:51]MH_I2C_Read... [10:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:52]Read from MH i2c: E2 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: E2 03 00 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [10:44:52]RAPDU: 90 00 [10:44:52]wFMCommunicate OK [10:44:52]wFMCommunicate request_size=4 [10:44:52]MH_SAM_APDU [10:44:52]CAPDU: 80 0D 03 02 [10:44:52]Write to MH i2c: E2 08 00 DB 03 80 0D 03 02 00 00 00 00 59 [10:44:52]Write i2c OK [10:44:52]MH_I2C_Read... [10:44:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:52]Read from MH i2c: E2 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: E2 0B 00 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: E2 0B 00 DB 03 00 04 E8 34 EC 24 91 51 9C 90 00 08 [10:44:52]RAPDU: 04 E8 34 EC 24 91 51 9C 90 00 [10:44:52]wFMCommunicate OK [10:44:52]SAM_PROTO_SignData done [10:44:52]FM_MakeSignedData done [10:44:52]CreateOFDProtocolMessage [10:44:52]wFMCommunicate request_size=4 [10:44:52]MH_SAM_APDU [10:44:52]CAPDU: 80 11 00 00 [10:44:52]Write to MH i2c: E2 08 00 DC 03 80 11 00 00 00 00 00 00 59 [10:44:52]Write i2c OK [10:44:52]MH_I2C_Read... [10:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:52]Read from MH i2c: E2 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: E2 17 00 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: E2 17 00 DC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AC [10:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:44:52]wFMCommunicate OK [10:44:52]CreateOFDProtocolMessage done [10:44:52]OFDSenderStorePacket 145646 [10:44:52]StoreOFDPacket docnum=145646 [10:44:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 B0 65 04 01 F8 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 19 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EE 38 02 00 35 04 06 00 98 5C CD E3 00 2E 04 E8 34 EC 24 91 51 9C [10:44:52]CheckFolder [10:44:52]dirname=/storage/ofd_packets [10:44:52]CheckFolder done [10:44:52]ProducePacketName [10:44:52]name=ofd_packets/00145646 [10:44:52]NVStorageSaveData ofd_packets/00145646 [10:44:52]File name is /storage/ofd_packets/00145646 [10:44:52]Write 298 bytes [10:44:52]NVStorageSaveData done [10:44:52]OFDSenderStorePacket done [10:44:52]KKMCreateOFDPacket done [10:44:52]NVStorageSaveData kkm_last_timestamp [10:44:52]File name is /storage/kkm_last_timestamp [10:44:52]Write 4 bytes [10:44:52]NVStorageSaveData done [10:44:52]ExternCall_PrintAddStr [10:44:52]wPrintStart [10:44:52]Write to MH i2c: 01 00 00 DD 03 E0 [10:44:52]Write i2c OK [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: 01 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: 01 07 00 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 FF 0F F5 [10:44:52]RasterBufferAndPrint [10:44:52]line Счет N : (1)160398 [10:44:52]line ИНН: 02508201610067 [10:44:52]line Контрольно-Кассовый Чек [10:44:52]line ПРОДАЖА [10:44:52]line ТРК (МРК, ГНК) : 21 [10:44:52]line Товар: 2710194210 [10:44:52]line ДТ-К-2 [10:44:52]line 13.130 * 76.20 [10:44:52]line = 1000.51 [10:44:52]line НДС 12% НСП 1% [10:44:52]line > о реализуемом товаре [10:44:52]line ОКРУГЛЕНИЕ: -0.51 [10:44:52]line ИТОГО: 1000.00 [10:44:52]line Внесено: 1000.00 [10:44:52]line СДАЧА: 0.00 [10:44:52]line НСП 1% : 8.85 [10:44:52]line НДС 12% : 106.25 [10:44:52]line Наличными: 1000.00 [10:44:52]line Безнал.: 0.00 [10:44:52]line Место: АЗС № 126 "Партнер Нефть" [10:44:52]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:44:52]line СНО: Общий режим [10:44:52]line Чек 69 27.10.2024 10:44 [10:44:52]line Смена: 545 ФФД: 1.0 [10:44:52]line ЗНМ: 0300000085 [10:44:52]line РНМ: 0000000000091683 [10:44:52]line Версия ККМ: 001 [10:44:52]line ФМ: 0000000000871745 [10:44:52]line ФД: 145646 [10:44:52]line ФПД: 167524358619182 [10:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104451&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145646&fm=167524358619182&tin=02508201610067®Number=0000000000091683&sum=100000 [10:44:52]OFD Sender: Processing packet 145646 [packets to send 206, broken 205] [10:44:52]ProducePacketName [10:44:52]name=ofd_packets/00145646 [10:44:52]OFD Sender: To server: pG, [10:44:52]CommunicateWithHost lk.salyk.kg:30040 [10:44:52]ConnectInit lk.salyk.kg [10:44:52]written 0, free lines is 4095 [10:44:52]Connected sock=11 [10:44:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 B0 65 04 01 F8 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 19 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EE 38 02 00 35 04 06 00 98 5C CD E3 00 2E 04 E8 34 EC 24 91 51 9C [10:44:52]Write to MH i2c: 01 00 00 08 04 0C [10:44:52]Write i2c OK [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: 01 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: 01 07 00 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: 01 07 00 08 04 00 00 00 00 00 A4 0C C3 [10:44:52]RasterBufferAndPrint [10:44:52]line [10:44:52]line [10:44:52]line [10:44:52]line [10:44:52]line [10:44:52]written 0, free lines is 3242 [10:44:52]MH_Cut [10:44:52]Write to MH i2c: D1 01 00 0F 04 01 E5 [10:44:52]Write i2c OK [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: D1 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: D1 01 00 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: D1 01 00 0F 04 00 E4 [10:44:52]Write to MH i2c: 01 00 00 10 04 14 [10:44:52]Write i2c OK [10:44:52]MH_I2C_Read... [10:44:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 4D 3E 47 00 77 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EE 38 02 00 F4 03 04 00 D1 BE 1D 67 B6 04 01 00 00 54 89 99 FA 1A 39 C0 64 [10:44:53]CommunicateWithHost err = 0 [10:44:53]CheckOFDResponse [10:44:53]1017 (14) - 77093643461234 [10:44:53]1041 (16) - 0000000000871745 [10:44:53]1040 (4) - 145646 [10:44:53]1012 (4) - 27.10.2024 04:17 [10:44:53]1206 (1) - 0 [10:44:53]OFD Sender: Remove packet 145646 [10:44:53]ProducePacketName [10:44:53]name=ofd_packets/00145646 [10:44:53]NVStorageDeleteData [10:44:53]OFD Sender: No OFD packet to send [10:44:53]*** Cut start [10:44:53]*** Partial cut [10:44:53]*** CUTSNS_PIN = 1 [10:44:53]*** CUTSNS_PIN = 0 [10:44:53]*** Brake cut motor [10:44:54]Read from MH i2c: 01 [10:44:54]MH_I2C_Read... [10:44:54]*** Stop cut motor [10:44:54]*** Cut end [10:44:54]Read from MH i2c: 01 07 00 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: 01 07 00 10 04 00 00 00 00 00 FF 0F 29 [10:44:54]process_action close_receipt done [10:44:54]requested_data is exist [10:44:54]produce_requested_data [10:44:54]requested_item fm.sn is exist - process it [10:44:54]wFMCommunicate request_size=4 [10:44:54]MH_SAM_APDU [10:44:54]CAPDU: 80 11 00 00 [10:44:54]Write to MH i2c: E2 08 00 11 04 80 11 00 00 00 00 00 00 8F [10:44:54]Write i2c OK [10:44:54]MH_I2C_Read... [10:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:54]Read from MH i2c: E2 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 17 00 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 17 00 11 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E2 [10:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:44:54]wFMCommunicate OK [10:44:54]requested_item fd.num is exist - process it [10:44:54]SAM_PROTO_GetFieldsCounters [10:44:54]wFMCommunicate request_size=4 [10:44:54]MH_SAM_APDU [10:44:54]CAPDU: 80 13 00 00 [10:44:54]Write to MH i2c: E2 08 00 12 04 80 13 00 00 00 00 00 00 92 [10:44:54]Write i2c OK [10:44:54]MH_I2C_Read... [10:44:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:54]Read from MH i2c: E2 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 62 00 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 62 00 12 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 EE 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [10: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 EE 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:54]wFMCommunicate OK [10:44:54]SAM_PROTO_GetFieldsCounters done [10:44:54]requested_item shift.num is exist - process it [10:44:54]requested_item shift.opened is exist - process it [10:44:54]req_shift_opened [10:44:54]FM_GetShiftState [10:44:54]SAM_PROTO_GetShiftState [10:44:54]wFMCommunicate request_size=4 [10:44:54]MH_SAM_APDU [10:44:54]CAPDU: 80 13 01 00 [10:44:54]Write to MH i2c: E2 08 00 13 04 80 13 01 00 00 00 00 00 94 [10:44:54]Write i2c OK [10:44:54]MH_I2C_Read... [10:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:54]Read from MH i2c: E2 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 0E 00 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 0E 00 13 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0C [10:44:54]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:44:54]wFMCommunicate OK [10:44:54]SAM_PROTO_GetShiftState done [10:44:54]FM_GetShiftState done [10:44:54]req_shift_opened done [10:44:54]requested_item shift.open_date is exist - process it [10:44:54]req_shift_open_date [10:44:54]req_shift_open_date done [10:44:54]produce_requested_data done [10:44:54]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145646,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:44:54]process_action_free close_receipt [10:44:54]json_value_free [10:44:54]json_value_free done [10:44:54]process_json_proto returns [10:44:54]Send response to host [10:44:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145646,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:44:54]free response buf [10:44:54]execute_script done [10:44:54]execute_script returns [10:44:54]free content buf [10:44:54]Sock 9.Close socket [10:44:54]Sock 9.Thread stoped [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:52]accept exits with 7 [10:45:52]New connection [10:45:52]New thread 3066596708 created [10:45:52]Thread 3066740068 joined [10:45:52]Waiting for new connection... [10:45:52] Sock 7.Parse request [10:45:52]Sock 7.Check first char [10:45:52]Sock 7.First char is OK [10:45:52]request: POST /json_proto HTTP/1.0 [10:45:52]Method: POST [10:45:52]URL: /json_proto [10:45:52]Method is POST - this is cgi request [10:45:52]url: /json_proto [10:45:52]query_string will be loaded in cgi processing [10:45:52]execute_cgi json_proto POST (null) [10:45:52]execute_cgi path=json_proto method=POST [10:45:52]POST find Content-Length [10:45:52]Host: 172.17.40.195:8080 [10:45:52]Content-Length: 767 [10:45:52]Content-Type: application/json [10:45:52] [10:45:52]POST finish read [10:45:52]Found Content-Length = 767 [10:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:52]execute_script... [10:45: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)160397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:52]POST & json_proto [10:45:52]process_json_proto [10:45:52]json parsed OK: [10:45:52]protocol is kg_v1.0 [10:45:52]action value=close_receipt [10:45:52]process_action close_receipt [10:45:52]cmd_close_receipt [10:45:52]MH_GetDate [10:45:52]Write to MH i2c: F0 00 00 14 04 07 [10:45:52]Write i2c OK [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: F0 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: F0 09 00 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: F0 09 00 14 04 00 E1 19 1E 67 D5 8D 6C 64 C1 [10:45:52]GetLastDocTimeStamp 1730025891 [10:45:52]current date 1730025953 [10:45:52]FM_GetShiftState [10:45:52]SAM_PROTO_GetShiftState [10:45:52]wFMCommunicate request_size=4 [10:45:52]MH_SAM_APDU [10:45:52]CAPDU: 80 13 01 00 [10:45:52]Write to MH i2c: E2 08 00 15 04 80 13 01 00 00 00 00 00 96 [10:45:52]Write i2c OK [10:45:52]MH_I2C_Read... [10:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:52]Read from MH i2c: E2 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 0E 00 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 0E 00 15 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0E [10:45:52]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:45:52]wFMCommunicate OK [10:45:52]SAM_PROTO_GetShiftState done [10:45:52]FM_GetShiftState done [10:45:52]opened in 1729988959 [10:45:52]opened+sec_in_day 1730075359 [10:45:52]quantity*price = 998982 [10:45:52]sum+1 = 998983 [10:45:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9989.82 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.82 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 70 27.10.2024 10:45 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145647 ФПД: 266210583416420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104553&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145647&fm=266210583416420&tin=02508201610067®Number=0000000000091683&sum=998982 [10:45:53]StoreToDocumentArchive [10:45:53]shift 545 fd 145647 [10:45:53]save to /storage/0545/doc_00145647 [10:45:53]save last doc name /storage/0545/doc_00145647 to /storage/kkm_last_doc_name [10:45:53]save OK [10:45:53]Clear old archive folders... [10:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:45:53]tlvbuf is 0043B5A0 [10:45:53]SAM_PROTO_ClearQueue [10:45:53]wFMCommunicate request_size=4 [10:45:53]MH_SAM_APDU [10:45:53]CAPDU: 80 09 00 00 [10:45:53]Write to MH i2c: E2 08 00 22 04 80 09 00 00 00 00 00 00 98 [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:53]Read from MH i2c: E2 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 03 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [10:45:53]RAPDU: 90 00 [10:45:53]wFMCommunicate OK [10:45:53]SAM_PROTO_ClearQueue done [10:45:53]KKMCreateOFDPacket [10:45:53]OFDProtocolAddRootSTLVToBuf [10:45:53]FM_MakeSignedData [10:45:53]FM_MakeSignedData [10:45:53]SAM_PROTO_SignData [10:45:53]wFMCommunicate request_size=4 [10:45:53]MH_SAM_APDU [10:45:53]CAPDU: 80 0D 01 02 [10:45:53]Write to MH i2c: E2 08 00 23 04 80 0D 01 02 00 00 00 00 A0 [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:53]Read from MH i2c: E2 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 03 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [10:45:53]RAPDU: 90 00 [10:45:53]wFMCommunicate OK [10:45:53]wFMCommunicate request_size=255 [10:45:53]MH_SAM_APDU [10:45:53]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 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 19 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EF 38 02 00 35 04 06 00 F2 1D FB 42 [10:45:53]Write to MH i2c: E2 02 01 24 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 19 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EF 38 02 00 35 04 06 00 F2 1D FB 42 00 00 C1 [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]OFD Sender: No OFD packet to send [10:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:53]Read from MH i2c: E2 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 03 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [10:45:53]RAPDU: 90 00 [10:45:53]wFMCommunicate OK [10:45:53]wFMCommunicate request_size=7 [10:45:53]MH_SAM_APDU [10:45:53]CAPDU: 80 0D 02 02 02 8E 64 [10:45:53]Write to MH i2c: E2 0A 00 25 04 80 0D 02 02 02 00 8E 64 00 00 99 [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:53]Read from MH i2c: E2 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 03 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [10:45:53]RAPDU: 90 00 [10:45:53]wFMCommunicate OK [10:45:53]wFMCommunicate request_size=4 [10:45:53]MH_SAM_APDU [10:45:53]CAPDU: 80 0D 03 02 [10:45:53]Write to MH i2c: E2 08 00 26 04 80 0D 03 02 00 00 00 00 A5 [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:53]Read from MH i2c: E2 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 0B 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 0B 00 26 04 00 FD BB A6 6B 1F F1 00 E0 90 00 5F [10:45:53]RAPDU: FD BB A6 6B 1F F1 00 E0 90 00 [10:45:53]wFMCommunicate OK [10:45:53]SAM_PROTO_SignData done [10:45:53]FM_MakeSignedData done [10:45:53]CreateOFDProtocolMessage [10:45:53]wFMCommunicate request_size=4 [10:45:53]MH_SAM_APDU [10:45:53]CAPDU: 80 11 00 00 [10:45:53]Write to MH i2c: E2 08 00 27 04 80 11 00 00 00 00 00 00 A5 [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:53]Read from MH i2c: E2 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 17 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 17 00 27 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F8 [10:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:45:53]wFMCommunicate OK [10:45:53]CreateOFDProtocolMessage done [10:45:53]OFDSenderStorePacket 145647 [10:45:53]StoreOFDPacket docnum=145647 [10:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 93 4F 04 01 C1 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 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 19 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EF 38 02 00 35 04 06 00 F2 1D FB 42 8E 64 FD BB A6 6B 1F F1 00 E0 [10:45:53]CheckFolder [10:45:53]dirname=/storage/ofd_packets [10:45:53]CheckFolder done [10:45:53]ProducePacketName [10:45:53]name=ofd_packets/00145647 [10:45:53]NVStorageSaveData ofd_packets/00145647 [10:45:53]File name is /storage/ofd_packets/00145647 [10:45:53]Write 298 bytes [10:45:53]NVStorageSaveData done [10:45:53]OFDSenderStorePacket done [10:45:53]KKMCreateOFDPacket done [10:45:53]NVStorageSaveData kkm_last_timestamp [10:45:53]File name is /storage/kkm_last_timestamp [10:45:53]Write 4 bytes [10:45:53]NVStorageSaveData done [10:45:53]ExternCall_PrintAddStr [10:45:53]wPrintStart [10:45:53]Write to MH i2c: 01 00 00 28 04 2C [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: 01 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: 01 07 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 FF 0F 41 [10:45:53]RasterBufferAndPrint [10:45:53]line Счет N : (1)160397 [10:45:53]line ИНН: 02508201610067 [10:45:53]line Контрольно-Кассовый Чек [10:45:53]line ПРОДАЖА [10:45:53]line ТРК (МРК, ГНК) : 11 [10:45:53]line Товар: 2710194210 [10:45:53]line ДТ-К-2 [10:45:53]line 131.100 * 76.20 [10:45:53]line = 9989.82 [10:45:53]line НДС 12% НСП 1% [10:45:53]line > о реализуемом товаре [10:45:53]line ИТОГО: 9989.82 [10:45:53]line НСП 1% : 88.40 [10:45:53]line НДС 12% : 1060.87 [10:45:53]line Наличными: 0.00 [10:45:53]line Безнал.: 9989.82 [10:45:53]line Место: АЗС № 126 "Партнер Нефть" [10:45:53]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:45:53]line СНО: Общий режим [10:45:53]line Чек 70 27.10.2024 10:45 [10:45:53]line Смена: 545 ФФД: 1.0 [10:45:53]line ЗНМ: 0300000085 [10:45:53]line РНМ: 0000000000091683 [10:45:53]line Версия ККМ: 001 [10:45:53]line Платежная система: Mbank [10:45:53]line ФМ: 0000000000871745 [10:45:53]line ФД: 145647 [10:45:53]line ФПД: 266210583416420 [10:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104553&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145647&fm=266210583416420&tin=02508201610067®Number=0000000000091683&sum=998982 [10:45:54]OFD Sender: Processing packet 145647 [packets to send 206, broken 205] [10:45:54]ProducePacketName [10:45:54]name=ofd_packets/00145647 [10:45:54]OFD Sender: To server: pG, [10:45:54]CommunicateWithHost lk.salyk.kg:30040 [10:45:54]ConnectInit lk.salyk.kg [10:45:54]written 0, free lines is 4095 [10:45:54]Connected sock=10 [10:45:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 93 4F 04 01 C1 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 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E1 19 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EF 38 02 00 35 04 06 00 F2 1D FB 42 8E 64 FD BB A6 6B 1F F1 00 E0 [10:45:54]Write to MH i2c: 01 00 00 51 04 55 [10:45:54]Write i2c OK [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: 01 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: 01 07 00 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: 01 07 00 51 04 00 00 00 00 00 D4 0C 3C [10:45:54]RasterBufferAndPrint [10:45:54]line [10:45:54]line [10:45:54]line [10:45:54]line [10:45:54]line [10:45:54]written 0, free lines is 3291 [10:45:54]MH_Cut [10:45:54]Write to MH i2c: D1 01 00 58 04 01 2E [10:45:54]Write i2c OK [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: D1 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: D1 01 00 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: D1 01 00 58 04 00 2D [10:45:54]Write to MH i2c: 01 00 00 59 04 5D [10:45:54]Write i2c OK [10:45:54]MH_I2C_Read... [10:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 DA 65 47 00 F3 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 EF 38 02 00 F4 03 04 00 0F BF 1D 67 B6 04 01 00 00 3D 75 56 79 B1 12 18 40 [10:45:54]CommunicateWithHost err = 0 [10:45:54]CheckOFDResponse [10:45:54]1017 (14) - 77093643461234 [10:45:54]1041 (16) - 0000000000871745 [10:45:54]1040 (4) - 145647 [10:45:54]1012 (4) - 27.10.2024 04:18 [10:45:54]1206 (1) - 0 [10:45:54]OFD Sender: Remove packet 145647 [10:45:54]ProducePacketName [10:45:54]name=ofd_packets/00145647 [10:45:54]NVStorageDeleteData [10:45:55]OFD Sender: No OFD packet to send [10:45:55]*** Cut start [10:45:55]*** Partial cut [10:45:55]*** CUTSNS_PIN = 1 [10:45:55]*** CUTSNS_PIN = 0 [10:45:55]*** Brake cut motor [10:45:56]Read from MH i2c: 01 [10:45:56]MH_I2C_Read... [10:45:56]*** Stop cut motor [10:45:56]*** Cut end [10:45:56]Read from MH i2c: 01 07 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 07 00 59 04 00 00 00 00 00 FF 0F 72 [10:45:56]process_action close_receipt done [10:45:56]requested_data is exist [10:45:56]produce_requested_data [10:45:56]requested_item fm.sn is exist - process it [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 11 00 00 [10:45:56]Write to MH i2c: E2 08 00 5A 04 80 11 00 00 00 00 00 00 D8 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 17 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 17 00 5A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2B [10:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:45:56]wFMCommunicate OK [10:45:56]requested_item fd.num is exist - process it [10:45:56]SAM_PROTO_GetFieldsCounters [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 13 00 00 [10:45:56]Write to MH i2c: E2 08 00 5B 04 80 13 00 00 00 00 00 00 DB [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 62 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 62 00 5B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 EF 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [10:45:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 EF 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:56]wFMCommunicate OK [10:45:56]SAM_PROTO_GetFieldsCounters done [10:45:56]requested_item shift.num is exist - process it [10:45:56]requested_item shift.opened is exist - process it [10:45:56]req_shift_opened [10:45:56]FM_GetShiftState [10:45:56]SAM_PROTO_GetShiftState [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 13 01 00 [10:45:56]Write to MH i2c: E2 08 00 5C 04 80 13 01 00 00 00 00 00 DD [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 0E 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 0E 00 5C 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 55 [10:45:56]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:45:56]wFMCommunicate OK [10:45:56]SAM_PROTO_GetShiftState done [10:45:56]FM_GetShiftState done [10:45:56]req_shift_opened done [10:45:56]requested_item shift.open_date is exist - process it [10:45:56]req_shift_open_date [10:45:56]req_shift_open_date done [10:45:56]produce_requested_data done [10:45:56]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145647,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:45:56]process_action_free close_receipt [10:45:56]json_value_free [10:45:56]json_value_free done [10:45:56]process_json_proto returns [10:45:56]Send response to host [10:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145647,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:45:56]free response buf [10:45:56]execute_script done [10:45:56]execute_script returns [10:45:56]free content buf [10:45:56]Sock 7.Close socket [10:45:56]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:16]accept exits with 9 [10:48:16]New connection [10:48:16]New thread 3066740068 created [10:48:16]Thread 3066596708 joined [10:48:16]Waiting for new connection... [10:48:16] Sock 9.Parse request [10:48:16]Sock 9.Check first char [10:48:16]Sock 9.First char is OK [10:48:16]request: POST /json_proto HTTP/1.0 [10:48:16]Method: POST [10:48:16]URL: /json_proto [10:48:16]Method is POST - this is cgi request [10:48:16]url: /json_proto [10:48:16]query_string will be loaded in cgi processing [10:48:16]execute_cgi json_proto POST (null) [10:48:16]execute_cgi path=json_proto method=POST [10:48:16]POST find Content-Length [10:48:16]Host: 172.17.40.195:8080 [10:48:16]Content-Length: 677 [10:48:16]Content-Type: application/json [10:48:16] [10:48:16]POST finish read [10:48:16]Found Content-Length = 677 [10:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:16]execute_script... [10:48:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:16]POST & json_proto [10:48:16]process_json_proto [10:48:16]json parsed OK: [10:48:16]protocol is kg_v1.0 [10:48:16]action value=close_receipt [10:48:16]process_action close_receipt [10:48:16]cmd_close_receipt [10:48:16]MH_GetDate [10:48:16]Write to MH i2c: F0 00 00 5D 04 50 [10:48:16]Write i2c OK [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: F0 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: F0 09 00 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: F0 09 00 5D 04 00 71 1A 1E 67 D5 8D 6C 64 9B [10:48:16]GetLastDocTimeStamp 1730025953 [10:48:16]current date 1730026097 [10:48:16]FM_GetShiftState [10:48:16]SAM_PROTO_GetShiftState [10:48:16]wFMCommunicate request_size=4 [10:48:16]MH_SAM_APDU [10:48:16]CAPDU: 80 13 01 00 [10:48:16]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [10:48:16]Write i2c OK [10:48:16]MH_I2C_Read... [10:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:16]Read from MH i2c: E2 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 0E 00 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 57 [10:48:16]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:48:16]wFMCommunicate OK [10:48:16]SAM_PROTO_GetShiftState done [10:48:16]FM_GetShiftState done [10:48:16]opened in 1729988959 [10:48:16]opened+sec_in_day 1730075359 [10:48:16]quantity*price = 30038 [10:48:16]sum+1 = 30039 [10:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 71 27.10.2024 10:48 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145648 ФПД: 244887999316774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104817&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145648&fm=244887999316774&tin=02508201610067®Number=0000000000091683&sum=30000 [10:48:17]StoreToDocumentArchive [10:48:17]shift 545 fd 145648 [10:48:17]save to /storage/0545/doc_00145648 [10:48:17]save last doc name /storage/0545/doc_00145648 to /storage/kkm_last_doc_name [10:48:17]save OK [10:48:17]Clear old archive folders... [10:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:17]tlvbuf is 003FB4D0 [10:48:17]SAM_PROTO_ClearQueue [10:48:17]wFMCommunicate request_size=4 [10:48:17]MH_SAM_APDU [10:48:17]CAPDU: 80 09 00 00 [10:48:17]Write to MH i2c: E2 08 00 6B 04 80 09 00 00 00 00 00 00 E1 [10:48:17]Write i2c OK [10:48:17]MH_I2C_Read... [10:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:17]Read from MH i2c: E2 [10:48:17]MH_I2C_Read... [10:48:17]Read from MH i2c: E2 03 00 [10:48:17]MH_I2C_Read... [10:48:17]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [10:48:17]RAPDU: 90 00 [10:48:17]wFMCommunicate OK [10:48:17]SAM_PROTO_ClearQueue done [10:48:17]KKMCreateOFDPacket [10:48:17]OFDProtocolAddRootSTLVToBuf [10:48:17]FM_MakeSignedData [10:48:17]FM_MakeSignedData [10:48:17]SAM_PROTO_SignData [10:48:17]wFMCommunicate request_size=4 [10:48:17]MH_SAM_APDU [10:48:17]CAPDU: 80 0D 01 02 [10:48:17]Write to MH i2c: E2 08 00 6C 04 80 0D 01 02 00 00 00 00 E9 [10:48:17]Write i2c OK [10:48:17]MH_I2C_Read... [10:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:17]Read from MH i2c: E2 [10:48:17]MH_I2C_Read... [10:48:17]Read from MH i2c: E2 03 00 [10:48:17]MH_I2C_Read... [10:48:17]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [10:48:17]RAPDU: 90 00 [10:48:17]wFMCommunicate OK [10:48:17]wFMCommunicate request_size=255 [10:48:17]MH_SAM_APDU [10:48: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 71 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F0 38 02 00 35 04 06 00 DE [10:48:17]Write to MH i2c: E2 02 01 6D 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 71 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F0 38 02 00 35 04 06 00 DE 00 00 ED [10:48:17]Write i2c OK [10:48:17]MH_I2C_Read... [10:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:18]Read from MH i2c: E2 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: E2 03 00 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [10:48:18]RAPDU: 90 00 [10:48:18]wFMCommunicate OK [10:48:18]wFMCommunicate request_size=10 [10:48:18]MH_SAM_APDU [10:48:18]CAPDU: 80 0D 02 02 05 B9 6E 35 83 26 [10:48:18]Write to MH i2c: E2 0D 00 6E 04 80 0D 02 02 05 00 B9 6E 35 83 26 00 00 FB [10:48:18]Write i2c OK [10:48:18]MH_I2C_Read... [10:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:18]Read from MH i2c: E2 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: E2 03 00 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [10:48:18]RAPDU: 90 00 [10:48:18]wFMCommunicate OK [10:48:18]wFMCommunicate request_size=4 [10:48:18]MH_SAM_APDU [10:48:18]CAPDU: 80 0D 03 02 [10:48:18]Write to MH i2c: E2 08 00 6F 04 80 0D 03 02 00 00 00 00 EE [10:48:18]Write i2c OK [10:48:18]MH_I2C_Read... [10:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:18]Read from MH i2c: E2 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: E2 0B 00 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: E2 0B 00 6F 04 00 8A ED DB 75 EA DE 29 7F 90 00 26 [10:48:18]RAPDU: 8A ED DB 75 EA DE 29 7F 90 00 [10:48:18]wFMCommunicate OK [10:48:18]SAM_PROTO_SignData done [10:48:18]FM_MakeSignedData done [10:48:18]CreateOFDProtocolMessage [10:48:18]wFMCommunicate request_size=4 [10:48:18]MH_SAM_APDU [10:48:18]CAPDU: 80 11 00 00 [10:48:18]Write to MH i2c: E2 08 00 70 04 80 11 00 00 00 00 00 00 EE [10:48:18]Write i2c OK [10:48:18]MH_I2C_Read... [10:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:18]Read from MH i2c: E2 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: E2 17 00 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: E2 17 00 70 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 41 [10:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:48:18]wFMCommunicate OK [10:48:18]CreateOFDProtocolMessage done [10:48:18]OFDSenderStorePacket 145648 [10:48:18]StoreOFDPacket docnum=145648 [10:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DA 74 07 01 3C 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 71 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F0 38 02 00 35 04 06 00 DE B9 6E 35 83 26 8A ED DB 75 EA DE 29 7F [10:48:18]CheckFolder [10:48:18]dirname=/storage/ofd_packets [10:48:18]CheckFolder done [10:48:18]ProducePacketName [10:48:18]name=ofd_packets/00145648 [10:48:18]NVStorageSaveData ofd_packets/00145648 [10:48:18]File name is /storage/ofd_packets/00145648 [10:48:18]Write 301 bytes [10:48:18]NVStorageSaveData done [10:48:18]OFDSenderStorePacket done [10:48:18]KKMCreateOFDPacket done [10:48:18]NVStorageSaveData kkm_last_timestamp [10:48:18]File name is /storage/kkm_last_timestamp [10:48:18]Write 4 bytes [10:48:18]NVStorageSaveData done [10:48:18]ExternCall_PrintAddStr [10:48:18]wPrintStart [10:48:18]Write to MH i2c: 01 00 00 71 04 75 [10:48:18]Write i2c OK [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: 01 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: 01 07 00 [10:48:18]MH_I2C_Read... [10:48:18]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 FF 0F 8A [10:48:18]RasterBufferAndPrint [10:48:18]line Счет N : (1)160400 [10:48:18]line ИНН: 02508201610067 [10:48:18]line Контрольно-Кассовый Чек [10:48:18]line ПРОДАЖА [10:48:18]line ТРК (МРК, ГНК) : 42 [10:48:18]line Товар: 2710124130 [10:48:18]line Аи-92-К-2 [10:48:18]line 4.490 * 66.90 [10:48:18]line = 300.38 [10:48:18]line НДС 12% НСП 1% [10:48:18]line > о реализуемом товаре [10:48:18]line ОКРУГЛЕНИЕ: -0.38 [10:48:18]line ИТОГО: 300.00 [10:48:18]line Внесено: 300.00 [10:48:18]line СДАЧА: 0.00 [10:48:18]line НСП 1% : 2.66 [10:48:18]line НДС 12% : 31.90 [10:48:18]line Наличными: 300.00 [10:48:18]line Безнал.: 0.00 [10:48:18]line Место: АЗС № 126 "Партнер Нефть" [10:48:18]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:48:18]line СНО: Общий режим [10:48:18]line Чек 71 27.10.2024 10:48 [10:48:18]line Смена: 545 ФФД: 1.0 [10:48:18]line ЗНМ: 0300000085 [10:48:18]line РНМ: 0000000000091683 [10:48:18]line Версия ККМ: 001 [10:48:18]line ФМ: 0000000000871745 [10:48:18]line ФД: 145648 [10:48:18]line ФПД: 244887999316774 [10:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104817&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145648&fm=244887999316774&tin=02508201610067®Number=0000000000091683&sum=30000 [10:48:18]written 0, free lines is 4095 [10:48:18]OFD Sender: Processing packet 145648 [packets to send 206, broken 205] [10:48:18]ProducePacketName [10:48:18]name=ofd_packets/00145648 [10:48:18]OFD Sender: To server: pG, [10:48:18]CommunicateWithHost lk.salyk.kg:30040 [10:48:18]ConnectInit lk.salyk.kg [10:48:18]Connected sock=10 [10:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DA 74 07 01 3C 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 71 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F0 38 02 00 35 04 06 00 DE B9 6E 35 83 26 8A ED DB 75 EA DE 29 7F [10:48:19]Write to MH i2c: 01 00 00 9C 04 A0 [10:48:19]Write i2c OK [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: 01 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: 01 07 00 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: 01 07 00 9C 04 00 00 00 00 00 A3 0C 56 [10:48:19]RasterBufferAndPrint [10:48:19]line [10:48:19]line [10:48:19]line [10:48:19]line [10:48:19]line [10:48:19]written 0, free lines is 3241 [10:48:19]MH_Cut [10:48:19]Write to MH i2c: D1 01 00 A3 04 01 79 [10:48:19]Write i2c OK [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: D1 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: D1 01 00 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: D1 01 00 A3 04 00 78 [10:48:19]Write to MH i2c: 01 00 00 A4 04 A8 [10:48:19]Write i2c OK [10:48:19]MH_I2C_Read... [10:48:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 B4 B5 47 00 AF C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F0 38 02 00 F4 03 04 00 9F BF 1D 67 B6 04 01 00 00 21 BA 6B 57 24 DA D1 35 [10:48:19]CommunicateWithHost err = 0 [10:48:19]CheckOFDResponse [10:48:19]1017 (14) - 77093643461234 [10:48:19]1041 (16) - 0000000000871745 [10:48:19]1040 (4) - 145648 [10:48:19]1012 (4) - 27.10.2024 04:20 [10:48:19]1206 (1) - 0 [10:48:19]OFD Sender: Remove packet 145648 [10:48:19]ProducePacketName [10:48:19]name=ofd_packets/00145648 [10:48:19]NVStorageDeleteData [10:48:19]OFD Sender: No OFD packet to send [10:48:19]*** Cut start [10:48:19]*** Partial cut [10:48:19]*** CUTSNS_PIN = 1 [10:48:19]*** CUTSNS_PIN = 0 [10:48:20]*** Brake cut motor [10:48:20]Read from MH i2c: 01 [10:48:20]MH_I2C_Read... [10:48:20]*** Stop cut motor [10:48:20]*** Cut end [10:48:20]Read from MH i2c: 01 07 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 FF 0F BD [10:48:20]process_action close_receipt done [10:48:20]requested_data is exist [10:48:20]produce_requested_data [10:48:20]requested_item fm.sn is exist - process it [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 11 00 00 [10:48:20]Write to MH i2c: E2 08 00 A5 04 80 11 00 00 00 00 00 00 23 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 17 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 17 00 A5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 76 [10:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:48:20]wFMCommunicate OK [10:48:20]requested_item fd.num is exist - process it [10:48:20]SAM_PROTO_GetFieldsCounters [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 13 00 00 [10:48:20]Write to MH i2c: E2 08 00 A6 04 80 13 00 00 00 00 00 00 26 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 62 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 62 00 A6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F0 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [10:48:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F0 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:20]wFMCommunicate OK [10:48:20]SAM_PROTO_GetFieldsCounters done [10:48:20]requested_item shift.num is exist - process it [10:48:20]requested_item shift.opened is exist - process it [10:48:20]req_shift_opened [10:48:20]FM_GetShiftState [10:48:20]SAM_PROTO_GetShiftState [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 13 01 00 [10:48:20]Write to MH i2c: E2 08 00 A7 04 80 13 01 00 00 00 00 00 28 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 0E 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 0E 00 A7 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A0 [10:48:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:48:20]wFMCommunicate OK [10:48:20]SAM_PROTO_GetShiftState done [10:48:20]FM_GetShiftState done [10:48:20]req_shift_opened done [10:48:20]requested_item shift.open_date is exist - process it [10:48:20]req_shift_open_date [10:48:20]req_shift_open_date done [10:48:20]produce_requested_data done [10:48:20]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145648,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:48:20]process_action_free close_receipt [10:48:20]json_value_free [10:48:20]json_value_free done [10:48:20]process_json_proto returns [10:48:20]Send response to host [10:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145648,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:48:20]free response buf [10:48:20]execute_script done [10:48:20]execute_script returns [10:48:20]free content buf [10:48:20]Sock 9.Close socket [10:48:20]Sock 9.Thread stoped [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:02]accept exits with 7 [10:49:02]New connection [10:49:02]New thread 3066596708 created [10:49:02]Thread 3066740068 joined [10:49:02]Waiting for new connection... [10:49:02] Sock 7.Parse request [10:49:02]Sock 7.Check first char [10:49:02]Sock 7.First char is OK [10:49:02]request: POST /json_proto HTTP/1.0 [10:49:02]Method: POST [10:49:02]URL: /json_proto [10:49:02]Method is POST - this is cgi request [10:49:02]url: /json_proto [10:49:02]query_string will be loaded in cgi processing [10:49:02]execute_cgi json_proto POST (null) [10:49:02]execute_cgi path=json_proto method=POST [10:49:02]POST find Content-Length [10:49:02]Host: 172.17.40.195:8080 [10:49:02]Content-Length: 682 [10:49:02]Content-Type: application/json [10:49:02] [10:49:02]POST finish read [10:49:02]Found Content-Length = 682 [10:49:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:02]execute_script... [10:49: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)160401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:02]POST & json_proto [10:49:02]process_json_proto [10:49:02]json parsed OK: [10:49:02]protocol is kg_v1.0 [10:49:02]action value=close_receipt [10:49:02]process_action close_receipt [10:49:02]cmd_close_receipt [10:49:02]MH_GetDate [10:49:02]Write to MH i2c: F0 00 00 A8 04 9B [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: F0 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: F0 09 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: F0 09 00 A8 04 00 9F 1A 1E 67 D5 8D 6C 64 14 [10:49:02]GetLastDocTimeStamp 1730026097 [10:49:02]current date 1730026143 [10:49:02]FM_GetShiftState [10:49:02]SAM_PROTO_GetShiftState [10:49:02]wFMCommunicate request_size=4 [10:49:02]MH_SAM_APDU [10:49:02]CAPDU: 80 13 01 00 [10:49:02]Write to MH i2c: E2 08 00 A9 04 80 13 01 00 00 00 00 00 2A [10:49:02]Write i2c OK [10:49:02]MH_I2C_Read... [10:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:02]Read from MH i2c: E2 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 0E 00 [10:49:02]MH_I2C_Read... [10:49:02]Read from MH i2c: E2 0E 00 A9 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A2 [10:49:02]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:49:02]wFMCommunicate OK [10:49:02]SAM_PROTO_GetShiftState done [10:49:02]FM_GetShiftState done [10:49:02]opened in 1729988959 [10:49:02]opened+sec_in_day 1730075359 [10:49:02]quantity*price = 200031 [10:49:02]sum+1 = 200032 [10:49:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 72 27.10.2024 10:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145649 ФПД: 30076921297711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104903&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145649&fm=30076921297711&tin=02508201610067®Number=0000000000091683&sum=200000 [10:49:03]StoreToDocumentArchive [10:49:03]shift 545 fd 145649 [10:49:03]save to /storage/0545/doc_00145649 [10:49:03]save last doc name /storage/0545/doc_00145649 to /storage/kkm_last_doc_name [10:49:03]save OK [10:49:03]Clear old archive folders... [10:49:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:03]tlvbuf is 0043B6E0 [10:49:03]SAM_PROTO_ClearQueue [10:49:03]wFMCommunicate request_size=4 [10:49:03]MH_SAM_APDU [10:49:03]CAPDU: 80 09 00 00 [10:49:03]Write to MH i2c: E2 08 00 B6 04 80 09 00 00 00 00 00 00 2C [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 03 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [10:49:03]RAPDU: 90 00 [10:49:03]wFMCommunicate OK [10:49:03]SAM_PROTO_ClearQueue done [10:49:03]KKMCreateOFDPacket [10:49:03]OFDProtocolAddRootSTLVToBuf [10:49:03]FM_MakeSignedData [10:49:03]FM_MakeSignedData [10:49:03]SAM_PROTO_SignData [10:49:03]wFMCommunicate request_size=4 [10:49:03]MH_SAM_APDU [10:49:03]CAPDU: 80 0D 01 02 [10:49:03]Write to MH i2c: E2 08 00 B7 04 80 0D 01 02 00 00 00 00 34 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 03 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [10:49:03]RAPDU: 90 00 [10:49:03]wFMCommunicate OK [10:49:03]wFMCommunicate request_size=255 [10:49:03]MH_SAM_APDU [10:49: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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9F 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F1 38 02 00 35 04 06 00 1B [10:49:03]Write to MH i2c: E2 02 01 B8 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9F 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F1 38 02 00 35 04 06 00 1B 00 00 F3 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 03 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [10:49:03]RAPDU: 90 00 [10:49:03]wFMCommunicate OK [10:49:03]wFMCommunicate request_size=10 [10:49:03]MH_SAM_APDU [10:49:03]CAPDU: 80 0D 02 02 05 5A D4 35 BB 2F [10:49:03]Write to MH i2c: E2 0D 00 B9 04 80 0D 02 02 05 00 5A D4 35 BB 2F 00 00 8E [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 03 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [10:49:03]RAPDU: 90 00 [10:49:03]wFMCommunicate OK [10:49:03]wFMCommunicate request_size=4 [10:49:03]MH_SAM_APDU [10:49:03]CAPDU: 80 0D 03 02 [10:49:03]Write to MH i2c: E2 08 00 BA 04 80 0D 03 02 00 00 00 00 39 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 0B 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 0B 00 BA 04 00 38 4C 34 45 8A BD C3 64 90 00 A5 [10:49:03]RAPDU: 38 4C 34 45 8A BD C3 64 90 00 [10:49:03]wFMCommunicate OK [10:49:03]SAM_PROTO_SignData done [10:49:03]FM_MakeSignedData done [10:49:03]CreateOFDProtocolMessage [10:49:03]wFMCommunicate request_size=4 [10:49:03]MH_SAM_APDU [10:49:03]CAPDU: 80 11 00 00 [10:49:03]Write to MH i2c: E2 08 00 BB 04 80 11 00 00 00 00 00 00 39 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 17 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 17 00 BB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8C [10:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:49:04]wFMCommunicate OK [10:49:04]CreateOFDProtocolMessage done [10:49:04]OFDSenderStorePacket 145649 [10:49:04]StoreOFDPacket docnum=145649 [10:49:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 69 8F 07 01 A6 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9F 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F1 38 02 00 35 04 06 00 1B 5A D4 35 BB 2F 38 4C 34 45 8A BD C3 64 [10:49:04]CheckFolder [10:49:04]dirname=/storage/ofd_packets [10:49:04]CheckFolder done [10:49:04]ProducePacketName [10:49:04]name=ofd_packets/00145649 [10:49:04]NVStorageSaveData ofd_packets/00145649 [10:49:04]File name is /storage/ofd_packets/00145649 [10:49:04]Write 301 bytes [10:49:04]NVStorageSaveData done [10:49:04]OFDSenderStorePacket done [10:49:04]KKMCreateOFDPacket done [10:49:04]NVStorageSaveData kkm_last_timestamp [10:49:04]File name is /storage/kkm_last_timestamp [10:49:04]Write 4 bytes [10:49:04]NVStorageSaveData done [10:49:04]ExternCall_PrintAddStr [10:49:04]wPrintStart [10:49:04]Write to MH i2c: 01 00 00 BC 04 C0 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 07 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 FF 0F D5 [10:49:04]RasterBufferAndPrint [10:49:04]line Счет N : (1)160401 [10:49:04]line ИНН: 02508201610067 [10:49:04]line Контрольно-Кассовый Чек [10:49:04]line ПРОДАЖА [10:49:04]line ТРК (МРК, ГНК) : 52 [10:49:04]line Товар: 2710124130 [10:49:04]line Аи-92-К-2 [10:49:04]line 29.900 * 66.90 [10:49:04]line = 2000.31 [10:49:04]line НДС 12% НСП 1% [10:49:04]line > о реализуемом товаре [10:49:04]line ОКРУГЛЕНИЕ: -0.31 [10:49:04]line ИТОГО: 2000.00 [10:49:04]line Внесено: 2000.00 [10:49:04]line СДАЧА: 0.00 [10:49:04]line НСП 1% : 17.70 [10:49:04]line НДС 12% : 212.42 [10:49:04]line Наличными: 2000.00 [10:49:04]line Безнал.: 0.00 [10:49:04]line Место: АЗС № 126 "Партнер Нефть" [10:49:04]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:49:04]line СНО: Общий режим [10:49:04]line Чек 72 27.10.2024 10:49 [10:49:04]line Смена: 545 ФФД: 1.0 [10:49:04]line ЗНМ: 0300000085 [10:49:04]line РНМ: 0000000000091683 [10:49:04]line Версия ККМ: 001 [10:49:04]line ФМ: 0000000000871745 [10:49:04]line ФД: 145649 [10:49:04]line ФПД: 30076921297711 [10:49:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104903&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145649&fm=30076921297711&tin=02508201610067®Number=0000000000091683&sum=200000 [10:49:04]written 0, free lines is 4095 [10:49:04]OFD Sender: Processing packet 145649 [packets to send 206, broken 205] [10:49:04]ProducePacketName [10:49:04]name=ofd_packets/00145649 [10:49:04]OFD Sender: To server: pG, [10:49:04]CommunicateWithHost lk.salyk.kg:30040 [10:49:04]ConnectInit lk.salyk.kg [10:49:04]Connected sock=11 [10:49:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 69 8F 07 01 A6 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9F 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F1 38 02 00 35 04 06 00 1B 5A D4 35 BB 2F 38 4C 34 45 8A BD C3 64 [10:49:04]Write to MH i2c: 01 00 00 E7 04 EB [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 07 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 AF 0C AD [10:49:04]RasterBufferAndPrint [10:49:04]line [10:49:04]line [10:49:04]line [10:49:04]line [10:49:04]line [10:49:04]written 0, free lines is 3253 [10:49:04]MH_Cut [10:49:04]Write to MH i2c: D1 01 00 EE 04 01 C4 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: D1 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: D1 01 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: D1 01 00 EE 04 00 C3 [10:49:04]Write to MH i2c: 01 00 00 EF 04 F3 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C3 B9 47 00 F6 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 31 37 34 35 10 04 04 00 F1 38 02 00 F4 03 04 00 CD BF 1D 67 B6 04 01 00 00 36 75 C0 1B 70 B8 CE 2D [10:49:04]CommunicateWithHost err = 0 [10:49:04]CheckOFDResponse [10:49:04]1017 (14) - 77093643461234 [10:49:04]1041 (16) - 0000000000871745 [10:49:04]1040 (4) - 145649 [10:49:04]1012 (4) - 27.10.2024 04:21 [10:49:04]1206 (1) - 0 [10:49:04]OFD Sender: Remove packet 145649 [10:49:04]ProducePacketName [10:49:04]name=ofd_packets/00145649 [10:49:04]NVStorageDeleteData [10:49:05]OFD Sender: No OFD packet to send [10:49:05]*** Cut start [10:49:05]*** Partial cut [10:49:05]*** CUTSNS_PIN = 1 [10:49:05]*** CUTSNS_PIN = 0 [10:49:05]*** Brake cut motor [10:49:05]Read from MH i2c: 01 [10:49:05]MH_I2C_Read... [10:49:05]*** Stop cut motor [10:49:05]*** Cut end [10:49:05]Read from MH i2c: 01 07 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: 01 07 00 EF 04 00 00 00 00 00 FF 0F 08 [10:49:05]process_action close_receipt done [10:49:05]requested_data is exist [10:49:05]produce_requested_data [10:49:05]requested_item fm.sn is exist - process it [10:49:05]wFMCommunicate request_size=4 [10:49:05]MH_SAM_APDU [10:49:05]CAPDU: 80 11 00 00 [10:49:05]Write to MH i2c: E2 08 00 F0 04 80 11 00 00 00 00 00 00 6E [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:05]Read from MH i2c: E2 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 17 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 17 00 F0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C1 [10:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:49:05]wFMCommunicate OK [10:49:05]requested_item fd.num is exist - process it [10:49:05]SAM_PROTO_GetFieldsCounters [10:49:05]wFMCommunicate request_size=4 [10:49:05]MH_SAM_APDU [10:49:05]CAPDU: 80 13 00 00 [10:49:05]Write to MH i2c: E2 08 00 F1 04 80 13 00 00 00 00 00 00 71 [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:06]Read from MH i2c: E2 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 62 00 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 62 00 F1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F1 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [10:49:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F1 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:06]wFMCommunicate OK [10:49:06]SAM_PROTO_GetFieldsCounters done [10:49:06]requested_item shift.num is exist - process it [10:49:06]requested_item shift.opened is exist - process it [10:49:06]req_shift_opened [10:49:06]FM_GetShiftState [10:49:06]SAM_PROTO_GetShiftState [10:49:06]wFMCommunicate request_size=4 [10:49:06]MH_SAM_APDU [10:49:06]CAPDU: 80 13 01 00 [10:49:06]Write to MH i2c: E2 08 00 F2 04 80 13 01 00 00 00 00 00 73 [10:49:06]Write i2c OK [10:49:06]MH_I2C_Read... [10:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:06]Read from MH i2c: E2 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 0E 00 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 0E 00 F2 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EB [10:49:06]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:49:06]wFMCommunicate OK [10:49:06]SAM_PROTO_GetShiftState done [10:49:06]FM_GetShiftState done [10:49:06]req_shift_opened done [10:49:06]requested_item shift.open_date is exist - process it [10:49:06]req_shift_open_date [10:49:06]req_shift_open_date done [10:49:06]produce_requested_data done [10:49:06]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145649,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:49:06]process_action_free close_receipt [10:49:06]json_value_free [10:49:06]json_value_free done [10:49:06]process_json_proto returns [10:49:06]Send response to host [10:49:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145649,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:49:06]free response buf [10:49:06]execute_script done [10:49:06]execute_script returns [10:49:06]free content buf [10:49:06]Sock 7.Close socket [10:49:06]Sock 7.Thread stoped [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:49]accept exits with 9 [10:49:49]New connection [10:49:49]New thread 3066740068 created [10:49:49]Thread 3066596708 joined [10:49:49]Waiting for new connection... [10:49:49] Sock 9.Parse request [10:49:49]Sock 9.Check first char [10:49:49]Sock 9.First char is OK [10:49:49]request: POST /json_proto HTTP/1.0 [10:49:49]Method: POST [10:49:49]URL: /json_proto [10:49:49]Method is POST - this is cgi request [10:49:49]url: /json_proto [10:49:49]query_string will be loaded in cgi processing [10:49:49]execute_cgi json_proto POST (null) [10:49:49]execute_cgi path=json_proto method=POST [10:49:49]POST find Content-Length [10:49:49]Host: 172.17.40.195:8080 [10:49:49]Content-Length: 767 [10:49:49]Content-Type: application/json [10:49:49] [10:49:49]POST finish read [10:49:49]Found Content-Length = 767 [10:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:49]execute_script... [10:49:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:49]POST & json_proto [10:49:49]process_json_proto [10:49:49]json parsed OK: [10:49:49]protocol is kg_v1.0 [10:49:49]action value=close_receipt [10:49:49]process_action close_receipt [10:49:49]cmd_close_receipt [10:49:49]MH_GetDate [10:49:49]Write to MH i2c: F0 00 00 F3 04 E6 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: F0 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: F0 09 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: F0 09 00 F3 04 00 CF 1A 1E 67 D5 8D 6C 64 8F [10:49:49]GetLastDocTimeStamp 1730026143 [10:49:49]current date 1730026191 [10:49:49]FM_GetShiftState [10:49:49]SAM_PROTO_GetShiftState [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 13 01 00 [10:49:49]Write to MH i2c: E2 08 00 F4 04 80 13 01 00 00 00 00 00 75 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:50]Read from MH i2c: E2 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 0E 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 0E 00 F4 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 ED [10:49:50]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:49:50]wFMCommunicate OK [10:49:50]SAM_PROTO_GetShiftState done [10:49:50]FM_GetShiftState done [10:49:50]opened in 1729988959 [10:49:50]opened+sec_in_day 1730075359 [10:49:50]quantity*price = 998982 [10:49:50]sum+1 = 998983 [10:49:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9989.82 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.82 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 73 27.10.2024 10:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145650 ФПД: 47057196389032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104951&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145650&fm=47057196389032&tin=02508201610067®Number=0000000000091683&sum=998982 [10:49:51]StoreToDocumentArchive [10:49:51]shift 545 fd 145650 [10:49:51]save to /storage/0545/doc_00145650 [10:49:51]save last doc name /storage/0545/doc_00145650 to /storage/kkm_last_doc_name [10:49:51]save OK [10:49:51]Clear old archive folders... [10:49:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:49:51]tlvbuf is 003F9950 [10:49:51]SAM_PROTO_ClearQueue [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 09 00 00 [10:49:51]Write to MH i2c: E2 08 00 01 05 80 09 00 00 00 00 00 00 78 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 03 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [10:49:51]RAPDU: 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_ClearQueue done [10:49:51]KKMCreateOFDPacket [10:49:51]OFDProtocolAddRootSTLVToBuf [10:49:51]FM_MakeSignedData [10:49:51]FM_MakeSignedData [10:49:51]SAM_PROTO_SignData [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 0D 01 02 [10:49:51]Write to MH i2c: E2 08 00 02 05 80 0D 01 02 00 00 00 00 80 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 03 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [10:49:51]RAPDU: 90 00 [10:49:51]wFMCommunicate OK [10:49:51]wFMCommunicate request_size=255 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CF 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F2 38 02 00 35 04 06 00 2A CC 5B 79 [10:49:51]Write to MH i2c: E2 02 01 03 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CF 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F2 38 02 00 35 04 06 00 2A CC 5B 79 00 00 14 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 03 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 03 00 03 05 00 90 00 7C [10:49:51]RAPDU: 90 00 [10:49:51]wFMCommunicate OK [10:49:51]wFMCommunicate request_size=7 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 0D 02 02 02 92 A8 [10:49:51]Write to MH i2c: E2 0A 00 04 05 80 0D 02 02 02 00 92 A8 00 00 C1 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 03 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [10:49:51]RAPDU: 90 00 [10:49:51]wFMCommunicate OK [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 0D 03 02 [10:49:51]Write to MH i2c: E2 08 00 05 05 80 0D 03 02 00 00 00 00 85 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0B 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0B 00 05 05 00 9C EC 39 37 16 85 FB C2 90 00 D6 [10:49:51]RAPDU: 9C EC 39 37 16 85 FB C2 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_SignData done [10:49:51]FM_MakeSignedData done [10:49:51]CreateOFDProtocolMessage [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 11 00 00 [10:49:51]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 06 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D8 [10:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:49:51]wFMCommunicate OK [10:49:51]CreateOFDProtocolMessage done [10:49:51]OFDSenderStorePacket 145650 [10:49:51]StoreOFDPacket docnum=145650 [10:49:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 36 A4 04 01 B3 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CF 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F2 38 02 00 35 04 06 00 2A CC 5B 79 92 A8 9C EC 39 37 16 85 FB C2 [10:49:51]CheckFolder [10:49:51]dirname=/storage/ofd_packets [10:49:51]CheckFolder done [10:49:51]ProducePacketName [10:49:51]name=ofd_packets/00145650 [10:49:51]NVStorageSaveData ofd_packets/00145650 [10:49:51]File name is /storage/ofd_packets/00145650 [10:49:51]Write 298 bytes [10:49:51]NVStorageSaveData done [10:49:51]OFDSenderStorePacket done [10:49:51]KKMCreateOFDPacket done [10:49:51]NVStorageSaveData kkm_last_timestamp [10:49:51]File name is /storage/kkm_last_timestamp [10:49:51]Write 4 bytes [10:49:51]NVStorageSaveData done [10:49:51]ExternCall_PrintAddStr [10:49:51]wPrintStart [10:49:51]Write to MH i2c: 01 00 00 07 05 0C [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 FF 0F 21 [10:49:51]RasterBufferAndPrint [10:49:51]line Счет N : (1)160399 [10:49:51]line ИНН: 02508201610067 [10:49:51]line Контрольно-Кассовый Чек [10:49:51]line ПРОДАЖА [10:49:51]line ТРК (МРК, ГНК) : 11 [10:49:51]line Товар: 2710194210 [10:49:51]line ДТ-К-2 [10:49:51]line 131.100 * 76.20 [10:49:51]line = 9989.82 [10:49:51]line НДС 12% НСП 1% [10:49:51]line > о реализуемом товаре [10:49:51]line ИТОГО: 9989.82 [10:49:51]line НСП 1% : 88.40 [10:49:51]line НДС 12% : 1060.87 [10:49:51]line Наличными: 0.00 [10:49:51]line Безнал.: 9989.82 [10:49:51]line Место: АЗС № 126 "Партнер Нефть" [10:49:51]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:49:51]line СНО: Общий режим [10:49:51]line Чек 73 27.10.2024 10:49 [10:49:51]line Смена: 545 ФФД: 1.0 [10:49:51]line ЗНМ: 0300000085 [10:49:51]line РНМ: 0000000000091683 [10:49:51]line Версия ККМ: 001 [10:49:51]line Платежная система: Mbank [10:49:51]line ФМ: 0000000000871745 [10:49:51]line ФД: 145650 [10:49:51]line ФПД: 47057196389032 [10:49:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104951&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145650&fm=47057196389032&tin=02508201610067®Number=0000000000091683&sum=998982 [10:49:52]OFD Sender: Processing packet 145650 [packets to send 206, broken 205] [10:49:52]ProducePacketName [10:49:52]name=ofd_packets/00145650 [10:49:52]OFD Sender: To server: pG, [10:49:52]CommunicateWithHost lk.salyk.kg:30040 [10:49:52]ConnectInit lk.salyk.kg [10:49:52]written 0, free lines is 4095 [10:49:52]Connected sock=10 [10:49:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 36 A4 04 01 B3 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CF 1A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F2 38 02 00 35 04 06 00 2A CC 5B 79 92 A8 9C EC 39 37 16 85 FB C2 [10:49:52]Write to MH i2c: 01 00 00 30 05 35 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: 01 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: 01 07 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: 01 07 00 30 05 00 00 00 00 00 DB 0C 23 [10:49:52]RasterBufferAndPrint [10:49:52]line [10:49:52]line [10:49:52]line [10:49:52]line [10:49:52]line [10:49:52]written 0, free lines is 3297 [10:49:52]MH_Cut [10:49:52]Write to MH i2c: D1 01 00 37 05 01 0E [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: D1 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: D1 01 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: D1 01 00 37 05 00 0D [10:49:52]Write to MH i2c: 01 00 00 38 05 3D [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 70 78 47 00 C6 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F2 38 02 00 F4 03 04 00 FC BF 1D 67 B6 04 01 00 00 56 C1 98 D7 5F 44 A3 6E [10:49:52]CommunicateWithHost err = 0 [10:49:52]CheckOFDResponse [10:49:52]1017 (14) - 77093643461234 [10:49:52]1041 (16) - 0000000000871745 [10:49:52]1040 (4) - 145650 [10:49:52]1012 (4) - 27.10.2024 04:22 [10:49:52]1206 (1) - 0 [10:49:52]OFD Sender: Remove packet 145650 [10:49:52]ProducePacketName [10:49:52]name=ofd_packets/00145650 [10:49:52]NVStorageDeleteData [10:49:53]OFD Sender: No OFD packet to send [10:49:53]*** Cut start [10:49:53]*** Partial cut [10:49:53]*** CUTSNS_PIN = 1 [10:49:53]*** CUTSNS_PIN = 0 [10:49:53]*** Brake cut motor [10:49:53]Read from MH i2c: 01 [10:49:53]MH_I2C_Read... [10:49:53]*** Stop cut motor [10:49:53]*** Cut end [10:49:53]Read from MH i2c: 01 07 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 07 00 38 05 00 00 00 00 00 FF 0F 52 [10:49:53]process_action close_receipt done [10:49:53]requested_data is exist [10:49:53]produce_requested_data [10:49:53]requested_item fm.sn is exist - process it [10:49:53]wFMCommunicate request_size=4 [10:49:53]MH_SAM_APDU [10:49:53]CAPDU: 80 11 00 00 [10:49:53]Write to MH i2c: E2 08 00 39 05 80 11 00 00 00 00 00 00 B8 [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:53]Read from MH i2c: E2 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: E2 17 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: E2 17 00 39 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0B [10:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:49:53]wFMCommunicate OK [10:49:53]requested_item fd.num is exist - process it [10:49:53]SAM_PROTO_GetFieldsCounters [10:49:53]wFMCommunicate request_size=4 [10:49:53]MH_SAM_APDU [10:49:53]CAPDU: 80 13 00 00 [10:49:53]Write to MH i2c: E2 08 00 3A 05 80 13 00 00 00 00 00 00 BB [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:54]Read from MH i2c: E2 [10:49:54]MH_I2C_Read... [10:49:54]Read from MH i2c: E2 62 00 [10:49:54]MH_I2C_Read... [10:49:54]Read from MH i2c: E2 62 00 3A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F2 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [10:49:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F2 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:54]wFMCommunicate OK [10:49:54]SAM_PROTO_GetFieldsCounters done [10:49:54]requested_item shift.num is exist - process it [10:49:54]requested_item shift.opened is exist - process it [10:49:54]req_shift_opened [10:49:54]FM_GetShiftState [10:49:54]SAM_PROTO_GetShiftState [10:49:54]wFMCommunicate request_size=4 [10:49:54]MH_SAM_APDU [10:49:54]CAPDU: 80 13 01 00 [10:49:54]Write to MH i2c: E2 08 00 3B 05 80 13 01 00 00 00 00 00 BD [10:49:54]Write i2c OK [10:49:54]MH_I2C_Read... [10:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:54]Read from MH i2c: E2 [10:49:54]MH_I2C_Read... [10:49:54]Read from MH i2c: E2 0E 00 [10:49:54]MH_I2C_Read... [10:49:54]Read from MH i2c: E2 0E 00 3B 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 35 [10:49:54]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:49:54]wFMCommunicate OK [10:49:54]SAM_PROTO_GetShiftState done [10:49:54]FM_GetShiftState done [10:49:54]req_shift_opened done [10:49:54]requested_item shift.open_date is exist - process it [10:49:54]req_shift_open_date [10:49:54]req_shift_open_date done [10:49:54]produce_requested_data done [10:49:54]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145650,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:49:54]process_action_free close_receipt [10:49:54]json_value_free [10:49:54]json_value_free done [10:49:54]process_json_proto returns [10:49:54]Send response to host [10:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145650,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:49:54]free response buf [10:49:54]execute_script done [10:49:54]execute_script returns [10:49:54]free content buf [10:49:54]Sock 9.Close socket [10:49:54]Sock 9.Thread stoped [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:45]accept exits with 7 [10:52:45]New connection [10:52:45]New thread 3066596708 created [10:52:45]Thread 3066740068 joined [10:52:45]Waiting for new connection... [10:52:45] Sock 7.Parse request [10:52:45]Sock 7.Check first char [10:52:45]Sock 7.First char is OK [10:52:45]request: POST /json_proto HTTP/1.0 [10:52:45]Method: POST [10:52:45]URL: /json_proto [10:52:45]Method is POST - this is cgi request [10:52:45]url: /json_proto [10:52:45]query_string will be loaded in cgi processing [10:52:45]execute_cgi json_proto POST (null) [10:52:45]execute_cgi path=json_proto method=POST [10:52:45]POST find Content-Length [10:52:45]Host: 172.17.40.195:8080 [10:52:45]Content-Length: 766 [10:52:45]Content-Type: application/json [10:52:45] [10:52:45]POST finish read [10:52:45]Found Content-Length = 766 [10:52:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:45]execute_script... [10:52: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)160402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:45]POST & json_proto [10:52:45]process_json_proto [10:52:45]json parsed OK: [10:52:45]protocol is kg_v1.0 [10:52:45]action value=close_receipt [10:52:45]process_action close_receipt [10:52:45]cmd_close_receipt [10:52:45]MH_GetDate [10:52:45]Write to MH i2c: F0 00 00 3C 05 30 [10:52:45]Write i2c OK [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: F0 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: F0 09 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: F0 09 00 3C 05 00 7E 1B 1E 67 D5 8D 6C 64 89 [10:52:45]GetLastDocTimeStamp 1730026191 [10:52:45]current date 1730026366 [10:52:45]FM_GetShiftState [10:52:45]SAM_PROTO_GetShiftState [10:52:45]wFMCommunicate request_size=4 [10:52:45]MH_SAM_APDU [10:52:45]CAPDU: 80 13 01 00 [10:52:45]Write to MH i2c: E2 08 00 3D 05 80 13 01 00 00 00 00 00 BF [10:52:45]Write i2c OK [10:52:45]MH_I2C_Read... [10:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:45]Read from MH i2c: E2 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 0E 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 0E 00 3D 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 37 [10:52:45]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:52:45]wFMCommunicate OK [10:52:45]SAM_PROTO_GetShiftState done [10:52:45]FM_GetShiftState done [10:52:45]opened in 1729988959 [10:52:45]opened+sec_in_day 1730075359 [10:52:45]quantity*price = 700049 [10:52:45]sum+1 = 700050 [10:52:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7000.49 НСП 1% : 61.95 НДС 12% : 743.41 Наличными: 0.00 Безнал.: 7000.49 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 74 27.10.2024 10:52 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145651 ФПД: 106182316297699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105246&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145651&fm=106182316297699&tin=02508201610067®Number=0000000000091683&sum=700049 [10:52:46]StoreToDocumentArchive [10:52:46]shift 545 fd 145651 [10:52:46]save to /storage/0545/doc_00145651 [10:52:46]save last doc name /storage/0545/doc_00145651 to /storage/kkm_last_doc_name [10:52:46]save OK [10:52:46]Clear old archive folders... [10:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:52:46]tlvbuf is 0042C5A0 [10:52:46]SAM_PROTO_ClearQueue [10:52:46]wFMCommunicate request_size=4 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 09 00 00 [10:52:46]Write to MH i2c: E2 08 00 4A 05 80 09 00 00 00 00 00 00 C1 [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [10:52:46]RAPDU: 90 00 [10:52:46]wFMCommunicate OK [10:52:46]SAM_PROTO_ClearQueue done [10:52:46]KKMCreateOFDPacket [10:52:46]OFDProtocolAddRootSTLVToBuf [10:52:46]FM_MakeSignedData [10:52:46]FM_MakeSignedData [10:52:46]SAM_PROTO_SignData [10:52:46]wFMCommunicate request_size=4 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 0D 01 02 [10:52:46]Write to MH i2c: E2 08 00 4B 05 80 0D 01 02 00 00 00 00 C9 [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [10:52:46]RAPDU: 90 00 [10:52:46]wFMCommunicate OK [10:52:46]wFMCommunicate request_size=255 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 7E 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F3 38 02 00 35 04 06 00 60 92 7F 3E [10:52:46]Write to MH i2c: E2 02 01 4C 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 7E 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F3 38 02 00 35 04 06 00 60 92 7F 3E 00 00 60 [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [10:52:47]RAPDU: 90 00 [10:52:47]wFMCommunicate OK [10:52:47]wFMCommunicate request_size=7 [10:52:47]MH_SAM_APDU [10:52:47]CAPDU: 80 0D 02 02 02 8D E3 [10:52:47]Write to MH i2c: E2 0A 00 4D 05 80 0D 02 02 02 00 8D E3 00 00 40 [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [10:52:47]RAPDU: 90 00 [10:52:47]wFMCommunicate OK [10:52:47]wFMCommunicate request_size=4 [10:52:47]MH_SAM_APDU [10:52:47]CAPDU: 80 0D 03 02 [10:52:47]Write to MH i2c: E2 08 00 4E 05 80 0D 03 02 00 00 00 00 CE [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 0B 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 0B 00 4E 05 00 8E 09 CB EE A6 E6 19 C9 90 00 8D [10:52:47]RAPDU: 8E 09 CB EE A6 E6 19 C9 90 00 [10:52:47]wFMCommunicate OK [10:52:47]SAM_PROTO_SignData done [10:52:47]FM_MakeSignedData done [10:52:47]CreateOFDProtocolMessage [10:52:47]wFMCommunicate request_size=4 [10:52:47]MH_SAM_APDU [10:52:47]CAPDU: 80 11 00 00 [10:52:47]Write to MH i2c: E2 08 00 4F 05 80 11 00 00 00 00 00 00 CE [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 17 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 17 00 4F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 21 [10:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:52:47]wFMCommunicate OK [10:52:47]CreateOFDProtocolMessage done [10:52:47]OFDSenderStorePacket 145651 [10:52:47]StoreOFDPacket docnum=145651 [10:52:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 78 A8 04 01 EF 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 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 7E 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F3 38 02 00 35 04 06 00 60 92 7F 3E 8D E3 8E 09 CB EE A6 E6 19 C9 [10:52:47]CheckFolder [10:52:47]dirname=/storage/ofd_packets [10:52:47]CheckFolder done [10:52:47]ProducePacketName [10:52:47]name=ofd_packets/00145651 [10:52:47]NVStorageSaveData ofd_packets/00145651 [10:52:47]File name is /storage/ofd_packets/00145651 [10:52:47]Write 298 bytes [10:52:47]NVStorageSaveData done [10:52:47]OFDSenderStorePacket done [10:52:47]KKMCreateOFDPacket done [10:52:47]NVStorageSaveData kkm_last_timestamp [10:52:47]File name is /storage/kkm_last_timestamp [10:52:47]Write 4 bytes [10:52:47]NVStorageSaveData done [10:52:47]ExternCall_PrintAddStr [10:52:47]wPrintStart [10:52:47]Write to MH i2c: 01 00 00 50 05 55 [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 07 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 07 00 50 05 00 00 00 00 00 FF 0F 6A [10:52:47]RasterBufferAndPrint [10:52:47]line Счет N : (1)160402 [10:52:47]line ИНН: 02508201610067 [10:52:47]line Контрольно-Кассовый Чек [10:52:47]line ПРОДАЖА [10:52:47]line ТРК (МРК, ГНК) : 11 [10:52:47]line Товар: 2710194210 [10:52:47]line ДТ-К-2 [10:52:47]line 91.870 * 76.20 [10:52:47]line = 7000.49 [10:52:47]line НДС 12% НСП 1% [10:52:47]line > о реализуемом товаре [10:52:47]line ИТОГО: 7000.49 [10:52:47]line НСП 1% : 61.95 [10:52:47]line НДС 12% : 743.41 [10:52:47]line Наличными: 0.00 [10:52:47]line Безнал.: 7000.49 [10:52:47]line Место: АЗС № 126 "Партнер Нефть" [10:52:47]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:52:47]line СНО: Общий режим [10:52:47]line Чек 74 27.10.2024 10:52 [10:52:47]line Смена: 545 ФФД: 1.0 [10:52:47]line ЗНМ: 0300000085 [10:52:47]line РНМ: 0000000000091683 [10:52:47]line Версия ККМ: 001 [10:52:47]line Платежная система: Mbank [10:52:47]line ФМ: 0000000000871745 [10:52:47]line ФД: 145651 [10:52:47]line ФПД: 106182316297699 [10:52:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105246&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145651&fm=106182316297699&tin=02508201610067®Number=0000000000091683&sum=700049 [10:52:47]OFD Sender: Processing packet 145651 [packets to send 206, broken 205] [10:52:47]ProducePacketName [10:52:47]name=ofd_packets/00145651 [10:52:47]OFD Sender: To server: pG, [10:52:47]CommunicateWithHost lk.salyk.kg:30040 [10:52:47]ConnectInit lk.salyk.kg [10:52:47]written 0, free lines is 4095 [10:52:47]Connected sock=10 [10:52:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 78 A8 04 01 EF 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 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 7E 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F3 38 02 00 35 04 06 00 60 92 7F 3E 8D E3 8E 09 CB EE A6 E6 19 C9 [10:52:47]Write to MH i2c: 01 00 00 79 05 7E [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 07 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 07 00 79 05 00 00 00 00 00 D1 0C 62 [10:52:47]RasterBufferAndPrint [10:52:47]line [10:52:47]line [10:52:47]line [10:52:47]line [10:52:47]line [10:52:47]written 0, free lines is 3287 [10:52:47]MH_Cut [10:52:47]Write to MH i2c: D1 01 00 80 05 01 57 [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: D1 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: D1 01 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: D1 01 00 80 05 00 56 [10:52:47]Write to MH i2c: 01 00 00 81 05 86 [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 87 49 47 00 F7 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F3 38 02 00 F4 03 04 00 AC C0 1D 67 B6 04 01 00 00 97 DD 80 2F 36 6A 16 54 [10:52:48]CommunicateWithHost err = 0 [10:52:48]CheckOFDResponse [10:52:48]1017 (14) - 77093643461234 [10:52:48]1041 (16) - 0000000000871745 [10:52:48]1040 (4) - 145651 [10:52:48]1012 (4) - 27.10.2024 04:25 [10:52:48]1206 (1) - 0 [10:52:48]OFD Sender: Remove packet 145651 [10:52:48]ProducePacketName [10:52:48]name=ofd_packets/00145651 [10:52:48]NVStorageDeleteData [10:52:48]OFD Sender: No OFD packet to send [10:52:48]*** Cut start [10:52:48]*** Partial cut [10:52:48]*** CUTSNS_PIN = 1 [10:52:48]*** CUTSNS_PIN = 0 [10:52:49]*** Brake cut motor [10:52:49]Read from MH i2c: 01 [10:52:49]MH_I2C_Read... [10:52:49]*** Stop cut motor [10:52:49]*** Cut end [10:52:49]Read from MH i2c: 01 07 00 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: 01 07 00 81 05 00 00 00 00 00 FF 0F 9B [10:52:49]process_action close_receipt done [10:52:49]requested_data is exist [10:52:49]produce_requested_data [10:52:49]requested_item fm.sn is exist - process it [10:52:49]wFMCommunicate request_size=4 [10:52:49]MH_SAM_APDU [10:52:49]CAPDU: 80 11 00 00 [10:52:49]Write to MH i2c: E2 08 00 82 05 80 11 00 00 00 00 00 00 01 [10:52:49]Write i2c OK [10:52:49]MH_I2C_Read... [10:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:49]Read from MH i2c: E2 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 17 00 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 17 00 82 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 54 [10:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:52:49]wFMCommunicate OK [10:52:49]requested_item fd.num is exist - process it [10:52:49]SAM_PROTO_GetFieldsCounters [10:52:49]wFMCommunicate request_size=4 [10:52:49]MH_SAM_APDU [10:52:49]CAPDU: 80 13 00 00 [10:52:49]Write to MH i2c: E2 08 00 83 05 80 13 00 00 00 00 00 00 04 [10:52:49]Write i2c OK [10:52:49]MH_I2C_Read... [10:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:49]Read from MH i2c: E2 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 62 00 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 62 00 83 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F3 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10:52:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F3 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:49]wFMCommunicate OK [10:52:49]SAM_PROTO_GetFieldsCounters done [10:52:49]requested_item shift.num is exist - process it [10:52:49]requested_item shift.opened is exist - process it [10:52:49]req_shift_opened [10:52:49]FM_GetShiftState [10:52:49]SAM_PROTO_GetShiftState [10:52:49]wFMCommunicate request_size=4 [10:52:49]MH_SAM_APDU [10:52:49]CAPDU: 80 13 01 00 [10:52:49]Write to MH i2c: E2 08 00 84 05 80 13 01 00 00 00 00 00 06 [10:52:49]Write i2c OK [10:52:49]MH_I2C_Read... [10:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:49]Read from MH i2c: E2 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 0E 00 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 0E 00 84 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7E [10:52:49]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:52:49]wFMCommunicate OK [10:52:49]SAM_PROTO_GetShiftState done [10:52:49]FM_GetShiftState done [10:52:49]req_shift_opened done [10:52:49]requested_item shift.open_date is exist - process it [10:52:49]req_shift_open_date [10:52:49]req_shift_open_date done [10:52:49]produce_requested_data done [10:52:49]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145651,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:52:49]process_action_free close_receipt [10:52:49]json_value_free [10:52:49]json_value_free done [10:52:49]process_json_proto returns [10:52:49]Send response to host [10:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145651,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:52:49]free response buf [10:52:49]execute_script done [10:52:49]execute_script returns [10:52:49]free content buf [10:52:49]Sock 7.Close socket [10:52:49]Sock 7.Thread stoped [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:29]accept exits with 9 [10:53:29]New connection [10:53:29]New thread 3066740068 created [10:53:29]Thread 3066596708 joined [10:53:29]Waiting for new connection... [10:53:29] Sock 9.Parse request [10:53:29]Sock 9.Check first char [10:53:29]Sock 9.First char is OK [10:53:29]request: POST /json_proto HTTP/1.0 [10:53:29]Method: POST [10:53:29]URL: /json_proto [10:53:29]Method is POST - this is cgi request [10:53:29]url: /json_proto [10:53:29]query_string will be loaded in cgi processing [10:53:29]execute_cgi json_proto POST (null) [10:53:29]execute_cgi path=json_proto method=POST [10:53:29]POST find Content-Length [10:53:29]Host: 172.17.40.195:8080 [10:53:29]Content-Length: 682 [10:53:29]Content-Type: application/json [10:53:29] [10:53:29]POST finish read [10:53:29]Found Content-Length = 682 [10:53:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:53:29]execute_script... [10:53: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)160403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:53:29]POST & json_proto [10:53:29]process_json_proto [10:53:29]json parsed OK: [10:53:29]protocol is kg_v1.0 [10:53:29]action value=close_receipt [10:53:29]process_action close_receipt [10:53:29]cmd_close_receipt [10:53:29]MH_GetDate [10:53:29]Write to MH i2c: F0 00 00 85 05 79 [10:53:29]Write i2c OK [10:53:29]MH_I2C_Read... [10:53:29]Read from MH i2c: F0 [10:53:29]MH_I2C_Read... [10:53:29]Read from MH i2c: F0 09 00 [10:53:29]MH_I2C_Read... [10:53:29]Read from MH i2c: F0 09 00 85 05 00 AA 1B 1E 67 D5 8D 6C 64 FE [10:53:29]GetLastDocTimeStamp 1730026366 [10:53:29]current date 1730026410 [10:53:29]FM_GetShiftState [10:53:29]SAM_PROTO_GetShiftState [10:53:29]wFMCommunicate request_size=4 [10:53:29]MH_SAM_APDU [10:53:29]CAPDU: 80 13 01 00 [10:53:29]Write to MH i2c: E2 08 00 86 05 80 13 01 00 00 00 00 00 08 [10:53:29]Write i2c OK [10:53:29]MH_I2C_Read... [10:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:29]Read from MH i2c: E2 [10:53:29]MH_I2C_Read... [10:53:29]Read from MH i2c: E2 0E 00 [10:53:29]MH_I2C_Read... [10:53:29]Read from MH i2c: E2 0E 00 86 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 80 [10:53:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:53:29]wFMCommunicate OK [10:53:29]SAM_PROTO_GetShiftState done [10:53:29]FM_GetShiftState done [10:53:29]opened in 1729988959 [10:53:29]opened+sec_in_day 1730075359 [10:53:29]quantity*price = 150032 [10:53:29]sum+1 = 150033 [10:53:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 75 27.10.2024 10:53 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145652 ФПД: 59354899982783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105330&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145652&fm=59354899982783&tin=02508201610067®Number=0000000000091683&sum=150000 [10:53:30]StoreToDocumentArchive [10:53:30]shift 545 fd 145652 [10:53:30]save to /storage/0545/doc_00145652 [10:53:30]save last doc name /storage/0545/doc_00145652 to /storage/kkm_last_doc_name [10:53:30]save OK [10:53:30]Clear old archive folders... [10:53:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:30]tlvbuf is 003FA2A0 [10:53:30]SAM_PROTO_ClearQueue [10:53:30]wFMCommunicate request_size=4 [10:53:30]MH_SAM_APDU [10:53:30]CAPDU: 80 09 00 00 [10:53:30]Write to MH i2c: E2 08 00 93 05 80 09 00 00 00 00 00 00 0A [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 93 05 00 90 00 0C [10:53:30]RAPDU: 90 00 [10:53:30]wFMCommunicate OK [10:53:30]SAM_PROTO_ClearQueue done [10:53:30]KKMCreateOFDPacket [10:53:30]OFDProtocolAddRootSTLVToBuf [10:53:30]FM_MakeSignedData [10:53:30]FM_MakeSignedData [10:53:30]SAM_PROTO_SignData [10:53:30]wFMCommunicate request_size=4 [10:53:30]MH_SAM_APDU [10:53:30]CAPDU: 80 0D 01 02 [10:53:30]Write to MH i2c: E2 08 00 94 05 80 0D 01 02 00 00 00 00 12 [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 94 05 00 90 00 0D [10:53:30]RAPDU: 90 00 [10:53:30]wFMCommunicate OK [10:53:30]wFMCommunicate request_size=255 [10:53:30]MH_SAM_APDU [10:53: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AA 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F4 38 02 00 35 04 06 00 35 [10:53:30]Write to MH i2c: E2 02 01 95 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AA 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F4 38 02 00 35 04 06 00 35 00 00 1F [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 95 05 00 90 00 0E [10:53:30]RAPDU: 90 00 [10:53:30]wFMCommunicate OK [10:53:30]wFMCommunicate request_size=10 [10:53:30]MH_SAM_APDU [10:53:30]CAPDU: 80 0D 02 02 05 FB A3 BA A9 BF [10:53:30]Write to MH i2c: E2 0D 00 96 05 80 0D 02 02 05 00 FB A3 BA A9 BF 00 00 DF [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [10:53:30]RAPDU: 90 00 [10:53:30]wFMCommunicate OK [10:53:30]wFMCommunicate request_size=4 [10:53:30]MH_SAM_APDU [10:53:30]CAPDU: 80 0D 03 02 [10:53:30]Write to MH i2c: E2 08 00 97 05 80 0D 03 02 00 00 00 00 17 [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 0B 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 0B 00 97 05 00 39 BE 4C 77 0F DC FE 75 90 00 30 [10:53:30]RAPDU: 39 BE 4C 77 0F DC FE 75 90 00 [10:53:30]wFMCommunicate OK [10:53:30]SAM_PROTO_SignData done [10:53:30]FM_MakeSignedData done [10:53:30]CreateOFDProtocolMessage [10:53:30]wFMCommunicate request_size=4 [10:53:30]MH_SAM_APDU [10:53:30]CAPDU: 80 11 00 00 [10:53:30]Write to MH i2c: E2 08 00 98 05 80 11 00 00 00 00 00 00 17 [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 17 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 17 00 98 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6A [10:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:53:30]wFMCommunicate OK [10:53:30]CreateOFDProtocolMessage done [10:53:30]OFDSenderStorePacket 145652 [10:53:30]StoreOFDPacket docnum=145652 [10:53:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D0 EB 07 01 78 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AA 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F4 38 02 00 35 04 06 00 35 FB A3 BA A9 BF 39 BE 4C 77 0F DC FE 75 [10:53:30]CheckFolder [10:53:30]dirname=/storage/ofd_packets [10:53:30]CheckFolder done [10:53:30]ProducePacketName [10:53:30]name=ofd_packets/00145652 [10:53:30]NVStorageSaveData ofd_packets/00145652 [10:53:30]File name is /storage/ofd_packets/00145652 [10:53:30]Write 301 bytes [10:53:30]NVStorageSaveData done [10:53:30]OFDSenderStorePacket done [10:53:30]KKMCreateOFDPacket done [10:53:30]NVStorageSaveData kkm_last_timestamp [10:53:30]File name is /storage/kkm_last_timestamp [10:53:30]Write 4 bytes [10:53:30]NVStorageSaveData done [10:53:30]ExternCall_PrintAddStr [10:53:30]wPrintStart [10:53:30]Write to MH i2c: 01 00 00 99 05 9E [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: 01 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: 01 07 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: 01 07 00 99 05 00 00 00 00 00 FF 0F B3 [10:53:30]RasterBufferAndPrint [10:53:30]line Счет N : (1)160403 [10:53:30]line ИНН: 02508201610067 [10:53:30]line Контрольно-Кассовый Чек [10:53:30]line ПРОДАЖА [10:53:30]line ТРК (МРК, ГНК) : 53 [10:53:30]line Товар: 2710124500 [10:53:30]line Аи-95-К-3 [10:53:30]line 20.220 * 74.20 [10:53:30]line = 1500.32 [10:53:30]line НДС 12% НСП 1% [10:53:30]line > о реализуемом товаре [10:53:30]line ОКРУГЛЕНИЕ: -0.32 [10:53:30]line ИТОГО: 1500.00 [10:53:30]line Внесено: 1500.00 [10:53:30]line СДАЧА: 0.00 [10:53:30]line НСП 1% : 13.28 [10:53:30]line НДС 12% : 159.33 [10:53:30]line Наличными: 1500.00 [10:53:30]line Безнал.: 0.00 [10:53:30]line Место: АЗС № 126 "Партнер Нефть" [10:53:30]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:53:30]line СНО: Общий режим [10:53:30]line Чек 75 27.10.2024 10:53 [10:53:30]line Смена: 545 ФФД: 1.0 [10:53:30]line ЗНМ: 0300000085 [10:53:30]line РНМ: 0000000000091683 [10:53:30]line Версия ККМ: 001 [10:53:30]line ФМ: 0000000000871745 [10:53:30]line ФД: 145652 [10:53:30]line ФПД: 59354899982783 [10:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105330&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145652&fm=59354899982783&tin=02508201610067®Number=0000000000091683&sum=150000 [10:53:31]OFD Sender: Processing packet 145652 [packets to send 206, broken 205] [10:53:31]ProducePacketName [10:53:31]name=ofd_packets/00145652 [10:53:31]OFD Sender: To server: pG, [10:53:31]CommunicateWithHost lk.salyk.kg:30040 [10:53:31]ConnectInit lk.salyk.kg [10:53:31]written 0, free lines is 4095 [10:53:31]Connected sock=10 [10:53:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D0 EB 07 01 78 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AA 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F4 38 02 00 35 04 06 00 35 FB A3 BA A9 BF 39 BE 4C 77 0F DC FE 75 [10:53:31]Write to MH i2c: 01 00 00 C4 05 C9 [10:53:31]Write i2c OK [10:53:31]MH_I2C_Read... [10:53:31]Read from MH i2c: 01 [10:53:31]MH_I2C_Read... [10:53:31]Read from MH i2c: 01 07 00 [10:53:31]MH_I2C_Read... [10:53:31]Read from MH i2c: 01 07 00 C4 05 00 00 00 00 00 A8 0C 84 [10:53:31]RasterBufferAndPrint [10:53:31]line [10:53:31]line [10:53:31]line [10:53:31]line [10:53:31]line [10:53:31]written 0, free lines is 3245 [10:53:31]MH_Cut [10:53:31]Write to MH i2c: D1 01 00 CB 05 01 A2 [10:53:31]Write i2c OK [10:53:31]MH_I2C_Read... [10:53:31]Read from MH i2c: D1 [10:53:31]MH_I2C_Read... [10:53:31]Read from MH i2c: D1 01 00 [10:53:31]MH_I2C_Read... [10:53:31]Read from MH i2c: D1 01 00 CB 05 00 A1 [10:53:31]Write to MH i2c: 01 00 00 CC 05 D1 [10:53:31]Write i2c OK [10:53:31]MH_I2C_Read... [10:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 69 25 47 00 93 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F4 38 02 00 F4 03 04 00 D8 C0 1D 67 B6 04 01 00 00 8E 01 04 9F 6A 5F A5 FD [10:53:31]CommunicateWithHost err = 0 [10:53:31]CheckOFDResponse [10:53:31]1017 (14) - 77093643461234 [10:53:31]1041 (16) - 0000000000871745 [10:53:31]1040 (4) - 145652 [10:53:31]1012 (4) - 27.10.2024 04:26 [10:53:31]1206 (1) - 0 [10:53:31]OFD Sender: Remove packet 145652 [10:53:31]ProducePacketName [10:53:31]name=ofd_packets/00145652 [10:53:31]NVStorageDeleteData [10:53:32]OFD Sender: No OFD packet to send [10:53:32]*** Cut start [10:53:32]*** Partial cut [10:53:32]*** CUTSNS_PIN = 1 [10:53:32]*** CUTSNS_PIN = 0 [10:53:32]*** Brake cut motor [10:53:33]Read from MH i2c: 01 [10:53:33]MH_I2C_Read... [10:53:33]*** Stop cut motor [10:53:33]*** Cut end [10:53:33]Read from MH i2c: 01 07 00 [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: 01 07 00 CC 05 00 00 00 00 00 FF 0F E6 [10:53:33]process_action close_receipt done [10:53:33]requested_data is exist [10:53:33]produce_requested_data [10:53:33]requested_item fm.sn is exist - process it [10:53:33]wFMCommunicate request_size=4 [10:53:33]MH_SAM_APDU [10:53:33]CAPDU: 80 11 00 00 [10:53:33]Write to MH i2c: E2 08 00 CD 05 80 11 00 00 00 00 00 00 4C [10:53:33]Write i2c OK [10:53:33]MH_I2C_Read... [10:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:33]Read from MH i2c: E2 [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: E2 17 00 [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: E2 17 00 CD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9F [10:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:53:33]wFMCommunicate OK [10:53:33]requested_item fd.num is exist - process it [10:53:33]SAM_PROTO_GetFieldsCounters [10:53:33]wFMCommunicate request_size=4 [10:53:33]MH_SAM_APDU [10:53:33]CAPDU: 80 13 00 00 [10:53:33]Write to MH i2c: E2 08 00 CE 05 80 13 00 00 00 00 00 00 4F [10:53:33]Write i2c OK [10:53:33]MH_I2C_Read... [10:53:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:33]Read from MH i2c: E2 [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: E2 62 00 [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: E2 62 00 CE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F4 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [10:53:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F4 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:33]wFMCommunicate OK [10:53:33]SAM_PROTO_GetFieldsCounters done [10:53:33]requested_item shift.num is exist - process it [10:53:33]requested_item shift.opened is exist - process it [10:53:33]req_shift_opened [10:53:33]FM_GetShiftState [10:53:33]SAM_PROTO_GetShiftState [10:53:33]wFMCommunicate request_size=4 [10:53:33]MH_SAM_APDU [10:53:33]CAPDU: 80 13 01 00 [10:53:33]Write to MH i2c: E2 08 00 CF 05 80 13 01 00 00 00 00 00 51 [10:53:33]Write i2c OK [10:53:33]MH_I2C_Read... [10:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:33]Read from MH i2c: E2 [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: E2 0E 00 [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: E2 0E 00 CF 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C9 [10:53:33]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:53:33]wFMCommunicate OK [10:53:33]SAM_PROTO_GetShiftState done [10:53:33]FM_GetShiftState done [10:53:33]req_shift_opened done [10:53:33]requested_item shift.open_date is exist - process it [10:53:33]req_shift_open_date [10:53:33]req_shift_open_date done [10:53:33]produce_requested_data done [10:53:33]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145652,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:53:33]process_action_free close_receipt [10:53:33]json_value_free [10:53:33]json_value_free done [10:53:33]process_json_proto returns [10:53:33]Send response to host [10:53:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145652,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:53:33]free response buf [10:53:33]execute_script done [10:53:33]execute_script returns [10:53:33]free content buf [10:53:33]Sock 9.Close socket [10:53:33]Sock 9.Thread stoped [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:46]accept exits with 7 [10:53:46]New connection [10:53:46]New thread 3066596708 created [10:53:46]Thread 3066740068 joined [10:53:46]Waiting for new connection... [10:53:46] Sock 7.Parse request [10:53:46]Sock 7.Check first char [10:53:46]Sock 7.First char is OK [10:53:46]request: POST /json_proto HTTP/1.0 [10:53:46]Method: POST [10:53:46]URL: /json_proto [10:53:46]Method is POST - this is cgi request [10:53:46]url: /json_proto [10:53:46]query_string will be loaded in cgi processing [10:53:46]execute_cgi json_proto POST (null) [10:53:46]execute_cgi path=json_proto method=POST [10:53:46]POST find Content-Length [10:53:46]Host: 172.17.40.195:8080 [10:53:46]Content-Length: 682 [10:53:46]Content-Type: application/json [10:53:46] [10:53:46]POST finish read [10:53:46]Found Content-Length = 682 [10:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:53:46]execute_script... [10:53: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)160404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:53:46]POST & json_proto [10:53:46]process_json_proto [10:53:46]json parsed OK: [10:53:46]protocol is kg_v1.0 [10:53:46]action value=close_receipt [10:53:46]process_action close_receipt [10:53:46]cmd_close_receipt [10:53:46]MH_GetDate [10:53:46]Write to MH i2c: F0 00 00 D0 05 C4 [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: F0 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: F0 09 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: F0 09 00 D0 05 00 BB 1B 1E 67 D5 8D 6C 64 5A [10:53:46]GetLastDocTimeStamp 1730026410 [10:53:46]current date 1730026427 [10:53:46]FM_GetShiftState [10:53:46]SAM_PROTO_GetShiftState [10:53:46]wFMCommunicate request_size=4 [10:53:46]MH_SAM_APDU [10:53:46]CAPDU: 80 13 01 00 [10:53:46]Write to MH i2c: E2 08 00 D1 05 80 13 01 00 00 00 00 00 53 [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:46]Read from MH i2c: E2 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 0E 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 0E 00 D1 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CB [10:53:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:53:46]wFMCommunicate OK [10:53:46]SAM_PROTO_GetShiftState done [10:53:46]FM_GetShiftState done [10:53:46]opened in 1729988959 [10:53:46]opened+sec_in_day 1730075359 [10:53:46]quantity*price = 100021 [10:53:46]sum+1 = 100023 [10:53:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 76 27.10.2024 10:53 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145653 ФПД: 178448269223863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105347&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145653&fm=178448269223863&tin=02508201610067®Number=0000000000091683&sum=100000 [10:53:48]StoreToDocumentArchive [10:53:48]shift 545 fd 145653 [10:53:48]save to /storage/0545/doc_00145653 [10:53:48]save last doc name /storage/0545/doc_00145653 to /storage/kkm_last_doc_name [10:53:48]save OK [10:53:48]Clear old archive folders... [10:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:48]tlvbuf is 0042C5A0 [10:53:48]SAM_PROTO_ClearQueue [10:53:48]wFMCommunicate request_size=4 [10:53:48]MH_SAM_APDU [10:53:48]CAPDU: 80 09 00 00 [10:53:48]Write to MH i2c: E2 08 00 DE 05 80 09 00 00 00 00 00 00 55 [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:48]Read from MH i2c: E2 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 03 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 03 00 DE 05 00 90 00 57 [10:53:48]RAPDU: 90 00 [10:53:48]wFMCommunicate OK [10:53:48]SAM_PROTO_ClearQueue done [10:53:48]KKMCreateOFDPacket [10:53:48]OFDProtocolAddRootSTLVToBuf [10:53:48]FM_MakeSignedData [10:53:48]FM_MakeSignedData [10:53:48]SAM_PROTO_SignData [10:53:48]wFMCommunicate request_size=4 [10:53:48]MH_SAM_APDU [10:53:48]CAPDU: 80 0D 01 02 [10:53:48]Write to MH i2c: E2 08 00 DF 05 80 0D 01 02 00 00 00 00 5D [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:48]Read from MH i2c: E2 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 03 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [10:53:48]RAPDU: 90 00 [10:53:48]wFMCommunicate OK [10:53:48]wFMCommunicate request_size=255 [10:53:48]MH_SAM_APDU [10:53:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BB 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F5 38 02 00 35 04 06 00 A2 [10:53:48]Write to MH i2c: E2 02 01 E0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BB 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F5 38 02 00 35 04 06 00 A2 00 00 A4 [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:48]Read from MH i2c: E2 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 03 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 03 00 E0 05 00 90 00 59 [10:53:48]RAPDU: 90 00 [10:53:48]wFMCommunicate OK [10:53:48]wFMCommunicate request_size=10 [10:53:48]MH_SAM_APDU [10:53:48]CAPDU: 80 0D 02 02 05 4C 39 B2 A7 B7 [10:53:48]Write to MH i2c: E2 0D 00 E1 05 80 0D 02 02 05 00 4C 39 B2 A7 B7 00 00 FF [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:48]Read from MH i2c: E2 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 03 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [10:53:48]RAPDU: 90 00 [10:53:48]wFMCommunicate OK [10:53:48]wFMCommunicate request_size=4 [10:53:48]MH_SAM_APDU [10:53:48]CAPDU: 80 0D 03 02 [10:53:48]Write to MH i2c: E2 08 00 E2 05 80 0D 03 02 00 00 00 00 62 [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:48]Read from MH i2c: E2 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 0B 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 0B 00 E2 05 00 A0 8A D1 B4 0D D8 58 78 90 00 C7 [10:53:48]RAPDU: A0 8A D1 B4 0D D8 58 78 90 00 [10:53:48]wFMCommunicate OK [10:53:48]SAM_PROTO_SignData done [10:53:48]FM_MakeSignedData done [10:53:48]CreateOFDProtocolMessage [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 E3 05 80 11 00 00 00 00 00 00 62 [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 E3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B5 [10:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:53:48]wFMCommunicate OK [10:53:48]CreateOFDProtocolMessage done [10:53:48]OFDSenderStorePacket 145653 [10:53:48]StoreOFDPacket docnum=145653 [10:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 63 02 07 01 22 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BB 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F5 38 02 00 35 04 06 00 A2 4C 39 B2 A7 B7 A0 8A D1 B4 0D D8 58 78 [10:53:48]CheckFolder [10:53:48]dirname=/storage/ofd_packets [10:53:48]CheckFolder done [10:53:48]ProducePacketName [10:53:48]name=ofd_packets/00145653 [10:53:48]NVStorageSaveData ofd_packets/00145653 [10:53:48]File name is /storage/ofd_packets/00145653 [10:53:48]Write 301 bytes [10:53:48]NVStorageSaveData done [10:53:48]OFDSenderStorePacket done [10:53:48]KKMCreateOFDPacket done [10:53:48]NVStorageSaveData kkm_last_timestamp [10:53:48]File name is /storage/kkm_last_timestamp [10:53:48]Write 4 bytes [10:53:48]NVStorageSaveData done [10:53:48]OFD Sender: Processing packet 145653 [packets to send 206, broken 205] [10:53:48]ProducePacketName [10:53:48]name=ofd_packets/00145653 [10:53:48]OFD Sender: To server: pG, [10:53:48]CommunicateWithHost lk.salyk.kg:30040 [10:53:48]ConnectInit lk.salyk.kg [10:53:48]ExternCall_PrintAddStr [10:53:48]wPrintStart [10:53:48]Write to MH i2c: 01 00 00 E4 05 E9 [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: 01 [10:53:48]MH_I2C_Read... [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 E4 05 00 00 00 00 00 FF 0F FE [10:53:48]RasterBufferAndPrint [10:53:48]line Счет N : (1)160404 [10:53:48]line ИНН: 02508201610067 [10:53:48]line Контрольно-Кассовый Чек [10:53:48]line ПРОДАЖА [10:53:48]line ТРК (МРК, ГНК) : 63 [10:53:48]line Товар: 2710124500 [10:53:48]line Аи-95-К-3 [10:53:48]line 13.480 * 74.20 [10:53:48]line = 1000.22 [10:53:48]line НДС 12% НСП 1% [10:53:48]line > о реализуемом товаре [10:53:48]line ОКРУГЛЕНИЕ: -0.22 [10:53:48]line ИТОГО: 1000.00 [10:53:48]line Внесено: 1000.00 [10:53:48]line СДАЧА: 0.00 [10:53:48]line НСП 1% : 8.85 [10:53:48]line НДС 12% : 106.22 [10:53:48]line Наличными: 1000.00 [10:53:48]line Безнал.: 0.00 [10:53:48]line Место: АЗС № 126 "Партнер Нефть" [10:53:48]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:53:48]line СНО: Общий режим [10:53:48]line Чек 76 27.10.2024 10:53 [10:53:48]line Смена: 545 ФФД: 1.0 [10:53:48]line ЗНМ: 0300000085 [10:53:48]line РНМ: 0000000000091683 [10:53:48]line Версия ККМ: 001 [10:53:48]line ФМ: 0000000000871745 [10:53:48]line ФД: 145653 [10:53:48]line ФПД: 178448269223863 [10:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105347&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145653&fm=178448269223863&tin=02508201610067®Number=0000000000091683&sum=100000 [10:53:48]Connected sock=11 [10:53:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 63 02 07 01 22 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BB 1B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F5 38 02 00 35 04 06 00 A2 4C 39 B2 A7 B7 A0 8A D1 B4 0D D8 58 78 [10:53:48]written 0, free lines is 4095 [10:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 DC DD 47 00 80 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 31 37 34 35 10 04 04 00 F5 38 02 00 F4 03 04 00 E9 C0 1D 67 B6 04 01 00 00 29 04 A1 78 52 C6 BB 0D [10:53:49]CommunicateWithHost err = 0 [10:53:49]CheckOFDResponse [10:53:49]1017 (14) - 77093643461234 [10:53:49]1041 (16) - 0000000000871745 [10:53:49]1040 (4) - 145653 [10:53:49]1012 (4) - 27.10.2024 04:26 [10:53:49]1206 (1) - 0 [10:53:49]OFD Sender: Remove packet 145653 [10:53:49]ProducePacketName [10:53:49]name=ofd_packets/00145653 [10:53:49]NVStorageDeleteData [10:53:49]Write to MH i2c: 01 00 00 0F 06 15 [10:53:49]Write i2c OK [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 07 00 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 07 00 0F 06 00 00 00 00 00 AA 0C D2 [10:53:49]RasterBufferAndPrint [10:53:49]line [10:53:49]line [10:53:49]line [10:53:49]line [10:53:49]line [10:53:49]written 0, free lines is 3247 [10:53:49]MH_Cut [10:53:49]Write to MH i2c: D1 01 00 16 06 01 EE [10:53:49]Write i2c OK [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: D1 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: D1 01 00 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: D1 01 00 16 06 00 ED [10:53:49]Write to MH i2c: 01 00 00 17 06 1D [10:53:49]Write i2c OK [10:53:49]MH_I2C_Read... [10:53:49]OFD Sender: No OFD packet to send [10:53:50]*** Cut start [10:53:50]*** Partial cut [10:53:50]*** CUTSNS_PIN = 1 [10:53:50]*** CUTSNS_PIN = 0 [10:53:50]*** Brake cut motor [10:53:50]Read from MH i2c: 01 [10:53:50]MH_I2C_Read... [10:53:50]*** Stop cut motor [10:53:50]*** Cut end [10:53:50]Read from MH i2c: 01 07 00 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: 01 07 00 17 06 00 00 00 00 00 FF 0F 32 [10:53:50]process_action close_receipt done [10:53:50]requested_data is exist [10:53:50]produce_requested_data [10:53:50]requested_item fm.sn is exist - process it [10:53:50]wFMCommunicate request_size=4 [10:53:50]MH_SAM_APDU [10:53:50]CAPDU: 80 11 00 00 [10:53:50]Write to MH i2c: E2 08 00 18 06 80 11 00 00 00 00 00 00 98 [10:53:50]Write i2c OK [10:53:50]MH_I2C_Read... [10:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:50]Read from MH i2c: E2 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 17 00 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 17 00 18 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EB [10:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:53:50]wFMCommunicate OK [10:53:50]requested_item fd.num is exist - process it [10:53:50]SAM_PROTO_GetFieldsCounters [10:53:50]wFMCommunicate request_size=4 [10:53:50]MH_SAM_APDU [10:53:50]CAPDU: 80 13 00 00 [10:53:50]Write to MH i2c: E2 08 00 19 06 80 13 00 00 00 00 00 00 9B [10:53:50]Write i2c OK [10:53:50]MH_I2C_Read... [10:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:50]Read from MH i2c: E2 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 62 00 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 62 00 19 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F5 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [10:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F5 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:50]wFMCommunicate OK [10:53:50]SAM_PROTO_GetFieldsCounters done [10:53:50]requested_item shift.num is exist - process it [10:53:50]requested_item shift.opened is exist - process it [10:53:50]req_shift_opened [10:53:50]FM_GetShiftState [10:53:50]SAM_PROTO_GetShiftState [10:53:50]wFMCommunicate request_size=4 [10:53:50]MH_SAM_APDU [10:53:50]CAPDU: 80 13 01 00 [10:53:50]Write to MH i2c: E2 08 00 1A 06 80 13 01 00 00 00 00 00 9D [10:53:50]Write i2c OK [10:53:50]MH_I2C_Read... [10:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:51]Read from MH i2c: E2 [10:53:51]MH_I2C_Read... [10:53:51]Read from MH i2c: E2 0E 00 [10:53:51]MH_I2C_Read... [10:53:51]Read from MH i2c: E2 0E 00 1A 06 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 15 [10:53:51]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:53:51]wFMCommunicate OK [10:53:51]SAM_PROTO_GetShiftState done [10:53:51]FM_GetShiftState done [10:53:51]req_shift_opened done [10:53:51]requested_item shift.open_date is exist - process it [10:53:51]req_shift_open_date [10:53:51]req_shift_open_date done [10:53:51]produce_requested_data done [10:53:51]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145653,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:53:51]process_action_free close_receipt [10:53:51]json_value_free [10:53:51]json_value_free done [10:53:51]process_json_proto returns [10:53:51]Send response to host [10:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145653,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:53:51]free response buf [10:53:51]execute_script done [10:53:51]execute_script returns [10:53:51]free content buf [10:53:51]Sock 7.Close socket [10:53:51]Sock 7.Thread stoped [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:57]accept exits with 9 [10:54:57]New connection [10:54:57]New thread 3066740068 created [10:54:57]Thread 3066596708 joined [10:54:57]Waiting for new connection... [10:54:57] Sock 9.Parse request [10:54:57]Sock 9.Check first char [10:54:57]Sock 9.First char is OK [10:54:57]request: POST /json_proto HTTP/1.0 [10:54:57]Method: POST [10:54:57]URL: /json_proto [10:54:57]Method is POST - this is cgi request [10:54:57]url: /json_proto [10:54:57]query_string will be loaded in cgi processing [10:54:57]execute_cgi json_proto POST (null) [10:54:57]execute_cgi path=json_proto method=POST [10:54:57]POST find Content-Length [10:54:57]Host: 172.17.40.195:8080 [10:54:57]Content-Length: 754 [10:54:57]Content-Type: application/json [10:54:57] [10:54:57]POST finish read [10:54:57]Found Content-Length = 754 [10:54:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30050068", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:57]execute_script... [10:54:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30050068", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:57]POST & json_proto [10:54:57]process_json_proto [10:54:57]json parsed OK: [10:54:57]protocol is kg_v1.0 [10:54:57]action value=close_receipt [10:54:57]process_action close_receipt [10:54:57]cmd_close_receipt [10:54:57]MH_GetDate [10:54:57]Write to MH i2c: F0 00 00 1B 06 10 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: F0 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: F0 09 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: F0 09 00 1B 06 00 02 1C 1E 67 D5 8D 6C 64 EE [10:54:57]GetLastDocTimeStamp 1730026427 [10:54:57]current date 1730026498 [10:54:57]FM_GetShiftState [10:54:57]SAM_PROTO_GetShiftState [10:54:57]wFMCommunicate request_size=4 [10:54:57]MH_SAM_APDU [10:54:57]CAPDU: 80 13 01 00 [10:54:57]Write to MH i2c: E2 08 00 1C 06 80 13 01 00 00 00 00 00 9F [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 0E 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 0E 00 1C 06 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 17 [10:54:57]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:54:57]wFMCommunicate OK [10:54:57]SAM_PROTO_GetShiftState done [10:54:57]FM_GetShiftState done [10:54:57]opened in 1729988959 [10:54:57]opened+sec_in_day 1730075359 [10:54:57]quantity*price = 0 [10:54:57]sum+1 = 1 [10:54:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 77 27.10.2024 10:54 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: ТК ГПНА Online 30050068 ФМ: 0000000000871745 ФД: 145654 ФПД: 24412044539082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105458&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145654&fm=24412044539082&tin=02508201610067®Number=0000000000091683&sum=0 [10:54:58]StoreToDocumentArchive [10:54:58]shift 545 fd 145654 [10:54:58]save to /storage/0545/doc_00145654 [10:54:58]save last doc name /storage/0545/doc_00145654 to /storage/kkm_last_doc_name [10:54:58]save OK [10:54:58]Clear old archive folders... [10:54:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:58]tlvbuf is 00423060 [10:54:58]SAM_PROTO_ClearQueue [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 09 00 00 [10:54:58]Write to MH i2c: E2 08 00 29 06 80 09 00 00 00 00 00 00 A1 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 29 06 00 90 00 A3 [10:54:58]RAPDU: 90 00 [10:54:58]wFMCommunicate OK [10:54:58]SAM_PROTO_ClearQueue done [10:54:58]KKMCreateOFDPacket [10:54:58]OFDProtocolAddRootSTLVToBuf [10:54:58]FM_MakeSignedData [10:54:58]FM_MakeSignedData [10:54:58]SAM_PROTO_SignData [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 0D 01 02 [10:54:58]Write to MH i2c: E2 08 00 2A 06 80 0D 01 02 00 00 00 00 A9 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [10:54:58]RAPDU: 90 00 [10:54:58]wFMCommunicate OK [10:54:58]wFMCommunicate request_size=255 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 02 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F6 38 02 00 35 04 06 00 16 [10:54:58]Write to MH i2c: E2 02 01 2B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 02 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F6 38 02 00 35 04 06 00 16 00 00 14 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 2B 06 00 90 00 A5 [10:54:59]RAPDU: 90 00 [10:54:59]wFMCommunicate OK [10:54:59]wFMCommunicate request_size=10 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 0D 02 02 05 33 DF 3E 34 CA [10:54:59]Write to MH i2c: E2 0D 00 2C 06 80 0D 02 02 05 00 33 DF 3E 34 CA 00 00 04 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 2C 06 00 90 00 A6 [10:54:59]RAPDU: 90 00 [10:54:59]wFMCommunicate OK [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 0D 03 02 [10:54:59]Write to MH i2c: E2 08 00 2D 06 80 0D 03 02 00 00 00 00 AE [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0B 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0B 00 2D 06 00 77 8D 01 59 B8 77 57 2F 90 00 C2 [10:54:59]RAPDU: 77 8D 01 59 B8 77 57 2F 90 00 [10:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_SignData done [10:54:59]FM_MakeSignedData done [10:54:59]CreateOFDProtocolMessage [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 11 00 00 [10:54:59]Write to MH i2c: E2 08 00 2E 06 80 11 00 00 00 00 00 00 AE [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 17 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 17 00 2E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 01 [10:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:54:59]wFMCommunicate OK [10:54:59]CreateOFDProtocolMessage done [10:54:59]OFDSenderStorePacket 145654 [10:54:59]StoreOFDPacket docnum=145654 [10:54:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 24 46 07 01 7C 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 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 02 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F6 38 02 00 35 04 06 00 16 33 DF 3E 34 CA 77 8D 01 59 B8 77 57 2F [10:54:59]CheckFolder [10:54:59]dirname=/storage/ofd_packets [10:54:59]CheckFolder done [10:54:59]ProducePacketName [10:54:59]name=ofd_packets/00145654 [10:54:59]NVStorageSaveData ofd_packets/00145654 [10:54:59]File name is /storage/ofd_packets/00145654 [10:54:59]Write 301 bytes [10:54:59]NVStorageSaveData done [10:54:59]OFDSenderStorePacket done [10:54:59]KKMCreateOFDPacket done [10:54:59]NVStorageSaveData kkm_last_timestamp [10:54:59]File name is /storage/kkm_last_timestamp [10:54:59]Write 4 bytes [10:54:59]NVStorageSaveData done [10:54:59]OFD Sender: Processing packet 145654 [packets to send 206, broken 205] [10:54:59]ProducePacketName [10:54:59]name=ofd_packets/00145654 [10:54:59]OFD Sender: To server: pG, [10:54:59]CommunicateWithHost lk.salyk.kg:30040 [10:54:59]ConnectInit lk.salyk.kg [10:54:59]ExternCall_PrintAddStr [10:54:59]wPrintStart [10:54:59]Write to MH i2c: 01 00 00 2F 06 35 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: 01 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: 01 07 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 FF 0F 4A [10:54:59]RasterBufferAndPrint [10:54:59]line Счет N : (1)160405 [10:54:59]line ИНН: 02508201610067 [10:54:59]line Контрольно-Кассовый Чек [10:54:59]line ПРОДАЖА [10:54:59]line ТРК (МРК, ГНК) : 32 [10:54:59]line Товар: 2710124130 [10:54:59]line Аи-92-К-2 [10:54:59]line 25.000 * 0.00 [10:54:59]line = 0.00 [10:54:59]line НДС 12% НСП 1% [10:54:59]line > о реализуемом товаре [10:54:59]line ИТОГО: 0.00 [10:54:59]line НСП 1% : 0.00 [10:54:59]line НДС 12% : 0.00 [10:54:59]line Наличными: 0.00 [10:54:59]line Безнал.: 0.00 [10:54:59]line Место: АЗС № 126 "Партнер Нефть" [10:54:59]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:54:59]line СНО: Общий режим [10:54:59]line Чек 77 27.10.2024 10:54 [10:54:59]line Смена: 545 ФФД: 1.0 [10:54:59]line ЗНМ: 0300000085 [10:54:59]line РНМ: 0000000000091683 [10:54:59]line Версия ККМ: 001 [10:54:59]line Талоны: ТК ГПНА Online [10:54:59]line 30050068 [10:54:59]line ФМ: 0000000000871745 [10:54:59]line ФД: 145654 [10:54:59]line ФПД: 24412044539082 [10:54:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105458&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145654&fm=24412044539082&tin=02508201610067®Number=0000000000091683&sum=0 [10:54:59]Connected sock=11 [10:54:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 24 46 07 01 7C 87 5A 03 01 00 03 written 0, free lines is 4095 [10:54:59]00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 02 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F6 38 02 00 35 04 06 00 16 33 DF 3E 34 CA 77 8D 01 59 B8 77 57 2F [10:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 B4 43 47 00 9B C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F6 38 02 00 F4 03 04 00 30 C1 1D 67 B6 04 01 00 00 23 71 D4 DE 61 2A CF 69 [10:54:59]CommunicateWithHost err = 0 [10:54:59]CheckOFDResponse [10:55:00]1017 (14) - 77093643461234 [10:55:00]1041 (16) - 0000000000871745 [10:55:00]1040 (4) - 145654 [10:55:00]1012 (4) - 27.10.2024 04:27 [10:55:00]1206 (1) - 0 [10:55:00]OFD Sender: Remove packet 145654 [10:55:00]ProducePacketName [10:55:00]name=ofd_packets/00145654 [10:55:00]NVStorageDeleteData [10:55:00]Write to MH i2c: 01 00 00 59 06 5F [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 59 06 00 00 00 00 00 B4 0C 26 [10:55:00]RasterBufferAndPrint [10:55:00]line [10:55:00]line [10:55:00]line [10:55:00]line [10:55:00]line [10:55:00]written 0, free lines is 3256 [10:55:00]MH_Cut [10:55:00]Write to MH i2c: D1 01 00 60 06 01 38 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: D1 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: D1 01 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: D1 01 00 60 06 00 37 [10:55:00]Write to MH i2c: 01 00 00 61 06 67 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]OFD Sender: No OFD packet to send [10:55:00]*** Cut start [10:55:00]*** Partial cut [10:55:00]*** CUTSNS_PIN = 1 [10:55:00]*** CUTSNS_PIN = 0 [10:55:01]*** Brake cut motor [10:55:01]Read from MH i2c: 01 [10:55:01]MH_I2C_Read... [10:55:01]*** Stop cut motor [10:55:01]*** Cut end [10:55:01]Read from MH i2c: 01 07 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 07 00 61 06 00 00 00 00 00 FF 0F 7C [10:55:01]process_action close_receipt done [10:55:01]requested_data is exist [10:55:01]produce_requested_data [10:55:01]requested_item fm.sn is exist - process it [10:55:01]wFMCommunicate request_size=4 [10:55:01]MH_SAM_APDU [10:55:01]CAPDU: 80 11 00 00 [10:55:01]Write to MH i2c: E2 08 00 62 06 80 11 00 00 00 00 00 00 E2 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:01]Read from MH i2c: E2 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 17 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 17 00 62 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 35 [10:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:55:01]wFMCommunicate OK [10:55:01]requested_item fd.num is exist - process it [10:55:01]SAM_PROTO_GetFieldsCounters [10:55:01]wFMCommunicate request_size=4 [10:55:01]MH_SAM_APDU [10:55:01]CAPDU: 80 13 00 00 [10:55:01]Write to MH i2c: E2 08 00 63 06 80 13 00 00 00 00 00 00 E5 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:01]Read from MH i2c: E2 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 62 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 62 00 63 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F6 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [10:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F6 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:01]wFMCommunicate OK [10:55:01]SAM_PROTO_GetFieldsCounters done [10:55:01]requested_item shift.num is exist - process it [10:55:01]requested_item shift.opened is exist - process it [10:55:01]req_shift_opened [10:55:01]FM_GetShiftState [10:55:01]SAM_PROTO_GetShiftState [10:55:01]wFMCommunicate request_size=4 [10:55:01]MH_SAM_APDU [10:55:01]CAPDU: 80 13 01 00 [10:55:01]Write to MH i2c: E2 08 00 64 06 80 13 01 00 00 00 00 00 E7 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:01]Read from MH i2c: E2 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 0E 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 0E 00 64 06 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5F [10:55:01]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:55:01]wFMCommunicate OK [10:55:01]SAM_PROTO_GetShiftState done [10:55:01]FM_GetShiftState done [10:55:01]req_shift_opened done [10:55:01]requested_item shift.open_date is exist - process it [10:55:01]req_shift_open_date [10:55:01]req_shift_open_date done [10:55:01]produce_requested_data done [10:55:01]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145654,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:55:01]process_action_free close_receipt [10:55:01]json_value_free [10:55:01]json_value_free done [10:55:01]process_json_proto returns [10:55:01]Send response to host [10:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145654,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:55:01]free response buf [10:55:01]execute_script done [10:55:01]execute_script returns [10:55:01]free content buf [10:55:01]Sock 9.Close socket [10:55:01]Sock 9.Thread stoped [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:13]accept exits with 7 [10:56:13]New connection [10:56:13]New thread 3066596708 created [10:56:13]Thread 3066740068 joined [10:56:13]Waiting for new connection... [10:56:13] Sock 7.Parse request [10:56:13]Sock 7.Check first char [10:56:13]Sock 7.First char is OK [10:56:13]request: POST /json_proto HTTP/1.0 [10:56:13]Method: POST [10:56:13]URL: /json_proto [10:56:13]Method is POST - this is cgi request [10:56:13]url: /json_proto [10:56:13]query_string will be loaded in cgi processing [10:56:13]execute_cgi json_proto POST (null) [10:56:13]execute_cgi path=json_proto method=POST [10:56:13]POST find Content-Length [10:56:13]Host: 172.17.40.195:8080 [10:56:13]Content-Length: 679 [10:56:13]Content-Type: application/json [10:56:13] [10:56:13]POST finish read [10:56:13]Found Content-Length = 679 [10:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:13]execute_script... [10:56: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)160406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:13]POST & json_proto [10:56:13]process_json_proto [10:56:13]json parsed OK: [10:56:13]protocol is kg_v1.0 [10:56:13]action value=close_receipt [10:56:13]process_action close_receipt [10:56:13]cmd_close_receipt [10:56:13]MH_GetDate [10:56:13]Write to MH i2c: F0 00 00 65 06 5A [10:56:13]Write i2c OK [10:56:13]MH_I2C_Read... [10:56:13]Read from MH i2c: F0 [10:56:13]MH_I2C_Read... [10:56:13]Read from MH i2c: F0 09 00 [10:56:13]MH_I2C_Read... [10:56:13]Read from MH i2c: F0 09 00 65 06 00 4E 1C 1E 67 D5 8D 6C 64 84 [10:56:13]GetLastDocTimeStamp 1730026498 [10:56:13]current date 1730026574 [10:56:13]FM_GetShiftState [10:56:13]SAM_PROTO_GetShiftState [10:56:13]wFMCommunicate request_size=4 [10:56:13]MH_SAM_APDU [10:56:13]CAPDU: 80 13 01 00 [10:56:13]Write to MH i2c: E2 08 00 66 06 80 13 01 00 00 00 00 00 E9 [10:56:13]Write i2c OK [10:56:13]MH_I2C_Read... [10:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:13]Read from MH i2c: E2 [10:56:13]MH_I2C_Read... [10:56:13]Read from MH i2c: E2 0E 00 [10:56:13]MH_I2C_Read... [10:56:13]Read from MH i2c: E2 0E 00 66 06 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 61 [10:56:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:56:13]wFMCommunicate OK [10:56:13]SAM_PROTO_GetShiftState done [10:56:13]FM_GetShiftState done [10:56:13]opened in 1729988959 [10:56:13]opened+sec_in_day 1730075359 [10:56:13]quantity*price = 150037 [10:56:13]sum+1 = 150039 [10:56:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 78 27.10.2024 10:56 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145655 ФПД: 113616791588653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105614&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145655&fm=113616791588653&tin=02508201610067®Number=0000000000091683&sum=150000 [10:56:14]StoreToDocumentArchive [10:56:14]shift 545 fd 145655 [10:56:14]save to /storage/0545/doc_00145655 [10:56:14]save last doc name /storage/0545/doc_00145655 to /storage/kkm_last_doc_name [10:56:14]save OK [10:56:14]Clear old archive folders... [10:56:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:56:14]tlvbuf is 0043A0D0 [10:56:14]SAM_PROTO_ClearQueue [10:56:14]wFMCommunicate request_size=4 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 09 00 00 [10:56:14]Write to MH i2c: E2 08 00 73 06 80 09 00 00 00 00 00 00 EB [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [10:56:14]RAPDU: 90 00 [10:56:14]wFMCommunicate OK [10:56:14]SAM_PROTO_ClearQueue done [10:56:14]KKMCreateOFDPacket [10:56:14]OFDProtocolAddRootSTLVToBuf [10:56:14]FM_MakeSignedData [10:56:14]FM_MakeSignedData [10:56:14]SAM_PROTO_SignData [10:56:14]wFMCommunicate request_size=4 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 0D 01 02 [10:56:14]Write to MH i2c: E2 08 00 74 06 80 0D 01 02 00 00 00 00 F3 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 74 06 00 90 00 EE [10:56:14]RAPDU: 90 00 [10:56:14]wFMCommunicate OK [10:56:14]wFMCommunicate request_size=255 [10:56:14]MH_SAM_APDU [10:56: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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 4E 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F7 38 02 00 35 04 06 00 67 55 78 80 [10:56:14]Write to MH i2c: E2 02 01 75 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 4E 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F7 38 02 00 35 04 06 00 67 55 78 80 00 00 33 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 75 06 00 90 00 EF [10:56:14]RAPDU: 90 00 [10:56:14]wFMCommunicate OK [10:56:14]wFMCommunicate request_size=7 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 0D 02 02 02 CF 2D [10:56:14]Write to MH i2c: E2 0A 00 76 06 80 0D 02 02 02 00 CF 2D 00 00 F6 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [10:56:14]RAPDU: 90 00 [10:56:14]wFMCommunicate OK [10:56:14]wFMCommunicate request_size=4 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 0D 03 02 [10:56:14]Write to MH i2c: E2 08 00 77 06 80 0D 03 02 00 00 00 00 F8 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 0B 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 0B 00 77 06 00 B9 C1 97 CE 18 82 DE 44 90 00 94 [10:56:14]RAPDU: B9 C1 97 CE 18 82 DE 44 90 00 [10:56:14]wFMCommunicate OK [10:56:14]SAM_PROTO_SignData done [10:56:14]FM_MakeSignedData done [10:56:14]CreateOFDProtocolMessage [10:56:14]wFMCommunicate request_size=4 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 11 00 00 [10:56:14]Write to MH i2c: E2 08 00 78 06 80 11 00 00 00 00 00 00 F8 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 17 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 17 00 78 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 4B [10:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:56:14]wFMCommunicate OK [10:56:14]CreateOFDProtocolMessage done [10:56:14]OFDSenderStorePacket 145655 [10:56:14]StoreOFDPacket docnum=145655 [10:56:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 4F 99 04 01 FB F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 4E 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F7 38 02 00 35 04 06 00 67 55 78 80 CF 2D B9 C1 97 CE 18 82 DE 44 [10:56:14]CheckFolder [10:56:14]dirname=/storage/ofd_packets [10:56:14]CheckFolder done [10:56:14]ProducePacketName [10:56:14]name=ofd_packets/00145655 [10:56:14]NVStorageSaveData ofd_packets/00145655 [10:56:14]File name is /storage/ofd_packets/00145655 [10:56:14]Write 298 bytes [10:56:14]NVStorageSaveData done [10:56:14]OFDSenderStorePacket done [10:56:14]KKMCreateOFDPacket done [10:56:14]NVStorageSaveData kkm_last_timestamp [10:56:14]File name is /storage/kkm_last_timestamp [10:56:14]Write 4 bytes [10:56:14]NVStorageSaveData done [10:56:14]ExternCall_PrintAddStr [10:56:14]wPrintStart [10:56:14]Write to MH i2c: 01 00 00 79 06 7F [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 07 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FF 0F 94 [10:56:14]RasterBufferAndPrint [10:56:14]line Счет N : (1)160406 [10:56:14]line ИНН: 02508201610067 [10:56:14]line Контрольно-Кассовый Чек [10:56:14]line ПРОДАЖА [10:56:14]line ТРК (МРК, ГНК) : 21 [10:56:14]line Товар: 2710194210 [10:56:14]line ДТ-К-2 [10:56:14]line 19.690 * 76.20 [10:56:14]line = 1500.38 [10:56:14]line НДС 12% НСП 1% [10:56:14]line > о реализуемом товаре [10:56:14]line ОКРУГЛЕНИЕ: -0.38 [10:56:14]line ИТОГО: 1500.00 [10:56:14]line Внесено: 1500.00 [10:56:14]line СДАЧА: 0.00 [10:56:14]line НСП 1% : 13.28 [10:56:14]line НДС 12% : 159.33 [10:56:14]line Наличными: 1500.00 [10:56:14]line Безнал.: 0.00 [10:56:14]line Место: АЗС № 126 "Партнер Нефть" [10:56:14]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:56:14]line СНО: Общий режим [10:56:14]line Чек 78 27.10.2024 10:56 [10:56:14]line Смена: 545 ФФД: 1.0 [10:56:14]line ЗНМ: 0300000085 [10:56:14]line РНМ: 0000000000091683 [10:56:14]line Версия ККМ: 001 [10:56:14]line ФМ: 0000000000871745 [10:56:14]line ФД: 145655 [10:56:14]line ФПД: 113616791588653 [10:56:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105614&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145655&fm=113616791588653&tin=02508201610067®Number=0000000000091683&sum=150000 [10:56:15]OFD Sender: Processing packet 145655 [packets to send 206, broken 205] [10:56:15]ProducePacketName [10:56:15]name=ofd_packets/00145655 [10:56:15]OFD Sender: To server: pG, [10:56:15]CommunicateWithHost lk.salyk.kg:30040 [10:56:15]ConnectInit lk.salyk.kg [10:56:15]written 0, free lines is 4095 [10:56:15]Connected sock=10 [10:56:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 4F 99 04 01 FB F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 4E 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F7 38 02 00 35 04 06 00 67 55 78 80 CF 2D B9 C1 97 CE 18 82 DE 44 [10:56:15]Write to MH i2c: 01 00 00 A4 06 AA [10:56:15]Write i2c OK [10:56:15]MH_I2C_Read... [10:56:15]Read from MH i2c: 01 [10:56:15]MH_I2C_Read... [10:56:15]Read from MH i2c: 01 07 00 [10:56:15]MH_I2C_Read... [10:56:15]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 A8 0C 65 [10:56:15]RasterBufferAndPrint [10:56:15]line [10:56:15]line [10:56:15]line [10:56:15]line [10:56:15]line [10:56:15]written 0, free lines is 3245 [10:56:15]MH_Cut [10:56:15]Write to MH i2c: D1 01 00 AB 06 01 83 [10:56:15]Write i2c OK [10:56:15]MH_I2C_Read... [10:56:15]Read from MH i2c: D1 [10:56:15]MH_I2C_Read... [10:56:15]Read from MH i2c: D1 01 00 [10:56:15]MH_I2C_Read... [10:56:15]Read from MH i2c: D1 01 00 AB 06 00 82 [10:56:15]Write to MH i2c: 01 00 00 AC 06 B2 [10:56:15]Write i2c OK [10:56:15]MH_I2C_Read... [10:56:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 76 22 47 00 C9 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F7 38 02 00 F4 03 04 00 7C C1 1D 67 B6 04 01 00 00 71 95 80 7E 9E D7 A1 06 [10:56:15]CommunicateWithHost err = 0 [10:56:15]CheckOFDResponse [10:56:15]1017 (14) - 77093643461234 [10:56:15]1041 (16) - 0000000000871745 [10:56:15]1040 (4) - 145655 [10:56:15]1012 (4) - 27.10.2024 04:28 [10:56:15]1206 (1) - 0 [10:56:15]OFD Sender: Remove packet 145655 [10:56:15]ProducePacketName [10:56:15]name=ofd_packets/00145655 [10:56:15]NVStorageDeleteData [10:56:16]OFD Sender: No OFD packet to send [10:56:16]*** Cut start [10:56:16]*** Partial cut [10:56:16]*** CUTSNS_PIN = 1 [10:56:16]*** CUTSNS_PIN = 0 [10:56:16]*** Brake cut motor [10:56:16]Read from MH i2c: 01 [10:56:16]MH_I2C_Read... [10:56:16]*** Stop cut motor [10:56:16]*** Cut end [10:56:16]Read from MH i2c: 01 07 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 FF 0F C7 [10:56:16]process_action close_receipt done [10:56:16]requested_data is exist [10:56:16]produce_requested_data [10:56:16]requested_item fm.sn is exist - process it [10:56:16]wFMCommunicate request_size=4 [10:56:16]MH_SAM_APDU [10:56:16]CAPDU: 80 11 00 00 [10:56:16]Write to MH i2c: E2 08 00 AD 06 80 11 00 00 00 00 00 00 2D [10:56:16]Write i2c OK [10:56:16]MH_I2C_Read... [10:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:17]Read from MH i2c: E2 [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: E2 17 00 [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: E2 17 00 AD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 80 [10:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:56:17]wFMCommunicate OK [10:56:17]requested_item fd.num is exist - process it [10:56:17]SAM_PROTO_GetFieldsCounters [10:56:17]wFMCommunicate request_size=4 [10:56:17]MH_SAM_APDU [10:56:17]CAPDU: 80 13 00 00 [10:56:17]Write to MH i2c: E2 08 00 AE 06 80 13 00 00 00 00 00 00 30 [10:56:17]Write i2c OK [10:56:17]MH_I2C_Read... [10:56:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:17]Read from MH i2c: E2 [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: E2 62 00 [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: E2 62 00 AE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F7 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [10:56:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F7 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:17]wFMCommunicate OK [10:56:17]SAM_PROTO_GetFieldsCounters done [10:56:17]requested_item shift.num is exist - process it [10:56:17]requested_item shift.opened is exist - process it [10:56:17]req_shift_opened [10:56:17]FM_GetShiftState [10:56:17]SAM_PROTO_GetShiftState [10:56:17]wFMCommunicate request_size=4 [10:56:17]MH_SAM_APDU [10:56:17]CAPDU: 80 13 01 00 [10:56:17]Write to MH i2c: E2 08 00 AF 06 80 13 01 00 00 00 00 00 32 [10:56:17]Write i2c OK [10:56:17]MH_I2C_Read... [10:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:17]Read from MH i2c: E2 [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: E2 0E 00 [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: E2 0E 00 AF 06 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AA [10:56:17]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:56:17]wFMCommunicate OK [10:56:17]SAM_PROTO_GetShiftState done [10:56:17]FM_GetShiftState done [10:56:17]req_shift_opened done [10:56:17]requested_item shift.open_date is exist - process it [10:56:17]req_shift_open_date [10:56:17]req_shift_open_date done [10:56:17]produce_requested_data done [10:56:17]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145655,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:56:17]process_action_free close_receipt [10:56:17]json_value_free [10:56:17]json_value_free done [10:56:17]process_json_proto returns [10:56:17]Send response to host [10:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145655,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:56:17]free response buf [10:56:17]execute_script done [10:56:17]execute_script returns [10:56:17]free content buf [10:56:17]Sock 7.Close socket [10:56:17]Sock 7.Thread stoped [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:27]int [10:56:27]Write to MH i2c: 01 00 00 B0 06 B6 [10:56:27]*** FLAG_PRN_KEY set [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 B0 06 00 08 00 00 00 FF 0F D3 [10:56:27]state=0 [10:56:27]Key pressed [10:56:27]Feed [10:56:27]Write to MH i2c: D8 00 00 B1 06 8E [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: D8 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: D8 01 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: D8 01 00 B1 06 00 8F [10:56:27]int [10:56:27]Write to MH i2c: 01 00 00 B2 06 B8 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 B2 06 00 48 00 00 00 3C 00 43 [10:56:27]state=2 [10:56:27]Key pressed [10:56:27]int [10:56:27]Write to MH i2c: 01 00 00 B3 06 B9 [10:56:27]*** FLAG_PRN_KEY reset [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 F6 0F C5 [10:56:27]state=2 [10:56:27]Stop feed [10:56:28]int [10:56:28]Write to MH i2c: 01 00 00 B4 06 BA [10:56:28]*** FLAG_PRN_KEY set [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 B4 06 00 08 00 00 00 FF 0F D7 [10:56:28]state=0 [10:56:28]Key pressed [10:56:28]Feed [10:56:28]Write to MH i2c: D8 00 00 B5 06 92 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: D8 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: D8 01 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: D8 01 00 B5 06 00 93 [10:56:28]int [10:56:28]Write to MH i2c: 01 00 00 B6 06 BC [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 B6 06 00 48 00 00 00 3C 00 47 [10:56:28]state=2 [10:56:28]Key pressed [10:56:28]int [10:56:28]Write to MH i2c: 01 00 00 B7 06 BD [10:56:28]*** FLAG_PRN_KEY reset [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 B7 06 00 00 00 00 00 F6 0F C9 [10:56:28]state=2 [10:56:28]Stop feed [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:10]accept exits with 9 [10:59:10]New connection [10:59:10]New thread 3066740068 created [10:59:10]Thread 3066596708 joined [10:59:10]Waiting for new connection... [10:59:10] Sock 9.Parse request [10:59:10]Sock 9.Check first char [10:59:10]Sock 9.First char is OK [10:59:10]request: POST /json_proto HTTP/1.0 [10:59:10]Method: POST [10:59:10]URL: /json_proto [10:59:10]Method is POST - this is cgi request [10:59:10]url: /json_proto [10:59:10]query_string will be loaded in cgi processing [10:59:10]execute_cgi json_proto POST (null) [10:59:10]execute_cgi path=json_proto method=POST [10:59:10]POST find Content-Length [10:59:10]Host: 172.17.40.195:8080 [10:59:10]Content-Length: 678 [10:59:10]Content-Type: application/json [10:59:10] [10:59:10]POST finish read [10:59:10]Found Content-Length = 678 [10:59:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:10]execute_script... [10:59: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)160407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:10]POST & json_proto [10:59:10]process_json_proto [10:59:10]json parsed OK: [10:59:10]protocol is kg_v1.0 [10:59:10]action value=close_receipt [10:59:10]process_action close_receipt [10:59:10]cmd_close_receipt [10:59:10]MH_GetDate [10:59:10]Write to MH i2c: F0 00 00 B8 06 AD [10:59:10]Write i2c OK [10:59:10]MH_I2C_Read... [10:59:10]Read from MH i2c: F0 [10:59:10]MH_I2C_Read... [10:59:10]Read from MH i2c: F0 09 00 [10:59:10]MH_I2C_Read... [10:59:10]Read from MH i2c: F0 09 00 B8 06 00 FF 1C 1E 67 D5 8D 6C 64 88 [10:59:10]GetLastDocTimeStamp 1730026574 [10:59:10]current date 1730026751 [10:59:10]FM_GetShiftState [10:59:10]SAM_PROTO_GetShiftState [10:59:10]wFMCommunicate request_size=4 [10:59:10]MH_SAM_APDU [10:59:10]CAPDU: 80 13 01 00 [10:59:10]Write to MH i2c: E2 08 00 B9 06 80 13 01 00 00 00 00 00 3C [10:59:10]Write i2c OK [10:59:10]MH_I2C_Read... [10:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:10]Read from MH i2c: E2 [10:59:10]MH_I2C_Read... [10:59:10]Read from MH i2c: E2 0E 00 [10:59:10]MH_I2C_Read... [10:59:10]Read from MH i2c: E2 0E 00 B9 06 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B4 [10:59:10]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:59:10]wFMCommunicate OK [10:59:10]SAM_PROTO_GetShiftState done [10:59:10]FM_GetShiftState done [10:59:10]opened in 1729988959 [10:59:10]opened+sec_in_day 1730075359 [10:59:10]quantity*price = 80012 [10:59:10]sum+1 = 80013 [10:59:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 79 27.10.2024 10:59 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145656 ФПД: 148242956194241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105911&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145656&fm=148242956194241&tin=02508201610067®Number=0000000000091683&sum=80000 [10:59:11]StoreToDocumentArchive [10:59:11]shift 545 fd 145656 [10:59:11]save to /storage/0545/doc_00145656 [10:59:11]save last doc name /storage/0545/doc_00145656 to /storage/kkm_last_doc_name [10:59:11]save OK [10:59:11]Clear old archive folders... [10:59:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:11]tlvbuf is 00419530 [10:59:11]SAM_PROTO_ClearQueue [10:59:11]wFMCommunicate request_size=4 [10:59:11]MH_SAM_APDU [10:59:11]CAPDU: 80 09 00 00 [10:59:11]Write to MH i2c: E2 08 00 C6 06 80 09 00 00 00 00 00 00 3E [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:11]Read from MH i2c: E2 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 03 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [10:59:11]RAPDU: 90 00 [10:59:11]wFMCommunicate OK [10:59:11]SAM_PROTO_ClearQueue done [10:59:11]KKMCreateOFDPacket [10:59:11]OFDProtocolAddRootSTLVToBuf [10:59:11]FM_MakeSignedData [10:59:11]FM_MakeSignedData [10:59:11]SAM_PROTO_SignData [10:59:11]wFMCommunicate request_size=4 [10:59:11]MH_SAM_APDU [10:59:11]CAPDU: 80 0D 01 02 [10:59:11]Write to MH i2c: E2 08 00 C7 06 80 0D 01 02 00 00 00 00 46 [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:11]Read from MH i2c: E2 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 03 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [10:59:11]RAPDU: 90 00 [10:59:11]wFMCommunicate OK [10:59:11]wFMCommunicate request_size=255 [10:59:11]MH_SAM_APDU [10:59: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FF 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F8 38 02 00 35 04 06 00 86 [10:59:11]Write to MH i2c: E2 02 01 C8 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FF 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F8 38 02 00 35 04 06 00 86 00 00 8A [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:11]Read from MH i2c: E2 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 03 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [10:59:11]RAPDU: 90 00 [10:59:11]wFMCommunicate OK [10:59:11]wFMCommunicate request_size=10 [10:59:11]MH_SAM_APDU [10:59:11]CAPDU: 80 0D 02 02 05 D3 80 BE 91 C1 [10:59:11]Write to MH i2c: E2 0D 00 C9 06 80 0D 02 02 05 00 D3 80 BE 91 C1 00 00 B6 [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:11]Read from MH i2c: E2 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 03 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [10:59:11]RAPDU: 90 00 [10:59:11]wFMCommunicate OK [10:59:11]wFMCommunicate request_size=4 [10:59:11]MH_SAM_APDU [10:59:11]CAPDU: 80 0D 03 02 [10:59:11]Write to MH i2c: E2 08 00 CA 06 80 0D 03 02 00 00 00 00 4B [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:11]Read from MH i2c: E2 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 0B 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 0B 00 CA 06 00 73 F2 0F 5F 1A 97 B3 69 90 00 EC [10:59:11]RAPDU: 73 F2 0F 5F 1A 97 B3 69 90 00 [10:59:11]wFMCommunicate OK [10:59:11]SAM_PROTO_SignData done [10:59:11]FM_MakeSignedData done [10:59:11]CreateOFDProtocolMessage [10:59:11]wFMCommunicate request_size=4 [10:59:11]MH_SAM_APDU [10:59:11]CAPDU: 80 11 00 00 [10:59:11]Write to MH i2c: E2 08 00 CB 06 80 11 00 00 00 00 00 00 4B [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:12]Read from MH i2c: E2 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 17 00 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 17 00 CB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9E [10:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:59:12]wFMCommunicate OK [10:59:12]CreateOFDProtocolMessage done [10:59:12]OFDSenderStorePacket 145656 [10:59:12]StoreOFDPacket docnum=145656 [10:59:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 88 4C 07 01 16 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FF 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F8 38 02 00 35 04 06 00 86 D3 80 BE 91 C1 73 F2 0F 5F 1A 97 B3 69 [10:59:12]CheckFolder [10:59:12]dirname=/storage/ofd_packets [10:59:12]CheckFolder done [10:59:12]ProducePacketName [10:59:12]name=ofd_packets/00145656 [10:59:12]NVStorageSaveData ofd_packets/00145656 [10:59:12]File name is /storage/ofd_packets/00145656 [10:59:12]Write 301 bytes [10:59:12]NVStorageSaveData done [10:59:12]OFDSenderStorePacket done [10:59:12]KKMCreateOFDPacket done [10:59:12]NVStorageSaveData kkm_last_timestamp [10:59:12]File name is /storage/kkm_last_timestamp [10:59:12]Write 4 bytes [10:59:12]NVStorageSaveData done [10:59:12]ExternCall_PrintAddStr [10:59:12]wPrintStart [10:59:12]Write to MH i2c: 01 00 00 CC 06 D2 [10:59:12]Write i2c OK [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: 01 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: 01 07 00 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 FF 0F E7 [10:59:12]RasterBufferAndPrint [10:59:12]line Счет N : (1)160407 [10:59:12]line ИНН: 02508201610067 [10:59:12]line Контрольно-Кассовый Чек [10:59:12]line ПРОДАЖА [10:59:12]line ТРК (МРК, ГНК) : 32 [10:59:12]line Товар: 2710124130 [10:59:12]line Аи-92-К-2 [10:59:12]line 11.960 * 66.90 [10:59:12]line = 800.12 [10:59:12]line НДС 12% НСП 1% [10:59:12]line > о реализуемом товаре [10:59:12]line ОКРУГЛЕНИЕ: -0.12 [10:59:12]line ИТОГО: 800.00 [10:59:12]line Внесено: 800.00 [10:59:12]line СДАЧА: 0.00 [10:59:12]line НСП 1% : 7.08 [10:59:12]line НДС 12% : 84.97 [10:59:12]line Наличными: 800.00 [10:59:12]line Безнал.: 0.00 [10:59:12]line Место: АЗС № 126 "Партнер Нефть" [10:59:12]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:59:12]line СНО: Общий режим [10:59:12]line Чек 79 27.10.2024 10:59 [10:59:12]line Смена: 545 ФФД: 1.0 [10:59:12]line ЗНМ: 0300000085 [10:59:12]line РНМ: 0000000000091683 [10:59:12]line Версия ККМ: 001 [10:59:12]line ФМ: 0000000000871745 [10:59:12]line ФД: 145656 [10:59:12]line ФПД: 148242956194241 [10:59:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105911&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145656&fm=148242956194241&tin=02508201610067®Number=0000000000091683&sum=80000 [10:59:12]OFD Sender: Processing packet 145656 [packets to send 206, broken 205] [10:59:12]ProducePacketName [10:59:12]name=ofd_packets/00145656 [10:59:12]OFD Sender: To server: pG, [10:59:12]CommunicateWithHost lk.salyk.kg:30040 [10:59:12]ConnectInit lk.salyk.kg [10:59:12]written 0, free lines is 4095 [10:59:12]Connected sock=10 [10:59:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 88 4C 07 01 16 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FF 1C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F8 38 02 00 35 04 06 00 86 D3 80 BE 91 C1 73 F2 0F 5F 1A 97 B3 69 [10:59:12]Write to MH i2c: 01 00 00 F7 06 FD [10:59:12]Write i2c OK [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: 01 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: 01 07 00 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: 01 07 00 F7 06 00 00 00 00 00 B7 0C C7 [10:59:12]RasterBufferAndPrint [10:59:12]line [10:59:12]line [10:59:12]line [10:59:12]line [10:59:12]line [10:59:12]written 0, free lines is 3259 [10:59:12]MH_Cut [10:59:12]Write to MH i2c: D1 01 00 FE 06 01 D6 [10:59:12]Write i2c OK [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: D1 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: D1 01 00 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: D1 01 00 FE 06 00 D5 [10:59:12]Write to MH i2c: 01 00 00 FF 06 05 [10:59:12]Write i2c OK [10:59:12]MH_I2C_Read... [10:59:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 18 D6 47 00 F7 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F8 38 02 00 F4 03 04 00 2D C2 1D 67 B6 04 01 00 00 11 28 A6 E9 7E A4 9F 40 [10:59:12]CommunicateWithHost err = 0 [10:59:12]CheckOFDResponse [10:59:12]1017 (14) - 77093643461234 [10:59:12]1041 (16) - 0000000000871745 [10:59:12]1040 (4) - 145656 [10:59:12]1012 (4) - 27.10.2024 04:31 [10:59:12]1206 (1) - 0 [10:59:12]OFD Sender: Remove packet 145656 [10:59:12]ProducePacketName [10:59:12]name=ofd_packets/00145656 [10:59:12]NVStorageDeleteData [10:59:13]OFD Sender: No OFD packet to send [10:59:13]*** Cut start [10:59:13]*** Partial cut [10:59:13]*** CUTSNS_PIN = 1 [10:59:13]*** CUTSNS_PIN = 0 [10:59:13]*** Brake cut motor [10:59:14]Read from MH i2c: 01 [10:59:14]MH_I2C_Read... [10:59:14]*** Stop cut motor [10:59:14]*** Cut end [10:59:14]Read from MH i2c: 01 07 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 07 00 FF 06 00 00 00 00 00 FF 0F 1A [10:59:14]process_action close_receipt done [10:59:14]requested_data is exist [10:59:14]produce_requested_data [10:59:14]requested_item fm.sn is exist - process it [10:59:14]wFMCommunicate request_size=4 [10:59:14]MH_SAM_APDU [10:59:14]CAPDU: 80 11 00 00 [10:59:14]Write to MH i2c: E2 08 00 00 07 80 11 00 00 00 00 00 00 81 [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:14]Read from MH i2c: E2 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 17 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 17 00 00 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D4 [10:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:59:14]wFMCommunicate OK [10:59:14]requested_item fd.num is exist - process it [10:59:14]SAM_PROTO_GetFieldsCounters [10:59:14]wFMCommunicate request_size=4 [10:59:14]MH_SAM_APDU [10:59:14]CAPDU: 80 13 00 00 [10:59:14]Write to MH i2c: E2 08 00 01 07 80 13 00 00 00 00 00 00 84 [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:14]Read from MH i2c: E2 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 62 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 62 00 01 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F8 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [10:59:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F8 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:14]wFMCommunicate OK [10:59:14]SAM_PROTO_GetFieldsCounters done [10:59:14]requested_item shift.num is exist - process it [10:59:14]requested_item shift.opened is exist - process it [10:59:14]req_shift_opened [10:59:14]FM_GetShiftState [10:59:14]SAM_PROTO_GetShiftState [10:59:14]wFMCommunicate request_size=4 [10:59:14]MH_SAM_APDU [10:59:14]CAPDU: 80 13 01 00 [10:59:14]Write to MH i2c: E2 08 00 02 07 80 13 01 00 00 00 00 00 86 [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:14]Read from MH i2c: E2 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 0E 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 0E 00 02 07 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FE [10:59:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:59:14]wFMCommunicate OK [10:59:14]SAM_PROTO_GetShiftState done [10:59:14]FM_GetShiftState done [10:59:14]req_shift_opened done [10:59:14]requested_item shift.open_date is exist - process it [10:59:14]req_shift_open_date [10:59:14]req_shift_open_date done [10:59:14]produce_requested_data done [10:59:14]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145656,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:59:14]process_action_free close_receipt [10:59:14]json_value_free [10:59:14]json_value_free done [10:59:14]process_json_proto returns [10:59:14]Send response to host [10:59:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145656,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:59:14]free response buf [10:59:14]execute_script done [10:59:14]execute_script returns [10:59:14]free content buf [10:59:14]Sock 9.Close socket [10:59:14]Sock 9.Thread stoped [10:59:16]accept exits with 7 [10:59:16]New connection [10:59:16]New thread 3066596708 created [10:59:16]Thread 3066740068 joined [10:59:16]Waiting for new connection... [10:59:16] Sock 7.Parse request [10:59:16]Sock 7.Check first char [10:59:16]Sock 7.First char is OK [10:59:16]request: POST /json_proto HTTP/1.0 [10:59:16]Method: POST [10:59:16]URL: /json_proto [10:59:16]Method is POST - this is cgi request [10:59:16]url: /json_proto [10:59:16]query_string will be loaded in cgi processing [10:59:16]execute_cgi json_proto POST (null) [10:59:16]execute_cgi path=json_proto method=POST [10:59:16]POST find Content-Length [10:59:16]Host: 172.17.40.195:8080 [10:59:16]Content-Length: 677 [10:59:16]Content-Type: application/json [10:59:16] [10:59:16]POST finish read [10:59:16]Found Content-Length = 677 [10:59:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:16]execute_script... [10:59: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)160408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:16]POST & json_proto [10:59:16]process_json_proto [10:59:16]json parsed OK: [10:59:16]protocol is kg_v1.0 [10:59:16]action value=close_receipt [10:59:16]process_action close_receipt [10:59:16]cmd_close_receipt [10:59:16]MH_GetDate [10:59:16]Write to MH i2c: F0 00 00 03 07 F9 [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: F0 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: F0 09 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: F0 09 00 03 07 00 05 1D 1E 67 D5 8D 6C 64 DB [10:59:16]GetLastDocTimeStamp 1730026751 [10:59:16]current date 1730026757 [10:59:16]FM_GetShiftState [10:59:16]SAM_PROTO_GetShiftState [10:59:16]wFMCommunicate request_size=4 [10:59:16]MH_SAM_APDU [10:59:16]CAPDU: 80 13 01 00 [10:59:16]Write to MH i2c: E2 08 00 04 07 80 13 01 00 00 00 00 00 88 [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:16]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 0E 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 0E 00 04 07 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 00 [10:59:16]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:59:16]wFMCommunicate OK [10:59:16]SAM_PROTO_GetShiftState done [10:59:16]FM_GetShiftState done [10:59:16]opened in 1729988959 [10:59:16]opened+sec_in_day 1730075359 [10:59:16]quantity*price = 50041 [10:59:16]sum+1 = 50042 [10:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 80 27.10.2024 10:59 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145657 ФПД: 199867836988060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105917&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145657&fm=199867836988060&tin=02508201610067®Number=0000000000091683&sum=50000 [10:59:17]StoreToDocumentArchive [10:59:17]shift 545 fd 145657 [10:59:17]save to /storage/0545/doc_00145657 [10:59:17]save last doc name /storage/0545/doc_00145657 to /storage/kkm_last_doc_name [10:59:17]save OK [10:59:17]Clear old archive folders... [10:59:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:17]tlvbuf is 003E0B20 [10:59:17]SAM_PROTO_ClearQueue [10:59:17]wFMCommunicate request_size=4 [10:59:17]MH_SAM_APDU [10:59:17]CAPDU: 80 09 00 00 [10:59:17]Write to MH i2c: E2 08 00 11 07 80 09 00 00 00 00 00 00 8A [10:59:17]Write i2c OK [10:59:17]MH_I2C_Read... [10:59:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:17]Read from MH i2c: E2 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 03 00 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [10:59:17]RAPDU: 90 00 [10:59:17]wFMCommunicate OK [10:59:17]SAM_PROTO_ClearQueue done [10:59:17]KKMCreateOFDPacket [10:59:17]OFDProtocolAddRootSTLVToBuf [10:59:17]FM_MakeSignedData [10:59:17]FM_MakeSignedData [10:59:17]SAM_PROTO_SignData [10:59:17]wFMCommunicate request_size=4 [10:59:17]MH_SAM_APDU [10:59:17]CAPDU: 80 0D 01 02 [10:59:17]Write to MH i2c: E2 08 00 12 07 80 0D 01 02 00 00 00 00 92 [10:59:17]Write i2c OK [10:59:17]MH_I2C_Read... [10:59:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:17]Read from MH i2c: E2 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 03 00 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 03 00 12 07 00 90 00 8D [10:59:17]RAPDU: 90 00 [10:59:17]wFMCommunicate OK [10:59:17]wFMCommunicate request_size=255 [10:59:17]MH_SAM_APDU [10:59: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 05 1D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F9 38 02 00 35 04 06 00 B5 [10:59:17]Write to MH i2c: E2 02 01 13 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 05 1D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F9 38 02 00 35 04 06 00 B5 00 00 22 [10:59:17]Write i2c OK [10:59:17]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [10:59:18]RAPDU: 90 00 [10:59:18]wFMCommunicate OK [10:59:18]wFMCommunicate request_size=10 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 0D 02 02 05 C7 5B 6C FA 9C [10:59:18]Write to MH i2c: E2 0D 00 14 07 80 0D 02 02 05 00 C7 5B 6C FA 9C 00 00 C3 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [10:59:18]RAPDU: 90 00 [10:59:18]wFMCommunicate OK [10:59:18]wFMCommunicate request_size=4 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 0D 03 02 [10:59:18]Write to MH i2c: E2 08 00 15 07 80 0D 03 02 00 00 00 00 97 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 0B 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 0B 00 15 07 00 B7 63 BD 7B 70 3E BA 97 90 00 E9 [10:59:18]RAPDU: B7 63 BD 7B 70 3E BA 97 90 00 [10:59:18]wFMCommunicate OK [10:59:18]SAM_PROTO_SignData done [10:59:18]FM_MakeSignedData done [10:59:18]CreateOFDProtocolMessage [10:59:18]wFMCommunicate request_size=4 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 11 00 00 [10:59:18]Write to MH i2c: E2 08 00 16 07 80 11 00 00 00 00 00 00 97 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 17 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 17 00 16 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EA [10:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:59:18]wFMCommunicate OK [10:59:18]CreateOFDProtocolMessage done [10:59:18]OFDSenderStorePacket 145657 [10:59:18]StoreOFDPacket docnum=145657 [10:59:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 47 5B 07 01 24 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 05 1D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F9 38 02 00 35 04 06 00 B5 C7 5B 6C FA 9C B7 63 BD 7B 70 3E BA 97 [10:59:18]CheckFolder [10:59:18]dirname=/storage/ofd_packets [10:59:18]CheckFolder done [10:59:18]ProducePacketName [10:59:18]name=ofd_packets/00145657 [10:59:18]NVStorageSaveData ofd_packets/00145657 [10:59:18]File name is /storage/ofd_packets/00145657 [10:59:18]Write 301 bytes [10:59:18]NVStorageSaveData done [10:59:18]OFDSenderStorePacket done [10:59:18]KKMCreateOFDPacket done [10:59:18]NVStorageSaveData kkm_last_timestamp [10:59:18]File name is /storage/kkm_last_timestamp [10:59:18]Write 4 bytes [10:59:18]NVStorageSaveData done [10:59:18]ExternCall_PrintAddStr [10:59:18]wPrintStart [10:59:18]Write to MH i2c: 01 00 00 17 07 1E [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: 01 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: 01 07 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: 01 07 00 17 07 00 00 00 00 00 FF 0F 33 [10:59:18]RasterBufferAndPrint [10:59:18]line Счет N : (1)160408 [10:59:18]line ИНН: 02508201610067 [10:59:18]line Контрольно-Кассовый Чек [10:59:18]line ПРОДАЖА [10:59:18]line ТРК (МРК, ГНК) : 62 [10:59:18]line Товар: 2710124130 [10:59:18]line Аи-92-К-2 [10:59:18]line 7.480 * 66.90 [10:59:18]line = 500.41 [10:59:18]line НДС 12% НСП 1% [10:59:18]line > о реализуемом товаре [10:59:18]line ОКРУГЛЕНИЕ: -0.41 [10:59:18]line ИТОГО: 500.00 [10:59:18]line Внесено: 500.00 [10:59:18]line СДАЧА: 0.00 [10:59:18]line НСП 1% : 4.43 [10:59:18]line НДС 12% : 53.14 [10:59:18]line Наличными: 500.00 [10:59:18]line Безнал.: 0.00 [10:59:18]line Место: АЗС № 126 "Партнер Нефть" [10:59:18]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [10:59:18]line СНО: Общий режим [10:59:18]line Чек 80 27.10.2024 10:59 [10:59:18]line Смена: 545 ФФД: 1.0 [10:59:18]line ЗНМ: 0300000085 [10:59:18]line РНМ: 0000000000091683 [10:59:18]line Версия ККМ: 001 [10:59:18]line ФМ: 0000000000871745 [10:59:18]line ФД: 145657 [10:59:18]line ФПД: 199867836988060 [10:59:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105917&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145657&fm=199867836988060&tin=02508201610067®Number=0000000000091683&sum=50000 [10:59:18]written 0, free lines is 4095 [10:59:18]OFD Sender: Processing packet 145657 [packets to send 206, broken 205] [10:59:18]ProducePacketName [10:59:18]name=ofd_packets/00145657 [10:59:18]OFD Sender: To server: pG, [10:59:18]CommunicateWithHost lk.salyk.kg:30040 [10:59:18]ConnectInit lk.salyk.kg [10:59:18]Connected sock=10 [10:59:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 47 5B 07 01 24 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 05 1D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 F9 38 02 00 35 04 06 00 B5 C7 5B 6C FA 9C B7 63 BD 7B 70 3E BA 97 [10:59:18]Write to MH i2c: 01 00 00 42 07 49 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: 01 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: 01 07 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: 01 07 00 42 07 00 00 00 00 00 B6 0C 12 [10:59:18]RasterBufferAndPrint [10:59:18]line [10:59:18]line [10:59:18]line [10:59:18]line [10:59:18]line [10:59:18]written 0, free lines is 3264 [10:59:18]MH_Cut [10:59:18]Write to MH i2c: D1 01 00 49 07 01 22 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: D1 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: D1 01 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: D1 01 00 49 07 00 21 [10:59:18]Write to MH i2c: 01 00 00 4A 07 51 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A4 09 47 00 49 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 31 37 34 35 10 04 04 00 F9 38 02 00 F4 03 04 00 33 C2 1D 67 B6 04 01 00 00 73 0D 9A E8 EE C9 B2 58 [10:59:18]CommunicateWithHost err = 0 [10:59:18]CheckOFDResponse [10:59:18]1017 (14) - 77093643461234 [10:59:18]1041 (16) - 0000000000871745 [10:59:18]1040 (4) - 145657 [10:59:18]1012 (4) - 27.10.2024 04:31 [10:59:18]1206 (1) - 0 [10:59:18]OFD Sender: Remove packet 145657 [10:59:18]ProducePacketName [10:59:18]name=ofd_packets/00145657 [10:59:18]NVStorageDeleteData [10:59:19]OFD Sender: No OFD packet to send [10:59:19]*** Cut start [10:59:19]*** Partial cut [10:59:19]*** CUTSNS_PIN = 1 [10:59:19]*** CUTSNS_PIN = 0 [10:59:19]*** Brake cut motor [10:59:20]Read from MH i2c: 01 [10:59:20]MH_I2C_Read... [10:59:20]*** Stop cut motor [10:59:20]*** Cut end [10:59:20]Read from MH i2c: 01 07 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: 01 07 00 4A 07 00 00 00 00 00 FF 0F 66 [10:59:20]process_action close_receipt done [10:59:20]requested_data is exist [10:59:20]produce_requested_data [10:59:20]requested_item fm.sn is exist - process it [10:59:20]wFMCommunicate request_size=4 [10:59:20]MH_SAM_APDU [10:59:20]CAPDU: 80 11 00 00 [10:59:20]Write to MH i2c: E2 08 00 4B 07 80 11 00 00 00 00 00 00 CC [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:20]Read from MH i2c: E2 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 17 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 17 00 4B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1F [10:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [10:59:20]wFMCommunicate OK [10:59:20]requested_item fd.num is exist - process it [10:59:20]SAM_PROTO_GetFieldsCounters [10:59:20]wFMCommunicate request_size=4 [10:59:20]MH_SAM_APDU [10:59:20]CAPDU: 80 13 00 00 [10:59:20]Write to MH i2c: E2 08 00 4C 07 80 13 00 00 00 00 00 00 CF [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:20]Read from MH i2c: E2 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 62 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 62 00 4C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F9 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [10:59:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 F9 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:20]wFMCommunicate OK [10:59:20]SAM_PROTO_GetFieldsCounters done [10:59:20]requested_item shift.num is exist - process it [10:59:20]requested_item shift.opened is exist - process it [10:59:20]req_shift_opened [10:59:20]FM_GetShiftState [10:59:20]SAM_PROTO_GetShiftState [10:59:20]wFMCommunicate request_size=4 [10:59:20]MH_SAM_APDU [10:59:20]CAPDU: 80 13 01 00 [10:59:20]Write to MH i2c: E2 08 00 4D 07 80 13 01 00 00 00 00 00 D1 [10:59:20]Write i2c OK [10:59:20]MH_I2C_Read... [10:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:20]Read from MH i2c: E2 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 0E 00 [10:59:20]MH_I2C_Read... [10:59:20]Read from MH i2c: E2 0E 00 4D 07 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 49 [10:59:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [10:59:20]wFMCommunicate OK [10:59:20]SAM_PROTO_GetShiftState done [10:59:20]FM_GetShiftState done [10:59:20]req_shift_opened done [10:59:20]requested_item shift.open_date is exist - process it [10:59:20]req_shift_open_date [10:59:20]req_shift_open_date done [10:59:20]produce_requested_data done [10:59:20]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145657,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [10:59:20]process_action_free close_receipt [10:59:20]json_value_free [10:59:20]json_value_free done [10:59:20]process_json_proto returns [10:59:20]Send response to host [10:59:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145657,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [10:59:20]free response buf [10:59:20]execute_script done [10:59:20]execute_script returns [10:59:20]free content buf [10:59:20]Sock 7.Close socket [10:59:20]Sock 7.Thread stoped [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:45]int [11:00:45]Write to MH i2c: 01 00 00 4E 07 55 [11:00:45]*** FLAG_PRN_KEY set [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 07 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 07 00 4E 07 00 08 00 00 00 FF 0F 72 [11:00:45]state=0 [11:00:45]Key pressed [11:00:45]Feed [11:00:45]Write to MH i2c: D8 00 00 4F 07 2D [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: D8 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: D8 01 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: D8 01 00 4F 07 00 2E [11:00:45]int [11:00:45]Write to MH i2c: 01 00 00 50 07 57 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 07 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 07 00 50 07 00 48 00 00 00 3C 00 E2 [11:00:45]state=2 [11:00:45]Key pressed [11:00:45]int [11:00:45]Write to MH i2c: 01 00 00 51 07 58 [11:00:45]*** FLAG_PRN_KEY reset [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 07 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 F6 0F 64 [11:00:45]state=2 [11:00:45]Stop feed [11:00:48]int [11:00:48]Write to MH i2c: 01 00 00 52 07 59 [11:00:48]*** FLAG_PRN_KEY set [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: 01 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: 01 07 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: 01 07 00 52 07 00 08 00 00 00 FF 0F 76 [11:00:48]state=0 [11:00:48]Key pressed [11:00:48]Feed [11:00:48]Write to MH i2c: D8 00 00 53 07 31 [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: D8 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: D8 01 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: D8 01 00 53 07 00 32 [11:00:48]int [11:00:48]Write to MH i2c: 01 00 00 54 07 5B [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: 01 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: 01 07 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: 01 07 00 54 07 00 48 00 00 00 3C 00 E6 [11:00:48]state=2 [11:00:48]Key pressed [11:00:49]int [11:00:49]Write to MH i2c: 01 00 00 55 07 5C [11:00:49]*** FLAG_PRN_KEY reset [11:00:49]Write i2c OK [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: 01 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: 01 07 00 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: 01 07 00 55 07 00 00 00 00 00 F6 0F 68 [11:00:49]state=2 [11:00:49]Stop feed [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:02]accept exits with 9 [11:03:02]New connection [11:03:02]New thread 3066740068 created [11:03:02]Thread 3066596708 joined [11:03:02]Waiting for new connection... [11:03:02] Sock 9.Parse request [11:03:02]Sock 9.Check first char [11:03:02]Sock 9.First char is OK [11:03:02]request: POST /json_proto HTTP/1.0 [11:03:02]Method: POST [11:03:02]URL: /json_proto [11:03:02]Method is POST - this is cgi request [11:03:02]url: /json_proto [11:03:02]query_string will be loaded in cgi processing [11:03:02]execute_cgi json_proto POST (null) [11:03:02]execute_cgi path=json_proto method=POST [11:03:02]POST find Content-Length [11:03:02]Host: 172.17.40.195:8080 [11:03:02]Content-Length: 682 [11:03:02]Content-Type: application/json [11:03:02] [11:03:02]POST finish read [11:03:02]Found Content-Length = 682 [11:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:02]execute_script... [11:03: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)160409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:02]POST & json_proto [11:03:02]process_json_proto [11:03:02]json parsed OK: [11:03:02]protocol is kg_v1.0 [11:03:02]action value=close_receipt [11:03:02]process_action close_receipt [11:03:02]cmd_close_receipt [11:03:02]MH_GetDate [11:03:02]Write to MH i2c: F0 00 00 56 07 4C [11:03:02]Write i2c OK [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: F0 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: F0 09 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: F0 09 00 56 07 00 E7 1D 1E 67 D5 8D 6C 64 10 [11:03:02]GetLastDocTimeStamp 1730026757 [11:03:02]current date 1730026983 [11:03:02]FM_GetShiftState [11:03:02]SAM_PROTO_GetShiftState [11:03:02]wFMCommunicate request_size=4 [11:03:02]MH_SAM_APDU [11:03:02]CAPDU: 80 13 01 00 [11:03:02]Write to MH i2c: E2 08 00 57 07 80 13 01 00 00 00 00 00 DB [11:03:02]Write i2c OK [11:03:02]MH_I2C_Read... [11:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:02]Read from MH i2c: E2 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 0E 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 0E 00 57 07 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 53 [11:03:02]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:03:02]wFMCommunicate OK [11:03:02]SAM_PROTO_GetShiftState done [11:03:02]FM_GetShiftState done [11:03:02]opened in 1729988959 [11:03:02]opened+sec_in_day 1730075359 [11:03:02]quantity*price = 100015 [11:03:02]sum+1 = 100017 [11:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 81 27.10.2024 11:03 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145658 ФПД: 269658104141957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110303&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145658&fm=269658104141957&tin=02508201610067®Number=0000000000091683&sum=100000 [11:03:03]StoreToDocumentArchive [11:03:03]shift 545 fd 145658 [11:03:03]save to /storage/0545/doc_00145658 [11:03:03]save last doc name /storage/0545/doc_00145658 to /storage/kkm_last_doc_name [11:03:03]save OK [11:03:03]Clear old archive folders... [11:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:03]tlvbuf is 0042D990 [11:03:03]SAM_PROTO_ClearQueue [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 09 00 00 [11:03:03]Write to MH i2c: E2 08 00 64 07 80 09 00 00 00 00 00 00 DD [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [11:03:03]RAPDU: 90 00 [11:03:03]wFMCommunicate OK [11:03:03]SAM_PROTO_ClearQueue done [11:03:03]KKMCreateOFDPacket [11:03:03]OFDProtocolAddRootSTLVToBuf [11:03:03]FM_MakeSignedData [11:03:03]FM_MakeSignedData [11:03:03]SAM_PROTO_SignData [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 0D 01 02 [11:03:03]Write to MH i2c: E2 08 00 65 07 80 0D 01 02 00 00 00 00 E5 [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [11:03:03]RAPDU: 90 00 [11:03:03]wFMCommunicate OK [11:03:03]wFMCommunicate request_size=255 [11:03:03]MH_SAM_APDU [11:03: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E7 1D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FA 38 02 00 35 04 06 00 F5 [11:03:03]Write to MH i2c: E2 02 01 66 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E7 1D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FA 38 02 00 35 04 06 00 F5 00 00 93 [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [11:03:03]RAPDU: 90 00 [11:03:03]wFMCommunicate OK [11:03:03]wFMCommunicate request_size=10 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 0D 02 02 05 40 AB 82 18 85 [11:03:03]Write to MH i2c: E2 0D 00 67 07 80 0D 02 02 05 00 40 AB 82 18 85 00 00 FC [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [11:03:03]RAPDU: 90 00 [11:03:03]wFMCommunicate OK [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 0D 03 02 [11:03:03]Write to MH i2c: E2 08 00 68 07 80 0D 03 02 00 00 00 00 EA [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 0B 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 0B 00 68 07 00 84 AD 77 7E DA A3 52 CD 90 00 AD [11:03:03]RAPDU: 84 AD 77 7E DA A3 52 CD 90 00 [11:03:03]wFMCommunicate OK [11:03:03]SAM_PROTO_SignData done [11:03:03]FM_MakeSignedData done [11:03:03]CreateOFDProtocolMessage [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 11 00 00 [11:03:03]Write to MH i2c: E2 08 00 69 07 80 11 00 00 00 00 00 00 EA [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 17 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 17 00 69 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3D [11:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:03:03]wFMCommunicate OK [11:03:03]CreateOFDProtocolMessage done [11:03:03]OFDSenderStorePacket 145658 [11:03:03]StoreOFDPacket docnum=145658 [11:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F6 70 07 01 94 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E7 1D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FA 38 02 00 35 04 06 00 F5 40 AB 82 18 85 84 AD 77 7E DA A3 52 CD [11:03:03]CheckFolder [11:03:03]dirname=/storage/ofd_packets [11:03:03]CheckFolder done [11:03:03]ProducePacketName [11:03:03]name=ofd_packets/00145658 [11:03:03]NVStorageSaveData ofd_packets/00145658 [11:03:03]File name is /storage/ofd_packets/00145658 [11:03:03]Write 301 bytes [11:03:03]NVStorageSaveData done [11:03:03]OFDSenderStorePacket done [11:03:03]KKMCreateOFDPacket done [11:03:03]NVStorageSaveData kkm_last_timestamp [11:03:03]File name is /storage/kkm_last_timestamp [11:03:03]Write 4 bytes [11:03:03]NVStorageSaveData done [11:03:03]ExternCall_PrintAddStr [11:03:03]wPrintStart [11:03:03]Write to MH i2c: 01 00 00 6A 07 71 [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: 01 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: 01 07 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 FF 0F 86 [11:03:03]RasterBufferAndPrint [11:03:03]line Счет N : (1)160409 [11:03:03]line ИНН: 02508201610067 [11:03:03]line Контрольно-Кассовый Чек [11:03:03]line ПРОДАЖА [11:03:03]line ТРК (МРК, ГНК) : 32 [11:03:03]line Товар: 2710124130 [11:03:03]line Аи-92-К-2 [11:03:03]line 14.950 * 66.90 [11:03:03]line = 1000.16 [11:03:03]line НДС 12% НСП 1% [11:03:03]line > о реализуемом товаре [11:03:03]line ОКРУГЛЕНИЕ: -0.16 [11:03:03]line ИТОГО: 1000.00 [11:03:03]line Внесено: 1000.00 [11:03:03]line СДАЧА: 0.00 [11:03:03]line НСП 1% : 8.85 [11:03:03]line НДС 12% : 106.21 [11:03:03]line Наличными: 1000.00 [11:03:03]line Безнал.: 0.00 [11:03:03]line Место: АЗС № 126 "Партнер Нефть" [11:03:03]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:03:03]line СНО: Общий режим [11:03:03]line Чек 81 27.10.2024 11:03 [11:03:03]line Смена: 545 ФФД: 1.0 [11:03:03]line ЗНМ: 0300000085 [11:03:03]line РНМ: 0000000000091683 [11:03:03]line Версия ККМ: 001 [11:03:03]line ФМ: 0000000000871745 [11:03:03]line ФД: 145658 [11:03:03]line ФПД: 269658104141957 [11:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110303&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145658&fm=269658104141957&tin=02508201610067®Number=0000000000091683&sum=100000 [11:03:04]OFD Sender: Processing packet 145658 [packets to send 206, broken 205] [11:03:04]ProducePacketName [11:03:04]name=ofd_packets/00145658 [11:03:04]OFD Sender: To server: pG, [11:03:04]CommunicateWithHost lk.salyk.kg:30040 [11:03:04]ConnectInit lk.salyk.kg [11:03:04]written 0, free lines is 4095 [11:03:04]Connected sock=10 [11:03:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F6 70 07 01 94 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E7 1D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FA 38 02 00 35 04 06 00 F5 40 AB 82 18 85 84 AD 77 7E DA A3 52 CD [11:03:04]Write to MH i2c: 01 00 00 95 07 9C [11:03:04]Write i2c OK [11:03:04]MH_I2C_Read... [11:03:04]Read from MH i2c: 01 [11:03:04]MH_I2C_Read... [11:03:04]Read from MH i2c: 01 07 00 [11:03:04]MH_I2C_Read... [11:03:04]Read from MH i2c: 01 07 00 95 07 00 00 00 00 00 A8 0C 57 [11:03:04]RasterBufferAndPrint [11:03:04]line [11:03:04]line [11:03:04]line [11:03:04]line [11:03:04]line [11:03:04]written 0, free lines is 3245 [11:03:04]MH_Cut [11:03:04]Write to MH i2c: D1 01 00 9C 07 01 75 [11:03:04]Write i2c OK [11:03:04]MH_I2C_Read... [11:03:04]Read from MH i2c: D1 [11:03:04]MH_I2C_Read... [11:03:04]Read from MH i2c: D1 01 00 [11:03:04]MH_I2C_Read... [11:03:04]Read from MH i2c: D1 01 00 9C 07 00 74 [11:03:04]Write to MH i2c: 01 00 00 9D 07 A4 [11:03:04]Write i2c OK [11:03:04]MH_I2C_Read... [11:03:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E1 51 47 00 34 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FA 38 02 00 F4 03 04 00 15 C3 1D 67 B6 04 01 00 00 30 54 CA 7D 6C 7A DF 08 [11:03:04]CommunicateWithHost err = 0 [11:03:04]CheckOFDResponse [11:03:04]1017 (14) - 77093643461234 [11:03:04]1041 (16) - 0000000000871745 [11:03:04]1040 (4) - 145658 [11:03:04]1012 (4) - 27.10.2024 04:35 [11:03:04]1206 (1) - 0 [11:03:04]OFD Sender: Remove packet 145658 [11:03:04]ProducePacketName [11:03:04]name=ofd_packets/00145658 [11:03:04]NVStorageDeleteData [11:03:05]OFD Sender: No OFD packet to send [11:03:05]*** Cut start [11:03:05]*** Partial cut [11:03:05]*** CUTSNS_PIN = 1 [11:03:05]*** CUTSNS_PIN = 0 [11:03:05]*** Brake cut motor [11:03:05]Read from MH i2c: 01 [11:03:05]MH_I2C_Read... [11:03:05]*** Stop cut motor [11:03:05]*** Cut end [11:03:05]Read from MH i2c: 01 07 00 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 FF 0F B9 [11:03:05]process_action close_receipt done [11:03:05]requested_data is exist [11:03:05]produce_requested_data [11:03:05]requested_item fm.sn is exist - process it [11:03:05]wFMCommunicate request_size=4 [11:03:05]MH_SAM_APDU [11:03:05]CAPDU: 80 11 00 00 [11:03:05]Write to MH i2c: E2 08 00 9E 07 80 11 00 00 00 00 00 00 1F [11:03:05]Write i2c OK [11:03:05]MH_I2C_Read... [11:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:05]Read from MH i2c: E2 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 17 00 [11:03:05]MH_I2C_Read... [11:03:06]Read from MH i2c: E2 17 00 9E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 72 [11:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:03:06]wFMCommunicate OK [11:03:06]requested_item fd.num is exist - process it [11:03:06]SAM_PROTO_GetFieldsCounters [11:03:06]wFMCommunicate request_size=4 [11:03:06]MH_SAM_APDU [11:03:06]CAPDU: 80 13 00 00 [11:03:06]Write to MH i2c: E2 08 00 9F 07 80 13 00 00 00 00 00 00 22 [11:03:06]Write i2c OK [11:03:06]MH_I2C_Read... [11:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:06]Read from MH i2c: E2 [11:03:06]MH_I2C_Read... [11:03:06]Read from MH i2c: E2 62 00 [11:03:06]MH_I2C_Read... [11:03:06]Read from MH i2c: E2 62 00 9F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FA 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [11:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FA 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:06]wFMCommunicate OK [11:03:06]SAM_PROTO_GetFieldsCounters done [11:03:06]requested_item shift.num is exist - process it [11:03:06]requested_item shift.opened is exist - process it [11:03:06]req_shift_opened [11:03:06]FM_GetShiftState [11:03:06]SAM_PROTO_GetShiftState [11:03:06]wFMCommunicate request_size=4 [11:03:06]MH_SAM_APDU [11:03:06]CAPDU: 80 13 01 00 [11:03:06]Write to MH i2c: E2 08 00 A0 07 80 13 01 00 00 00 00 00 24 [11:03:06]Write i2c OK [11:03:06]MH_I2C_Read... [11:03:06]Read from MH i2c: E2 [11:03:06]MH_I2C_Read... [11:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:06]Read from MH i2c: E2 0E 00 [11:03:06]MH_I2C_Read... [11:03:06]Read from MH i2c: E2 0E 00 A0 07 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9C [11:03:06]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:03:06]wFMCommunicate OK [11:03:06]SAM_PROTO_GetShiftState done [11:03:06]FM_GetShiftState done [11:03:06]req_shift_opened done [11:03:06]requested_item shift.open_date is exist - process it [11:03:06]req_shift_open_date [11:03:06]req_shift_open_date done [11:03:06]produce_requested_data done [11:03:06]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145658,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:03:06]process_action_free close_receipt [11:03:06]json_value_free [11:03:06]json_value_free done [11:03:06]process_json_proto returns [11:03:06]Send response to host [11:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145658,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:03:06]free response buf [11:03:06]execute_script done [11:03:06]execute_script returns [11:03:06]free content buf [11:03:06]Sock 9.Close socket [11:03:06]Sock 9.Thread stoped [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:17]accept exits with 7 [11:04:17]New connection [11:04:17]New thread 3066596708 created [11:04:17]Thread 3066740068 joined [11:04:17]Waiting for new connection... [11:04:17] Sock 7.Parse request [11:04:17]Sock 7.Check first char [11:04:17]Sock 7.First char is OK [11:04:17]request: POST /json_proto HTTP/1.0 [11:04:17]Method: POST [11:04:17]URL: /json_proto [11:04:17]Method is POST - this is cgi request [11:04:17]url: /json_proto [11:04:17]query_string will be loaded in cgi processing [11:04:17]execute_cgi json_proto POST (null) [11:04:17]execute_cgi path=json_proto method=POST [11:04:17]POST find Content-Length [11:04:17]Host: 172.17.40.195:8080 [11:04:17]Content-Length: 682 [11:04:17]Content-Type: application/json [11:04:17] [11:04:17]POST finish read [11:04:17]Found Content-Length = 682 [11:04:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:04:17]execute_script... [11: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)160410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:04:17]POST & json_proto [11:04:17]process_json_proto [11:04:17]json parsed OK: [11:04:17]protocol is kg_v1.0 [11:04:17]action value=close_receipt [11:04:17]process_action close_receipt [11:04:17]cmd_close_receipt [11:04:17]MH_GetDate [11:04:17]Write to MH i2c: F0 00 00 A1 07 97 [11:04:17]Write i2c OK [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: F0 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: F0 09 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: F0 09 00 A1 07 00 32 1E 1E 67 D5 8D 6C 64 A7 [11:04:17]GetLastDocTimeStamp 1730026983 [11:04:17]current date 1730027058 [11:04:17]FM_GetShiftState [11:04:17]SAM_PROTO_GetShiftState [11:04:17]wFMCommunicate request_size=4 [11:04:17]MH_SAM_APDU [11:04:17]CAPDU: 80 13 01 00 [11:04:17]Write to MH i2c: E2 08 00 A2 07 80 13 01 00 00 00 00 00 26 [11:04:17]Write i2c OK [11:04:17]MH_I2C_Read... [11:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:17]Read from MH i2c: E2 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 0E 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 0E 00 A2 07 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9E [11:04:17]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:04:17]wFMCommunicate OK [11:04:17]SAM_PROTO_GetShiftState done [11:04:17]FM_GetShiftState done [11:04:17]opened in 1729988959 [11:04:17]opened+sec_in_day 1730075359 [11:04:17]quantity*price = 100021 [11:04:17]sum+1 = 100023 [11:04:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 82 27.10.2024 11:04 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145659 ФПД: 34726786222020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110418&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145659&fm=34726786222020&tin=02508201610067®Number=0000000000091683&sum=100000 [11:04:18]StoreToDocumentArchive [11:04:18]shift 545 fd 145659 [11:04:18]save to /storage/0545/doc_00145659 [11:04:18]save last doc name /storage/0545/doc_00145659 to /storage/kkm_last_doc_name [11:04:18]save OK [11:04:18]Clear old archive folders... [11:04:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:18]tlvbuf is B6E743A0 [11:04:18]SAM_PROTO_ClearQueue [11:04:18]wFMCommunicate request_size=4 [11:04:18]MH_SAM_APDU [11:04:18]CAPDU: 80 09 00 00 [11:04:18]Write to MH i2c: E2 08 00 AF 07 80 09 00 00 00 00 00 00 28 [11:04:18]Write i2c OK [11:04:18]MH_I2C_Read... [11:04:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:18]Read from MH i2c: E2 [11:04:18]MH_I2C_Read... [11:04:18]Read from MH i2c: E2 03 00 [11:04:18]MH_I2C_Read... [11:04:18]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [11:04:18]RAPDU: 90 00 [11:04:18]wFMCommunicate OK [11:04:18]SAM_PROTO_ClearQueue done [11:04:18]KKMCreateOFDPacket [11:04:18]OFDProtocolAddRootSTLVToBuf [11:04:18]FM_MakeSignedData [11:04:18]FM_MakeSignedData [11:04:18]SAM_PROTO_SignData [11:04:18]wFMCommunicate request_size=4 [11:04:18]MH_SAM_APDU [11:04:18]CAPDU: 80 0D 01 02 [11:04:18]Write to MH i2c: E2 08 00 B0 07 80 0D 01 02 00 00 00 00 30 [11:04:18]Write i2c OK [11:04:18]MH_I2C_Read... [11:04:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:18]Read from MH i2c: E2 [11:04:18]MH_I2C_Read... [11:04:18]Read from MH i2c: E2 03 00 [11:04:18]MH_I2C_Read... [11:04:18]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [11:04:18]RAPDU: 90 00 [11:04:18]wFMCommunicate OK [11:04:18]wFMCommunicate request_size=255 [11:04:18]MH_SAM_APDU [11:04: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 32 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FB 38 02 00 35 04 06 00 1F [11:04:18]Write to MH i2c: E2 02 01 B1 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 32 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FB 38 02 00 35 04 06 00 1F 00 00 7A [11:04:18]Write i2c OK [11:04:18]MH_I2C_Read... [11:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:19]Read from MH i2c: E2 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 03 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [11:04:19]RAPDU: 90 00 [11:04:19]wFMCommunicate OK [11:04:19]wFMCommunicate request_size=10 [11:04:19]MH_SAM_APDU [11:04:19]CAPDU: 80 0D 02 02 05 95 75 C1 C7 C4 [11:04:19]Write to MH i2c: E2 0D 00 B2 07 80 0D 02 02 05 00 95 75 C1 C7 C4 00 00 93 [11:04:19]Write i2c OK [11:04:19]MH_I2C_Read... [11:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:19]Read from MH i2c: E2 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 03 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [11:04:19]RAPDU: 90 00 [11:04:19]wFMCommunicate OK [11:04:19]wFMCommunicate request_size=4 [11:04:19]MH_SAM_APDU [11:04:19]CAPDU: 80 0D 03 02 [11:04:19]Write to MH i2c: E2 08 00 B3 07 80 0D 03 02 00 00 00 00 35 [11:04:19]Write i2c OK [11:04:19]MH_I2C_Read... [11:04:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:19]Read from MH i2c: E2 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 0B 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 0B 00 B3 07 00 1C 72 66 23 75 DB 63 FB 90 00 FB [11:04:19]RAPDU: 1C 72 66 23 75 DB 63 FB 90 00 [11:04:19]wFMCommunicate OK [11:04:19]SAM_PROTO_SignData done [11:04:19]FM_MakeSignedData done [11:04:19]CreateOFDProtocolMessage [11:04:19]wFMCommunicate request_size=4 [11:04:19]MH_SAM_APDU [11:04:19]CAPDU: 80 11 00 00 [11:04:19]Write to MH i2c: E2 08 00 B4 07 80 11 00 00 00 00 00 00 35 [11:04:19]Write i2c OK [11:04:19]MH_I2C_Read... [11:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:19]Read from MH i2c: E2 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 17 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 17 00 B4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 88 [11:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:04:19]wFMCommunicate OK [11:04:19]CreateOFDProtocolMessage done [11:04:19]OFDSenderStorePacket 145659 [11:04:19]StoreOFDPacket docnum=145659 [11:04:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BE A2 07 01 FB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 32 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FB 38 02 00 35 04 06 00 1F 95 75 C1 C7 C4 1C 72 66 23 75 DB 63 FB [11:04:19]CheckFolder [11:04:19]dirname=/storage/ofd_packets [11:04:19]CheckFolder done [11:04:19]ProducePacketName [11:04:19]name=ofd_packets/00145659 [11:04:19]NVStorageSaveData ofd_packets/00145659 [11:04:19]File name is /storage/ofd_packets/00145659 [11:04:19]Write 301 bytes [11:04:19]NVStorageSaveData done [11:04:19]OFDSenderStorePacket done [11:04:19]KKMCreateOFDPacket done [11:04:19]NVStorageSaveData kkm_last_timestamp [11:04:19]File name is /storage/kkm_last_timestamp [11:04:19]Write 4 bytes [11:04:19]NVStorageSaveData done [11:04:19]ExternCall_PrintAddStr [11:04:19]wPrintStart [11:04:19]Write to MH i2c: 01 00 00 B5 07 BC [11:04:19]Write i2c OK [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: 01 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: 01 07 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: 01 07 00 B5 07 00 00 00 00 00 FF 0F D1 [11:04:19]RasterBufferAndPrint [11:04:19]line Счет N : (1)160410 [11:04:19]line ИНН: 02508201610067 [11:04:19]line Контрольно-Кассовый Чек [11:04:19]line ПРОДАЖА [11:04:19]line ТРК (МРК, ГНК) : 53 [11:04:19]line Товар: 2710124500 [11:04:19]line Аи-95-К-3 [11:04:19]line 13.480 * 74.20 [11:04:19]line = 1000.22 [11:04:19]line НДС 12% НСП 1% [11:04:19]line > о реализуемом товаре [11:04:19]line ОКРУГЛЕНИЕ: -0.22 [11:04:19]line ИТОГО: 1000.00 [11:04:19]line Внесено: 1000.00 [11:04:19]line СДАЧА: 0.00 [11:04:19]line НСП 1% : 8.85 [11:04:19]line НДС 12% : 106.22 [11:04:19]line Наличными: 1000.00 [11:04:19]line Безнал.: 0.00 [11:04:19]line Место: АЗС № 126 "Партнер Нефть" [11:04:19]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:04:19]line СНО: Общий режим [11:04:19]line Чек 82 27.10.2024 11:04 [11:04:19]line Смена: 545 ФФД: 1.0 [11:04:19]line ЗНМ: 0300000085 [11:04:19]line РНМ: 0000000000091683 [11:04:19]line Версия ККМ: 001 [11:04:19]line ФМ: 0000000000871745 [11:04:19]line ФД: 145659 [11:04:19]line ФПД: 34726786222020 [11:04:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110418&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145659&fm=34726786222020&tin=02508201610067®Number=0000000000091683&sum=100000 [11:04:19]OFD Sender: Processing packet 145659 [packets to send 206, broken 205] [11:04:19]ProducePacketName [11:04:19]name=ofd_packets/00145659 [11:04:19]OFD Sender: To server: pG, [11:04:19]CommunicateWithHost lk.salyk.kg:30040 [11:04:19]ConnectInit lk.salyk.kg [11:04:19]written 0, free lines is 4095 [11:04:19]Connected sock=10 [11: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 31 37 34 35 0F 01 00 00 BE A2 07 01 FB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 32 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FB 38 02 00 35 04 06 00 1F 95 75 C1 C7 C4 1C 72 66 23 75 DB 63 FB [11:04:20]Write to MH i2c: 01 00 00 E0 07 E7 [11:04:20]Write i2c OK [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: 01 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: 01 07 00 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: 01 07 00 E0 07 00 00 00 00 00 B6 0C B0 [11:04:20]RasterBufferAndPrint [11:04:20]line [11:04:20]line [11:04:20]line [11:04:20]line [11:04:20]line [11:04:20]written 0, free lines is 3260 [11:04:20]MH_Cut [11:04:20]Write to MH i2c: D1 01 00 E7 07 01 C0 [11:04:20]Write i2c OK [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: D1 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: D1 01 00 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: D1 01 00 E7 07 00 BF [11:04:20]Write to MH i2c: 01 00 00 E8 07 EF [11:04:20]Write i2c OK [11:04:20]MH_I2C_Read... [11:04:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 46 DE 47 00 50 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FB 38 02 00 F4 03 04 00 60 C3 1D 67 B6 04 01 00 00 7A B9 7C 68 86 E2 15 35 [11:04:20]CommunicateWithHost err = 0 [11:04:20]CheckOFDResponse [11:04:20]1017 (14) - 77093643461234 [11:04:20]1041 (16) - 0000000000871745 [11:04:20]1040 (4) - 145659 [11:04:20]1012 (4) - 27.10.2024 04:36 [11:04:20]1206 (1) - 0 [11:04:20]OFD Sender: Remove packet 145659 [11:04:20]ProducePacketName [11:04:20]name=ofd_packets/00145659 [11:04:20]NVStorageDeleteData [11:04:20]OFD Sender: No OFD packet to send [11:04:20]*** Cut start [11:04:20]*** Partial cut [11:04:20]*** CUTSNS_PIN = 1 [11:04:20]*** CUTSNS_PIN = 0 [11:04:21]*** Brake cut motor [11:04:21]Read from MH i2c: 01 [11:04:21]MH_I2C_Read... [11:04:21]*** Stop cut motor [11:04:21]*** Cut end [11:04:21]Read from MH i2c: 01 07 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 FF 0F 04 [11:04:21]process_action close_receipt done [11:04:21]requested_data is exist [11:04:21]produce_requested_data [11:04:21]requested_item fm.sn is exist - process it [11:04:21]wFMCommunicate request_size=4 [11:04:21]MH_SAM_APDU [11:04:21]CAPDU: 80 11 00 00 [11:04:21]Write to MH i2c: E2 08 00 E9 07 80 11 00 00 00 00 00 00 6A [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:21]Read from MH i2c: E2 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 17 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 17 00 E9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BD [11:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:04:21]wFMCommunicate OK [11:04:21]requested_item fd.num is exist - process it [11:04:21]SAM_PROTO_GetFieldsCounters [11:04:21]wFMCommunicate request_size=4 [11:04:21]MH_SAM_APDU [11:04:21]CAPDU: 80 13 00 00 [11:04:21]Write to MH i2c: E2 08 00 EA 07 80 13 00 00 00 00 00 00 6D [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:21]Read from MH i2c: E2 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 62 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 62 00 EA 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FB 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [11: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FB 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:21]wFMCommunicate OK [11:04:21]SAM_PROTO_GetFieldsCounters done [11:04:21]requested_item shift.num is exist - process it [11:04:21]requested_item shift.opened is exist - process it [11:04:21]req_shift_opened [11:04:21]FM_GetShiftState [11:04:21]SAM_PROTO_GetShiftState [11:04:21]wFMCommunicate request_size=4 [11:04:21]MH_SAM_APDU [11:04:21]CAPDU: 80 13 01 00 [11:04:21]Write to MH i2c: E2 08 00 EB 07 80 13 01 00 00 00 00 00 6F [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:21]Read from MH i2c: E2 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 0E 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 0E 00 EB 07 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E7 [11:04:21]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:04:21]wFMCommunicate OK [11:04:21]SAM_PROTO_GetShiftState done [11:04:21]FM_GetShiftState done [11:04:21]req_shift_opened done [11:04:21]requested_item shift.open_date is exist - process it [11:04:21]req_shift_open_date [11:04:21]req_shift_open_date done [11:04:21]produce_requested_data done [11:04:21]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145659,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:04:21]process_action_free close_receipt [11:04:21]json_value_free [11:04:21]json_value_free done [11:04:21]process_json_proto returns [11:04:21]Send response to host [11:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145659,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:04:21]free response buf [11:04:21]execute_script done [11:04:21]execute_script returns [11:04:21]free content buf [11:04:21]Sock 7.Close socket [11:04:21]Sock 7.Thread stoped [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]int [11:05:15]Write to MH i2c: 01 00 00 EC 07 F3 [11:05:15]*** FLAG_PRN_KEY set [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 EC 07 00 08 00 00 00 FF 0F 10 [11:05:15]state=0 [11:05:15]Key pressed [11:05:15]Feed [11:05:15]Write to MH i2c: D8 00 00 ED 07 CB [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: D8 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: D8 01 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: D8 01 00 ED 07 00 CC [11:05:15]int [11:05:15]Write to MH i2c: 01 00 00 EE 07 F5 [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 EE 07 00 48 00 00 00 3C 00 80 [11:05:15]state=2 [11:05:15]Key pressed [11:05:15]int [11:05:15]Write to MH i2c: 01 00 00 EF 07 F6 [11:05:15]*** FLAG_PRN_KEY reset [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 EF 07 00 00 00 00 00 F6 0F 02 [11:05:15]state=2 [11:05:15]Stop feed [11:05:15]OFD Sender: No OFD packet to send [11:05:18]int [11:05:18]Write to MH i2c: 01 00 00 F0 07 F7 [11:05:18]*** FLAG_PRN_KEY set [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 F0 07 00 08 00 00 00 FF 0F 14 [11:05:18]state=0 [11:05:18]Key pressed [11:05:18]Feed [11:05:18]Write to MH i2c: D8 00 00 F1 07 CF [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: D8 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: D8 01 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: D8 01 00 F1 07 00 D0 [11:05:18]int [11:05:18]Write to MH i2c: 01 00 00 F2 07 F9 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 F2 07 00 48 00 00 00 3C 00 84 [11:05:18]state=2 [11:05:18]Key pressed [11:05:18]int [11:05:18]Write to MH i2c: 01 00 00 F3 07 FA [11:05:18]*** FLAG_PRN_KEY reset [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 F6 0F 06 [11:05:18]state=2 [11:05:18]Stop feed [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:48]accept exits with 9 [11:05:48]New connection [11:05:48]New thread 3066740068 created [11:05:48]Thread 3066596708 joined [11:05:48]Waiting for new connection... [11:05:48] Sock 9.Parse request [11:05:48]Sock 9.Check first char [11:05:48]Sock 9.First char is OK [11:05:48]request: POST /json_proto HTTP/1.0 [11:05:48]Method: POST [11:05:48]URL: /json_proto [11:05:48]Method is POST - this is cgi request [11:05:48]url: /json_proto [11:05:48]query_string will be loaded in cgi processing [11:05:48]execute_cgi json_proto POST (null) [11:05:48]execute_cgi path=json_proto method=POST [11:05:48]POST find Content-Length [11:05:48]Host: 172.17.40.195:8080 [11:05:48]Content-Length: 677 [11:05:48]Content-Type: application/json [11:05:48] [11:05:48]POST finish read [11:05:48]Found Content-Length = 677 [11:05:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:48]execute_script... [11: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)160412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:48]POST & json_proto [11:05:48]process_json_proto [11:05:48]json parsed OK: [11:05:48]protocol is kg_v1.0 [11:05:48]action value=close_receipt [11:05:48]process_action close_receipt [11:05:48]cmd_close_receipt [11:05:48]MH_GetDate [11:05:48]Write to MH i2c: F0 00 00 F4 07 EA [11:05:48]Write i2c OK [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: F0 [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: F0 09 00 [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: F0 09 00 F4 07 00 8D 1E 1E 67 D5 8D 6C 64 55 [11:05:48]GetLastDocTimeStamp 1730027058 [11:05:48]current date 1730027149 [11:05:48]FM_GetShiftState [11:05:48]SAM_PROTO_GetShiftState [11:05:48]wFMCommunicate request_size=4 [11:05:48]MH_SAM_APDU [11:05:48]CAPDU: 80 13 01 00 [11:05:48]Write to MH i2c: E2 08 00 F5 07 80 13 01 00 00 00 00 00 79 [11:05:48]Write i2c OK [11:05:48]MH_I2C_Read... [11:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:48]Read from MH i2c: E2 [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: E2 0E 00 [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: E2 0E 00 F5 07 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F1 [11:05:48]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:05:48]wFMCommunicate OK [11:05:48]SAM_PROTO_GetShiftState done [11:05:48]FM_GetShiftState done [11:05:48]opened in 1729988959 [11:05:48]opened+sec_in_day 1730075359 [11:05:48]quantity*price = 50041 [11:05:48]sum+1 = 50042 [11:05:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 83 27.10.2024 11:05 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145660 ФПД: 259973808041250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110549&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145660&fm=259973808041250&tin=02508201610067®Number=0000000000091683&sum=50000 [11:05:49]StoreToDocumentArchive [11:05:49]shift 545 fd 145660 [11:05:49]save to /storage/0545/doc_00145660 [11:05:49]save last doc name /storage/0545/doc_00145660 to /storage/kkm_last_doc_name [11:05:49]save OK [11:05:49]Clear old archive folders... [11:05:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:49]tlvbuf is 00434170 [11:05:49]SAM_PROTO_ClearQueue [11:05:49]wFMCommunicate request_size=4 [11:05:49]MH_SAM_APDU [11:05:49]CAPDU: 80 09 00 00 [11:05:49]Write to MH i2c: E2 08 00 02 08 80 09 00 00 00 00 00 00 7C [11:05:49]Write i2c OK [11:05:49]MH_I2C_Read... [11:05:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:49]Read from MH i2c: E2 [11:05:49]MH_I2C_Read... [11:05:49]Read from MH i2c: E2 03 00 [11:05:49]MH_I2C_Read... [11:05:49]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [11:05:49]RAPDU: 90 00 [11:05:49]wFMCommunicate OK [11:05:49]SAM_PROTO_ClearQueue done [11:05:49]KKMCreateOFDPacket [11:05:49]OFDProtocolAddRootSTLVToBuf [11:05:49]FM_MakeSignedData [11:05:49]FM_MakeSignedData [11:05:49]SAM_PROTO_SignData [11:05:49]wFMCommunicate request_size=4 [11:05:49]MH_SAM_APDU [11:05:49]CAPDU: 80 0D 01 02 [11:05:49]Write to MH i2c: E2 08 00 03 08 80 0D 01 02 00 00 00 00 84 [11:05:49]Write i2c OK [11:05:49]MH_I2C_Read... [11:05:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:49]Read from MH i2c: E2 [11:05:49]MH_I2C_Read... [11:05:49]Read from MH i2c: E2 03 00 [11:05:49]MH_I2C_Read... [11:05:49]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [11:05:49]RAPDU: 90 00 [11:05:49]wFMCommunicate OK [11:05:49]wFMCommunicate request_size=255 [11:05:49]MH_SAM_APDU [11:05: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 8D 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FC 38 02 00 35 04 06 00 EC [11:05:49]Write to MH i2c: E2 02 01 04 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 8D 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FC 38 02 00 35 04 06 00 EC 00 00 DA [11:05:49]Write i2c OK [11:05:49]MH_I2C_Read... [11:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:50]Read from MH i2c: E2 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: E2 03 00 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: E2 03 00 04 08 00 90 00 80 [11:05:50]RAPDU: 90 00 [11:05:50]wFMCommunicate OK [11:05:50]wFMCommunicate request_size=10 [11:05:50]MH_SAM_APDU [11:05:50]CAPDU: 80 0D 02 02 05 71 DE 7A AD 22 [11:05:50]Write to MH i2c: E2 0D 00 05 08 80 0D 02 02 05 00 71 DE 7A AD 22 00 00 29 [11:05:50]Write i2c OK [11:05:50]MH_I2C_Read... [11:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:50]Read from MH i2c: E2 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: E2 03 00 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [11:05:50]RAPDU: 90 00 [11:05:50]wFMCommunicate OK [11:05:50]wFMCommunicate request_size=4 [11:05:50]MH_SAM_APDU [11:05:50]CAPDU: 80 0D 03 02 [11:05:50]Write to MH i2c: E2 08 00 06 08 80 0D 03 02 00 00 00 00 89 [11:05:50]Write i2c OK [11:05:50]MH_I2C_Read... [11:05:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:50]Read from MH i2c: E2 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: E2 0B 00 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: E2 0B 00 06 08 00 78 31 4B 26 B4 32 DC 43 90 00 A9 [11:05:50]RAPDU: 78 31 4B 26 B4 32 DC 43 90 00 [11:05:50]wFMCommunicate OK [11:05:50]SAM_PROTO_SignData done [11:05:50]FM_MakeSignedData done [11:05:50]CreateOFDProtocolMessage [11:05:50]wFMCommunicate request_size=4 [11:05:50]MH_SAM_APDU [11:05:50]CAPDU: 80 11 00 00 [11:05:50]Write to MH i2c: E2 08 00 07 08 80 11 00 00 00 00 00 00 89 [11:05:50]Write i2c OK [11:05:50]MH_I2C_Read... [11:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:50]Read from MH i2c: E2 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: E2 17 00 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: E2 17 00 07 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 DC [11:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:05:50]wFMCommunicate OK [11:05:50]CreateOFDProtocolMessage done [11:05:50]OFDSenderStorePacket 145660 [11:05:50]StoreOFDPacket docnum=145660 [11:05:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C0 08 07 01 4D 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 8D 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FC 38 02 00 35 04 06 00 EC 71 DE 7A AD 22 78 31 4B 26 B4 32 DC 43 [11:05:50]CheckFolder [11:05:50]dirname=/storage/ofd_packets [11:05:50]CheckFolder done [11:05:50]ProducePacketName [11:05:50]name=ofd_packets/00145660 [11:05:50]NVStorageSaveData ofd_packets/00145660 [11:05:50]File name is /storage/ofd_packets/00145660 [11:05:50]Write 301 bytes [11:05:50]NVStorageSaveData done [11:05:50]OFDSenderStorePacket done [11:05:50]KKMCreateOFDPacket done [11:05:50]NVStorageSaveData kkm_last_timestamp [11:05:50]File name is /storage/kkm_last_timestamp [11:05:50]Write 4 bytes [11:05:50]NVStorageSaveData done [11:05:50]ExternCall_PrintAddStr [11:05:50]wPrintStart [11:05:50]Write to MH i2c: 01 00 00 08 08 10 [11:05:50]Write i2c OK [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: 01 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: 01 07 00 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: 01 07 00 08 08 00 00 00 00 00 FF 0F 25 [11:05:50]RasterBufferAndPrint [11:05:50]line Счет N : (1)160412 [11:05:50]line ИНН: 02508201610067 [11:05:50]line Контрольно-Кассовый Чек [11:05:50]line ПРОДАЖА [11:05:50]line ТРК (МРК, ГНК) : 42 [11:05:50]line Товар: 2710124130 [11:05:50]line Аи-92-К-2 [11:05:50]line 7.480 * 66.90 [11:05:50]line = 500.41 [11:05:50]line НДС 12% НСП 1% [11:05:50]line > о реализуемом товаре [11:05:50]line ОКРУГЛЕНИЕ: -0.41 [11:05:50]line ИТОГО: 500.00 [11:05:50]line Внесено: 500.00 [11:05:50]line СДАЧА: 0.00 [11:05:50]line НСП 1% : 4.43 [11:05:50]line НДС 12% : 53.14 [11:05:50]line Наличными: 500.00 [11:05:50]line Безнал.: 0.00 [11:05:50]line Место: АЗС № 126 "Партнер Нефть" [11:05:50]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:05:50]line СНО: Общий режим [11:05:50]line Чек 83 27.10.2024 11:05 [11:05:50]line Смена: 545 ФФД: 1.0 [11:05:50]line ЗНМ: 0300000085 [11:05:50]line РНМ: 0000000000091683 [11:05:50]line Версия ККМ: 001 [11:05:50]line ФМ: 0000000000871745 [11:05:50]line ФД: 145660 [11:05:50]line ФПД: 259973808041250 [11:05:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110549&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145660&fm=259973808041250&tin=02508201610067®Number=0000000000091683&sum=50000 [11:05:50]written 0, free lines is 4095 [11:05:50]OFD Sender: Processing packet 145660 [packets to send 206, broken 205] [11:05:50]ProducePacketName [11:05:50]name=ofd_packets/00145660 [11:05:50]OFD Sender: To server: pG, [11:05:50]CommunicateWithHost lk.salyk.kg:30040 [11:05:50]ConnectInit lk.salyk.kg [11:05:50]Connected sock=10 [11: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 31 37 34 35 0F 01 00 00 C0 08 07 01 4D 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 8D 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FC 38 02 00 35 04 06 00 EC 71 DE 7A AD 22 78 31 4B 26 B4 32 DC 43 [11:05:51]Write to MH i2c: 01 00 00 33 08 3B [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: 01 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: 01 07 00 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 B7 0C 05 [11:05:51]RasterBufferAndPrint [11:05:51]line [11:05:51]line [11:05:51]line [11:05:51]line [11:05:51]line [11:05:51]written 0, free lines is 3262 [11:05:51]MH_Cut [11:05:51]Write to MH i2c: D1 01 00 3A 08 01 14 [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: D1 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: D1 01 00 [11:05:51]MH_I2C_Read... [11:05:51]Read from MH i2c: D1 01 00 3A 08 00 13 [11:05:51]Write to MH i2c: 01 00 00 3B 08 43 [11:05:51]Write i2c OK [11:05:51]MH_I2C_Read... [11:05:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 2E 89 47 00 DF 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FC 38 02 00 F4 03 04 00 BB C3 1D 67 B6 04 01 00 00 7D 7F F1 44 FB D4 D2 4A [11:05:51]CommunicateWithHost err = 0 [11:05:51]CheckOFDResponse [11:05:51]1017 (14) - 77093643461234 [11:05:51]1041 (16) - 0000000000871745 [11:05:51]1040 (4) - 145660 [11:05:51]1012 (4) - 27.10.2024 04:38 [11:05:51]1206 (1) - 0 [11:05:51]OFD Sender: Remove packet 145660 [11:05:51]ProducePacketName [11:05:51]name=ofd_packets/00145660 [11:05:51]NVStorageDeleteData [11:05:51]OFD Sender: No OFD packet to send [11:05:51]*** Cut start [11:05:51]*** Partial cut [11:05:51]*** CUTSNS_PIN = 1 [11:05:51]*** CUTSNS_PIN = 0 [11:05:52]*** Brake cut motor [11:05:52]Read from MH i2c: 01 [11:05:52]MH_I2C_Read... [11:05:52]*** Stop cut motor [11:05:52]*** Cut end [11:05:52]Read from MH i2c: 01 07 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [11:05:52]process_action close_receipt done [11:05:52]requested_data is exist [11:05:52]produce_requested_data [11:05:52]requested_item fm.sn is exist - process it [11:05:52]wFMCommunicate request_size=4 [11:05:52]MH_SAM_APDU [11:05:52]CAPDU: 80 11 00 00 [11:05:52]Write to MH i2c: E2 08 00 3C 08 80 11 00 00 00 00 00 00 BE [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:52]Read from MH i2c: E2 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 17 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 17 00 3C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 11 [11:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:05:52]wFMCommunicate OK [11:05:52]requested_item fd.num is exist - process it [11:05:52]SAM_PROTO_GetFieldsCounters [11:05:52]wFMCommunicate request_size=4 [11:05:52]MH_SAM_APDU [11:05:52]CAPDU: 80 13 00 00 [11:05:52]Write to MH i2c: E2 08 00 3D 08 80 13 00 00 00 00 00 00 C1 [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:52]Read from MH i2c: E2 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 62 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 62 00 3D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FC 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [11:05:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FC 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:52]wFMCommunicate OK [11:05:52]SAM_PROTO_GetFieldsCounters done [11:05:52]requested_item shift.num is exist - process it [11:05:52]requested_item shift.opened is exist - process it [11:05:52]req_shift_opened [11:05:52]FM_GetShiftState [11:05:52]SAM_PROTO_GetShiftState [11:05:52]wFMCommunicate request_size=4 [11:05:52]MH_SAM_APDU [11:05:52]CAPDU: 80 13 01 00 [11:05:52]Write to MH i2c: E2 08 00 3E 08 80 13 01 00 00 00 00 00 C3 [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:52]Read from MH i2c: E2 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 0E 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 0E 00 3E 08 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3B [11:05:52]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:05:52]wFMCommunicate OK [11:05:52]SAM_PROTO_GetShiftState done [11:05:52]FM_GetShiftState done [11:05:52]req_shift_opened done [11:05:52]requested_item shift.open_date is exist - process it [11:05:52]req_shift_open_date [11:05:52]req_shift_open_date done [11:05:52]produce_requested_data done [11:05:52]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145660,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:05:52]process_action_free close_receipt [11:05:52]json_value_free [11:05:52]json_value_free done [11:05:52]process_json_proto returns [11:05:52]Send response to host [11:05:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145660,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:05:52]free response buf [11:05:52]execute_script done [11:05:52]execute_script returns [11:05:52]free content buf [11:05:52]Sock 9.Close socket [11:05:52]Sock 9.Thread stoped [11:05:52]accept exits with 7 [11:05:52]New connection [11:05:52]New thread 3066596708 created [11:05:52]Thread 3066740068 joined [11:05:52]Waiting for new connection... [11:05:52] Sock 7.Parse request [11:05:52]Sock 7.Check first char [11:05:52]Sock 7.First char is OK [11:05:52]request: POST /json_proto HTTP/1.0 [11:05:52]Method: POST [11:05:52]URL: /json_proto [11:05:52]Method is POST - this is cgi request [11:05:52]url: /json_proto [11:05:52]query_string will be loaded in cgi processing [11:05:52]execute_cgi json_proto POST (null) [11:05:52]execute_cgi path=json_proto method=POST [11:05:52]POST find Content-Length [11:05:52]Host: 172.17.40.195:8080 [11:05:52]Content-Length: 682 [11:05:52]Content-Type: application/json [11:05:52] [11:05:52]POST finish read [11:05:52]Found Content-Length = 682 [11:05:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:05:52]execute_script... [11:05: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)160411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:05:52]POST & json_proto [11:05:52]process_json_proto [11:05:52]json parsed OK: [11:05:52]protocol is kg_v1.0 [11:05:52]action value=close_receipt [11:05:52]process_action close_receipt [11:05:52]cmd_close_receipt [11:05:52]MH_GetDate [11:05:52]Write to MH i2c: F0 00 00 3F 08 36 [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: F0 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: F0 09 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: F0 09 00 3F 08 00 92 1E 1E 67 D5 8D 6C 64 A6 [11:05:52]GetLastDocTimeStamp 1730027149 [11:05:52]current date 1730027154 [11:05:52]FM_GetShiftState [11:05:52]SAM_PROTO_GetShiftState [11:05:52]wFMCommunicate request_size=4 [11:05:52]MH_SAM_APDU [11:05:52]CAPDU: 80 13 01 00 [11:05:53]Write to MH i2c: E2 08 00 40 08 80 13 01 00 00 00 00 00 C5 [11:05:53]Write i2c OK [11:05:53]MH_I2C_Read... [11:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:53]Read from MH i2c: E2 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 0E 00 [11:05:53]MH_I2C_Read... [11:05:53]Read from MH i2c: E2 0E 00 40 08 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3D [11:05:53]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:05:53]wFMCommunicate OK [11:05:53]SAM_PROTO_GetShiftState done [11:05:53]FM_GetShiftState done [11:05:53]opened in 1729988959 [11:05:53]opened+sec_in_day 1730075359 [11:05:53]quantity*price = 100021 [11:05:53]sum+1 = 100023 [11:05:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 84 27.10.2024 11:05 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145661 ФПД: 181354086475779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110554&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145661&fm=181354086475779&tin=02508201610067®Number=0000000000091683&sum=100000 [11:05:54]StoreToDocumentArchive [11:05:54]shift 545 fd 145661 [11:05:54]save to /storage/0545/doc_00145661 [11:05:54]save last doc name /storage/0545/doc_00145661 to /storage/kkm_last_doc_name [11:05:54]save OK [11:05:54]Clear old archive folders... [11:05:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:54]tlvbuf is 00443720 [11:05:54]SAM_PROTO_ClearQueue [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 09 00 00 [11:05:54]Write to MH i2c: E2 08 00 4D 08 80 09 00 00 00 00 00 00 C7 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]SAM_PROTO_ClearQueue done [11:05:54]KKMCreateOFDPacket [11:05:54]OFDProtocolAddRootSTLVToBuf [11:05:54]FM_MakeSignedData [11:05:54]FM_MakeSignedData [11:05:54]SAM_PROTO_SignData [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 0D 01 02 [11:05:54]Write to MH i2c: E2 08 00 4E 08 80 0D 01 02 00 00 00 00 CF [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]wFMCommunicate request_size=255 [11:05:54]MH_SAM_APDU [11:05: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 92 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FD 38 02 00 35 04 06 00 A4 [11:05:54]Write to MH i2c: E2 02 01 4F 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 92 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FD 38 02 00 35 04 06 00 A4 00 00 02 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]wFMCommunicate request_size=10 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 0D 02 02 05 F0 C9 E7 28 03 [11:05:54]Write to MH i2c: E2 0D 00 50 08 80 0D 02 02 05 00 F0 C9 E7 28 03 00 00 A7 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 0D 03 02 [11:05:54]Write to MH i2c: E2 08 00 51 08 80 0D 03 02 00 00 00 00 D4 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:55]Read from MH i2c: E2 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 0B 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 0B 00 51 08 00 94 DB 61 A6 F0 92 48 4E 90 00 63 [11:05:55]RAPDU: 94 DB 61 A6 F0 92 48 4E 90 00 [11:05:55]wFMCommunicate OK [11:05:55]SAM_PROTO_SignData done [11:05:55]FM_MakeSignedData done [11:05:55]CreateOFDProtocolMessage [11:05:55]wFMCommunicate request_size=4 [11:05:55]MH_SAM_APDU [11:05:55]CAPDU: 80 11 00 00 [11:05:55]Write to MH i2c: E2 08 00 52 08 80 11 00 00 00 00 00 00 D4 [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:55]Read from MH i2c: E2 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 17 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 17 00 52 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 27 [11:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:05:55]wFMCommunicate OK [11:05:55]CreateOFDProtocolMessage done [11:05:55]OFDSenderStorePacket 145661 [11:05:55]StoreOFDPacket docnum=145661 [11:05:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 AF 68 07 01 2E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 92 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FD 38 02 00 35 04 06 00 A4 F0 C9 E7 28 03 94 DB 61 A6 F0 92 48 4E [11:05:55]CheckFolder [11:05:55]dirname=/storage/ofd_packets [11:05:55]CheckFolder done [11:05:55]ProducePacketName [11:05:55]name=ofd_packets/00145661 [11:05:55]NVStorageSaveData ofd_packets/00145661 [11:05:55]File name is /storage/ofd_packets/00145661 [11:05:55]Write 301 bytes [11:05:55]NVStorageSaveData done [11:05:55]OFDSenderStorePacket done [11:05:55]KKMCreateOFDPacket done [11:05:55]NVStorageSaveData kkm_last_timestamp [11:05:55]File name is /storage/kkm_last_timestamp [11:05:55]Write 4 bytes [11:05:55]NVStorageSaveData done [11:05:55]ExternCall_PrintAddStr [11:05:55]wPrintStart [11:05:55]Write to MH i2c: 01 00 00 53 08 5B [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 07 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 FF 0F 70 [11:05:55]RasterBufferAndPrint [11:05:55]line Счет N : (1)160411 [11:05:55]line ИНН: 02508201610067 [11:05:55]line Контрольно-Кассовый Чек [11:05:55]line ПРОДАЖА [11:05:55]line ТРК (МРК, ГНК) : 53 [11:05:55]line Товар: 2710124500 [11:05:55]line Аи-95-К-3 [11:05:55]line 13.480 * 74.20 [11:05:55]line = 1000.22 [11:05:55]line НДС 12% НСП 1% [11:05:55]line > о реализуемом товаре [11:05:55]line ОКРУГЛЕНИЕ: -0.22 [11:05:55]line ИТОГО: 1000.00 [11:05:55]line Внесено: 1000.00 [11:05:55]line СДАЧА: 0.00 [11:05:55]line НСП 1% : 8.85 [11:05:55]line НДС 12% : 106.22 [11:05:55]line Наличными: 1000.00 [11:05:55]line Безнал.: 0.00 [11:05:55]line Место: АЗС № 126 "Партнер Нефть" [11:05:55]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:05:55]line СНО: Общий режим [11:05:55]line Чек 84 27.10.2024 11:05 [11:05:55]line Смена: 545 ФФД: 1.0 [11:05:55]line ЗНМ: 0300000085 [11:05:55]line РНМ: 0000000000091683 [11:05:55]line Версия ККМ: 001 [11:05:55]line ФМ: 0000000000871745 [11:05:55]line ФД: 145661 [11:05:55]line ФПД: 181354086475779 [11:05:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110554&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145661&fm=181354086475779&tin=02508201610067®Number=0000000000091683&sum=100000 [11:05:55]OFD Sender: Processing packet 145661 [packets to send 206, broken 205] [11:05:55]ProducePacketName [11:05:55]name=ofd_packets/00145661 [11:05:55]OFD Sender: To server: pG, [11:05:55]CommunicateWithHost lk.salyk.kg:30040 [11:05:55]ConnectInit lk.salyk.kg [11:05:55]written 0, free lines is 4095 [11:05:55]Connected sock=10 [11:05:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 AF 68 07 01 2E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 92 1E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FD 38 02 00 35 04 06 00 A4 F0 C9 E7 28 03 94 DB 61 A6 F0 92 48 4E [11:05:55]Write to MH i2c: 01 00 00 7E 08 86 [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 07 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 BF 0C 58 [11:05:55]RasterBufferAndPrint [11:05:55]line [11:05:55]line [11:05:55]line [11:05:55]line [11:05:55]line [11:05:55]written 0, free lines is 3276 [11:05:55]MH_Cut [11:05:55]Write to MH i2c: D1 01 00 85 08 01 5F [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: D1 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: D1 01 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: D1 01 00 85 08 00 5E [11:05:55]Write to MH i2c: 01 00 00 86 08 8E [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 1D A8 47 00 5B 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FD 38 02 00 F4 03 04 00 C0 C3 1D 67 B6 04 01 00 00 C2 2B CE 5B D1 89 93 A0 [11:05:55]CommunicateWithHost err = 0 [11:05:55]CheckOFDResponse [11:05:55]1017 (14) - 77093643461234 [11:05:55]1041 (16) - 0000000000871745 [11:05:55]1040 (4) - 145661 [11:05:55]1012 (4) - 27.10.2024 04:38 [11:05:55]1206 (1) - 0 [11:05:55]OFD Sender: Remove packet 145661 [11:05:55]ProducePacketName [11:05:55]name=ofd_packets/00145661 [11:05:55]NVStorageDeleteData [11:05:56]OFD Sender: No OFD packet to send [11:05:56]*** Cut start [11:05:56]*** Partial cut [11:05:56]*** CUTSNS_PIN = 1 [11:05:56]*** CUTSNS_PIN = 0 [11:05:56]*** Brake cut motor [11:05:56]Read from MH i2c: 01 [11:05:56]MH_I2C_Read... [11:05:56]*** Stop cut motor [11:05:56]*** Cut end [11:05:56]Read from MH i2c: 01 07 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: 01 07 00 86 08 00 00 00 00 00 FF 0F A3 [11:05:56]process_action close_receipt done [11:05:56]requested_data is exist [11:05:56]produce_requested_data [11:05:56]requested_item fm.sn is exist - process it [11:05:56]wFMCommunicate request_size=4 [11:05:56]MH_SAM_APDU [11:05:56]CAPDU: 80 11 00 00 [11:05:56]Write to MH i2c: E2 08 00 87 08 80 11 00 00 00 00 00 00 09 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:57]Read from MH i2c: E2 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 17 00 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 17 00 87 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 5C [11:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:05:57]wFMCommunicate OK [11:05:57]requested_item fd.num is exist - process it [11:05:57]SAM_PROTO_GetFieldsCounters [11:05:57]wFMCommunicate request_size=4 [11:05:57]MH_SAM_APDU [11:05:57]CAPDU: 80 13 00 00 [11:05:57]Write to MH i2c: E2 08 00 88 08 80 13 00 00 00 00 00 00 0C [11:05:57]Write i2c OK [11:05:57]MH_I2C_Read... [11:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:57]Read from MH i2c: E2 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 62 00 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 62 00 88 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FD 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [11:05:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FD 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:57]wFMCommunicate OK [11:05:57]SAM_PROTO_GetFieldsCounters done [11:05:57]requested_item shift.num is exist - process it [11:05:57]requested_item shift.opened is exist - process it [11:05:57]req_shift_opened [11:05:57]FM_GetShiftState [11:05:57]SAM_PROTO_GetShiftState [11:05:57]wFMCommunicate request_size=4 [11:05:57]MH_SAM_APDU [11:05:57]CAPDU: 80 13 01 00 [11:05:57]Write to MH i2c: E2 08 00 89 08 80 13 01 00 00 00 00 00 0E [11:05:57]Write i2c OK [11:05:57]MH_I2C_Read... [11:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:57]Read from MH i2c: E2 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 0E 00 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 0E 00 89 08 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 86 [11:05:57]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:05:57]wFMCommunicate OK [11:05:57]SAM_PROTO_GetShiftState done [11:05:57]FM_GetShiftState done [11:05:57]req_shift_opened done [11:05:57]requested_item shift.open_date is exist - process it [11:05:57]req_shift_open_date [11:05:57]req_shift_open_date done [11:05:57]produce_requested_data done [11:05:57]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145661,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:05:57]process_action_free close_receipt [11:05:57]json_value_free [11:05:57]json_value_free done [11:05:57]process_json_proto returns [11:05:57]Send response to host [11:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145661,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:05:57]free response buf [11:05:57]execute_script done [11:05:57]execute_script returns [11:05:57]free content buf [11:05:57]Sock 7.Close socket [11:05:57]Sock 7.Thread stoped [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:34]accept exits with 9 [11:08:34]New connection [11:08:34]New thread 3066740068 created [11:08:34]Thread 3066596708 joined [11:08:34]Waiting for new connection... [11:08:34] Sock 9.Parse request [11:08:34]Sock 9.Check first char [11:08:34]Sock 9.First char is OK [11:08:34]request: POST /json_proto HTTP/1.0 [11:08:34]Method: POST [11:08:34]URL: /json_proto [11:08:34]Method is POST - this is cgi request [11:08:34]url: /json_proto [11:08:34]query_string will be loaded in cgi processing [11:08:34]execute_cgi json_proto POST (null) [11:08:34]execute_cgi path=json_proto method=POST [11:08:34]POST find Content-Length [11:08:34]Host: 172.17.40.195:8080 [11:08:34]Content-Length: 682 [11:08:34]Content-Type: application/json [11:08:34] [11:08:34]POST finish read [11:08:34]Found Content-Length = 682 [11:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:34]execute_script... [11:08:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:34]POST & json_proto [11:08:34]process_json_proto [11:08:34]json parsed OK: [11:08:34]protocol is kg_v1.0 [11:08:34]action value=close_receipt [11:08:34]process_action close_receipt [11:08:34]cmd_close_receipt [11:08:34]MH_GetDate [11:08:34]Write to MH i2c: F0 00 00 8A 08 81 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: F0 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: F0 09 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: F0 09 00 8A 08 00 33 1F 1E 67 D5 8D 6C 64 93 [11:08:34]GetLastDocTimeStamp 1730027154 [11:08:34]current date 1730027315 [11:08:34]FM_GetShiftState [11:08:34]SAM_PROTO_GetShiftState [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 13 01 00 [11:08:34]Write to MH i2c: E2 08 00 8B 08 80 13 01 00 00 00 00 00 10 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0E 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0E 00 8B 08 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 88 [11:08:34]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:08:34]wFMCommunicate OK [11:08:34]SAM_PROTO_GetShiftState done [11:08:34]FM_GetShiftState done [11:08:34]opened in 1729988959 [11:08:34]opened+sec_in_day 1730075359 [11:08:34]quantity*price = 200031 [11:08:34]sum+1 = 200032 [11:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 85 27.10.2024 11:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145662 ФПД: 130755845642018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110835&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145662&fm=130755845642018&tin=02508201610067®Number=0000000000091683&sum=200000 [11:08:35]StoreToDocumentArchive [11:08:35]shift 545 fd 145662 [11:08:35]save to /storage/0545/doc_00145662 [11:08:35]save last doc name /storage/0545/doc_00145662 to /storage/kkm_last_doc_name [11:08:35]save OK [11:08:35]Clear old archive folders... [11:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:35]tlvbuf is 00454B70 [11:08:35]SAM_PROTO_ClearQueue [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 09 00 00 [11:08:35]Write to MH i2c: E2 08 00 98 08 80 09 00 00 00 00 00 00 12 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [11:08:35]RAPDU: 90 00 [11:08:35]wFMCommunicate OK [11:08:35]SAM_PROTO_ClearQueue done [11:08:35]KKMCreateOFDPacket [11:08:35]OFDProtocolAddRootSTLVToBuf [11:08:35]FM_MakeSignedData [11:08:35]FM_MakeSignedData [11:08:35]SAM_PROTO_SignData [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 0D 01 02 [11:08:35]Write to MH i2c: E2 08 00 99 08 80 0D 01 02 00 00 00 00 1A [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 99 08 00 90 00 15 [11:08:35]RAPDU: 90 00 [11:08:35]wFMCommunicate OK [11:08:35]wFMCommunicate request_size=255 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 33 1F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FE 38 02 00 35 04 06 00 76 [11:08:35]Write to MH i2c: E2 02 01 9A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 33 1F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FE 38 02 00 35 04 06 00 76 00 00 E7 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 9A 08 00 90 00 16 [11:08:35]RAPDU: 90 00 [11:08:35]wFMCommunicate OK [11:08:35]wFMCommunicate request_size=10 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 0D 02 02 05 EB F7 BB 57 22 [11:08:35]Write to MH i2c: E2 0D 00 9B 08 80 0D 02 02 05 00 EB F7 BB 57 22 00 00 3D [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [11:08:35]RAPDU: 90 00 [11:08:35]wFMCommunicate OK [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 0D 03 02 [11:08:35]Write to MH i2c: E2 08 00 9C 08 80 0D 03 02 00 00 00 00 1F [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 0B 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 0B 00 9C 08 00 62 19 35 60 66 1B 8A 2F 90 00 6A [11:08:35]RAPDU: 62 19 35 60 66 1B 8A 2F 90 00 [11:08:35]wFMCommunicate OK [11:08:35]SAM_PROTO_SignData done [11:08:35]FM_MakeSignedData done [11:08:35]CreateOFDProtocolMessage [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 11 00 00 [11:08:35]Write to MH i2c: E2 08 00 9D 08 80 11 00 00 00 00 00 00 1F [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 17 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 17 00 9D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 72 [11:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:08:35]wFMCommunicate OK [11:08:35]CreateOFDProtocolMessage done [11:08:35]OFDSenderStorePacket 145662 [11:08:35]StoreOFDPacket docnum=145662 [11:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 78 98 07 01 CC F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 33 1F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FE 38 02 00 35 04 06 00 76 EB F7 BB 57 22 62 19 35 60 66 1B 8A 2F [11:08:35]CheckFolder [11:08:35]dirname=/storage/ofd_packets [11:08:35]CheckFolder done [11:08:35]ProducePacketName [11:08:35]name=ofd_packets/00145662 [11:08:35]NVStorageSaveData ofd_packets/00145662 [11:08:35]File name is /storage/ofd_packets/00145662 [11:08:35]Write 301 bytes [11:08:35]NVStorageSaveData done [11:08:35]OFDSenderStorePacket done [11:08:35]KKMCreateOFDPacket done [11:08:35]NVStorageSaveData kkm_last_timestamp [11:08:35]File name is /storage/kkm_last_timestamp [11:08:35]Write 4 bytes [11:08:35]NVStorageSaveData done [11:08:35]ExternCall_PrintAddStr [11:08:35]wPrintStart [11:08:35]Write to MH i2c: 01 00 00 9E 08 A6 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 07 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 07 00 9E 08 00 00 00 00 00 FF 0F BB [11:08:35]RasterBufferAndPrint [11:08:35]line Счет N : (1)160413 [11:08:35]line ИНН: 02508201610067 [11:08:35]line Контрольно-Кассовый Чек [11:08:35]line ПРОДАЖА [11:08:35]line ТРК (МРК, ГНК) : 32 [11:08:35]line Товар: 2710124130 [11:08:35]line Аи-92-К-2 [11:08:35]line 29.900 * 66.90 [11:08:35]line = 2000.31 [11:08:35]line НДС 12% НСП 1% [11:08:35]line > о реализуемом товаре [11:08:35]line ОКРУГЛЕНИЕ: -0.31 [11:08:35]line ИТОГО: 2000.00 [11:08:35]line Внесено: 2000.00 [11:08:35]line СДАЧА: 0.00 [11:08:35]line НСП 1% : 17.70 [11:08:35]line НДС 12% : 212.42 [11:08:35]line Наличными: 2000.00 [11:08:35]line Безнал.: 0.00 [11:08:35]line Место: АЗС № 126 "Партнер Нефть" [11:08:35]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:08:35]line СНО: Общий режим [11:08:35]line Чек 85 27.10.2024 11:08 [11:08:35]line Смена: 545 ФФД: 1.0 [11:08:35]line ЗНМ: 0300000085 [11:08:35]line РНМ: 0000000000091683 [11:08:35]line Версия ККМ: 001 [11:08:35]line ФМ: 0000000000871745 [11:08:35]line ФД: 145662 [11:08:35]line ФПД: 130755845642018 [11:08:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110835&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145662&fm=130755845642018&tin=02508201610067®Number=0000000000091683&sum=200000 [11:08:35]written 0, free lines is 4095 [11:08:35]OFD Sender: Processing packet 145662 [packets to send 206, broken 205] [11:08:35]ProducePacketName [11:08:35]name=ofd_packets/00145662 [11:08:35]OFD Sender: To server: pG, [11:08:35]CommunicateWithHost lk.salyk.kg:30040 [11:08:35]ConnectInit lk.salyk.kg [11:08:36]Connected sock=11 [11:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 78 98 07 01 CC F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 33 1F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FE 38 02 00 35 04 06 00 76 EB F7 BB 57 22 62 19 35 60 66 1B 8A 2F [11:08:36]Write to MH i2c: 01 00 00 C9 08 D1 [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 07 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 BF 0C A3 [11:08:36]RasterBufferAndPrint [11:08:36]line [11:08:36]line [11:08:36]line [11:08:36]line [11:08:36]line [11:08:36]written 0, free lines is 3268 [11:08:36]MH_Cut [11:08:36]Write to MH i2c: D1 01 00 D0 08 01 AA [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: D1 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: D1 01 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: D1 01 00 D0 08 00 A9 [11:08:36]Write to MH i2c: 01 00 00 D1 08 D9 [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 CC 61 47 00 66 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FE 38 02 00 F4 03 04 00 60 C4 1D 67 B6 04 01 00 00 C5 0D B2 F6 C8 5C 55 31 [11:08:36]CommunicateWithHost err = 0 [11:08:36]CheckOFDResponse [11:08:36]1017 (14) - 77093643461234 [11:08:36]1041 (16) - 0000000000871745 [11:08:36]1040 (4) - 145662 [11:08:36]1012 (4) - 27.10.2024 04:41 [11:08:36]1206 (1) - 0 [11:08:36]OFD Sender: Remove packet 145662 [11:08:36]ProducePacketName [11:08:36]name=ofd_packets/00145662 [11:08:36]NVStorageDeleteData [11:08:36]OFD Sender: No OFD packet to send [11:08:37]*** Cut start [11:08:37]*** Partial cut [11:08:37]*** CUTSNS_PIN = 1 [11:08:37]*** CUTSNS_PIN = 0 [11:08:37]*** Brake cut motor [11:08:37]Read from MH i2c: 01 [11:08:37]MH_I2C_Read... [11:08:37]*** Stop cut motor [11:08:37]Read from MH i2c: 01 *** Cut end [11:08:37]07 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: 01 07 00 D1 08 00 00 00 00 00 FF 0F EE [11:08:37]process_action close_receipt done [11:08:37]requested_data is exist [11:08:37]produce_requested_data [11:08:37]requested_item fm.sn is exist - process it [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 11 00 00 [11:08:37]Write to MH i2c: E2 08 00 D2 08 80 11 00 00 00 00 00 00 54 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 17 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 17 00 D2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A7 [11:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:08:37]wFMCommunicate OK [11:08:37]requested_item fd.num is exist - process it [11:08:37]SAM_PROTO_GetFieldsCounters [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 13 00 00 [11:08:37]Write to MH i2c: E2 08 00 D3 08 80 13 00 00 00 00 00 00 57 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 62 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 62 00 D3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FE 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [11: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FE 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:37]wFMCommunicate OK [11:08:37]SAM_PROTO_GetFieldsCounters done [11:08:37]requested_item shift.num is exist - process it [11:08:37]requested_item shift.opened is exist - process it [11:08:37]req_shift_opened [11:08:37]FM_GetShiftState [11:08:37]SAM_PROTO_GetShiftState [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 13 01 00 [11:08:37]Write to MH i2c: E2 08 00 D4 08 80 13 01 00 00 00 00 00 59 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 0E 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 0E 00 D4 08 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D1 [11:08:37]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:08:37]wFMCommunicate OK [11:08:37]SAM_PROTO_GetShiftState done [11:08:37]FM_GetShiftState done [11:08:37]req_shift_opened done [11:08:37]requested_item shift.open_date is exist - process it [11:08:37]req_shift_open_date [11:08:37]req_shift_open_date done [11:08:37]produce_requested_data done [11:08:37]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145662,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:08:37]process_action_free close_receipt [11:08:37]json_value_free [11:08:37]json_value_free done [11:08:37]process_json_proto returns [11:08:37]Send response to host [11:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145662,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:08:37]free response buf [11:08:37]execute_script done [11:08:37]execute_script returns [11:08:37]free content buf [11:08:37]Sock 9.Close socket [11:08:37]Sock 9.Thread stoped [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10: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:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:09]accept exits with 7 [11:11:09]New connection [11:11:09]New thread 3066596708 created [11:11:09]Thread 3066740068 joined [11:11:09]Waiting for new connection... [11:11:09] Sock 7.Parse request [11:11:09]Sock 7.Check first char [11:11:09]Sock 7.First char is OK [11:11:09]request: POST /json_proto HTTP/1.0 [11:11:09]Method: POST [11:11:09]URL: /json_proto [11:11:09]Method is POST - this is cgi request [11:11:09]url: /json_proto [11:11:09]query_string will be loaded in cgi processing [11:11:09]execute_cgi json_proto POST (null) [11:11:09]execute_cgi path=json_proto method=POST [11:11:09]POST find Content-Length [11:11:09]Host: 172.17.40.195:8080 [11:11:09]Content-Length: 677 [11:11:09]Content-Type: application/json [11:11:09] [11:11:09]POST finish read [11:11:09]Found Content-Length = 677 [11:11:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:09]execute_script... [11:11: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)160414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:09]POST & json_proto [11:11:09]process_json_proto [11:11:09]json parsed OK: [11:11:09]protocol is kg_v1.0 [11:11:09]action value=close_receipt [11:11:09]process_action close_receipt [11:11:09]cmd_close_receipt [11:11:09]MH_GetDate [11:11:09]Write to MH i2c: F0 00 00 D5 08 CC [11:11:09]Write i2c OK [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: F0 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: F0 09 00 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: F0 09 00 D5 08 00 CE 1F 1E 67 D5 8D 6C 64 79 [11:11:09]GetLastDocTimeStamp 1730027315 [11:11:09]current date 1730027470 [11:11:09]FM_GetShiftState [11:11:09]SAM_PROTO_GetShiftState [11:11:09]wFMCommunicate request_size=4 [11:11:09]MH_SAM_APDU [11:11:09]CAPDU: 80 13 01 00 [11:11:09]Write to MH i2c: E2 08 00 D6 08 80 13 01 00 00 00 00 00 5B [11:11:09]Write i2c OK [11:11:09]MH_I2C_Read... [11:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:09]Read from MH i2c: E2 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: E2 0E 00 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: E2 0E 00 D6 08 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D3 [11:11:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:11:09]wFMCommunicate OK [11:11:09]SAM_PROTO_GetShiftState done [11:11:09]FM_GetShiftState done [11:11:09]opened in 1729988959 [11:11:09]opened+sec_in_day 1730075359 [11:11:09]quantity*price = 20003 [11:11:09]sum+1 = 20004 [11:11:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 86 27.10.2024 11:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145663 ФПД: 19142254057223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111110&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145663&fm=19142254057223&tin=02508201610067®Number=0000000000091683&sum=20000 [11:11:10]StoreToDocumentArchive [11:11:10]shift 545 fd 145663 [11:11:10]save to /storage/0545/doc_00145663 [11:11:10]save last doc name /storage/0545/doc_00145663 to /storage/kkm_last_doc_name [11:11:10]save OK [11:11:10]Clear old archive folders... [11:11:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:10]tlvbuf is 003E14C0 [11:11:10]SAM_PROTO_ClearQueue [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 09 00 00 [11:11:10]Write to MH i2c: E2 08 00 E3 08 80 09 00 00 00 00 00 00 5D [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 E3 08 00 90 00 5F [11:11:10]RAPDU: 90 00 [11:11:10]wFMCommunicate OK [11:11:10]SAM_PROTO_ClearQueue done [11:11:10]KKMCreateOFDPacket [11:11:10]OFDProtocolAddRootSTLVToBuf [11:11:10]FM_MakeSignedData [11:11:10]FM_MakeSignedData [11:11:10]SAM_PROTO_SignData [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 0D 01 02 [11:11:10]Write to MH i2c: E2 08 00 E4 08 80 0D 01 02 00 00 00 00 65 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 E4 08 00 90 00 60 [11:11:10]RAPDU: 90 00 [11:11:10]wFMCommunicate OK [11:11:10]wFMCommunicate request_size=255 [11:11:10]MH_SAM_APDU [11:11: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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CE 1F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FF 38 02 00 35 04 06 00 11 [11:11:10]Write to MH i2c: E2 02 01 E5 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CE 1F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FF 38 02 00 35 04 06 00 11 00 00 EA [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 E5 08 00 90 00 61 [11:11:10]RAPDU: 90 00 [11:11:10]wFMCommunicate OK [11:11:10]wFMCommunicate request_size=10 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 0D 02 02 05 68 E7 40 D7 07 [11:11:10]Write to MH i2c: E2 0D 00 E6 08 80 0D 02 02 05 00 68 E7 40 D7 07 00 00 DF [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 E6 08 00 90 00 62 [11:11:10]RAPDU: 90 00 [11:11:10]wFMCommunicate OK [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 0D 03 02 [11:11:10]Write to MH i2c: E2 08 00 E7 08 80 0D 03 02 00 00 00 00 6A [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 0B 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 0B 00 E7 08 00 DF 70 41 62 60 7A 9E 99 90 00 6E [11:11:10]RAPDU: DF 70 41 62 60 7A 9E 99 90 00 [11:11:10]wFMCommunicate OK [11:11:10]SAM_PROTO_SignData done [11:11:10]FM_MakeSignedData done [11:11:10]CreateOFDProtocolMessage [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 11 00 00 [11:11:10]Write to MH i2c: E2 08 00 E8 08 80 11 00 00 00 00 00 00 6A [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 17 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 17 00 E8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BD [11:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:11:10]wFMCommunicate OK [11:11:10]CreateOFDProtocolMessage done [11:11:10]OFDSenderStorePacket 145663 [11:11:10]StoreOFDPacket docnum=145663 [11:11:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 63 04 07 01 99 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CE 1F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FF 38 02 00 35 04 06 00 11 68 E7 40 D7 07 DF 70 41 62 60 7A 9E 99 [11:11:10]CheckFolder [11:11:10]dirname=/storage/ofd_packets [11:11:10]CheckFolder done [11:11:10]ProducePacketName [11:11:10]name=ofd_packets/00145663 [11:11:10]NVStorageSaveData ofd_packets/00145663 [11:11:10]File name is /storage/ofd_packets/00145663 [11:11:10]Write 301 bytes [11:11:10]NVStorageSaveData done [11:11:10]OFDSenderStorePacket done [11:11:10]KKMCreateOFDPacket done [11:11:10]NVStorageSaveData kkm_last_timestamp [11:11:10]File name is /storage/kkm_last_timestamp [11:11:10]Write 4 bytes [11:11:10]NVStorageSaveData done [11:11:10]ExternCall_PrintAddStr [11:11:10]wPrintStart [11:11:10]Write to MH i2c: 01 00 00 E9 08 F1 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 07 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 07 00 E9 08 00 00 00 00 00 FF 0F 06 [11:11:10]RasterBufferAndPrint [11:11:10]line Счет N : (1)160414 [11:11:10]line ИНН: 02508201610067 [11:11:10]line Контрольно-Кассовый Чек [11:11:10]line ПРОДАЖА [11:11:10]line ТРК (МРК, ГНК) : 32 [11:11:10]line Товар: 2710124130 [11:11:10]line Аи-92-К-2 [11:11:10]line 2.990 * 66.90 [11:11:10]line = 200.03 [11:11:10]line НДС 12% НСП 1% [11:11:10]line > о реализуемом товаре [11:11:10]line ОКРУГЛЕНИЕ: -0.03 [11:11:10]line ИТОГО: 200.00 [11:11:10]line Внесено: 200.00 [11:11:10]line СДАЧА: 0.00 [11:11:10]line НСП 1% : 1.77 [11:11:10]line НДС 12% : 21.24 [11:11:10]line Наличными: 200.00 [11:11:10]line Безнал.: 0.00 [11:11:10]line Место: АЗС № 126 "Партнер Нефть" [11:11:10]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:11:10]line СНО: Общий режим [11:11:10]line Чек 86 27.10.2024 11:11 [11:11:10]line Смена: 545 ФФД: 1.0 [11:11:10]line ЗНМ: 0300000085 [11:11:10]line РНМ: 0000000000091683 [11:11:10]line Версия ККМ: 001 [11:11:10]line ФМ: 0000000000871745 [11:11:10]line ФД: 145663 [11:11:10]line ФПД: 19142254057223 [11:11:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111110&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145663&fm=19142254057223&tin=02508201610067®Number=0000000000091683&sum=20000 [11:11:11]written 0, free lines is 4095 [11:11:11]OFD Sender: Processing packet 145663 [packets to send 206, broken 205] [11:11:11]ProducePacketName [11:11:11]name=ofd_packets/00145663 [11:11:11]OFD Sender: To server: pG, [11:11:11]CommunicateWithHost lk.salyk.kg:30040 [11:11:11]ConnectInit lk.salyk.kg [11:11:11]Connected sock=10 [11:11:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 63 04 07 01 99 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CE 1F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FF 38 02 00 35 04 06 00 11 68 E7 40 D7 07 DF 70 41 62 60 7A 9E 99 [11:11:11]Write to MH i2c: 01 00 00 14 09 1D [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 07 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 07 00 14 09 00 00 00 00 00 BB 0C EB [11:11:11]RasterBufferAndPrint [11:11:11]line [11:11:11]line [11:11:11]line [11:11:11]line [11:11:11]line [11:11:11]written 0, free lines is 3266 [11:11:11]MH_Cut [11:11:11]Write to MH i2c: D1 01 00 1B 09 01 F6 [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: D1 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: D1 01 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: D1 01 00 1B 09 00 F5 [11:11:11]Write to MH i2c: 01 00 00 1C 09 25 [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A2 ED 47 00 D3 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 FF 38 02 00 F4 03 04 00 FC C4 1D 67 B6 04 01 00 00 BA 0F 96 26 7B 36 23 59 [11:11:11]CommunicateWithHost err = 0 [11:11:11]CheckOFDResponse [11:11:11]1017 (14) - 77093643461234 [11:11:11]1041 (16) - 0000000000871745 [11:11:11]1040 (4) - 145663 [11:11:11]1012 (4) - 27.10.2024 04:43 [11:11:11]1206 (1) - 0 [11:11:11]OFD Sender: Remove packet 145663 [11:11:11]ProducePacketName [11:11:11]name=ofd_packets/00145663 [11:11:11]NVStorageDeleteData [11:11:12]OFD Sender: No OFD packet to send [11:11:12]*** Cut start [11:11:12]*** Partial cut [11:11:12]*** CUTSNS_PIN = 1 [11:11:12]*** CUTSNS_PIN = 0 [11:11:12]*** Brake cut motor [11:11:12]Read from MH i2c: 01 [11:11:12]MH_I2C_Read... [11:11:12]*** Stop cut motor [11:11:12]*** Cut end [11:11:12]Read from MH i2c: 01 07 00 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: 01 07 00 1C 09 00 00 00 00 00 FF 0F 3A [11:11:12]process_action close_receipt done [11:11:12]requested_data is exist [11:11:12]produce_requested_data [11:11:12]requested_item fm.sn is exist - process it [11:11:12]wFMCommunicate request_size=4 [11:11:12]MH_SAM_APDU [11:11:12]CAPDU: 80 11 00 00 [11:11:12]Write to MH i2c: E2 08 00 1D 09 80 11 00 00 00 00 00 00 A0 [11:11:12]Write i2c OK [11:11:12]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 17 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 17 00 1D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F3 [11:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:11:13]wFMCommunicate OK [11:11:13]requested_item fd.num is exist - process it [11:11:13]SAM_PROTO_GetFieldsCounters [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 13 00 00 [11:11:13]Write to MH i2c: E2 08 00 1E 09 80 13 00 00 00 00 00 00 A3 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 62 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 62 00 1E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FF 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [11:11:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 FF 38 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:13]wFMCommunicate OK [11:11:13]SAM_PROTO_GetFieldsCounters done [11:11:13]requested_item shift.num is exist - process it [11:11:13]requested_item shift.opened is exist - process it [11:11:13]req_shift_opened [11:11:13]FM_GetShiftState [11:11:13]SAM_PROTO_GetShiftState [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 13 01 00 [11:11:13]Write to MH i2c: E2 08 00 1F 09 80 13 01 00 00 00 00 00 A5 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:13]Read from MH i2c: E2 0E 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 0E 00 1F 09 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1D [11:11:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:11:13]wFMCommunicate OK [11:11:13]SAM_PROTO_GetShiftState done [11:11:13]FM_GetShiftState done [11:11:13]req_shift_opened done [11:11:13]requested_item shift.open_date is exist - process it [11:11:13]req_shift_open_date [11:11:13]req_shift_open_date done [11:11:13]produce_requested_data done [11:11:13]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145663,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:11:13]process_action_free close_receipt [11:11:13]json_value_free [11:11:13]json_value_free done [11:11:13]process_json_proto returns [11:11:13]Send response to host [11:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145663,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:11:13]free response buf [11:11:13]execute_script done [11:11:13]execute_script returns [11:11:13]free content buf [11:11:13]Sock 7.Close socket [11:11:13]Sock 7.Thread stoped [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:35]accept exits with 9 [11:12:35]New connection [11:12:35]New thread 3066740068 created [11:12:35]Thread 3066596708 joined [11:12:35]Waiting for new connection... [11:12:35] Sock 9.Parse request [11:12:35]Sock 9.Check first char [11:12:35]Sock 9.First char is OK [11:12:35]request: POST /json_proto HTTP/1.0 [11:12:35]Method: POST [11:12:35]URL: /json_proto [11:12:35]Method is POST - this is cgi request [11:12:35]url: /json_proto [11:12:35]query_string will be loaded in cgi processing [11:12:35]execute_cgi json_proto POST (null) [11:12:35]execute_cgi path=json_proto method=POST [11:12:35]POST find Content-Length [11:12:35]Host: 172.17.40.195:8080 [11:12:35]Content-Length: 677 [11:12:35]Content-Type: application/json [11:12:35] [11:12:35]POST finish read [11:12:35]Found Content-Length = 677 [11:12:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:35]execute_script... [11:12: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)160415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:35]POST & json_proto [11:12:35]process_json_proto [11:12:35]json parsed OK: [11:12:35]protocol is kg_v1.0 [11:12:35]action value=close_receipt [11:12:35]process_action close_receipt [11:12:35]cmd_close_receipt [11:12:35]MH_GetDate [11:12:35]Write to MH i2c: F0 00 00 20 09 18 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: F0 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: F0 09 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: F0 09 00 20 09 00 24 20 1E 67 D5 8D 6C 64 1C [11:12:35]GetLastDocTimeStamp 1730027470 [11:12:35]current date 1730027556 [11:12:35]FM_GetShiftState [11:12:35]SAM_PROTO_GetShiftState [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 13 01 00 [11:12:35]Write to MH i2c: E2 08 00 21 09 80 13 01 00 00 00 00 00 A7 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 0E 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 0E 00 21 09 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1F [11:12:35]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:12:35]wFMCommunicate OK [11:12:35]SAM_PROTO_GetShiftState done [11:12:35]FM_GetShiftState done [11:12:35]opened in 1729988959 [11:12:35]opened+sec_in_day 1730075359 [11:12:35]quantity*price = 50041 [11:12:35]sum+1 = 50042 [11:12:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 87 27.10.2024 11:12 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145664 ФПД: 27994152660764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111236&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145664&fm=27994152660764&tin=02508201610067®Number=0000000000091683&sum=50000 [11:12:36]StoreToDocumentArchive [11:12:36]shift 545 fd 145664 [11:12:36]save to /storage/0545/doc_00145664 [11:12:36]save last doc name /storage/0545/doc_00145664 to /storage/kkm_last_doc_name [11:12:36]save OK [11:12:36]Clear old archive folders... [11:12:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:36]tlvbuf is 003FE210 [11:12:36]SAM_PROTO_ClearQueue [11:12:36]wFMCommunicate request_size=4 [11:12:36]MH_SAM_APDU [11:12:36]CAPDU: 80 09 00 00 [11:12:36]Write to MH i2c: E2 08 00 2E 09 80 09 00 00 00 00 00 00 A9 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:36]Read from MH i2c: E2 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 03 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 03 00 2E 09 00 90 00 AB [11:12:36]RAPDU: 90 00 [11:12:36]wFMCommunicate OK [11:12:36]SAM_PROTO_ClearQueue done [11:12:36]KKMCreateOFDPacket [11:12:36]OFDProtocolAddRootSTLVToBuf [11:12:36]FM_MakeSignedData [11:12:36]FM_MakeSignedData [11:12:36]SAM_PROTO_SignData [11:12:36]wFMCommunicate request_size=4 [11:12:36]MH_SAM_APDU [11:12:36]CAPDU: 80 0D 01 02 [11:12:36]Write to MH i2c: E2 08 00 2F 09 80 0D 01 02 00 00 00 00 B1 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:36]Read from MH i2c: E2 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 03 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 03 00 2F 09 00 90 00 AC [11:12:36]RAPDU: 90 00 [11:12:36]wFMCommunicate OK [11:12:36]wFMCommunicate request_size=255 [11:12:36]MH_SAM_APDU [11:12: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 24 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 00 39 02 00 35 04 06 00 19 [11:12:36]Write to MH i2c: E2 02 01 30 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 24 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 00 39 02 00 35 04 06 00 19 00 00 D6 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:36]Read from MH i2c: E2 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 03 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 03 00 30 09 00 90 00 AD [11:12:36]RAPDU: 90 00 [11:12:36]wFMCommunicate OK [11:12:36]wFMCommunicate request_size=10 [11:12:36]MH_SAM_APDU [11:12:36]CAPDU: 80 0D 02 02 05 75 E5 86 6F 1C [11:12:36]Write to MH i2c: E2 0D 00 31 09 80 0D 02 02 05 00 75 E5 86 6F 1C 00 00 29 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:36]Read from MH i2c: E2 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 03 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 03 00 31 09 00 90 00 AE [11:12:36]RAPDU: 90 00 [11:12:36]wFMCommunicate OK [11:12:36]wFMCommunicate request_size=4 [11:12:36]MH_SAM_APDU [11:12:36]CAPDU: 80 0D 03 02 [11:12:36]Write to MH i2c: E2 08 00 32 09 80 0D 03 02 00 00 00 00 B6 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:36]Read from MH i2c: E2 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 0B 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 0B 00 32 09 00 20 C4 E2 D0 17 3B 9D BF 90 00 FB [11:12:36]RAPDU: 20 C4 E2 D0 17 3B 9D BF 90 00 [11:12:36]wFMCommunicate OK [11:12:36]SAM_PROTO_SignData done [11:12:36]FM_MakeSignedData done [11:12:36]CreateOFDProtocolMessage [11:12:36]wFMCommunicate request_size=4 [11:12:36]MH_SAM_APDU [11:12:36]CAPDU: 80 11 00 00 [11:12:36]Write to MH i2c: E2 08 00 33 09 80 11 00 00 00 00 00 00 B6 [11:12:37]Write i2c OK [11:12:37]MH_I2C_Read... [11:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:37]Read from MH i2c: E2 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: E2 17 00 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: E2 17 00 33 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 09 [11:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:12:37]wFMCommunicate OK [11:12:37]CreateOFDProtocolMessage done [11:12:37]OFDSenderStorePacket 145664 [11:12:37]StoreOFDPacket docnum=145664 [11:12:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C0 2F 07 01 5A 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 24 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 00 39 02 00 35 04 06 00 19 75 E5 86 6F 1C 20 C4 E2 D0 17 3B 9D BF [11:12:37]CheckFolder [11:12:37]dirname=/storage/ofd_packets [11:12:37]CheckFolder done [11:12:37]ProducePacketName [11:12:37]name=ofd_packets/00145664 [11:12:37]NVStorageSaveData ofd_packets/00145664 [11:12:37]File name is /storage/ofd_packets/00145664 [11:12:37]Write 301 bytes [11:12:37]NVStorageSaveData done [11:12:37]OFDSenderStorePacket done [11:12:37]KKMCreateOFDPacket done [11:12:37]NVStorageSaveData kkm_last_timestamp [11:12:37]File name is /storage/kkm_last_timestamp [11:12:37]Write 4 bytes [11:12:37]NVStorageSaveData done [11:12:37]ExternCall_PrintAddStr [11:12:37]wPrintStart [11:12:37]Write to MH i2c: 01 00 00 34 09 3D [11:12:37]Write i2c OK [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: 01 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: 01 07 00 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: 01 07 00 34 09 00 00 00 00 00 FF 0F 52 [11:12:37]RasterBufferAndPrint [11:12:37]line Счет N : (1)160415 [11:12:37]line ИНН: 02508201610067 [11:12:37]line Контрольно-Кассовый Чек [11:12:37]line ПРОДАЖА [11:12:37]line ТРК (МРК, ГНК) : 62 [11:12:37]line Товар: 2710124130 [11:12:37]line Аи-92-К-2 [11:12:37]line 7.480 * 66.90 [11:12:37]line = 500.41 [11:12:37]line НДС 12% НСП 1% [11:12:37]line > о реализуемом товаре [11:12:37]line ОКРУГЛЕНИЕ: -0.41 [11:12:37]line ИТОГО: 500.00 [11:12:37]line Внесено: 500.00 [11:12:37]line СДАЧА: 0.00 [11:12:37]line НСП 1% : 4.43 [11:12:37]line НДС 12% : 53.14 [11:12:37]line Наличными: 500.00 [11:12:37]line Безнал.: 0.00 [11:12:37]line Место: АЗС № 126 "Партнер Нефть" [11:12:37]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:12:37]line СНО: Общий режим [11:12:37]line Чек 87 27.10.2024 11:12 [11:12:37]line Смена: 545 ФФД: 1.0 [11:12:37]line ЗНМ: 0300000085 [11:12:37]line РНМ: 0000000000091683 [11:12:37]line Версия ККМ: 001 [11:12:37]line ФМ: 0000000000871745 [11:12:37]line ФД: 145664 [11:12:37]line ФПД: 27994152660764 [11:12:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111236&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145664&fm=27994152660764&tin=02508201610067®Number=0000000000091683&sum=50000 [11:12:37]OFD Sender: Processing packet 145664 [packets to send 206, broken 205] [11:12:37]ProducePacketName [11:12:37]name=ofd_packets/00145664 [11:12:37]OFD Sender: To server: pG, [11:12:37]CommunicateWithHost lk.salyk.kg:30040 [11:12:37]ConnectInit lk.salyk.kg [11:12:37]written 0, free lines is 4095 [11:12:37]Connected sock=10 [11:12:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C0 2F 07 01 5A 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 24 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 00 39 02 00 35 04 06 00 19 75 E5 86 6F 1C 20 C4 E2 D0 17 3B 9D BF [11:12:37]Write to MH i2c: 01 00 00 5F 09 68 [11:12:37]Write i2c OK [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: 01 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: 01 07 00 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 A8 0C 23 [11:12:37]RasterBufferAndPrint [11:12:37]line [11:12:37]line [11:12:37]line [11:12:37]line [11:12:37]line [11:12:37]written 0, free lines is 3245 [11:12:37]MH_Cut [11:12:37]Write to MH i2c: D1 01 00 66 09 01 41 [11:12:37]Write i2c OK [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: D1 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: D1 01 00 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: D1 01 00 66 09 00 40 [11:12:37]Write to MH i2c: 01 00 00 67 09 70 [11:12:37]Write i2c OK [11:12:37]MH_I2C_Read... [11:12:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 BF 22 47 00 89 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 00 39 02 00 F4 03 04 00 52 C5 1D 67 B6 04 01 00 00 17 4E 40 AC FD CD 50 8F [11:12:37]CommunicateWithHost err = 0 [11:12:37]CheckOFDResponse [11:12:37]1017 (14) - 77093643461234 [11:12:37]1041 (16) - 0000000000871745 [11:12:37]1040 (4) - 145664 [11:12:37]1012 (4) - 27.10.2024 04:45 [11:12:37]1206 (1) - 0 [11:12:37]OFD Sender: Remove packet 145664 [11:12:37]ProducePacketName [11:12:37]name=ofd_packets/00145664 [11:12:37]NVStorageDeleteData [11:12:38]OFD Sender: No OFD packet to send [11:12:38]*** Cut start [11:12:38]*** Partial cut [11:12:38]*** CUTSNS_PIN = 1 [11:12:38]*** CUTSNS_PIN = 0 [11:12:38]*** Brake cut motor [11:12:39]Read from MH i2c: 01 [11:12:39]MH_I2C_Read... [11:12:39]*** Stop cut motor [11:12:39]*** Cut end [11:12:39]Read from MH i2c: 01 07 00 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: 01 07 00 67 09 00 00 00 00 00 FF 0F 85 [11:12:39]process_action close_receipt done [11:12:39]requested_data is exist [11:12:39]produce_requested_data [11:12:39]requested_item fm.sn is exist - process it [11:12:39]wFMCommunicate request_size=4 [11:12:39]MH_SAM_APDU [11:12:39]CAPDU: 80 11 00 00 [11:12:39]Write to MH i2c: E2 08 00 68 09 80 11 00 00 00 00 00 00 EB [11:12:39]Write i2c OK [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 [11:12:39]MH_I2C_Read... [11:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:39]Read from MH i2c: E2 17 00 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 17 00 68 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3E [11:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:12:39]wFMCommunicate OK [11:12:39]requested_item fd.num is exist - process it [11:12:39]SAM_PROTO_GetFieldsCounters [11:12:39]wFMCommunicate request_size=4 [11:12:39]MH_SAM_APDU [11:12:39]CAPDU: 80 13 00 00 [11:12:39]Write to MH i2c: E2 08 00 69 09 80 13 00 00 00 00 00 00 EE [11:12:39]Write i2c OK [11:12:39]MH_I2C_Read... [11:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:39]Read from MH i2c: E2 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 62 00 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 62 00 69 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 00 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [11:12:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 00 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:39]wFMCommunicate OK [11:12:39]SAM_PROTO_GetFieldsCounters done [11:12:39]requested_item shift.num is exist - process it [11:12:39]requested_item shift.opened is exist - process it [11:12:39]req_shift_opened [11:12:39]FM_GetShiftState [11:12:39]SAM_PROTO_GetShiftState [11:12:39]wFMCommunicate request_size=4 [11:12:39]MH_SAM_APDU [11:12:39]CAPDU: 80 13 01 00 [11:12:39]Write to MH i2c: E2 08 00 6A 09 80 13 01 00 00 00 00 00 F0 [11:12:39]Write i2c OK [11:12:39]MH_I2C_Read... [11:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:39]Read from MH i2c: E2 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 0E 00 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 0E 00 6A 09 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 68 [11:12:39]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:12:39]wFMCommunicate OK [11:12:39]SAM_PROTO_GetShiftState done [11:12:39]FM_GetShiftState done [11:12:39]req_shift_opened done [11:12:39]requested_item shift.open_date is exist - process it [11:12:39]req_shift_open_date [11:12:39]req_shift_open_date done [11:12:39]produce_requested_data done [11:12:39]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145664,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:12:39]process_action_free close_receipt [11:12:39]json_value_free [11:12:39]json_value_free done [11:12:39]process_json_proto returns [11:12:39]Send response to host [11:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145664,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:12:39]free response buf [11:12:39]execute_script done [11:12:39]execute_script returns [11:12:39]free content buf [11:12:39]Sock 9.Close socket [11:12:39]Sock 9.Thread stoped [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:24]accept exits with 7 [11:13:24]New connection [11:13:24]New thread 3066596708 created [11:13:24]Thread 3066740068 joined [11:13:24]Waiting for new connection... [11:13:24] Sock 7.Parse request [11:13:24]Sock 7.Check first char [11:13:24]Sock 7.First char is OK [11:13:24]request: POST /json_proto HTTP/1.0 [11:13:24]Method: POST [11:13:24]URL: /json_proto [11:13:24]Method is POST - this is cgi request [11:13:24]url: /json_proto [11:13:24]query_string will be loaded in cgi processing [11:13:24]execute_cgi json_proto POST (null) [11:13:24]execute_cgi path=json_proto method=POST [11:13:24]POST find Content-Length [11:13:24]Host: 172.17.40.195:8080 [11:13:24]Content-Length: 769 [11:13:24]Content-Type: application/json [11:13:24] [11:13:24]POST finish read [11:13:24]Found Content-Length = 769 [11:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 18.950, "sum" : 1267.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1267.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:24]execute_script... [11:13:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 18.950, "sum" : 1267.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1267.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:24]POST & json_proto [11:13:24]process_json_proto [11:13:24]json parsed OK: [11:13:24]protocol is kg_v1.0 [11:13:24]action value=close_receipt [11:13:24]process_action close_receipt [11:13:24]cmd_close_receipt [11:13:24]MH_GetDate [11:13:24]Write to MH i2c: F0 00 00 6B 09 63 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: F0 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: F0 09 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: F0 09 00 6B 09 00 56 20 1E 67 D5 8D 6C 64 99 [11:13:24]GetLastDocTimeStamp 1730027556 [11:13:24]current date 1730027606 [11:13:24]FM_GetShiftState [11:13:24]SAM_PROTO_GetShiftState [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 13 01 00 [11:13:24]Write to MH i2c: E2 08 00 6C 09 80 13 01 00 00 00 00 00 F2 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0E 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0E 00 6C 09 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6A [11:13:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:13:24]wFMCommunicate OK [11:13:24]SAM_PROTO_GetShiftState done [11:13:24]FM_GetShiftState done [11:13:24]opened in 1729988959 [11:13:24]opened+sec_in_day 1730075359 [11:13:24]quantity*price = 126775 [11:13:24]sum+1 = 126777 [11:13:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1267.76 НСП 1% : 11.22 НДС 12% : 134.63 Наличными: 0.00 Безнал.: 1267.76 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 88 27.10.2024 11:13 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145665 ФПД: 95582592685463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111326&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145665&fm=95582592685463&tin=02508201610067®Number=0000000000091683&sum=126776 [11:13:26]StoreToDocumentArchive [11:13:26]shift 545 fd 145665 [11:13:26]save to /storage/0545/doc_00145665 [11:13:26]save last doc name /storage/0545/doc_00145665 to /storage/kkm_last_doc_name [11:13:26]save OK [11:13:26]Clear old archive folders... [11:13:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:26]tlvbuf is 00427FD0 [11:13:26]SAM_PROTO_ClearQueue [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 09 00 00 [11:13:26]Write to MH i2c: E2 08 00 79 09 80 09 00 00 00 00 00 00 F4 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 79 09 00 90 00 F6 [11:13:26]RAPDU: 90 00 [11:13:26]wFMCommunicate OK [11:13:26]SAM_PROTO_ClearQueue done [11:13:26]KKMCreateOFDPacket [11:13:26]OFDProtocolAddRootSTLVToBuf [11:13:26]FM_MakeSignedData [11:13:26]FM_MakeSignedData [11:13:26]SAM_PROTO_SignData [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 0D 01 02 [11:13:26]Write to MH i2c: E2 08 00 7A 09 80 0D 01 02 00 00 00 00 FC [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 7A 09 00 90 00 F7 [11:13:26]RAPDU: 90 00 [11:13:26]wFMCommunicate OK [11:13:26]wFMCommunicate request_size=255 [11:13:26]MH_SAM_APDU [11:13: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 32 FF 03 08 00 03 06 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 34 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 EF 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 56 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 01 39 02 00 35 04 06 00 56 [11:13:26]Write to MH i2c: E2 02 01 7B 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 34 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 EF 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 56 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 01 39 02 00 35 04 06 00 56 00 00 42 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [11:13:26]RAPDU: 90 00 [11:13:26]wFMCommunicate OK [11:13:26]wFMCommunicate request_size=10 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 0D 02 02 05 EE 8E 7B D5 97 [11:13:26]Write to MH i2c: E2 0D 00 7C 09 80 0D 02 02 05 00 EE 8E 7B D5 97 00 00 6C [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [11:13:26]RAPDU: 90 00 [11:13:26]wFMCommunicate OK [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 0D 03 02 [11:13:26]Write to MH i2c: E2 08 00 7D 09 80 0D 03 02 00 00 00 00 01 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0B 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0B 00 7D 09 00 23 D3 E1 03 F4 75 8E 3D 90 00 10 [11:13:26]RAPDU: 23 D3 E1 03 F4 75 8E 3D 90 00 [11:13:26]wFMCommunicate OK [11:13:26]SAM_PROTO_SignData done [11:13:26]FM_MakeSignedData done [11:13:26]CreateOFDProtocolMessage [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 11 00 00 [11:13:26]Write to MH i2c: E2 08 00 7E 09 80 11 00 00 00 00 00 00 01 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 17 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 17 00 7E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 54 [11:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:13:26]wFMCommunicate OK [11:13:26]CreateOFDProtocolMessage done [11:13:26]OFDSenderStorePacket 145665 [11:13:26]StoreOFDPacket docnum=145665 [11:13:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DC 90 07 01 7F 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 34 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 EF 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 56 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 01 39 02 00 35 04 06 00 56 EE 8E 7B D5 97 23 D3 E1 03 F4 75 8E 3D [11:13:26]CheckFolder [11:13:26]dirname=/storage/ofd_packets [11:13:26]CheckFolder done [11:13:26]ProducePacketName [11:13:26]name=ofd_packets/00145665 [11:13:26]NVStorageSaveData ofd_packets/00145665 [11:13:26]File name is /storage/ofd_packets/00145665 [11:13:26]Write 301 bytes [11:13:26]NVStorageSaveData done [11:13:26]OFDSenderStorePacket done [11:13:26]KKMCreateOFDPacket done [11:13:26]NVStorageSaveData kkm_last_timestamp [11:13:26]File name is /storage/kkm_last_timestamp [11:13:26]Write 4 bytes [11:13:26]NVStorageSaveData done [11:13:26]ExternCall_PrintAddStr [11:13:26]wPrintStart [11:13:26]Write to MH i2c: 01 00 00 7F 09 88 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: 01 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: 01 07 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: 01 07 00 7F 09 00 00 00 00 00 FF 0F 9D [11:13:26]RasterBufferAndPrint [11:13:26]line Счет N : (1)160416 [11:13:26]line ИНН: 02508201610067 [11:13:26]line Контрольно-Кассовый Чек [11:13:26]line ПРОДАЖА [11:13:26]line ТРК (МРК, ГНК) : 42 [11:13:26]line Товар: 2710124130 [11:13:26]line Аи-92-К-2 [11:13:26]line 18.950 * 66.90 [11:13:26]line = 1267.76 [11:13:26]line НДС 12% НСП 1% [11:13:26]line > о реализуемом товаре [11:13:26]line ИТОГО: 1267.76 [11:13:26]line НСП 1% : 11.22 [11:13:26]line НДС 12% : 134.63 [11:13:26]line Наличными: 0.00 [11:13:26]line Безнал.: 1267.76 [11:13:26]line Место: АЗС № 126 "Партнер Нефть" [11:13:26]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:13:26]line СНО: Общий режим [11:13:26]line Чек 88 27.10.2024 11:13 [11:13:26]line Смена: 545 ФФД: 1.0 [11:13:26]line ЗНМ: 0300000085 [11:13:26]line РНМ: 0000000000091683 [11:13:26]line Версия ККМ: 001 [11:13:26]line Платежная система: Mbank [11:13:26]line ФМ: 0000000000871745 [11:13:26]line ФД: 145665 [11:13:26]line ФПД: 95582592685463 [11:13:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111326&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145665&fm=95582592685463&tin=02508201610067®Number=0000000000091683&sum=126776 [11:13:26]written 0, free lines is 4095 [11:13:26]OFD Sender: Processing packet 145665 [packets to send 206, broken 205] [11:13:26]ProducePacketName [11:13:26]name=ofd_packets/00145665 [11:13:26]OFD Sender: To server: pG, [11:13:26]CommunicateWithHost lk.salyk.kg:30040 [11:13:26]ConnectInit lk.salyk.kg [11:13:27]Write to MH i2c: 01 00 00 A8 09 B1 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 07 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 07 00 A8 09 00 00 00 00 00 D3 0C 97 [11:13:27]RasterBufferAndPrint [11:13:27]line [11:13:27]line [11:13:27]line [11:13:27]line [11:13:27]line [11:13:27]written 0, free lines is 3287 [11:13:27]MH_Cut [11:13:27]Write to MH i2c: D1 01 00 AF 09 01 8A [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: D1 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: D1 01 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: D1 01 00 AF 09 00 89 [11:13:27]Write to MH i2c: 01 00 00 B0 09 B9 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]Connected sock=10 [11:13:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DC 90 07 01 7F 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 34 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 EF 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 56 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 01 39 02 00 35 04 06 00 56 EE 8E 7B D5 97 23 D3 E1 03 F4 75 8E 3D [11:13:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 B9 A6 47 00 8D 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 01 39 02 00 F4 03 04 00 83 C5 1D 67 B6 04 01 00 00 40 AB 0A 2B 7D 13 F4 23 [11:13:27]CommunicateWithHost err = 0 [11:13:27]CheckOFDResponse [11:13:27]1017 (14) - 77093643461234 [11:13:27]1041 (16) - 0000000000871745 [11:13:27]1040 (4) - 145665 [11:13:27]1012 (4) - 27.10.2024 04:45 [11:13:27]1206 (1) - 0 [11:13:27]OFD Sender: Remove packet 145665 [11:13:27]ProducePacketName [11:13:27]name=ofd_packets/00145665 [11:13:27]NVStorageDeleteData [11:13:27]*** Cut start [11:13:27]*** Partial cut [11:13:27]*** CUTSNS_PIN = 1 [11:13:27]*** CUTSNS_PIN = 0 [11:13:28]OFD Sender: No OFD packet to send [11:13:28]*** Brake cut motor [11:13:28]Read from MH i2c: 01 [11:13:28]MH_I2C_Read... [11:13:28]*** Stop cut motor [11:13:28]*** Cut end [11:13:28]Read from MH i2c: 01 07 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 B0 09 00 00 00 00 00 FF 0F CE [11:13:28]process_action close_receipt done [11:13:28]requested_data is exist [11:13:28]produce_requested_data [11:13:28]requested_item fm.sn is exist - process it [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 11 00 00 [11:13:28]Write to MH i2c: E2 08 00 B1 09 80 11 00 00 00 00 00 00 34 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 17 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 17 00 B1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 87 [11:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:13:28]wFMCommunicate OK [11:13:28]requested_item fd.num is exist - process it [11:13:28]SAM_PROTO_GetFieldsCounters [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 13 00 00 [11:13:28]Write to MH i2c: E2 08 00 B2 09 80 13 00 00 00 00 00 00 37 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 62 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 62 00 B2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 01 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [11:13:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 01 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:28]wFMCommunicate OK [11:13:28]SAM_PROTO_GetFieldsCounters done [11:13:28]requested_item shift.num is exist - process it [11:13:28]requested_item shift.opened is exist - process it [11:13:28]req_shift_opened [11:13:28]FM_GetShiftState [11:13:28]SAM_PROTO_GetShiftState [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 13 01 00 [11:13:28]Write to MH i2c: E2 08 00 B3 09 80 13 01 00 00 00 00 00 39 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0E 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0E 00 B3 09 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B1 [11:13:28]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:13:28]wFMCommunicate OK [11:13:28]SAM_PROTO_GetShiftState done [11:13:28]FM_GetShiftState done [11:13:28]req_shift_opened done [11:13:28]requested_item shift.open_date is exist - process it [11:13:28]req_shift_open_date [11:13:28]req_shift_open_date done [11:13:28]produce_requested_data done [11:13:28]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145665,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:13:28]process_action_free close_receipt [11:13:28]json_value_free [11:13:28]json_value_free done [11:13:28]process_json_proto returns [11:13:28]Send response to host [11:13:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145665,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:13:28]free response buf [11:13:28]execute_script done [11:13:28]execute_script returns [11:13:28]free content buf [11:13:28]Sock 7.Close socket [11:13:28]Sock 7.Thread stoped [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:00]int [11:14:00]Write to MH i2c: 01 00 00 B4 09 BD [11:14:00]*** FLAG_PRN_KEY set [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 B4 09 00 08 00 00 00 FF 0F DA [11:14:00]state=0 [11:14:00]Key pressed [11:14:00]Feed [11:14:00]Write to MH i2c: D8 00 00 B5 09 95 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: D8 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: D8 01 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: D8 01 00 B5 09 00 96 [11:14:00]int [11:14:00]Write to MH i2c: 01 00 00 B6 09 BF [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 B6 09 00 48 00 00 00 3C 00 4A [11:14:00]state=2 [11:14:00]Key pressed [11:14:00]int [11:14:00]Write to MH i2c: 01 00 00 B7 09 C0 [11:14:00]*** FLAG_PRN_KEY reset [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 B7 09 00 00 00 00 00 F6 0F CC [11:14:00]state=2 [11:14:00]Stop feed [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:47]accept exits with 9 [11:14:47]New connection [11:14:47]New thread 3066740068 created [11:14:47]Thread 3066596708 joined [11:14:47]Waiting for new connection... [11:14:47] Sock 9.Parse request [11:14:47]Sock 9.Check first char [11:14:47]Sock 9.First char is OK [11:14:47]request: POST /json_proto HTTP/1.0 [11:14:47]Method: POST [11:14:47]URL: /json_proto [11:14:47]Method is POST - this is cgi request [11:14:47]url: /json_proto [11:14:47]query_string will be loaded in cgi processing [11:14:47]execute_cgi json_proto POST (null) [11:14:47]execute_cgi path=json_proto method=POST [11:14:47]POST find Content-Length [11:14:47]Host: 172.17.40.195:8080 [11:14:47]Content-Length: 769 [11:14:47]Content-Type: application/json [11:14:47] [11:14:47]POST finish read [11:14:47]Found Content-Length = 769 [11:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:47]execute_script... [11: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)160417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:47]POST & json_proto [11:14:47]process_json_proto [11:14:47]json parsed OK: [11:14:47]protocol is kg_v1.0 [11:14:47]action value=close_receipt [11:14:47]process_action close_receipt [11:14:47]cmd_close_receipt [11:14:47]MH_GetDate [11:14:47]Write to MH i2c: F0 00 00 B8 09 B0 [11:14:47]Write i2c OK [11:14:47]MH_I2C_Read... [11:14:47]Read from MH i2c: F0 [11:14:47]MH_I2C_Read... [11:14:47]Read from MH i2c: F0 09 00 [11:14:47]MH_I2C_Read... [11:14:47]Read from MH i2c: F0 09 00 B8 09 00 A8 20 1E 67 D5 8D 6C 64 38 [11:14:47]GetLastDocTimeStamp 1730027606 [11:14:47]current date 1730027688 [11:14:47]FM_GetShiftState [11:14:47]SAM_PROTO_GetShiftState [11:14:47]wFMCommunicate request_size=4 [11:14:47]MH_SAM_APDU [11:14:47]CAPDU: 80 13 01 00 [11:14:47]Write to MH i2c: E2 08 00 B9 09 80 13 01 00 00 00 00 00 3F [11:14:47]Write i2c OK [11:14:47]MH_I2C_Read... [11:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:47]Read from MH i2c: E2 [11:14:47]MH_I2C_Read... [11:14:47]Read from MH i2c: E2 0E 00 [11:14:47]MH_I2C_Read... [11:14:47]Read from MH i2c: E2 0E 00 B9 09 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B7 [11:14:47]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:14:47]wFMCommunicate OK [11:14:47]SAM_PROTO_GetShiftState done [11:14:47]FM_GetShiftState done [11:14:47]opened in 1729988959 [11:14:47]opened+sec_in_day 1730075359 [11:14:47]quantity*price = 100021 [11:14:47]sum+1 = 100023 [11:14:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 89 27.10.2024 11:14 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145666 ФПД: 229545922519693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111448&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145666&fm=229545922519693&tin=02508201610067®Number=0000000000091683&sum=100022 [11:14:48]StoreToDocumentArchive [11:14:48]shift 545 fd 145666 [11:14:48]save to /storage/0545/doc_00145666 [11:14:48]save last doc name /storage/0545/doc_00145666 to /storage/kkm_last_doc_name [11:14:48]save OK [11:14:48]Clear old archive folders... [11:14:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:48]tlvbuf is 00435080 [11:14:48]SAM_PROTO_ClearQueue [11:14:48]wFMCommunicate request_size=4 [11:14:48]MH_SAM_APDU [11:14:48]CAPDU: 80 09 00 00 [11:14:48]Write to MH i2c: E2 08 00 C6 09 80 09 00 00 00 00 00 00 41 [11:14:48]Write i2c OK [11:14:48]MH_I2C_Read... [11:14:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:48]Read from MH i2c: E2 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 03 00 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 03 00 C6 09 00 90 00 43 [11:14:48]RAPDU: 90 00 [11:14:48]wFMCommunicate OK [11:14:48]SAM_PROTO_ClearQueue done [11:14:48]KKMCreateOFDPacket [11:14:48]OFDProtocolAddRootSTLVToBuf [11:14:48]FM_MakeSignedData [11:14:48]FM_MakeSignedData [11:14:48]SAM_PROTO_SignData [11:14:48]wFMCommunicate request_size=4 [11:14:48]MH_SAM_APDU [11:14:48]CAPDU: 80 0D 01 02 [11:14:48]Write to MH i2c: E2 08 00 C7 09 80 0D 01 02 00 00 00 00 49 [11:14:48]Write i2c OK [11:14:48]MH_I2C_Read... [11:14:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:48]Read from MH i2c: E2 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 03 00 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [11:14:48]RAPDU: 90 00 [11:14:48]wFMCommunicate OK [11:14:48]wFMCommunicate request_size=255 [11:14:48]MH_SAM_APDU [11: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 A8 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 02 39 02 00 35 04 06 00 D0 [11:14:48]Write to MH i2c: E2 02 01 C8 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 A8 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 02 39 02 00 35 04 06 00 D0 00 00 F7 [11:14:48]Write i2c OK [11:14:48]MH_I2C_Read... [11:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:48]Read from MH i2c: E2 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 03 00 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 03 00 C8 09 00 90 00 45 [11:14:48]RAPDU: 90 00 [11:14:48]wFMCommunicate OK [11:14:48]wFMCommunicate request_size=10 [11:14:48]MH_SAM_APDU [11:14:48]CAPDU: 80 0D 02 02 05 C5 53 2B E2 8D [11:14:48]Write to MH i2c: E2 0D 00 C9 09 80 0D 02 02 05 00 C5 53 2B E2 8D 00 00 08 [11:14:48]Write i2c OK [11:14:48]MH_I2C_Read... [11:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:48]Read from MH i2c: E2 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 03 00 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 03 00 C9 09 00 90 00 46 [11:14:48]RAPDU: 90 00 [11:14:48]wFMCommunicate OK [11:14:48]wFMCommunicate request_size=4 [11:14:48]MH_SAM_APDU [11:14:48]CAPDU: 80 0D 03 02 [11:14:48]Write to MH i2c: E2 08 00 CA 09 80 0D 03 02 00 00 00 00 4E [11:14:48]Write i2c OK [11:14:48]MH_I2C_Read... [11:14:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:48]Read from MH i2c: E2 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 0B 00 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 0B 00 CA 09 00 36 A4 94 8B 6D 5A C1 E5 90 00 B5 [11:14:48]RAPDU: 36 A4 94 8B 6D 5A C1 E5 90 00 [11:14:48]wFMCommunicate OK [11:14:48]SAM_PROTO_SignData done [11:14:48]FM_MakeSignedData done [11:14:48]CreateOFDProtocolMessage [11:14:48]wFMCommunicate request_size=4 [11:14:48]MH_SAM_APDU [11:14:48]CAPDU: 80 11 00 00 [11:14:48]Write to MH i2c: E2 08 00 CB 09 80 11 00 00 00 00 00 00 4E [11:14:48]Write i2c OK [11:14:48]MH_I2C_Read... [11:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:48]Read from MH i2c: E2 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 17 00 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: E2 17 00 CB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A1 [11:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:14:48]wFMCommunicate OK [11:14:48]CreateOFDProtocolMessage done [11:14:48]OFDSenderStorePacket 145666 [11:14:48]StoreOFDPacket docnum=145666 [11:14:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CB 93 07 01 11 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 A8 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 02 39 02 00 35 04 06 00 D0 C5 53 2B E2 8D 36 A4 94 8B 6D 5A C1 E5 [11:14:48]CheckFolder [11:14:48]dirname=/storage/ofd_packets [11:14:48]CheckFolder done [11:14:48]ProducePacketName [11:14:48]name=ofd_packets/00145666 [11:14:48]NVStorageSaveData ofd_packets/00145666 [11:14:48]File name is /storage/ofd_packets/00145666 [11:14:48]Write 301 bytes [11:14:48]NVStorageSaveData done [11:14:48]OFDSenderStorePacket done [11:14:48]KKMCreateOFDPacket done [11:14:48]NVStorageSaveData kkm_last_timestamp [11:14:48]File name is /storage/kkm_last_timestamp [11:14:48]Write 4 bytes [11:14:48]NVStorageSaveData done [11:14:48]ExternCall_PrintAddStr [11:14:48]wPrintStart [11:14:48]Write to MH i2c: 01 00 00 CC 09 D5 [11:14:48]Write i2c OK [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: 01 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: 01 07 00 [11:14:48]MH_I2C_Read... [11:14:48]Read from MH i2c: 01 07 00 CC 09 00 00 00 00 00 FF 0F EA [11:14:48]RasterBufferAndPrint [11:14:48]line Счет N : (1)160417 [11:14:48]line ИНН: 02508201610067 [11:14:48]line Контрольно-Кассовый Чек [11:14:48]line ПРОДАЖА [11:14:48]line ТРК (МРК, ГНК) : 53 [11:14:48]line Товар: 2710124500 [11:14:48]line Аи-95-К-3 [11:14:48]line 13.480 * 74.20 [11:14:48]line = 1000.22 [11:14:48]line НДС 12% НСП 1% [11:14:48]line > о реализуемом товаре [11:14:48]line ИТОГО: 1000.22 [11:14:48]line НСП 1% : 8.85 [11:14:48]line НДС 12% : 106.22 [11:14:48]line Наличными: 0.00 [11:14:48]line Безнал.: 1000.22 [11:14:48]line Место: АЗС № 126 "Партнер Нефть" [11:14:48]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:14:48]line СНО: Общий режим [11:14:48]line Чек 89 27.10.2024 11:14 [11:14:48]line Смена: 545 ФФД: 1.0 [11:14:48]line ЗНМ: 0300000085 [11:14:48]line РНМ: 0000000000091683 [11:14:48]line Версия ККМ: 001 [11:14:48]line Платежная система: Mbank [11:14:48]line ФМ: 0000000000871745 [11:14:48]line ФД: 145666 [11:14:48]line ФПД: 229545922519693 [11:14:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111448&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145666&fm=229545922519693&tin=02508201610067®Number=0000000000091683&sum=100022 [11:14:48]written 0, free lines is 4095 [11:14:48]OFD Sender: Processing packet 145666 [packets to send 206, broken 205] [11:14:48]ProducePacketName [11:14:48]name=ofd_packets/00145666 [11:14:49]OFD Sender: To server: pG, [11:14:49]CommunicateWithHost lk.salyk.kg:30040 [11:14:49]ConnectInit lk.salyk.kg [11:14:49]Write to MH i2c: 01 00 00 F5 09 FE [11:14:49]Write i2c OK [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: 01 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: 01 07 00 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 DF 0C F0 [11:14:49]RasterBufferAndPrint [11:14:49]line [11:14:49]line [11:14:49]line [11:14:49]line [11:14:49]line [11:14:49]written 0, free lines is 3301 [11:14:49]MH_Cut [11:14:49]Write to MH i2c: D1 01 00 FC 09 01 D7 [11:14:49]Write i2c OK [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: D1 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: D1 01 00 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: D1 01 00 FC 09 00 D6 [11:14:49]Write to MH i2c: 01 00 00 FD 09 06 [11:14:49]Write i2c OK [11:14:49]MH_I2C_Read... [11:14:49]Connected sock=7 [11: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 31 37 34 35 0F 01 00 00 CB 93 07 01 11 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 A8 20 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 02 39 02 00 35 04 06 00 D0 C5 53 2B E2 8D 36 A4 94 8B 6D 5A C1 E5 [11:14:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C7 74 47 00 A2 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 02 39 02 00 F4 03 04 00 D6 C5 1D 67 B6 04 01 00 00 20 21 BB 35 3B 19 CD 05 [11:14:49]CommunicateWithHost err = 0 [11:14:49]CheckOFDResponse [11:14:49]1017 (14) - 77093643461234 [11:14:49]1041 (16) - 0000000000871745 [11:14:49]1040 (4) - 145666 [11:14:49]1012 (4) - 27.10.2024 04:47 [11:14:49]1206 (1) - 0 [11:14:49]OFD Sender: Remove packet 145666 [11:14:49]ProducePacketName [11:14:49]name=ofd_packets/00145666 [11:14:49]NVStorageDeleteData [11:14:50]*** Cut start [11:14:50]*** Partial cut [11:14:50]*** CUTSNS_PIN = 1 [11:14:50]*** CUTSNS_PIN = 0 [11:14:50]OFD Sender: No OFD packet to send [11:14:50]*** Brake cut motor [11:14:50]Read from MH i2c: 01 [11:14:50]MH_I2C_Read... [11:14:50]*** Stop cut motor [11:14:50]*** Cut end [11:14:50]Read from MH i2c: 01 07 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: 01 07 00 FD 09 00 00 00 00 00 FF 0F 1B [11:14:50]process_action close_receipt done [11:14:50]requested_data is exist [11:14:50]produce_requested_data [11:14:50]requested_item fm.sn is exist - process it [11:14:50]wFMCommunicate request_size=4 [11:14:50]MH_SAM_APDU [11:14:50]CAPDU: 80 11 00 00 [11:14:50]Write to MH i2c: E2 08 00 FE 09 80 11 00 00 00 00 00 00 81 [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:50]Read from MH i2c: E2 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: E2 17 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: E2 17 00 FE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D4 [11:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:14:50]wFMCommunicate OK [11:14:50]requested_item fd.num is exist - process it [11:14:50]SAM_PROTO_GetFieldsCounters [11:14:50]wFMCommunicate request_size=4 [11:14:50]MH_SAM_APDU [11:14:50]CAPDU: 80 13 00 00 [11:14:50]Write to MH i2c: E2 08 00 FF 09 80 13 00 00 00 00 00 00 84 [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:50]Read from MH i2c: E2 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: E2 62 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: E2 62 00 FF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 02 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 02 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:51]wFMCommunicate OK [11:14:51]SAM_PROTO_GetFieldsCounters done [11:14:51]requested_item shift.num is exist - process it [11:14:51]requested_item shift.opened is exist - process it [11:14:51]req_shift_opened [11:14:51]FM_GetShiftState [11:14:51]SAM_PROTO_GetShiftState [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 13 01 00 [11:14:51]Write to MH i2c: E2 08 00 00 0A 80 13 01 00 00 00 00 00 87 [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:51]Read from MH i2c: E2 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 0E 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 0E 00 00 0A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FF [11:14:51]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:14:51]wFMCommunicate OK [11:14:51]SAM_PROTO_GetShiftState done [11:14:51]FM_GetShiftState done [11:14:51]req_shift_opened done [11:14:51]requested_item shift.open_date is exist - process it [11:14:51]req_shift_open_date [11:14:51]req_shift_open_date done [11:14:51]produce_requested_data done [11:14:51]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145666,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:14:51]process_action_free close_receipt [11:14:51]json_value_free [11:14:51]json_value_free done [11:14:51]process_json_proto returns [11:14:51]Send response to host [11:14:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145666,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:14:51]free response buf [11:14:51]execute_script done [11:14:51]execute_script returns [11:14:51]free content buf [11:14:51]Sock 9.Close socket [11:14:51]Sock 9.Thread stoped [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:46]accept exits with 10 [11:16:46]New connection [11:16:46]New thread 3066596708 created [11:16:46]Thread 3066740068 joined [11:16:46]Waiting for new connection... [11:16:46] Sock 10.Parse request [11:16:46]Sock 10.Check first char [11:16:46]Sock 10.First char is OK [11:16:46]request: POST /json_proto HTTP/1.0 [11:16:46]Method: POST [11:16:46]URL: /json_proto [11:16:46]Method is POST - this is cgi request [11:16:46]url: /json_proto [11:16:46]query_string will be loaded in cgi processing [11:16:46]execute_cgi json_proto POST (null) [11:16:46]execute_cgi path=json_proto method=POST [11:16:46]POST find Content-Length [11:16:46]Host: 172.17.40.195:8080 [11:16:46]Content-Length: 677 [11:16:46]Content-Type: application/json [11:16:46] [11:16:46]POST finish read [11:16:46]Found Content-Length = 677 [11:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:46]execute_script... [11:16:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:46]POST & json_proto [11:16:46]process_json_proto [11:16:46]json parsed OK: [11:16:46]protocol is kg_v1.0 [11:16:46]action value=close_receipt [11:16:46]process_action close_receipt [11:16:46]cmd_close_receipt [11:16:46]MH_GetDate [11:16:46]Write to MH i2c: F0 00 00 01 0A FA [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 09 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 09 00 01 0A 00 1F 21 1E 67 D5 8D 6C 64 FA [11:16:46]GetLastDocTimeStamp 1730027688 [11:16:46]current date 1730027807 [11:16:46]FM_GetShiftState [11:16:46]SAM_PROTO_GetShiftState [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 13 01 00 [11:16:46]Write to MH i2c: E2 08 00 02 0A 80 13 01 00 00 00 00 00 89 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0E 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0E 00 02 0A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 01 [11:16:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:16:46]wFMCommunicate OK [11:16:46]SAM_PROTO_GetShiftState done [11:16:46]FM_GetShiftState done [11:16:46]opened in 1729988959 [11:16:46]opened+sec_in_day 1730075359 [11:16:46]quantity*price = 50041 [11:16:46]sum+1 = 50042 [11:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 90 27.10.2024 11:16 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145667 ФПД: 225083274459936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111647&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145667&fm=225083274459936&tin=02508201610067®Number=0000000000091683&sum=50000 [11:16:47]StoreToDocumentArchive [11:16:47]shift 545 fd 145667 [11:16:47]save to /storage/0545/doc_00145667 [11:16:47]save last doc name /storage/0545/doc_00145667 to /storage/kkm_last_doc_name [11:16:47]save OK [11:16:47]Clear old archive folders... [11:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:47]tlvbuf is 003E0F80 [11:16:47]SAM_PROTO_ClearQueue [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 09 00 00 [11:16:47]Write to MH i2c: E2 08 00 0F 0A 80 09 00 00 00 00 00 00 8B [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]SAM_PROTO_ClearQueue done [11:16:47]KKMCreateOFDPacket [11:16:47]OFDProtocolAddRootSTLVToBuf [11:16:47]FM_MakeSignedData [11:16:47]FM_MakeSignedData [11:16:47]SAM_PROTO_SignData [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 01 02 [11:16:47]Write to MH i2c: E2 08 00 10 0A 80 0D 01 02 00 00 00 00 93 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 10 0A 00 90 00 8E [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=255 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1F 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 03 39 02 00 35 04 06 00 CC [11:16:47]Write to MH i2c: E2 02 01 11 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1F 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 03 39 02 00 35 04 06 00 CC 00 00 6D [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 11 0A 00 90 00 8F [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=10 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 02 02 05 B6 48 9E 7B 20 [11:16:47]Write to MH i2c: E2 0D 00 12 0A 80 0D 02 02 05 00 B6 48 9E 7B 20 00 00 D7 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 12 0A 00 90 00 90 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 03 02 [11:16:47]Write to MH i2c: E2 08 00 13 0A 80 0D 03 02 00 00 00 00 98 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 0B 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 0B 00 13 0A 00 B4 BB 20 4D 89 CA 4A 78 90 00 8A [11:16:47]RAPDU: B4 BB 20 4D 89 CA 4A 78 90 00 [11:16:47]wFMCommunicate OK [11:16:47]SAM_PROTO_SignData done [11:16:47]FM_MakeSignedData done [11:16:47]CreateOFDProtocolMessage [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 11 00 00 [11:16:47]Write to MH i2c: E2 08 00 14 0A 80 11 00 00 00 00 00 00 98 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 14 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EB [11:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:16:48]wFMCommunicate OK [11:16:48]CreateOFDProtocolMessage done [11:16:48]OFDSenderStorePacket 145667 [11:16:48]StoreOFDPacket docnum=145667 [11:16:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 74 04 07 01 6E 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1F 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 03 39 02 00 35 04 06 00 CC B6 48 9E 7B 20 B4 BB 20 4D 89 CA 4A 78 [11:16:48]CheckFolder [11:16:48]dirname=/storage/ofd_packets [11:16:48]CheckFolder done [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00145667 [11:16:48]NVStorageSaveData ofd_packets/00145667 [11:16:48]File name is /storage/ofd_packets/00145667 [11:16:48]Write 301 bytes [11:16:48]NVStorageSaveData done [11:16:48]OFDSenderStorePacket done [11:16:48]KKMCreateOFDPacket done [11:16:48]NVStorageSaveData kkm_last_timestamp [11:16:48]File name is /storage/kkm_last_timestamp [11:16:48]Write 4 bytes [11:16:48]NVStorageSaveData done [11:16:48]ExternCall_PrintAddStr [11:16:48]wPrintStart [11:16:48]Write to MH i2c: 01 00 00 15 0A 1F [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 15 0A 00 00 00 00 00 FF 0F 34 [11:16:48]RasterBufferAndPrint [11:16:48]line Счет N : (1)160418 [11:16:48]line ИНН: 02508201610067 [11:16:48]line Контрольно-Кассовый Чек [11:16:48]line ПРОДАЖА [11:16:48]line ТРК (МРК, ГНК) : 52 [11:16:48]line Товар: 2710124130 [11:16:48]line Аи-92-К-2 [11:16:48]line 7.480 * 66.90 [11:16:48]line = 500.41 [11:16:48]line НДС 12% НСП 1% [11:16:48]line > о реализуемом товаре [11:16:48]line ОКРУГЛЕНИЕ: -0.41 [11:16:48]line ИТОГО: 500.00 [11:16:48]line Внесено: 500.00 [11:16:48]line СДАЧА: 0.00 [11:16:48]line НСП 1% : 4.43 [11:16:48]line НДС 12% : 53.14 [11:16:48]line Наличными: 500.00 [11:16:48]line Безнал.: 0.00 [11:16:48]line Место: АЗС № 126 "Партнер Нефть" [11:16:48]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:16:48]line СНО: Общий режим [11:16:48]line Чек 90 27.10.2024 11:16 [11:16:48]line Смена: 545 ФФД: 1.0 [11:16:48]line ЗНМ: 0300000085 [11:16:48]line РНМ: 0000000000091683 [11:16:48]line Версия ККМ: 001 [11:16:48]line ФМ: 0000000000871745 [11:16:48]line ФД: 145667 [11:16:48]line ФПД: 225083274459936 [11:16:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111647&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145667&fm=225083274459936&tin=02508201610067®Number=0000000000091683&sum=50000 [11:16:48]written 0, free lines is 4095 [11:16:48]OFD Sender: Processing packet 145667 [packets to send 206, broken 205] [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00145667 [11:16:48]OFD Sender: To server: pG, [11:16:48]CommunicateWithHost lk.salyk.kg:30040 [11:16:48]ConnectInit lk.salyk.kg [11:16:48]Connected sock=9 [11:16:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 74 04 07 01 6E 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1F 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 03 39 02 00 35 04 06 00 CC B6 48 9E 7B 20 B4 BB 20 4D 89 CA 4A 78 [11:16:48]Write to MH i2c: 01 00 00 40 0A 4A [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 40 0A 00 00 00 00 00 A3 0C 00 [11:16:48]RasterBufferAndPrint [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]written 0, free lines is 3241 [11:16:48]MH_Cut [11:16:48]Write to MH i2c: D1 01 00 47 0A 01 23 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 01 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 01 00 47 0A 00 22 [11:16:48]Write to MH i2c: 01 00 00 48 0A 52 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 8B CE 47 00 BB 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 31 37 34 35 10 04 04 00 03 39 02 00 F4 03 04 00 4D C6 1D 67 B6 04 01 00 00 A8 45 0B C0 D9 D5 7A 1F [11:16:48]CommunicateWithHost err = 0 [11:16:48]CheckOFDResponse [11:16:48]1017 (14) - 77093643461234 [11:16:48]1041 (16) - 0000000000871745 [11:16:48]1040 (4) - 145667 [11:16:48]1012 (4) - 27.10.2024 04:49 [11:16:48]1206 (1) - 0 [11:16:48]OFD Sender: Remove packet 145667 [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00145667 [11:16:48]NVStorageDeleteData [11:16:49]OFD Sender: No OFD packet to send [11:16:49]*** Cut start [11:16:49]*** Partial cut [11:16:49]*** CUTSNS_PIN = 1 [11:16:49]*** CUTSNS_PIN = 0 [11:16:49]*** Brake cut motor [11:16:50]Read from MH i2c: 01 [11:16:50]MH_I2C_Read... [11:16:50]*** Stop cut motor [11:16:50]*** Cut end [11:16:50]Read from MH i2c: 01 07 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: 01 07 00 48 0A 00 00 00 00 00 FF 0F 67 [11:16:50]process_action close_receipt done [11:16:50]requested_data is exist [11:16:50]produce_requested_data [11:16:50]requested_item fm.sn is exist - process it [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 11 00 00 [11:16:50]Write to MH i2c: E2 08 00 49 0A 80 11 00 00 00 00 00 00 CD [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 17 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 17 00 49 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 20 [11:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:16:50]wFMCommunicate OK [11:16:50]requested_item fd.num is exist - process it [11:16:50]SAM_PROTO_GetFieldsCounters [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 13 00 00 [11:16:50]Write to MH i2c: E2 08 00 4A 0A 80 13 00 00 00 00 00 00 D0 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 62 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 62 00 4A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 03 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [11:16:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 03 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_GetFieldsCounters done [11:16:50]requested_item shift.num is exist - process it [11:16:50]requested_item shift.opened is exist - process it [11:16:50]req_shift_opened [11:16:50]FM_GetShiftState [11:16:50]SAM_PROTO_GetShiftState [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 13 01 00 [11:16:50]Write to MH i2c: E2 08 00 4B 0A 80 13 01 00 00 00 00 00 D2 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0E 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0E 00 4B 0A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4A [11:16:50]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_GetShiftState done [11:16:50]FM_GetShiftState done [11:16:50]req_shift_opened done [11:16:50]requested_item shift.open_date is exist - process it [11:16:50]req_shift_open_date [11:16:50]req_shift_open_date done [11:16:50]produce_requested_data done [11:16:50]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145667,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:16:50]process_action_free close_receipt [11:16:50]json_value_free [11:16:50]json_value_free done [11:16:50]process_json_proto returns [11:16:50]Send response to host [11:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145667,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:16:50]free response buf [11:16:50]execute_script done [11:16:50]execute_script returns [11:16:50]free content buf [11:16:50]Sock 10.Close socket [11:16:50]Sock 10.Thread stoped [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:34]int [11:17:34]Write to MH i2c: 01 00 00 4C 0A 56 [11:17:34]*** FLAG_PRN_KEY set [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: 01 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: 01 07 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: 01 07 00 4C 0A 00 08 00 00 00 FF 0F 73 [11:17:34]state=0 [11:17:34]Key pressed [11:17:34]Feed [11:17:34]Write to MH i2c: D8 00 00 4D 0A 2E [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: D8 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: D8 01 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: D8 01 00 4D 0A 00 2F [11:17:34]int [11:17:34]Write to MH i2c: 01 00 00 4E 0A 58 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: 01 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: 01 07 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: 01 07 00 4E 0A 00 48 00 00 00 3C 00 E3 [11:17:34]state=2 [11:17:34]Key pressed [11:17:35]int [11:17:35]Write to MH i2c: 01 00 00 4F 0A 59 [11:17:35]*** FLAG_PRN_KEY reset [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 4F 0A 00 00 00 00 00 F6 0F 65 [11:17:35]state=2 [11:17:35]Stop feed [11:17:38]int [11:17:38]Write to MH i2c: 01 00 00 50 0A 5A [11:17:38]*** FLAG_PRN_KEY set [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 50 0A 00 08 00 00 00 FF 0F 77 [11:17:38]state=0 [11:17:38]Key pressed [11:17:38]Feed [11:17:38]Write to MH i2c: D8 00 00 51 0A 32 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: D8 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: D8 01 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: D8 01 00 51 0A 00 33 [11:17:38]int [11:17:38]Write to MH i2c: 01 00 00 52 0A 5C [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 52 0A 00 48 00 00 00 3D 00 E8 [11:17:38]state=2 [11:17:38]Key pressed [11:17:38]int [11:17:38]Write to MH i2c: 01 00 00 53 0A 5D [11:17:38]*** FLAG_PRN_KEY reset [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 53 0A 00 00 00 00 00 F6 0F 69 [11:17:38]state=2 [11:17:38]Stop feed [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:15]accept exits with 7 [11:18:15]New connection [11:18:15]New thread 3066740068 created [11:18:15]Thread 3066596708 joined [11:18:15]Waiting for new connection... [11:18:15] Sock 7.Parse request [11:18:15]Sock 7.Check first char [11:18:15]Sock 7.First char is OK [11:18:15]request: POST /json_proto HTTP/1.0 [11:18:15]Method: POST [11:18:15]URL: /json_proto [11:18:15]Method is POST - this is cgi request [11:18:15]url: /json_proto [11:18:15]query_string will be loaded in cgi processing [11:18:15]execute_cgi json_proto POST (null) [11:18:15]execute_cgi path=json_proto method=POST [11:18:15]POST find Content-Length [11:18:15]Host: 172.17.40.195:8080 [11:18:15]Content-Length: 679 [11:18:15]Content-Type: application/json [11:18:15] [11:18:15]POST finish read [11:18:15]Found Content-Length = 679 [11:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:15]execute_script... [11:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:15]POST & json_proto [11:18:15]process_json_proto [11:18:15]json parsed OK: [11:18:15]protocol is kg_v1.0 [11:18:15]action value=close_receipt [11:18:15]process_action close_receipt [11:18:15]cmd_close_receipt [11:18:15]MH_GetDate [11:18:15]Write to MH i2c: F0 00 00 54 0A 4D [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: F0 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: F0 09 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: F0 09 00 54 0A 00 78 21 1E 67 D5 8D 6C 64 A6 [11:18:15]GetLastDocTimeStamp 1730027807 [11:18:15]current date 1730027896 [11:18:15]FM_GetShiftState [11:18:15]SAM_PROTO_GetShiftState [11:18:15]wFMCommunicate request_size=4 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 13 01 00 [11:18:15]Write to MH i2c: E2 08 00 55 0A 80 13 01 00 00 00 00 00 DC [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 0E 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 0E 00 55 0A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 54 [11:18:15]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:18:15]wFMCommunicate OK [11:18:15]SAM_PROTO_GetShiftState done [11:18:15]FM_GetShiftState done [11:18:15]opened in 1729988959 [11:18:15]opened+sec_in_day 1730075359 [11:18:15]quantity*price = 120015 [11:18:15]sum+1 = 120016 [11:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 91 27.10.2024 11:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145668 ФПД: 204339051340430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111817&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145668&fm=204339051340430&tin=02508201610067®Number=0000000000091683&sum=120000 [11:18:16]StoreToDocumentArchive [11:18:16]shift 545 fd 145668 [11:18:16]save to /storage/0545/doc_00145668 [11:18:16]save last doc name /storage/0545/doc_00145668 to /storage/kkm_last_doc_name [11:18:17]save OK [11:18:17]Clear old archive folders... [11:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:18:17]tlvbuf is 004225E0 [11:18:17]SAM_PROTO_ClearQueue [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 09 00 00 [11:18:17]Write to MH i2c: E2 08 00 62 0A 80 09 00 00 00 00 00 00 DE [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 62 0A 00 90 00 E0 [11:18:17]RAPDU: 90 00 [11:18:17]wFMCommunicate OK [11:18:17]SAM_PROTO_ClearQueue done [11:18:17]KKMCreateOFDPacket [11:18:17]OFDProtocolAddRootSTLVToBuf [11:18:17]FM_MakeSignedData [11:18:17]FM_MakeSignedData [11:18:17]SAM_PROTO_SignData [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 0D 01 02 [11:18:17]Write to MH i2c: E2 08 00 63 0A 80 0D 01 02 00 00 00 00 E6 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 63 0A 00 90 00 E1 [11:18:17]RAPDU: 90 00 [11:18:17]wFMCommunicate OK [11:18:17]wFMCommunicate request_size=255 [11:18:17]MH_SAM_APDU [11:18: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 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 79 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 04 39 02 00 35 04 06 00 B9 D8 64 91 [11:18:17]Write to MH i2c: E2 02 01 64 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 79 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 04 39 02 00 35 04 06 00 B9 D8 64 91 00 00 3A [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 64 0A 00 90 00 E2 [11:18:17]RAPDU: 90 00 [11:18:17]wFMCommunicate OK [11:18:17]wFMCommunicate request_size=7 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 0D 02 02 02 A2 8E [11:18:17]Write to MH i2c: E2 0A 00 65 0A 80 0D 02 02 02 00 A2 8E 00 00 1D [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [11:18:17]RAPDU: 90 00 [11:18:17]wFMCommunicate OK [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 0D 03 02 [11:18:17]Write to MH i2c: E2 08 00 66 0A 80 0D 03 02 00 00 00 00 EB [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 0B 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 0B 00 66 0A 00 67 74 E3 C7 92 98 95 CF 90 00 FF [11:18:17]RAPDU: 67 74 E3 C7 92 98 95 CF 90 00 [11:18:17]wFMCommunicate OK [11:18:17]SAM_PROTO_SignData done [11:18:17]FM_MakeSignedData done [11:18:17]CreateOFDProtocolMessage [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 11 00 00 [11:18:17]Write to MH i2c: E2 08 00 67 0A 80 11 00 00 00 00 00 00 EB [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 17 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 17 00 67 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3E [11:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:18:17]wFMCommunicate OK [11:18:17]CreateOFDProtocolMessage done [11:18:17]OFDSenderStorePacket 145668 [11:18:17]StoreOFDPacket docnum=145668 [11:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 08 CA 04 01 01 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 79 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 04 39 02 00 35 04 06 00 B9 D8 64 91 A2 8E 67 74 E3 C7 92 98 95 CF [11:18:17]CheckFolder [11:18:17]dirname=/storage/ofd_packets [11:18:17]CheckFolder done [11:18:17]ProducePacketName [11:18:17]name=ofd_packets/00145668 [11:18:17]NVStorageSaveData ofd_packets/00145668 [11:18:17]File name is /storage/ofd_packets/00145668 [11:18:17]Write 298 bytes [11:18:17]NVStorageSaveData done [11:18:17]OFDSenderStorePacket done [11:18:17]KKMCreateOFDPacket done [11:18:17]NVStorageSaveData kkm_last_timestamp [11:18:17]File name is /storage/kkm_last_timestamp [11:18:17]Write 4 bytes [11:18:17]NVStorageSaveData done [11:18:17]ExternCall_PrintAddStr [11:18:17]wPrintStart [11:18:17]Write to MH i2c: 01 00 00 68 0A 72 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: 01 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: 01 07 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: 01 07 00 68 0A 00 00 00 00 00 FF 0F 87 [11:18:17]RasterBufferAndPrint [11:18:17]line Счет N : (1)160420 [11:18:17]line ИНН: 02508201610067 [11:18:17]line Контрольно-Кассовый Чек [11:18:17]line ПРОДАЖА [11:18:17]line ТРК (МРК, ГНК) : 21 [11:18:17]line Товар: 2710194210 [11:18:17]line ДТ-К-2 [11:18:17]line 15.750 * 76.20 [11:18:17]line = 1200.15 [11:18:17]line НДС 12% НСП 1% [11:18:17]line > о реализуемом товаре [11:18:17]line ОКРУГЛЕНИЕ: -0.15 [11:18:17]line ИТОГО: 1200.00 [11:18:17]line Внесено: 1200.00 [11:18:17]line СДАЧА: 0.00 [11:18:17]line НСП 1% : 10.62 [11:18:17]line НДС 12% : 127.45 [11:18:17]line Наличными: 1200.00 [11:18:17]line Безнал.: 0.00 [11:18:17]line Место: АЗС № 126 "Партнер Нефть" [11:18:17]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:18:17]line СНО: Общий режим [11:18:17]line Чек 91 27.10.2024 11:18 [11:18:17]line Смена: 545 ФФД: 1.0 [11:18:17]line ЗНМ: 0300000085 [11:18:17]line РНМ: 0000000000091683 [11:18:17]line Версия ККМ: 001 [11:18:17]line ФМ: 0000000000871745 [11:18:17]line ФД: 145668 [11:18:17]line ФПД: 204339051340430 [11:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111817&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145668&fm=204339051340430&tin=02508201610067®Number=0000000000091683&sum=120000 [11:18:17]OFD Sender: Processing packet 145668 [packets to send 206, broken 205] [11:18:17]ProducePacketName [11:18:17]name=ofd_packets/00145668 [11:18:17]OFD Sender: To server: pG, [11:18:17]CommunicateWithHost lk.salyk.kg:30040 [11:18:17]ConnectInit lk.salyk.kg [11:18:17]written 0, free lines is 4095 [11:18:18]Connected sock=10 [11:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 08 CA 04 01 01 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 79 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 04 39 02 00 35 04 06 00 B9 D8 64 91 A2 8E 67 74 E3 C7 92 98 95 CF [11:18:18]Write to MH i2c: 01 00 00 93 0A 9D [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 07 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 07 00 93 0A 00 00 00 00 00 AB 0C 5B [11:18:18]RasterBufferAndPrint [11:18:18]line [11:18:18]line [11:18:18]line [11:18:18]line [11:18:18]line [11:18:18]written 0, free lines is 3250 [11:18:18]MH_Cut [11:18:18]Write to MH i2c: D1 01 00 9A 0A 01 76 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: D1 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: D1 01 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: D1 01 00 9A 0A 00 75 [11:18:18]Write to MH i2c: 01 00 00 9B 0A A5 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 89 55 47 00 BD 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 04 39 02 00 F4 03 04 00 A6 C6 1D 67 B6 04 01 00 00 D5 AE 63 51 93 31 1C EC [11:18:18]CommunicateWithHost err = 0 [11:18:18]CheckOFDResponse [11:18:18]1017 (14) - 77093643461234 [11:18:18]1041 (16) - 0000000000871745 [11:18:18]1040 (4) - 145668 [11:18:18]1012 (4) - 27.10.2024 04:50 [11:18:18]1206 (1) - 0 [11:18:18]OFD Sender: Remove packet 145668 [11:18:18]ProducePacketName [11:18:18]name=ofd_packets/00145668 [11:18:18]NVStorageDeleteData [11:18:18]OFD Sender: No OFD packet to send [11:18:19]*** Cut start [11:18:19]*** Partial cut [11:18:19]*** CUTSNS_PIN = 1 [11:18:19]*** CUTSNS_PIN = 0 [11:18:19]*** Brake cut motor [11:18:19]Read from MH i2c: 01 [11:18:19]MH_I2C_Read... [11:18:19]*** Stop cut motor [11:18:19]*** Cut end [11:18:19]Read from MH i2c: 01 07 00 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: 01 07 00 9B 0A 00 00 00 00 00 FF 0F BA [11:18:19]process_action close_receipt done [11:18:19]requested_data is exist [11:18:19]produce_requested_data [11:18:19]requested_item fm.sn is exist - process it [11:18:19]wFMCommunicate request_size=4 [11:18:19]MH_SAM_APDU [11:18:19]CAPDU: 80 11 00 00 [11:18:19]Write to MH i2c: E2 08 00 9C 0A 80 11 00 00 00 00 00 00 20 [11:18:19]Write i2c OK [11:18:19]MH_I2C_Read... [11:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:19]Read from MH i2c: E2 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 17 00 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 17 00 9C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 73 [11:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:18:19]wFMCommunicate OK [11:18:19]requested_item fd.num is exist - process it [11:18:19]SAM_PROTO_GetFieldsCounters [11:18:19]wFMCommunicate request_size=4 [11:18:19]MH_SAM_APDU [11:18:19]CAPDU: 80 13 00 00 [11:18:19]Write to MH i2c: E2 08 00 9D 0A 80 13 00 00 00 00 00 00 23 [11:18:19]Write i2c OK [11:18:19]MH_I2C_Read... [11:18:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:19]Read from MH i2c: E2 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 62 00 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 62 00 9D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 04 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [11:18:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 04 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:19]wFMCommunicate OK [11:18:19]SAM_PROTO_GetFieldsCounters done [11:18:19]requested_item shift.num is exist - process it [11:18:19]requested_item shift.opened is exist - process it [11:18:19]req_shift_opened [11:18:19]FM_GetShiftState [11:18:19]SAM_PROTO_GetShiftState [11:18:19]wFMCommunicate request_size=4 [11:18:19]MH_SAM_APDU [11:18:19]CAPDU: 80 13 01 00 [11:18:19]Write to MH i2c: E2 08 00 9E 0A 80 13 01 00 00 00 00 00 25 [11:18:19]Write i2c OK [11:18:19]MH_I2C_Read... [11:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:19]Read from MH i2c: E2 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 0E 00 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: E2 0E 00 9E 0A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9D [11:18:19]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:18:19]wFMCommunicate OK [11:18:19]SAM_PROTO_GetShiftState done [11:18:19]FM_GetShiftState done [11:18:19]req_shift_opened done [11:18:19]requested_item shift.open_date is exist - process it [11:18:19]req_shift_open_date [11:18:19]req_shift_open_date done [11:18:19]produce_requested_data done [11:18:19]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145668,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:18:19]process_action_free close_receipt [11:18:19]json_value_free [11:18:19]json_value_free done [11:18:19]process_json_proto returns [11:18:19]Send response to host [11:18:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145668,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:18:19]free response buf [11:18:19]execute_script done [11:18:19]execute_script returns [11:18:19]free content buf [11:18:19]Sock 7.Close socket [11:18:19]Sock 7.Thread stoped [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]accept exits with 9 [11:18:48]New connection [11:18:48]New thread 3066596708 created [11:18:48]Thread 3066740068 joined [11:18:48]Waiting for new connection... [11:18:48] Sock 9.Parse request [11:18:48]Sock 9.Check first char [11:18:48]Sock 9.First char is OK [11:18:48]request: POST /json_proto HTTP/1.0 [11:18:48]Method: POST [11:18:48]URL: /json_proto [11:18:48]Method is POST - this is cgi request [11:18:48]url: /json_proto [11:18:48]query_string will be loaded in cgi processing [11:18:48]execute_cgi json_proto POST (null) [11:18:48]execute_cgi path=json_proto method=POST [11:18:48]POST find Content-Length [11:18:48]Host: 172.17.40.195:8080 [11:18:48]Content-Length: 677 [11:18:48]Content-Type: application/json [11:18:48] [11:18:48]POST finish read [11:18:48]Found Content-Length = 677 [11:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:48]execute_script... [11: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)160421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:48]POST & json_proto [11:18:48]process_json_proto [11:18:48]json parsed OK: [11:18:48]protocol is kg_v1.0 [11:18:48]action value=close_receipt [11:18:48]process_action close_receipt [11:18:48]cmd_close_receipt [11:18:48]MH_GetDate [11:18:48]Write to MH i2c: F0 00 00 9F 0A 98 [11:18:48]Write i2c OK [11:18:48]MH_I2C_Read... [11:18:48]Read from MH i2c: F0 [11:18:48]MH_I2C_Read... [11:18:48]Read from MH i2c: F0 09 00 [11:18:48]MH_I2C_Read... [11:18:48]Read from MH i2c: F0 09 00 9F 0A 00 99 21 1E 67 D5 8D 6C 64 12 [11:18:48]GetLastDocTimeStamp 1730027897 [11:18:48]current date 1730027929 [11:18:48]FM_GetShiftState [11:18:48]SAM_PROTO_GetShiftState [11:18:48]wFMCommunicate request_size=4 [11:18:48]MH_SAM_APDU [11:18:48]CAPDU: 80 13 01 00 [11:18:48]Write to MH i2c: E2 08 00 A0 0A 80 13 01 00 00 00 00 00 27 [11:18:48]Write i2c OK [11:18:48]MH_I2C_Read... [11:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:48]Read from MH i2c: E2 [11:18:48]MH_I2C_Read... [11:18:48]Read from MH i2c: E2 0E 00 [11:18:48]MH_I2C_Read... [11:18:48]Read from MH i2c: E2 0E 00 A0 0A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9F [11:18:48]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:18:48]wFMCommunicate OK [11:18:48]SAM_PROTO_GetShiftState done [11:18:48]FM_GetShiftState done [11:18:48]opened in 1729988959 [11:18:48]opened+sec_in_day 1730075359 [11:18:48]quantity*price = 50041 [11:18:48]sum+1 = 50042 [11:18:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 92 27.10.2024 11:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145669 ФПД: 243604515897105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111849&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145669&fm=243604515897105&tin=02508201610067®Number=0000000000091683&sum=50000 [11:18:49]StoreToDocumentArchive [11:18:49]shift 545 fd 145669 [11:18:49]save to /storage/0545/doc_00145669 [11:18:49]save last doc name /storage/0545/doc_00145669 to /storage/kkm_last_doc_name [11:18:49]save OK [11:18:49]Clear old archive folders... [11:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:49]tlvbuf is 0045F350 [11:18:49]SAM_PROTO_ClearQueue [11:18:49]wFMCommunicate request_size=4 [11:18:49]MH_SAM_APDU [11:18:49]CAPDU: 80 09 00 00 [11:18:49]Write to MH i2c: E2 08 00 AD 0A 80 09 00 00 00 00 00 00 29 [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:49]Read from MH i2c: E2 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 03 00 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 03 00 AD 0A 00 90 00 2B [11:18:49]RAPDU: 90 00 [11:18:49]wFMCommunicate OK [11:18:49]SAM_PROTO_ClearQueue done [11:18:49]KKMCreateOFDPacket [11:18:49]OFDProtocolAddRootSTLVToBuf [11:18:49]FM_MakeSignedData [11:18:49]FM_MakeSignedData [11:18:49]SAM_PROTO_SignData [11:18:49]wFMCommunicate request_size=4 [11:18:49]MH_SAM_APDU [11:18:49]CAPDU: 80 0D 01 02 [11:18:49]Write to MH i2c: E2 08 00 AE 0A 80 0D 01 02 00 00 00 00 31 [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:49]Read from MH i2c: E2 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 03 00 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 03 00 AE 0A 00 90 00 2C [11:18:49]RAPDU: 90 00 [11:18:49]wFMCommunicate OK [11:18:49]wFMCommunicate request_size=255 [11:18:49]MH_SAM_APDU [11: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 99 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 05 39 02 00 35 04 06 00 DD [11:18:49]Write to MH i2c: E2 02 01 AF 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 99 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 05 39 02 00 35 04 06 00 DD 00 00 9A [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:50]Read from MH i2c: E2 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 03 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 03 00 AF 0A 00 90 00 2D [11:18:50]RAPDU: 90 00 [11:18:50]wFMCommunicate OK [11:18:50]wFMCommunicate request_size=10 [11:18:50]MH_SAM_APDU [11:18:50]CAPDU: 80 0D 02 02 05 8E 98 A2 BF 11 [11:18:50]Write to MH i2c: E2 0D 00 B0 0A 80 0D 02 02 05 00 8E 98 A2 BF 11 00 00 D6 [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:50]Read from MH i2c: E2 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 03 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [11:18:50]RAPDU: 90 00 [11:18:50]wFMCommunicate OK [11:18:50]wFMCommunicate request_size=4 [11:18:50]MH_SAM_APDU [11:18:50]CAPDU: 80 0D 03 02 [11:18:50]Write to MH i2c: E2 08 00 B1 0A 80 0D 03 02 00 00 00 00 36 [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:50]Read from MH i2c: E2 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 0B 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 0B 00 B1 0A 00 34 D2 3C EC 85 68 66 1A 90 00 D2 [11:18:50]RAPDU: 34 D2 3C EC 85 68 66 1A 90 00 [11:18:50]wFMCommunicate OK [11:18:50]SAM_PROTO_SignData done [11:18:50]FM_MakeSignedData done [11:18:50]CreateOFDProtocolMessage [11:18:50]wFMCommunicate request_size=4 [11:18:50]MH_SAM_APDU [11:18:50]CAPDU: 80 11 00 00 [11:18:50]Write to MH i2c: E2 08 00 B2 0A 80 11 00 00 00 00 00 00 36 [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:50]Read from MH i2c: E2 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 17 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 17 00 B2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 89 [11:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:18:50]wFMCommunicate OK [11:18:50]CreateOFDProtocolMessage done [11:18:50]OFDSenderStorePacket 145669 [11:18:50]StoreOFDPacket docnum=145669 [11:18:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 74 7C 07 01 0E 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 99 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 05 39 02 00 35 04 06 00 DD 8E 98 A2 BF 11 34 D2 3C EC 85 68 66 1A [11:18:50]CheckFolder [11:18:50]dirname=/storage/ofd_packets [11:18:50]CheckFolder done [11:18:50]ProducePacketName [11:18:50]name=ofd_packets/00145669 [11:18:50]NVStorageSaveData ofd_packets/00145669 [11:18:50]File name is /storage/ofd_packets/00145669 [11:18:50]Write 301 bytes [11:18:50]NVStorageSaveData done [11:18:50]OFDSenderStorePacket done [11:18:50]KKMCreateOFDPacket done [11:18:50]NVStorageSaveData kkm_last_timestamp [11:18:50]File name is /storage/kkm_last_timestamp [11:18:50]Write 4 bytes [11:18:50]NVStorageSaveData done [11:18:50]ExternCall_PrintAddStr [11:18:50]wPrintStart [11:18:50]Write to MH i2c: 01 00 00 B3 0A BD [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: 01 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: 01 07 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: 01 07 00 B3 0A 00 00 00 00 00 FF 0F D2 [11:18:50]RasterBufferAndPrint [11:18:50]line Счет N : (1)160421 [11:18:50]line ИНН: 02508201610067 [11:18:50]line Контрольно-Кассовый Чек [11:18:50]line ПРОДАЖА [11:18:50]line ТРК (МРК, ГНК) : 32 [11:18:50]line Товар: 2710124130 [11:18:50]line Аи-92-К-2 [11:18:50]line 7.480 * 66.90 [11:18:50]line = 500.41 [11:18:50]line НДС 12% НСП 1% [11:18:50]line > о реализуемом товаре [11:18:50]line ОКРУГЛЕНИЕ: -0.41 [11:18:50]line ИТОГО: 500.00 [11:18:50]line Внесено: 500.00 [11:18:50]line СДАЧА: 0.00 [11:18:50]line НСП 1% : 4.43 [11:18:50]line НДС 12% : 53.14 [11:18:50]line Наличными: 500.00 [11:18:50]line Безнал.: 0.00 [11:18:50]line Место: АЗС № 126 "Партнер Нефть" [11:18:50]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:18:50]line СНО: Общий режим [11:18:50]line Чек 92 27.10.2024 11:18 [11:18:50]line Смена: 545 ФФД: 1.0 [11:18:50]line ЗНМ: 0300000085 [11:18:50]line РНМ: 0000000000091683 [11:18:50]line Версия ККМ: 001 [11:18:50]line ФМ: 0000000000871745 [11:18:50]line ФД: 145669 [11:18:50]line ФПД: 243604515897105 [11:18:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111849&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145669&fm=243604515897105&tin=02508201610067®Number=0000000000091683&sum=50000 [11:18:50]written 0, free lines is 4095 [11:18:50]OFD Sender: Processing packet 145669 [packets to send 206, broken 205] [11:18:50]ProducePacketName [11:18:50]name=ofd_packets/00145669 [11:18:50]OFD Sender: To server: pG, [11:18:50]CommunicateWithHost lk.salyk.kg:30040 [11:18:50]ConnectInit lk.salyk.kg [11:18:50]Connected sock=10 [11: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 31 37 34 35 0F 01 00 00 74 7C 07 01 0E 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 99 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 05 39 02 00 35 04 06 00 DD 8E 98 A2 BF 11 34 D2 3C EC 85 68 66 1A [11:18:51]Write to MH i2c: 01 00 00 DE 0A E8 [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: 01 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: 01 07 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: 01 07 00 DE 0A 00 00 00 00 00 AF 0C AA [11:18:51]RasterBufferAndPrint [11:18:51]line [11:18:51]line [11:18:51]line [11:18:51]line [11:18:51]line [11:18:51]written 0, free lines is 3255 [11:18:51]MH_Cut [11:18:51]Write to MH i2c: D1 01 00 E5 0A 01 C1 [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: D1 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: D1 01 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: D1 01 00 E5 0A 00 C0 [11:18:51]Write to MH i2c: 01 00 00 E6 0A F0 [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C7 6C 47 00 B7 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 31 37 34 35 10 04 04 00 05 39 02 00 F4 03 04 00 C7 C6 1D 67 B6 04 01 00 00 50 56 18 E2 54 56 FB 9E [11:18:51]CommunicateWithHost err = 0 [11:18:51]CheckOFDResponse [11:18:51]1017 (14) - 77093643461234 [11:18:51]1041 (16) - 0000000000871745 [11:18:51]1040 (4) - 145669 [11:18:51]1012 (4) - 27.10.2024 04:51 [11:18:51]1206 (1) - 0 [11:18:51]OFD Sender: Remove packet 145669 [11:18:51]ProducePacketName [11:18:51]name=ofd_packets/00145669 [11:18:51]NVStorageDeleteData [11:18:51]OFD Sender: No OFD packet to send [11:18:51]*** Cut start [11:18:51]*** Partial cut [11:18:51]*** CUTSNS_PIN = 1 [11:18:51]*** CUTSNS_PIN = 0 [11:18:52]*** Brake cut motor [11:18:52]Read from MH i2c: 01 [11:18:52]MH_I2C_Read... [11:18:52]*** Stop cut motor [11:18:52]*** Cut end [11:18:52]Read from MH i2c: 01 07 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: 01 07 00 E6 0A 00 00 00 00 00 FF 0F 05 [11:18:52]process_action close_receipt done [11:18:52]requested_data is exist [11:18:52]produce_requested_data [11:18:52]requested_item fm.sn is exist - process it [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 11 00 00 [11:18:52]Write to MH i2c: E2 08 00 E7 0A 80 11 00 00 00 00 00 00 6B [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 17 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 17 00 E7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BE [11:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:18:52]wFMCommunicate OK [11:18:52]requested_item fd.num is exist - process it [11:18:52]SAM_PROTO_GetFieldsCounters [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 13 00 00 [11:18:52]Write to MH i2c: E2 08 00 E8 0A 80 13 00 00 00 00 00 00 6E [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 62 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 62 00 E8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 05 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [11: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 05 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:52]wFMCommunicate OK [11:18:52]SAM_PROTO_GetFieldsCounters done [11:18:52]requested_item shift.num is exist - process it [11:18:52]requested_item shift.opened is exist - process it [11:18:52]req_shift_opened [11:18:52]FM_GetShiftState [11:18:52]SAM_PROTO_GetShiftState [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 13 01 00 [11:18:52]Write to MH i2c: E2 08 00 E9 0A 80 13 01 00 00 00 00 00 70 [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:52]Read from MH i2c: E2 0E 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 0E 00 E9 0A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E8 [11:18:52]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:18:52]wFMCommunicate OK [11:18:52]SAM_PROTO_GetShiftState done [11:18:52]FM_GetShiftState done [11:18:52]req_shift_opened done [11:18:52]requested_item shift.open_date is exist - process it [11:18:52]req_shift_open_date [11:18:52]req_shift_open_date done [11:18:52]produce_requested_data done [11:18:52]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145669,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:18:52]process_action_free close_receipt [11:18:52]json_value_free [11:18:52]json_value_free done [11:18:52]process_json_proto returns [11:18:52]Send response to host [11:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145669,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:18:52]free response buf [11:18:52]execute_script done [11:18:52]execute_script returns [11:18:52]free content buf [11:18:52]Sock 9.Close socket [11:18:52]Sock 9.Thread stoped [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:27]accept exits with 7 [11:20:27]New connection [11:20:27]New thread 3066740068 created [11:20:27]Thread 3066596708 joined [11:20:27]Waiting for new connection... [11:20:27] Sock 7.Parse request [11:20:27]Sock 7.Check first char [11:20:27]Sock 7.First char is OK [11:20:27]request: POST /json_proto HTTP/1.0 [11:20:27]Method: POST [11:20:27]URL: /json_proto [11:20:27]Method is POST - this is cgi request [11:20:27]url: /json_proto [11:20:27]query_string will be loaded in cgi processing [11:20:27]execute_cgi json_proto POST (null) [11:20:27]execute_cgi path=json_proto method=POST [11:20:27]POST find Content-Length [11:20:27]Host: 172.17.40.195:8080 [11:20:27]Content-Length: 767 [11:20:27]Content-Type: application/json [11:20:27] [11:20:27]POST finish read [11:20:27]Found Content-Length = 767 [11:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:27]execute_script... [11:20: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)160419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:27]POST & json_proto [11:20:27]process_json_proto [11:20:27]json parsed OK: [11:20:27]protocol is kg_v1.0 [11:20:27]action value=close_receipt [11:20:27]process_action close_receipt [11:20:27]cmd_close_receipt [11:20:27]MH_GetDate [11:20:27]Write to MH i2c: F0 00 00 EA 0A E3 [11:20:27]Write i2c OK [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: F0 [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: F0 09 00 [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: F0 09 00 EA 0A 00 FD 21 1E 67 D5 8D 6C 64 C1 [11:20:27]GetLastDocTimeStamp 1730027929 [11:20:27]current date 1730028029 [11:20:27]FM_GetShiftState [11:20:27]SAM_PROTO_GetShiftState [11:20:27]wFMCommunicate request_size=4 [11:20:27]MH_SAM_APDU [11:20:27]CAPDU: 80 13 01 00 [11:20:27]Write to MH i2c: E2 08 00 EB 0A 80 13 01 00 00 00 00 00 72 [11:20:27]Write i2c OK [11:20:27]MH_I2C_Read... [11:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:27]Read from MH i2c: E2 [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: E2 0E 00 [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: E2 0E 00 EB 0A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EA [11:20:27]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:20:27]wFMCommunicate OK [11:20:27]SAM_PROTO_GetShiftState done [11:20:27]FM_GetShiftState done [11:20:27]opened in 1729988959 [11:20:27]opened+sec_in_day 1730075359 [11:20:27]quantity*price = 800023 [11:20:27]sum+1 = 800025 [11:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8000.24 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 0.00 Безнал.: 8000.24 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 93 27.10.2024 11:20 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145670 ФПД: 232589028913704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112029&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145670&fm=232589028913704&tin=02508201610067®Number=0000000000091683&sum=800024 [11:20:29]StoreToDocumentArchive [11:20:29]shift 545 fd 145670 [11:20:29]save to /storage/0545/doc_00145670 [11:20:29]save last doc name /storage/0545/doc_00145670 to /storage/kkm_last_doc_name [11:20:29]save OK [11:20:29]Clear old archive folders... [11:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:20:29]tlvbuf is 003FDBE0 [11:20:29]SAM_PROTO_ClearQueue [11:20:29]wFMCommunicate request_size=4 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 09 00 00 [11:20:29]Write to MH i2c: E2 08 00 F8 0A 80 09 00 00 00 00 00 00 74 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 F8 0A 00 90 00 76 [11:20:29]RAPDU: 90 00 [11:20:29]wFMCommunicate OK [11:20:29]SAM_PROTO_ClearQueue done [11:20:29]KKMCreateOFDPacket [11:20:29]OFDProtocolAddRootSTLVToBuf [11:20:29]FM_MakeSignedData [11:20:29]FM_MakeSignedData [11:20:29]SAM_PROTO_SignData [11:20:29]wFMCommunicate request_size=4 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 0D 01 02 [11:20:29]Write to MH i2c: E2 08 00 F9 0A 80 0D 01 02 00 00 00 00 7C [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 F9 0A 00 90 00 77 [11:20:29]RAPDU: 90 00 [11:20:29]wFMCommunicate OK [11:20:29]wFMCommunicate request_size=255 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 FD 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 06 39 02 00 35 04 06 00 D3 89 DA 72 [11:20:29]Write to MH i2c: E2 02 01 FA 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 FD 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 06 39 02 00 35 04 06 00 D3 89 DA 72 00 00 76 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [11:20:29]RAPDU: 90 00 [11:20:29]wFMCommunicate OK [11:20:29]wFMCommunicate request_size=7 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 0D 02 02 02 72 28 [11:20:29]Write to MH i2c: E2 0A 00 FB 0A 80 0D 02 02 02 00 72 28 00 00 1D [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [11:20:29]RAPDU: 90 00 [11:20:29]wFMCommunicate OK [11:20:29]wFMCommunicate request_size=4 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 0D 03 02 [11:20:29]Write to MH i2c: E2 08 00 FC 0A 80 0D 03 02 00 00 00 00 81 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 0B 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 0B 00 FC 0A 00 D9 A6 D8 15 F6 EF 16 B0 90 00 99 [11:20:29]RAPDU: D9 A6 D8 15 F6 EF 16 B0 90 00 [11:20:29]wFMCommunicate OK [11:20:29]SAM_PROTO_SignData done [11:20:29]FM_MakeSignedData done [11:20:29]CreateOFDProtocolMessage [11:20:29]wFMCommunicate request_size=4 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 11 00 00 [11:20:29]Write to MH i2c: E2 08 00 FD 0A 80 11 00 00 00 00 00 00 81 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 17 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 17 00 FD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D4 [11:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:20:29]wFMCommunicate OK [11:20:29]CreateOFDProtocolMessage done [11:20:29]OFDSenderStorePacket 145670 [11:20:29]StoreOFDPacket docnum=145670 [11:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 10 00 04 01 7E 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 FD 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 06 39 02 00 35 04 06 00 D3 89 DA 72 72 28 D9 A6 D8 15 F6 EF 16 B0 [11:20:29]CheckFolder [11:20:29]dirname=/storage/ofd_packets [11:20:29]CheckFolder done [11:20:29]ProducePacketName [11:20:29]name=ofd_packets/00145670 [11:20:29]NVStorageSaveData ofd_packets/00145670 [11:20:29]File name is /storage/ofd_packets/00145670 [11:20:29]Write 298 bytes [11:20:29]NVStorageSaveData done [11:20:29]OFDSenderStorePacket done [11:20:29]KKMCreateOFDPacket done [11:20:29]NVStorageSaveData kkm_last_timestamp [11:20:29]File name is /storage/kkm_last_timestamp [11:20:29]Write 4 bytes [11:20:29]NVStorageSaveData done [11:20:29]ExternCall_PrintAddStr [11:20:29]wPrintStart [11:20:29]Write to MH i2c: 01 00 00 FE 0A 08 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 07 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 07 00 FE 0A 00 00 00 00 00 FF 0F 1D [11:20:29]RasterBufferAndPrint [11:20:29]line Счет N : (1)160419 [11:20:29]line ИНН: 02508201610067 [11:20:29]line Контрольно-Кассовый Чек [11:20:29]line ПРОДАЖА [11:20:29]line ТРК (МРК, ГНК) : 11 [11:20:29]line Товар: 2710194210 [11:20:29]line ДТ-К-2 [11:20:29]line 104.990 * 76.20 [11:20:29]line = 8000.24 [11:20:29]line НДС 12% НСП 1% [11:20:29]line > о реализуемом товаре [11:20:29]line ИТОГО: 8000.24 [11:20:29]line НСП 1% : 70.80 [11:20:29]line НДС 12% : 849.58 [11:20:29]line Наличными: 0.00 [11:20:29]line Безнал.: 8000.24 [11:20:29]line Место: АЗС № 126 "Партнер Нефть" [11:20:29]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:20:29]line СНО: Общий режим [11:20:29]line Чек 93 27.10.2024 11:20 [11:20:29]line Смена: 545 ФФД: 1.0 [11:20:29]line ЗНМ: 0300000085 [11:20:29]line РНМ: 0000000000091683 [11:20:29]line Версия ККМ: 001 [11:20:29]line Платежная система: Mbank [11:20:29]line ФМ: 0000000000871745 [11:20:29]line ФД: 145670 [11:20:29]line ФПД: 232589028913704 [11:20:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112029&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145670&fm=232589028913704&tin=02508201610067®Number=0000000000091683&sum=800024 [11:20:29]OFD Sender: Processing packet 145670 [packets to send 206, broken 205] [11:20:29]ProducePacketName [11:20:29]name=ofd_packets/00145670 [11:20:29]OFD Sender: To server: pG, [11:20:29]CommunicateWithHost lk.salyk.kg:30040 [11:20:29]ConnectInit lk.salyk.kg [11:20:29]written 0, free lines is 4095 [11:20:30]Connected sock=10 [11:20:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 10 00 04 01 7E 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 FD 21 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 06 39 02 00 35 04 06 00 D3 89 DA 72 72 28 D9 A6 D8 15 F6 EF 16 B0 [11:20:30]Write to MH i2c: 01 00 00 27 0B 32 [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 07 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 07 00 27 0B 00 00 00 00 00 D5 0C 1A [11:20:30]RasterBufferAndPrint [11:20:30]line [11:20:30]line [11:20:30]line [11:20:30]line [11:20:30]line [11:20:30]written 0, free lines is 3292 [11:20:30]MH_Cut [11:20:30]Write to MH i2c: D1 01 00 2E 0B 01 0B [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: D1 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: D1 01 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: D1 01 00 2E 0B 00 0A [11:20:30]Write to MH i2c: 01 00 00 2F 0B 3A [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E8 D3 47 00 88 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 06 39 02 00 F4 03 04 00 2A C7 1D 67 B6 04 01 00 00 00 2C 54 00 49 24 15 E9 [11:20:30]CommunicateWithHost err = 0 [11:20:30]CheckOFDResponse [11:20:30]1017 (14) - 77093643461234 [11:20:30]1041 (16) - 0000000000871745 [11:20:30]1040 (4) - 145670 [11:20:30]1012 (4) - 27.10.2024 04:52 [11:20:30]1206 (1) - 0 [11:20:30]OFD Sender: Remove packet 145670 [11:20:30]ProducePacketName [11:20:30]name=ofd_packets/00145670 [11:20:30]NVStorageDeleteData [11:20:30]OFD Sender: No OFD packet to send [11:20:31]*** Cut start [11:20:31]*** Partial cut [11:20:31]*** CUTSNS_PIN = 1 [11:20:31]*** CUTSNS_PIN = 0 [11:20:31]*** Brake cut motor [11:20:31]Read from MH i2c: 01 [11:20:31]MH_I2C_Read... [11:20:31]*** Stop cut motor [11:20:31]*** Cut end [11:20:31]Read from MH i2c: 01 07 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: 01 07 00 2F 0B 00 00 00 00 00 FF 0F 4F [11:20:31]process_action close_receipt done [11:20:31]requested_data is exist [11:20:31]produce_requested_data [11:20:31]requested_item fm.sn is exist - process it [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 11 00 00 [11:20:31]Write to MH i2c: E2 08 00 30 0B 80 11 00 00 00 00 00 00 B5 [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:31]Read from MH i2c: E2 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 17 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 17 00 30 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 08 [11:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:20:31]wFMCommunicate OK [11:20:31]requested_item fd.num is exist - process it [11:20:31]SAM_PROTO_GetFieldsCounters [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 13 00 00 [11:20:31]Write to MH i2c: E2 08 00 31 0B 80 13 00 00 00 00 00 00 B8 [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:31]Read from MH i2c: E2 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 62 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 62 00 31 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 06 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [11:20:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 06 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:31]wFMCommunicate OK [11:20:31]SAM_PROTO_GetFieldsCounters done [11:20:31]requested_item shift.num is exist - process it [11:20:31]requested_item shift.opened is exist - process it [11:20:31]req_shift_opened [11:20:31]FM_GetShiftState [11:20:31]SAM_PROTO_GetShiftState [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 13 01 00 [11:20:31]Write to MH i2c: E2 08 00 32 0B 80 13 01 00 00 00 00 00 BA [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:32]Read from MH i2c: E2 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: E2 0E 00 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: E2 0E 00 32 0B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 32 [11:20:32]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:20:32]wFMCommunicate OK [11:20:32]SAM_PROTO_GetShiftState done [11:20:32]FM_GetShiftState done [11:20:32]req_shift_opened done [11:20:32]requested_item shift.open_date is exist - process it [11:20:32]req_shift_open_date [11:20:32]req_shift_open_date done [11:20:32]produce_requested_data done [11:20:32]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145670,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:20:32]process_action_free close_receipt [11:20:32]json_value_free [11:20:32]json_value_free done [11:20:32]process_json_proto returns [11:20:32]Send response to host [11:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145670,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:20:32]free response buf [11:20:32]execute_script done [11:20:32]execute_script returns [11:20:32]free content buf [11:20:32]Sock 7.Close socket [11:20:32]Sock 7.Thread stoped [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:54]accept exits with 9 [11:24:54]New connection [11:24:54]New thread 3066596708 created [11:24:54]Thread 3066740068 joined [11:24:54]Waiting for new connection... [11:24:54] Sock 9.Parse request [11:24:54]Sock 9.Check first char [11:24:54]Sock 9.First char is OK [11:24:54]request: POST /json_proto HTTP/1.0 [11:24:54]Method: POST [11:24:54]URL: /json_proto [11:24:54]Method is POST - this is cgi request [11:24:54]url: /json_proto [11:24:54]query_string will be loaded in cgi processing [11:24:54]execute_cgi json_proto POST (null) [11:24:54]execute_cgi path=json_proto method=POST [11:24:54]POST find Content-Length [11:24:54]Host: 172.17.40.195:8080 [11:24:54]Content-Length: 682 [11:24:54]Content-Type: application/json [11:24:54] [11:24:54]POST finish read [11:24:54]Found Content-Length = 682 [11:24:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:54]execute_script... [11:24: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)160422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:54]POST & json_proto [11:24:54]process_json_proto [11:24:54]json parsed OK: [11:24:54]protocol is kg_v1.0 [11:24:54]action value=close_receipt [11:24:54]process_action close_receipt [11:24:54]cmd_close_receipt [11:24:54]MH_GetDate [11:24:54]Write to MH i2c: F0 00 00 33 0B 2D [11:24:54]Write i2c OK [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: F0 [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: F0 09 00 [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: F0 09 00 33 0B 00 07 23 1E 67 D5 8D 6C 64 17 [11:24:54]GetLastDocTimeStamp 1730028029 [11:24:54]current date 1730028295 [11:24:54]FM_GetShiftState [11:24:54]SAM_PROTO_GetShiftState [11:24:54]wFMCommunicate request_size=4 [11:24:54]MH_SAM_APDU [11:24:54]CAPDU: 80 13 01 00 [11:24:54]Write to MH i2c: E2 08 00 34 0B 80 13 01 00 00 00 00 00 BC [11:24:54]Write i2c OK [11:24:54]MH_I2C_Read... [11:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:54]Read from MH i2c: E2 [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: E2 0E 00 [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: E2 0E 00 34 0B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 34 [11:24:54]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:24:54]wFMCommunicate OK [11:24:54]SAM_PROTO_GetShiftState done [11:24:54]FM_GetShiftState done [11:24:54]opened in 1729988959 [11:24:54]opened+sec_in_day 1730075359 [11:24:54]quantity*price = 100015 [11:24:54]sum+1 = 100017 [11:24:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 94 27.10.2024 11:24 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145671 ФПД: 27390164325302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112455&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145671&fm=27390164325302&tin=02508201610067®Number=0000000000091683&sum=100000 [11:24:55]StoreToDocumentArchive [11:24:55]shift 545 fd 145671 [11:24:55]save to /storage/0545/doc_00145671 [11:24:55]save last doc name /storage/0545/doc_00145671 to /storage/kkm_last_doc_name [11:24:55]save OK [11:24:55]Clear old archive folders... [11:24:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:55]tlvbuf is 0045F930 [11:24:55]SAM_PROTO_ClearQueue [11:24:55]wFMCommunicate request_size=4 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 09 00 00 [11:24:55]Write to MH i2c: E2 08 00 41 0B 80 09 00 00 00 00 00 00 BE [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 41 0B 00 90 00 C0 [11:24:55]RAPDU: 90 00 [11:24:55]wFMCommunicate OK [11:24:55]SAM_PROTO_ClearQueue done [11:24:55]KKMCreateOFDPacket [11:24:55]OFDProtocolAddRootSTLVToBuf [11:24:55]FM_MakeSignedData [11:24:55]FM_MakeSignedData [11:24:55]SAM_PROTO_SignData [11:24:55]wFMCommunicate request_size=4 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 0D 01 02 [11:24:55]Write to MH i2c: E2 08 00 42 0B 80 0D 01 02 00 00 00 00 C6 [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 42 0B 00 90 00 C1 [11:24:55]RAPDU: 90 00 [11:24:55]wFMCommunicate OK [11:24:55]wFMCommunicate request_size=255 [11:24:55]MH_SAM_APDU [11:24: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 07 23 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 07 39 02 00 35 04 06 00 18 [11:24:55]Write to MH i2c: E2 02 01 43 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 07 23 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 07 39 02 00 35 04 06 00 18 00 00 D8 [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 03 00 43 0B 00 90 00 C2 [11:24:55]RAPDU: 90 00 [11:24:55]wFMCommunicate OK [11:24:55]wFMCommunicate request_size=10 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 0D 02 02 05 E9 45 03 D3 B6 [11:24:55]Write to MH i2c: E2 0D 00 44 0B 80 0D 02 02 05 00 E9 45 03 D3 B6 00 00 8D [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:56]Read from MH i2c: E2 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 03 00 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [11:24:56]RAPDU: 90 00 [11:24:56]wFMCommunicate OK [11:24:56]wFMCommunicate request_size=4 [11:24:56]MH_SAM_APDU [11:24:56]CAPDU: 80 0D 03 02 [11:24:56]Write to MH i2c: E2 08 00 45 0B 80 0D 03 02 00 00 00 00 CB [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:56]Read from MH i2c: E2 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 0B 00 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 0B 00 45 0B 00 6B 05 A8 93 77 8B 53 A4 90 00 70 [11:24:56]RAPDU: 6B 05 A8 93 77 8B 53 A4 90 00 [11:24:56]wFMCommunicate OK [11:24:56]SAM_PROTO_SignData done [11:24:56]FM_MakeSignedData done [11:24:56]CreateOFDProtocolMessage [11:24:56]wFMCommunicate request_size=4 [11:24:56]MH_SAM_APDU [11:24:56]CAPDU: 80 11 00 00 [11:24:56]Write to MH i2c: E2 08 00 46 0B 80 11 00 00 00 00 00 00 CB [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:56]Read from MH i2c: E2 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 17 00 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 17 00 46 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1E [11:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:24:56]wFMCommunicate OK [11:24:56]CreateOFDProtocolMessage done [11:24:56]OFDSenderStorePacket 145671 [11:24:56]StoreOFDPacket docnum=145671 [11:24:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C3 94 07 01 6D F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 07 23 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 07 39 02 00 35 04 06 00 18 E9 45 03 D3 B6 6B 05 A8 93 77 8B 53 A4 [11:24:56]CheckFolder [11:24:56]dirname=/storage/ofd_packets [11:24:56]CheckFolder done [11:24:56]ProducePacketName [11:24:56]name=ofd_packets/00145671 [11:24:56]NVStorageSaveData ofd_packets/00145671 [11:24:56]File name is /storage/ofd_packets/00145671 [11:24:56]Write 301 bytes [11:24:56]NVStorageSaveData done [11:24:56]OFDSenderStorePacket done [11:24:56]KKMCreateOFDPacket done [11:24:56]NVStorageSaveData kkm_last_timestamp [11:24:56]File name is /storage/kkm_last_timestamp [11:24:56]Write 4 bytes [11:24:56]NVStorageSaveData done [11:24:56]ExternCall_PrintAddStr [11:24:56]wPrintStart [11:24:56]Write to MH i2c: 01 00 00 47 0B 52 [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: 01 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: 01 07 00 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: 01 07 00 47 0B 00 00 00 00 00 FF 0F 67 [11:24:56]RasterBufferAndPrint [11:24:56]line Счет N : (1)160422 [11:24:56]line ИНН: 02508201610067 [11:24:56]line Контрольно-Кассовый Чек [11:24:56]line ПРОДАЖА [11:24:56]line ТРК (МРК, ГНК) : 42 [11:24:56]line Товар: 2710124130 [11:24:56]line Аи-92-К-2 [11:24:56]line 14.950 * 66.90 [11:24:56]line = 1000.16 [11:24:56]line НДС 12% НСП 1% [11:24:56]line > о реализуемом товаре [11:24:56]line ОКРУГЛЕНИЕ: -0.16 [11:24:56]line ИТОГО: 1000.00 [11:24:56]line Внесено: 1000.00 [11:24:56]line СДАЧА: 0.00 [11:24:56]line НСП 1% : 8.85 [11:24:56]line НДС 12% : 106.21 [11:24:56]line Наличными: 1000.00 [11:24:56]line Безнал.: 0.00 [11:24:56]line Место: АЗС № 126 "Партнер Нефть" [11:24:56]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:24:56]line СНО: Общий режим [11:24:56]line Чек 94 27.10.2024 11:24 [11:24:56]line Смена: 545 ФФД: 1.0 [11:24:56]line ЗНМ: 0300000085 [11:24:56]line РНМ: 0000000000091683 [11:24:56]line Версия ККМ: 001 [11:24:56]line ФМ: 0000000000871745 [11:24:56]line ФД: 145671 [11:24:56]line ФПД: 27390164325302 [11:24:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112455&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145671&fm=27390164325302&tin=02508201610067®Number=0000000000091683&sum=100000 [11:24:56]written 0, free lines is 4095 [11:24:56]OFD Sender: Processing packet 145671 [packets to send 206, broken 205] [11:24:56]ProducePacketName [11:24:56]name=ofd_packets/00145671 [11:24:56]OFD Sender: To server: pG, [11:24:56]CommunicateWithHost lk.salyk.kg:30040 [11:24:56]ConnectInit lk.salyk.kg [11:24:56]Connected sock=7 [11:24:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C3 94 07 01 6D F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 07 23 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 07 39 02 00 35 04 06 00 18 E9 45 03 D3 B6 6B 05 A8 93 77 8B 53 A4 [11:24:56]Write to MH i2c: 01 00 00 72 0B 7D [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: 01 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: 01 07 00 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: 01 07 00 72 0B 00 00 00 00 00 AF 0C 3F [11:24:56]RasterBufferAndPrint [11:24:56]line [11:24:56]line [11:24:56]line [11:24:56]line [11:24:56]line [11:24:56]written 0, free lines is 3253 [11:24:56]MH_Cut [11:24:56]Write to MH i2c: D1 01 00 79 0B 01 56 [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: D1 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: D1 01 00 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: D1 01 00 79 0B 00 55 [11:24:56]Write to MH i2c: 01 00 00 7A 0B 85 [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D4 F7 47 00 25 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 07 39 02 00 F4 03 04 00 35 C8 1D 67 B6 04 01 00 00 DA 97 9E 38 6C A3 48 E4 [11:24:57]CommunicateWithHost err = 0 [11:24:57]CheckOFDResponse [11:24:57]1017 (14) - 77093643461234 [11:24:57]1041 (16) - 0000000000871745 [11:24:57]1040 (4) - 145671 [11:24:57]1012 (4) - 27.10.2024 04:57 [11:24:57]1206 (1) - 0 [11:24:57]OFD Sender: Remove packet 145671 [11:24:57]ProducePacketName [11:24:57]name=ofd_packets/00145671 [11:24:57]NVStorageDeleteData [11:24:57]OFD Sender: No OFD packet to send [11:24:57]*** Cut start [11:24:57]*** Partial cut [11:24:57]*** CUTSNS_PIN = 1 [11:24:57]*** CUTSNS_PIN = 0 [11:24:57]*** Brake cut motor [11:24:58]Read from MH i2c: 01 [11:24:58]MH_I2C_Read... [11:24:58]*** Stop cut motor [11:24:58]*** Cut end [11:24:58]Read from MH i2c: 01 07 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 FF 0F 9A [11:24:58]process_action close_receipt done [11:24:58]requested_data is exist [11:24:58]produce_requested_data [11:24:58]requested_item fm.sn is exist - process it [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 11 00 00 [11:24:58]Write to MH i2c: E2 08 00 7B 0B 80 11 00 00 00 00 00 00 00 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 17 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 17 00 7B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 53 [11:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:24:58]wFMCommunicate OK [11:24:58]requested_item fd.num is exist - process it [11:24:58]SAM_PROTO_GetFieldsCounters [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 13 00 00 [11:24:58]Write to MH i2c: E2 08 00 7C 0B 80 13 00 00 00 00 00 00 03 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 62 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 62 00 7C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 07 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [11:24:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 07 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:58]wFMCommunicate OK [11:24:58]SAM_PROTO_GetFieldsCounters done [11:24:58]requested_item shift.num is exist - process it [11:24:58]requested_item shift.opened is exist - process it [11:24:58]req_shift_opened [11:24:58]FM_GetShiftState [11:24:58]SAM_PROTO_GetShiftState [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 13 01 00 [11:24:58]Write to MH i2c: E2 08 00 7D 0B 80 13 01 00 00 00 00 00 05 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 0E 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 0E 00 7D 0B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7D [11:24:58]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:24:58]wFMCommunicate OK [11:24:58]SAM_PROTO_GetShiftState done [11:24:58]FM_GetShiftState done [11:24:58]req_shift_opened done [11:24:58]requested_item shift.open_date is exist - process it [11:24:58]req_shift_open_date [11:24:58]req_shift_open_date done [11:24:58]produce_requested_data done [11:24:58]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145671,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:24:58]process_action_free close_receipt [11:24:58]json_value_free [11:24:58]json_value_free done [11:24:58]process_json_proto returns [11:24:58]Send response to host [11:24:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145671,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:24:58]free response buf [11:24:58]execute_script done [11:24:58]execute_script returns [11:24:58]free content buf [11:24:58]Sock 9.Close socket [11:24:58]Sock 9.Thread stoped [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:10]accept exits with 10 [11:31:10]New connection [11:31:10]New thread 3066740068 created [11:31:10]Thread 3066596708 joined [11:31:10]Waiting for new connection... [11:31:10] Sock 10.Parse request [11:31:10]Sock 10.Check first char [11:31:10]Sock 10.First char is OK [11:31:10]request: POST /json_proto HTTP/1.0 [11:31:10]Method: POST [11:31:10]URL: /json_proto [11:31:10]Method is POST - this is cgi request [11:31:10]url: /json_proto [11:31:10]query_string will be loaded in cgi processing [11:31:10]execute_cgi json_proto POST (null) [11:31:10]execute_cgi path=json_proto method=POST [11:31:10]POST find Content-Length [11:31:10]Host: 172.17.40.195:8080 [11:31:10]Content-Length: 677 [11:31:10]Content-Type: application/json [11:31:10] [11:31:10]POST finish read [11:31:10]Found Content-Length = 677 [11:31:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:10]execute_script... [11:31: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)160423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:10]POST & json_proto [11:31:10]process_json_proto [11:31:10]json parsed OK: [11:31:10]protocol is kg_v1.0 [11:31:10]action value=close_receipt [11:31:10]process_action close_receipt [11:31:10]cmd_close_receipt [11:31:10]MH_GetDate [11:31:10]Write to MH i2c: F0 00 00 7E 0B 78 [11:31:10]Write i2c OK [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: F0 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: F0 09 00 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: F0 09 00 7E 0B 00 7F 24 1E 67 D5 8D 6C 64 DB [11:31:10]GetLastDocTimeStamp 1730028295 [11:31:10]current date 1730028671 [11:31:10]FM_GetShiftState [11:31:10]SAM_PROTO_GetShiftState [11:31:10]wFMCommunicate request_size=4 [11:31:10]MH_SAM_APDU [11:31:10]CAPDU: 80 13 01 00 [11:31:10]Write to MH i2c: E2 08 00 7F 0B 80 13 01 00 00 00 00 00 07 [11:31:10]Write i2c OK [11:31:10]MH_I2C_Read... [11:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:10]Read from MH i2c: E2 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 0E 00 [11:31:10]MH_I2C_Read... [11:31:10]Read from MH i2c: E2 0E 00 7F 0B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7F [11:31:10]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:31:10]wFMCommunicate OK [11:31:10]SAM_PROTO_GetShiftState done [11:31:10]FM_GetShiftState done [11:31:10]opened in 1729988959 [11:31:10]opened+sec_in_day 1730075359 [11:31:10]quantity*price = 50010 [11:31:10]sum+1 = 50012 [11:31:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 95 27.10.2024 11:31 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145672 ФПД: 32809630809925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113111&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145672&fm=32809630809925&tin=02508201610067®Number=0000000000091683&sum=50000 [11:31:11]StoreToDocumentArchive [11:31:11]shift 545 fd 145672 [11:31:11]save to /storage/0545/doc_00145672 [11:31:11]save last doc name /storage/0545/doc_00145672 to /storage/kkm_last_doc_name [11:31:11]save OK [11:31:11]Clear old archive folders... [11:31:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:11]tlvbuf is 0040AB50 [11:31:11]SAM_PROTO_ClearQueue [11:31:11]wFMCommunicate request_size=4 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 09 00 00 [11:31:11]Write to MH i2c: E2 08 00 8C 0B 80 09 00 00 00 00 00 00 09 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 8C 0B 00 90 00 0B [11:31:11]RAPDU: 90 00 [11:31:11]wFMCommunicate OK [11:31:11]SAM_PROTO_ClearQueue done [11:31:11]KKMCreateOFDPacket [11:31:11]OFDProtocolAddRootSTLVToBuf [11:31:11]FM_MakeSignedData [11:31:11]FM_MakeSignedData [11:31:11]SAM_PROTO_SignData [11:31:11]wFMCommunicate request_size=4 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 0D 01 02 [11:31:11]Write to MH i2c: E2 08 00 8D 0B 80 0D 01 02 00 00 00 00 11 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 8D 0B 00 90 00 0C [11:31:11]RAPDU: 90 00 [11:31:11]wFMCommunicate OK [11:31:11]wFMCommunicate request_size=255 [11:31:11]MH_SAM_APDU [11:31: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F 00 00 00 F4 03 04 00 7F 24 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 08 39 02 00 35 04 06 00 1D [11:31:11]Write to MH i2c: E2 02 01 8E 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F 00 00 00 F4 03 04 00 7F 24 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 08 39 02 00 35 04 06 00 1D 00 00 82 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:12]Read from MH i2c: E2 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [11:31:12]RAPDU: 90 00 [11:31:12]wFMCommunicate OK [11:31:12]wFMCommunicate request_size=10 [11:31:12]MH_SAM_APDU [11:31:12]CAPDU: 80 0D 02 02 05 D7 16 63 BF 45 [11:31:12]Write to MH i2c: E2 0D 00 8F 0B 80 0D 02 02 05 00 D7 16 63 BF 45 00 00 72 [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:12]Read from MH i2c: E2 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [11:31:12]RAPDU: 90 00 [11:31:12]wFMCommunicate OK [11:31:12]wFMCommunicate request_size=4 [11:31:12]MH_SAM_APDU [11:31:12]CAPDU: 80 0D 03 02 [11:31:12]Write to MH i2c: E2 08 00 90 0B 80 0D 03 02 00 00 00 00 16 [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:12]Read from MH i2c: E2 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 0B 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 0B 00 90 0B 00 20 1B C6 7A 06 0D 66 D9 90 00 E4 [11:31:12]RAPDU: 20 1B C6 7A 06 0D 66 D9 90 00 [11:31:12]wFMCommunicate OK [11:31:12]SAM_PROTO_SignData done [11:31:12]FM_MakeSignedData done [11:31:12]CreateOFDProtocolMessage [11:31:12]wFMCommunicate request_size=4 [11:31:12]MH_SAM_APDU [11:31:12]CAPDU: 80 11 00 00 [11:31:12]Write to MH i2c: E2 08 00 91 0B 80 11 00 00 00 00 00 00 16 [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:12]Read from MH i2c: E2 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 17 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 17 00 91 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 69 [11:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:31:12]wFMCommunicate OK [11:31:12]CreateOFDProtocolMessage done [11:31:12]OFDSenderStorePacket 145672 [11:31:12]StoreOFDPacket docnum=145672 [11:31:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C9 5B 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F 00 00 00 F4 03 04 00 7F 24 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 08 39 02 00 35 04 06 00 1D D7 16 63 BF 45 20 1B C6 7A 06 0D 66 D9 [11:31:12]CheckFolder [11:31:12]dirname=/storage/ofd_packets [11:31:12]CheckFolder done [11:31:12]ProducePacketName [11:31:12]name=ofd_packets/00145672 [11:31:12]NVStorageSaveData ofd_packets/00145672 [11:31:12]File name is /storage/ofd_packets/00145672 [11:31:12]Write 301 bytes [11:31:12]NVStorageSaveData done [11:31:12]OFDSenderStorePacket done [11:31:12]KKMCreateOFDPacket done [11:31:12]NVStorageSaveData kkm_last_timestamp [11:31:12]File name is /storage/kkm_last_timestamp [11:31:12]Write 4 bytes [11:31:12]NVStorageSaveData done [11:31:12]ExternCall_PrintAddStr [11:31:12]wPrintStart [11:31:12]Write to MH i2c: 01 00 00 92 0B 9D [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 07 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 07 00 92 0B 00 00 00 00 00 FF 0F B2 [11:31:12]RasterBufferAndPrint [11:31:12]line Счет N : (1)160423 [11:31:12]line ИНН: 02508201610067 [11:31:12]line Контрольно-Кассовый Чек [11:31:12]line ПРОДАЖА [11:31:12]line ТРК (МРК, ГНК) : 33 [11:31:12]line Товар: 2710124500 [11:31:12]line Аи-95-К-3 [11:31:12]line 6.740 * 74.20 [11:31:12]line = 500.11 [11:31:12]line НДС 12% НСП 1% [11:31:12]line > о реализуемом товаре [11:31:12]line ОКРУГЛЕНИЕ: -0.11 [11:31:12]line ИТОГО: 500.00 [11:31:12]line Внесено: 500.00 [11:31:12]line СДАЧА: 0.00 [11:31:12]line НСП 1% : 4.43 [11:31:12]line НДС 12% : 53.11 [11:31:12]line Наличными: 500.00 [11:31:12]line Безнал.: 0.00 [11:31:12]line Место: АЗС № 126 "Партнер Нефть" [11:31:12]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:31:12]line СНО: Общий режим [11:31:12]line Чек 95 27.10.2024 11:31 [11:31:12]line Смена: 545 ФФД: 1.0 [11:31:12]line ЗНМ: 0300000085 [11:31:12]line РНМ: 0000000000091683 [11:31:12]line Версия ККМ: 001 [11:31:12]line ФМ: 0000000000871745 [11:31:12]line ФД: 145672 [11:31:12]line ФПД: 32809630809925 [11:31:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113111&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145672&fm=32809630809925&tin=02508201610067®Number=0000000000091683&sum=50000 [11:31:12]OFD Sender: Processing packet 145672 [packets to send 206, broken 205] [11:31:12]ProducePacketName [11:31:12]name=ofd_packets/00145672 [11:31:12]OFD Sender: To server: pG, [11:31:12]CommunicateWithHost lk.salyk.kg:30040 [11:31:12]ConnectInit lk.salyk.kg [11:31:12]written 0, free lines is 4095 [11:31:12]Connected sock=9 [11:31:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C9 5B 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F 00 00 00 F4 03 04 00 7F 24 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 08 39 02 00 35 04 06 00 1D D7 16 63 BF 45 20 1B C6 7A 06 0D 66 D9 [11:31:12]Write to MH i2c: 01 00 00 BD 0B C8 [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 07 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 07 00 BD 0B 00 00 00 00 00 9B 0C 76 [11:31:12]RasterBufferAndPrint [11:31:12]line [11:31:12]line [11:31:12]line [11:31:12]line [11:31:12]line [11:31:12]written 0, free lines is 3233 [11:31:12]MH_Cut [11:31:12]Write to MH i2c: D1 01 00 C4 0B 01 A1 [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: D1 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: D1 01 00 [11:31:12]MH_I2C_Read... [11:31:13]Read from MH i2c: D1 01 00 C4 0B 00 A0 [11:31:13]Write to MH i2c: 01 00 00 C5 0B D0 [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 35 1C 47 00 CC 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 08 39 02 00 F4 03 04 00 AD C9 1D 67 B6 04 01 00 00 D7 CD 86 12 F7 49 16 11 [11:31:13]CommunicateWithHost err = 0 [11:31:13]CheckOFDResponse [11:31:13]1017 (14) - 77093643461234 [11:31:13]1041 (16) - 0000000000871745 [11:31:13]1040 (4) - 145672 [11:31:13]1012 (4) - 27.10.2024 05:03 [11:31:13]1206 (1) - 0 [11:31:13]OFD Sender: Remove packet 145672 [11:31:13]ProducePacketName [11:31:13]name=ofd_packets/00145672 [11:31:13]NVStorageDeleteData [11:31:13]OFD Sender: No OFD packet to send [11:31:13]*** Cut start [11:31:13]*** Partial cut [11:31:13]*** CUTSNS_PIN = 1 [11:31:13]*** CUTSNS_PIN = 0 [11:31:14]*** Brake cut motor [11:31:14]Read from MH i2c: 01 [11:31:14]MH_I2C_Read... [11:31:14]*** Stop cut motor [11:31:14]*** Cut end [11:31:14]Read from MH i2c: 01 07 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: 01 07 00 C5 0B 00 00 00 00 00 FF 0F E5 [11:31:14]process_action close_receipt done [11:31:14]requested_data is exist [11:31:14]produce_requested_data [11:31:14]requested_item fm.sn is exist - process it [11:31:14]wFMCommunicate request_size=4 [11:31:14]MH_SAM_APDU [11:31:14]CAPDU: 80 11 00 00 [11:31:14]Write to MH i2c: E2 08 00 C6 0B 80 11 00 00 00 00 00 00 4B [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:14]Read from MH i2c: E2 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 17 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 17 00 C6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9E [11:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:31:14]wFMCommunicate OK [11:31:14]requested_item fd.num is exist - process it [11:31:14]SAM_PROTO_GetFieldsCounters [11:31:14]wFMCommunicate request_size=4 [11:31:14]MH_SAM_APDU [11:31:14]CAPDU: 80 13 00 00 [11:31:14]Write to MH i2c: E2 08 00 C7 0B 80 13 00 00 00 00 00 00 4E [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:14]Read from MH i2c: E2 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 62 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 62 00 C7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 08 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [11:31:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 08 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:14]wFMCommunicate OK [11:31:14]SAM_PROTO_GetFieldsCounters done [11:31:14]requested_item shift.num is exist - process it [11:31:14]requested_item shift.opened is exist - process it [11:31:14]req_shift_opened [11:31:14]FM_GetShiftState [11:31:14]SAM_PROTO_GetShiftState [11:31:14]wFMCommunicate request_size=4 [11:31:14]MH_SAM_APDU [11:31:14]CAPDU: 80 13 01 00 [11:31:14]Write to MH i2c: E2 08 00 C8 0B 80 13 01 00 00 00 00 00 50 [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:14]Read from MH i2c: E2 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 0E 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 0E 00 C8 0B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C8 [11:31:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:31:14]wFMCommunicate OK [11:31:14]SAM_PROTO_GetShiftState done [11:31:14]FM_GetShiftState done [11:31:14]req_shift_opened done [11:31:14]requested_item shift.open_date is exist - process it [11:31:14]req_shift_open_date [11:31:14]req_shift_open_date done [11:31:14]produce_requested_data done [11:31:14]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145672,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:31:14]process_action_free close_receipt [11:31:14]json_value_free [11:31:14]json_value_free done [11:31:14]process_json_proto returns [11:31:14]Send response to host [11:31:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145672,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:31:14]free response buf [11:31:14]execute_script done [11:31:14]execute_script returns [11:31:14]free content buf [11:31:14]Sock 10.Close socket [11:31:14]Sock 10.Thread stoped [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:05]accept exits with 7 [11:33:05]New connection [11:33:05]New thread 3066596708 created [11:33:05]Thread 3066740068 joined [11:33:05]Waiting for new connection... [11:33:05] Sock 7.Parse request [11:33:05]Sock 7.Check first char [11:33:05]Sock 7.First char is OK [11:33:05]request: POST /json_proto HTTP/1.0 [11:33:05]Method: POST [11:33:05]URL: /json_proto [11:33:05]Method is POST - this is cgi request [11:33:05]url: /json_proto [11:33:05]query_string will be loaded in cgi processing [11:33:05]execute_cgi json_proto POST (null) [11:33:05]execute_cgi path=json_proto method=POST [11:33:05]POST find Content-Length [11:33:05]Host: 172.17.40.195:8080 [11:33:05]Content-Length: 678 [11:33:05]Content-Type: application/json [11:33:05] [11:33:05]POST finish read [11:33:05]Found Content-Length = 678 [11:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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:33:05]execute_script... [11:33: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)160424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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:33:05]POST & json_proto [11:33:05]process_json_proto [11:33:05]json parsed OK: [11:33:05]protocol is kg_v1.0 [11:33:05]action value=close_receipt [11:33:05]process_action close_receipt [11:33:05]cmd_close_receipt [11:33:05]MH_GetDate [11:33:05]Write to MH i2c: F0 00 00 C9 0B C3 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 09 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 09 00 C9 0B 00 F2 24 1E 67 D5 8D 6C 64 99 [11:33:05]GetLastDocTimeStamp 1730028671 [11:33:05]current date 1730028786 [11:33:05]FM_GetShiftState [11:33:05]SAM_PROTO_GetShiftState [11:33:05]wFMCommunicate request_size=4 [11:33:05]MH_SAM_APDU [11:33:05]CAPDU: 80 13 01 00 [11:33:05]Write to MH i2c: E2 08 00 CA 0B 80 13 01 00 00 00 00 00 52 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:05]Read from MH i2c: E2 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 0E 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 0E 00 CA 0B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CA [11:33:05]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:33:05]wFMCommunicate OK [11:33:05]SAM_PROTO_GetShiftState done [11:33:05]FM_GetShiftState done [11:33:05]opened in 1729988959 [11:33:05]opened+sec_in_day 1730075359 [11:33:05]quantity*price = 80061 [11:33:05]sum+1 = 80063 [11:33:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 96 27.10.2024 11:33 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145673 ФПД: 8578787495183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113306&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145673&fm=8578787495183&tin=02508201610067®Number=0000000000091683&sum=80000 [11:33:06]StoreToDocumentArchive [11:33:06]shift 545 fd 145673 [11:33:06]save to /storage/0545/doc_00145673 [11:33:06]save last doc name /storage/0545/doc_00145673 to /storage/kkm_last_doc_name [11:33:06]save OK [11:33:06]Clear old archive folders... [11:33:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:06]tlvbuf is 0042F930 [11:33:06]SAM_PROTO_ClearQueue [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 09 00 00 [11:33:06]Write to MH i2c: E2 08 00 D7 0B 80 09 00 00 00 00 00 00 54 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 D7 0B 00 90 00 56 [11:33:06]RAPDU: 90 00 [11:33:06]wFMCommunicate OK [11:33:06]SAM_PROTO_ClearQueue done [11:33:06]KKMCreateOFDPacket [11:33:06]OFDProtocolAddRootSTLVToBuf [11:33:06]FM_MakeSignedData [11:33:06]FM_MakeSignedData [11:33:06]SAM_PROTO_SignData [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 0D 01 02 [11:33:06]Write to MH i2c: E2 08 00 D8 0B 80 0D 01 02 00 00 00 00 5C [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [11:33:06]RAPDU: 90 00 [11:33:06]wFMCommunicate OK [11:33:06]wFMCommunicate request_size=255 [11:33:06]MH_SAM_APDU [11:33: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 60 00 00 00 F4 03 04 00 F2 24 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 09 39 02 00 35 04 06 00 07 [11:33:06]Write to MH i2c: E2 02 01 D9 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 60 00 00 00 F4 03 04 00 F2 24 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 09 39 02 00 35 04 06 00 07 00 00 C1 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 03 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [11:33:07]RAPDU: 90 00 [11:33:07]wFMCommunicate OK [11:33:07]wFMCommunicate request_size=10 [11:33:07]MH_SAM_APDU [11:33:07]CAPDU: 80 0D 02 02 05 CD 67 94 CD 0F [11:33:07]Write to MH i2c: E2 0D 00 DA 0B 80 0D 02 02 05 00 CD 67 94 CD 0F 00 00 0D [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 03 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [11:33:07]RAPDU: 90 00 [11:33:07]wFMCommunicate OK [11:33:07]wFMCommunicate request_size=4 [11:33:07]MH_SAM_APDU [11:33:07]CAPDU: 80 0D 03 02 [11:33:07]Write to MH i2c: E2 08 00 DB 0B 80 0D 03 02 00 00 00 00 61 [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 0B 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 0B 00 DB 0B 00 2F CE C8 6C 7A E5 2E 99 90 00 B9 [11:33:07]RAPDU: 2F CE C8 6C 7A E5 2E 99 90 00 [11:33:07]wFMCommunicate OK [11:33:07]SAM_PROTO_SignData done [11:33:07]FM_MakeSignedData done [11:33:07]CreateOFDProtocolMessage [11:33:07]wFMCommunicate request_size=4 [11:33:07]MH_SAM_APDU [11:33:07]CAPDU: 80 11 00 00 [11:33:07]Write to MH i2c: E2 08 00 DC 0B 80 11 00 00 00 00 00 00 61 [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 17 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 17 00 DC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B4 [11:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:33:07]wFMCommunicate OK [11:33:07]CreateOFDProtocolMessage done [11:33:07]OFDSenderStorePacket 145673 [11:33:07]StoreOFDPacket docnum=145673 [11:33:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DF 7D 07 01 CE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 60 00 00 00 F4 03 04 00 F2 24 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 09 39 02 00 35 04 06 00 07 CD 67 94 CD 0F 2F CE C8 6C 7A E5 2E 99 [11:33:07]CheckFolder [11:33:07]dirname=/storage/ofd_packets [11:33:07]CheckFolder done [11:33:07]ProducePacketName [11:33:07]name=ofd_packets/00145673 [11:33:07]NVStorageSaveData ofd_packets/00145673 [11:33:07]File name is /storage/ofd_packets/00145673 [11:33:07]Write 301 bytes [11:33:07]NVStorageSaveData done [11:33:07]OFDSenderStorePacket done [11:33:07]KKMCreateOFDPacket done [11:33:07]NVStorageSaveData kkm_last_timestamp [11:33:07]File name is /storage/kkm_last_timestamp [11:33:07]Write 4 bytes [11:33:07]NVStorageSaveData done [11:33:07]ExternCall_PrintAddStr [11:33:07]wPrintStart [11:33:07]Write to MH i2c: 01 00 00 DD 0B E8 [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 07 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 07 00 DD 0B 00 00 00 00 00 FF 0F FD [11:33:07]RasterBufferAndPrint [11:33:07]line Счет N : (1)160424 [11:33:07]line ИНН: 02508201610067 [11:33:07]line Контрольно-Кассовый Чек [11:33:07]line ПРОДАЖА [11:33:07]line ТРК (МРК, ГНК) : 53 [11:33:07]line Товар: 2710124500 [11:33:07]line Аи-95-К-3 [11:33:07]line 10.790 * 74.20 [11:33:07]line = 800.62 [11:33:07]line НДС 12% НСП 1% [11:33:07]line > о реализуемом товаре [11:33:07]line ОКРУГЛЕНИЕ: -0.62 [11:33:07]line ИТОГО: 800.00 [11:33:07]line Внесено: 800.00 [11:33:07]line СДАЧА: 0.00 [11:33:07]line НСП 1% : 7.08 [11:33:07]line НДС 12% : 85.02 [11:33:07]line Наличными: 800.00 [11:33:07]line Безнал.: 0.00 [11:33:07]line Место: АЗС № 126 "Партнер Нефть" [11:33:07]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:33:07]line СНО: Общий режим [11:33:07]line Чек 96 27.10.2024 11:33 [11:33:07]line Смена: 545 ФФД: 1.0 [11:33:07]line ЗНМ: 0300000085 [11:33:07]line РНМ: 0000000000091683 [11:33:07]line Версия ККМ: 001 [11:33:07]line ФМ: 0000000000871745 [11:33:07]line ФД: 145673 [11:33:07]line ФПД: 8578787495183 [11:33:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113306&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145673&fm=8578787495183&tin=02508201610067®Number=0000000000091683&sum=80000 [11:33:07]written 0, free lines is 4095 [11:33:07]OFD Sender: Processing packet 145673 [packets to send 206, broken 205] [11:33:07]ProducePacketName [11:33:07]name=ofd_packets/00145673 [11:33:07]OFD Sender: To server: pG, [11:33:07]CommunicateWithHost lk.salyk.kg:30040 [11:33:07]ConnectInit lk.salyk.kg [11:33:07]Connected sock=10 [11:33:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DF 7D 07 01 CE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 60 00 00 00 F4 03 04 00 F2 24 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 09 39 02 00 35 04 06 00 07 CD 67 94 CD 0F 2F CE C8 6C 7A E5 2E 99 [11:33:07]Write to MH i2c: 01 00 00 08 0C 14 [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 07 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 A2 0C C9 [11:33:07]RasterBufferAndPrint [11:33:07]line [11:33:07]line [11:33:07]line [11:33:07]line [11:33:07]line [11:33:07]written 0, free lines is 3240 [11:33:07]MH_Cut [11:33:07]Write to MH i2c: D1 01 00 0F 0C 01 ED [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: D1 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: D1 01 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: D1 01 00 0F 0C 00 EC [11:33:07]Write to MH i2c: 01 00 00 10 0C 1C [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 0F 4A 47 00 51 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 09 39 02 00 F4 03 04 00 20 CA 1D 67 B6 04 01 00 00 5A 9D EC B6 7A AD A3 D6 [11:33:07]CommunicateWithHost err = 0 [11:33:07]CheckOFDResponse [11:33:07]1017 (14) - 77093643461234 [11:33:07]1041 (16) - 0000000000871745 [11:33:07]1040 (4) - 145673 [11:33:07]1012 (4) - 27.10.2024 05:05 [11:33:07]1206 (1) - 0 [11:33:07]OFD Sender: Remove packet 145673 [11:33:07]ProducePacketName [11:33:07]name=ofd_packets/00145673 [11:33:07]NVStorageDeleteData [11:33:08]OFD Sender: No OFD packet to send [11:33:08]*** Cut start [11:33:08]*** Partial cut [11:33:08]*** CUTSNS_PIN = 1 [11:33:08]*** CUTSNS_PIN = 0 [11:33:08]*** Brake cut motor [11:33:09]Read from MH i2c: 01 [11:33:09]MH_I2C_Read... [11:33:09]*** Stop cut motor [11:33:09]*** Cut end [11:33:09]Read from MH i2c: 01 07 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: 01 07 00 10 0C 00 00 00 00 00 FF 0F 31 [11:33:09]process_action close_receipt done [11:33:09]requested_data is exist [11:33:09]produce_requested_data [11:33:09]requested_item fm.sn is exist - process it [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 11 00 00 [11:33:09]Write to MH i2c: E2 08 00 11 0C 80 11 00 00 00 00 00 00 97 [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 17 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 17 00 11 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EA [11:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:33:09]wFMCommunicate OK [11:33:09]requested_item fd.num is exist - process it [11:33:09]SAM_PROTO_GetFieldsCounters [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 13 00 00 [11:33:09]Write to MH i2c: E2 08 00 12 0C 80 13 00 00 00 00 00 00 9A [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 62 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 62 00 12 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 09 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [11:33:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 09 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:09]wFMCommunicate OK [11:33:09]SAM_PROTO_GetFieldsCounters done [11:33:09]requested_item shift.num is exist - process it [11:33:09]requested_item shift.opened is exist - process it [11:33:09]req_shift_opened [11:33:09]FM_GetShiftState [11:33:09]SAM_PROTO_GetShiftState [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 13 01 00 [11:33:09]Write to MH i2c: E2 08 00 13 0C 80 13 01 00 00 00 00 00 9C [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 0E 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 0E 00 13 0C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 14 [11:33:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:33:09]wFMCommunicate OK [11:33:09]SAM_PROTO_GetShiftState done [11:33:09]FM_GetShiftState done [11:33:09]req_shift_opened done [11:33:09]requested_item shift.open_date is exist - process it [11:33:09]req_shift_open_date [11:33:09]req_shift_open_date done [11:33:09]produce_requested_data done [11:33:09]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145673,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:33:09]process_action_free close_receipt [11:33:09]json_value_free [11:33:09]json_value_free done [11:33:09]process_json_proto returns [11:33:09]Send response to host [11:33:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145673,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:33:09]free response buf [11:33:09]execute_script done [11:33:09]execute_script returns [11:33:09]free content buf [11:33:09]Sock 7.Close socket [11:33:09]Sock 7.Thread stoped [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:25]accept exits with 9 [11:33:25]New connection [11:33:25]New thread 3066740068 created [11:33:25]Thread 3066596708 joined [11:33:25]Waiting for new connection... [11:33:25] Sock 9.Parse request [11:33:25]Sock 9.Check first char [11:33:25]Sock 9.First char is OK [11:33:25]request: POST /json_proto HTTP/1.0 [11:33:25]Method: POST [11:33:25]URL: /json_proto [11:33:25]Method is POST - this is cgi request [11:33:25]url: /json_proto [11:33:25]query_string will be loaded in cgi processing [11:33:25]execute_cgi json_proto POST (null) [11:33:25]execute_cgi path=json_proto method=POST [11:33:25]POST find Content-Length [11:33:25]Host: 172.17.40.195:8080 [11:33:25]Content-Length: 679 [11:33:25]Content-Type: application/json [11:33:25] [11:33:25]POST finish read [11:33:25]Found Content-Length = 679 [11:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:25]execute_script... [11:33:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:25]POST & json_proto [11:33:25]process_json_proto [11:33:25]json parsed OK: [11:33:25]protocol is kg_v1.0 [11:33:25]action value=close_receipt [11:33:25]process_action close_receipt [11:33:25]cmd_close_receipt [11:33:25]MH_GetDate [11:33:25]Write to MH i2c: F0 00 00 14 0C 0F [11:33:25]Write i2c OK [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: F0 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: F0 09 00 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: F0 09 00 14 0C 00 06 25 1E 67 D5 8D 6C 64 FA [11:33:25]GetLastDocTimeStamp 1730028786 [11:33:25]current date 1730028806 [11:33:25]FM_GetShiftState [11:33:25]SAM_PROTO_GetShiftState [11:33:25]wFMCommunicate request_size=4 [11:33:25]MH_SAM_APDU [11:33:25]CAPDU: 80 13 01 00 [11:33:25]Write to MH i2c: E2 08 00 15 0C 80 13 01 00 00 00 00 00 9E [11:33:25]Write i2c OK [11:33:25]MH_I2C_Read... [11:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:25]Read from MH i2c: E2 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: E2 0E 00 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: E2 0E 00 15 0C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 16 [11:33:25]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:33:25]wFMCommunicate OK [11:33:25]SAM_PROTO_GetShiftState done [11:33:25]FM_GetShiftState done [11:33:25]opened in 1729988959 [11:33:25]opened+sec_in_day 1730075359 [11:33:25]quantity*price = 100050 [11:33:25]sum+1 = 100052 [11:33:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 97 27.10.2024 11:33 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145674 ФПД: 38369375442875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113326&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145674&fm=38369375442875&tin=02508201610067®Number=0000000000091683&sum=100000 [11:33:26]StoreToDocumentArchive [11:33:26]shift 545 fd 145674 [11:33:26]save to /storage/0545/doc_00145674 [11:33:26]save last doc name /storage/0545/doc_00145674 to /storage/kkm_last_doc_name [11:33:26]save OK [11:33:26]Clear old archive folders... [11:33:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:33:26]tlvbuf is 0040A750 [11:33:26]SAM_PROTO_ClearQueue [11:33:26]wFMCommunicate request_size=4 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 09 00 00 [11:33:26]Write to MH i2c: E2 08 00 22 0C 80 09 00 00 00 00 00 00 A0 [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [11:33:26]RAPDU: 90 00 [11:33:26]wFMCommunicate OK [11:33:26]SAM_PROTO_ClearQueue done [11:33:26]KKMCreateOFDPacket [11:33:26]OFDProtocolAddRootSTLVToBuf [11:33:26]FM_MakeSignedData [11:33:26]FM_MakeSignedData [11:33:26]SAM_PROTO_SignData [11:33:26]wFMCommunicate request_size=4 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 0D 01 02 [11:33:26]Write to MH i2c: E2 08 00 23 0C 80 0D 01 02 00 00 00 00 A8 [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [11:33:26]RAPDU: 90 00 [11:33:26]wFMCommunicate OK [11:33:26]wFMCommunicate request_size=255 [11:33:26]MH_SAM_APDU [11:33: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 06 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0A 39 02 00 35 04 06 00 22 E5 90 FE [11:33:26]Write to MH i2c: E2 02 01 24 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 06 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0A 39 02 00 35 04 06 00 22 E5 90 FE 00 00 3A [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 24 0C 00 90 00 A4 [11:33:27]RAPDU: 90 00 [11:33:27]wFMCommunicate OK [11:33:27]wFMCommunicate request_size=7 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 0D 02 02 02 57 BB [11:33:27]Write to MH i2c: E2 0A 00 25 0C 80 0D 02 02 02 00 57 BB 00 00 C1 [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 25 0C 00 90 00 A5 [11:33:27]RAPDU: 90 00 [11:33:27]wFMCommunicate OK [11:33:27]wFMCommunicate request_size=4 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 0D 03 02 [11:33:27]Write to MH i2c: E2 08 00 26 0C 80 0D 03 02 00 00 00 00 AD [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 0B 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 0B 00 26 0C 00 B6 C7 1D 7D 61 59 B4 BC 90 00 EF [11:33:27]RAPDU: B6 C7 1D 7D 61 59 B4 BC 90 00 [11:33:27]wFMCommunicate OK [11:33:27]SAM_PROTO_SignData done [11:33:27]FM_MakeSignedData done [11:33:27]CreateOFDProtocolMessage [11:33:27]wFMCommunicate request_size=4 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 11 00 00 [11:33:27]Write to MH i2c: E2 08 00 27 0C 80 11 00 00 00 00 00 00 AD [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 17 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 17 00 27 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 00 [11:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:33:27]wFMCommunicate OK [11:33:27]CreateOFDProtocolMessage done [11:33:27]OFDSenderStorePacket 145674 [11:33:27]StoreOFDPacket docnum=145674 [11:33:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 38 D4 04 01 20 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 06 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0A 39 02 00 35 04 06 00 22 E5 90 FE 57 BB B6 C7 1D 7D 61 59 B4 BC [11:33:27]CheckFolder [11:33:27]dirname=/storage/ofd_packets [11:33:27]CheckFolder done [11:33:27]ProducePacketName [11:33:27]name=ofd_packets/00145674 [11:33:27]NVStorageSaveData ofd_packets/00145674 [11:33:27]File name is /storage/ofd_packets/00145674 [11:33:27]Write 298 bytes [11:33:27]NVStorageSaveData done [11:33:27]OFDSenderStorePacket done [11:33:27]KKMCreateOFDPacket done [11:33:27]NVStorageSaveData kkm_last_timestamp [11:33:27]File name is /storage/kkm_last_timestamp [11:33:27]Write 4 bytes [11:33:27]NVStorageSaveData done [11:33:27]ExternCall_PrintAddStr [11:33:27]wPrintStart [11:33:27]Write to MH i2c: 01 00 00 28 0C 34 [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 07 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 07 00 28 0C 00 00 00 00 00 FF 0F 49 [11:33:27]RasterBufferAndPrint [11:33:27]line Счет N : (1)160425 [11:33:27]line ИНН: 02508201610067 [11:33:27]line Контрольно-Кассовый Чек [11:33:27]line ПРОДАЖА [11:33:27]line ТРК (МРК, ГНК) : 21 [11:33:27]line Товар: 2710194210 [11:33:27]line ДТ-К-2 [11:33:27]line 13.130 * 76.20 [11:33:27]line = 1000.51 [11:33:27]line НДС 12% НСП 1% [11:33:27]line > о реализуемом товаре [11:33:27]line ОКРУГЛЕНИЕ: -0.51 [11:33:27]line ИТОГО: 1000.00 [11:33:27]line Внесено: 1000.00 [11:33:27]line СДАЧА: 0.00 [11:33:27]line НСП 1% : 8.85 [11:33:27]line НДС 12% : 106.25 [11:33:27]line Наличными: 1000.00 [11:33:27]line Безнал.: 0.00 [11:33:27]line Место: АЗС № 126 "Партнер Нефть" [11:33:27]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:33:27]line СНО: Общий режим [11:33:27]line Чек 97 27.10.2024 11:33 [11:33:27]line Смена: 545 ФФД: 1.0 [11:33:27]line ЗНМ: 0300000085 [11:33:27]line РНМ: 0000000000091683 [11:33:27]line Версия ККМ: 001 [11:33:27]line ФМ: 0000000000871745 [11:33:27]line ФД: 145674 [11:33:27]line ФПД: 38369375442875 [11:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113326&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145674&fm=38369375442875&tin=02508201610067®Number=0000000000091683&sum=100000 [11:33:27]OFD Sender: Processing packet 145674 [packets to send 206, broken 205] [11:33:27]ProducePacketName [11:33:27]name=ofd_packets/00145674 [11:33:27]OFD Sender: To server: pG, [11:33:27]CommunicateWithHost lk.salyk.kg:30040 [11:33:27]ConnectInit lk.salyk.kg [11:33:27]written 0, free lines is 4095 [11:33:27]Connected sock=10 [11:33:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 38 D4 04 01 20 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 06 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0A 39 02 00 35 04 06 00 22 E5 90 FE 57 BB B6 C7 1D 7D 61 59 B4 BC [11:33:28]Write to MH i2c: 01 00 00 53 0C 5F [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: 01 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: 01 07 00 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: 01 07 00 53 0C 00 00 00 00 00 9B 0C 0D [11:33:28]RasterBufferAndPrint [11:33:28]line [11:33:28]line [11:33:28]line [11:33:28]line [11:33:28]line [11:33:28]written 0, free lines is 3233 [11:33:28]MH_Cut [11:33:28]Write to MH i2c: D1 01 00 5A 0C 01 38 [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: D1 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: D1 01 00 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: D1 01 00 5A 0C 00 37 [11:33:28]Write to MH i2c: 01 00 00 5B 0C 67 [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 85 BD 47 00 80 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0A 39 02 00 F4 03 04 00 34 CA 1D 67 B6 04 01 00 00 86 09 DA DE 5E 25 90 DA [11:33:28]CommunicateWithHost err = 0 [11:33:28]CheckOFDResponse [11:33:28]1017 (14) - 77093643461234 [11:33:28]1041 (16) - 0000000000871745 [11:33:28]1040 (4) - 145674 [11:33:28]1012 (4) - 27.10.2024 05:05 [11:33:28]1206 (1) - 0 [11:33:28]OFD Sender: Remove packet 145674 [11:33:28]ProducePacketName [11:33:28]name=ofd_packets/00145674 [11:33:28]NVStorageDeleteData [11:33:28]OFD Sender: No OFD packet to send [11:33:28]*** Cut start [11:33:28]*** Partial cut [11:33:28]*** CUTSNS_PIN = 1 [11:33:28]*** CUTSNS_PIN = 0 [11:33:29]*** Brake cut motor [11:33:29]Read from MH i2c: 01 [11:33:29]MH_I2C_Read... [11:33:29]*** Stop cut motor [11:33:29]*** Cut end [11:33:29]Read from MH i2c: 01 07 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: 01 07 00 5B 0C 00 00 00 00 00 FF 0F 7C [11:33:29]process_action close_receipt done [11:33:29]requested_data is exist [11:33:29]produce_requested_data [11:33:29]requested_item fm.sn is exist - process it [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 11 00 00 [11:33:29]Write to MH i2c: E2 08 00 5C 0C 80 11 00 00 00 00 00 00 E2 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 17 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 17 00 5C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 35 [11:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:33:29]wFMCommunicate OK [11:33:29]requested_item fd.num is exist - process it [11:33:29]SAM_PROTO_GetFieldsCounters [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 13 00 00 [11:33:29]Write to MH i2c: E2 08 00 5D 0C 80 13 00 00 00 00 00 00 E5 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 62 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 62 00 5D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:33:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:29]wFMCommunicate OK [11:33:29]SAM_PROTO_GetFieldsCounters done [11:33:29]requested_item shift.num is exist - process it [11:33:29]requested_item shift.opened is exist - process it [11:33:29]req_shift_opened [11:33:29]FM_GetShiftState [11:33:29]SAM_PROTO_GetShiftState [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 13 01 00 [11:33:29]Write to MH i2c: E2 08 00 5E 0C 80 13 01 00 00 00 00 00 E7 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 0E 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 0E 00 5E 0C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5F [11:33:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:33:29]wFMCommunicate OK [11:33:29]SAM_PROTO_GetShiftState done [11:33:29]FM_GetShiftState done [11:33:29]req_shift_opened done [11:33:29]requested_item shift.open_date is exist - process it [11:33:29]req_shift_open_date [11:33:29]req_shift_open_date done [11:33:29]produce_requested_data done [11:33:29]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145674,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:33:29]process_action_free close_receipt [11:33:29]json_value_free [11:33:29]json_value_free done [11:33:29]process_json_proto returns [11:33:29]Send response to host [11:33:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145674,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:33:29]free response buf [11:33:29]execute_script done [11:33:29]execute_script returns [11:33:29]free content buf [11:33:29]Sock 9.Close socket [11:33:29]Sock 9.Thread stoped [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]accept exits with 7 [11:34:18]New connection [11:34:18]New thread 3066596708 created [11:34:18]Thread 3066740068 joined [11:34:18]Waiting for new connection... [11:34:18] Sock 7.Parse request [11:34:18]Sock 7.Check first char [11:34:18]Sock 7.First char is OK [11:34:18]request: POST /json_proto HTTP/1.0 [11:34:18]Method: POST [11:34:18]URL: /json_proto [11:34:18]Method is POST - this is cgi request [11:34:18]url: /json_proto [11:34:18]query_string will be loaded in cgi processing [11:34:18]execute_cgi json_proto POST (null) [11:34:18]execute_cgi path=json_proto method=POST [11:34:18]POST find Content-Length [11:34:18]Host: 172.17.40.195:8080 [11:34:18]Content-Length: 674 [11:34:18]Content-Type: application/json [11:34:18] [11:34:18]POST finish read [11:34:18]Found Content-Length = 674 [11:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:18]execute_script... [11:34: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)160426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:18]POST & json_proto [11:34:18]process_json_proto [11:34:18]json parsed OK: [11:34:18]protocol is kg_v1.0 [11:34:18]action value=close_receipt [11:34:18]process_action close_receipt [11:34:18]cmd_close_receipt [11:34:18]MH_GetDate [11:34:18]Write to MH i2c: F0 00 00 5F 0C 5A [11:34:18]Write i2c OK [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: F0 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: F0 09 00 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: F0 09 00 5F 0C 00 3B 25 1E 67 D5 8D 6C 64 7A [11:34:18]GetLastDocTimeStamp 1730028806 [11:34:18]current date 1730028859 [11:34:18]FM_GetShiftState [11:34:18]SAM_PROTO_GetShiftState [11:34:18]wFMCommunicate request_size=4 [11:34:18]MH_SAM_APDU [11:34:18]CAPDU: 80 13 01 00 [11:34:18]Write to MH i2c: E2 08 00 60 0C 80 13 01 00 00 00 00 00 E9 [11:34:18]Write i2c OK [11:34:18]MH_I2C_Read... [11:34:18]OFD Sender: No OFD packet to send [11:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:18]Read from MH i2c: E2 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: E2 0E 00 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: E2 0E 00 60 0C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 61 [11:34:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:34:18]wFMCommunicate OK [11:34:18]SAM_PROTO_GetShiftState done [11:34:18]FM_GetShiftState done [11:34:18]opened in 1729988959 [11:34:18]opened+sec_in_day 1730075359 [11:34:18]quantity*price = 50063 [11:34:18]sum+1 = 50064 [11:34:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 98 27.10.2024 11:34 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145675 ФПД: 236125271930347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113419&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145675&fm=236125271930347&tin=02508201610067®Number=0000000000091683&sum=50000 [11:34:19]StoreToDocumentArchive [11:34:19]shift 545 fd 145675 [11:34:19]save to /storage/0545/doc_00145675 [11:34:19]save last doc name /storage/0545/doc_00145675 to /storage/kkm_last_doc_name [11:34:19]save OK [11:34:19]Clear old archive folders... [11:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:34:19]tlvbuf is 003FE2E0 [11:34:19]SAM_PROTO_ClearQueue [11:34:19]wFMCommunicate request_size=4 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 09 00 00 [11:34:19]Write to MH i2c: E2 08 00 6D 0C 80 09 00 00 00 00 00 00 EB [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 6D 0C 00 90 00 ED [11:34:19]RAPDU: 90 00 [11:34:19]wFMCommunicate OK [11:34:19]SAM_PROTO_ClearQueue done [11:34:19]KKMCreateOFDPacket [11:34:19]OFDProtocolAddRootSTLVToBuf [11:34:19]FM_MakeSignedData [11:34:19]FM_MakeSignedData [11:34:19]SAM_PROTO_SignData [11:34:19]wFMCommunicate request_size=4 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 0D 01 02 [11:34:19]Write to MH i2c: E2 08 00 6E 0C 80 0D 01 02 00 00 00 00 F3 [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 03 00 6E 0C 00 90 00 EE [11:34:19]RAPDU: 90 00 [11:34:19]wFMCommunicate OK [11:34:19]wFMCommunicate request_size=255 [11:34:19]MH_SAM_APDU [11:34: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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3B 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0B 39 02 00 35 04 06 00 D6 C1 32 F4 [11:34:19]Write to MH i2c: E2 02 01 6F 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3B 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0B 39 02 00 35 04 06 00 D6 C1 32 F4 00 00 6C [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:20]Read from MH i2c: E2 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: E2 03 00 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [11:34:20]RAPDU: 90 00 [11:34:20]wFMCommunicate OK [11:34:20]wFMCommunicate request_size=7 [11:34:20]MH_SAM_APDU [11:34:20]CAPDU: 80 0D 02 02 02 B5 EB [11:34:20]Write to MH i2c: E2 0A 00 70 0C 80 0D 02 02 02 00 B5 EB 00 00 9A [11:34:20]Write i2c OK [11:34:20]MH_I2C_Read... [11:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:20]Read from MH i2c: E2 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: E2 03 00 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [11:34:20]RAPDU: 90 00 [11:34:20]wFMCommunicate OK [11:34:20]wFMCommunicate request_size=4 [11:34:20]MH_SAM_APDU [11:34:20]CAPDU: 80 0D 03 02 [11:34:20]Write to MH i2c: E2 08 00 71 0C 80 0D 03 02 00 00 00 00 F8 [11:34:20]Write i2c OK [11:34:20]MH_I2C_Read... [11:34:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:20]Read from MH i2c: E2 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: E2 0B 00 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: E2 0B 00 71 0C 00 2E 5B 87 E4 D8 EE 3D 42 90 00 32 [11:34:20]RAPDU: 2E 5B 87 E4 D8 EE 3D 42 90 00 [11:34:20]wFMCommunicate OK [11:34:20]SAM_PROTO_SignData done [11:34:20]FM_MakeSignedData done [11:34:20]CreateOFDProtocolMessage [11:34:20]wFMCommunicate request_size=4 [11:34:20]MH_SAM_APDU [11:34:20]CAPDU: 80 11 00 00 [11:34:20]Write to MH i2c: E2 08 00 72 0C 80 11 00 00 00 00 00 00 F8 [11:34:20]Write i2c OK [11:34:20]MH_I2C_Read... [11:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:20]Read from MH i2c: E2 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: E2 17 00 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: E2 17 00 72 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 4B [11:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:34:20]wFMCommunicate OK [11:34:20]CreateOFDProtocolMessage done [11:34:20]OFDSenderStorePacket 145675 [11:34:20]StoreOFDPacket docnum=145675 [11:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 CC 07 04 01 6A B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3B 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0B 39 02 00 35 04 06 00 D6 C1 32 F4 B5 EB 2E 5B 87 E4 D8 EE 3D 42 [11:34:20]CheckFolder [11:34:20]dirname=/storage/ofd_packets [11:34:20]CheckFolder done [11:34:20]ProducePacketName [11:34:20]name=ofd_packets/00145675 [11:34:20]NVStorageSaveData ofd_packets/00145675 [11:34:20]File name is /storage/ofd_packets/00145675 [11:34:20]Write 298 bytes [11:34:20]NVStorageSaveData done [11:34:20]OFDSenderStorePacket done [11:34:20]KKMCreateOFDPacket done [11:34:20]NVStorageSaveData kkm_last_timestamp [11:34:20]File name is /storage/kkm_last_timestamp [11:34:20]Write 4 bytes [11:34:20]NVStorageSaveData done [11:34:20]ExternCall_PrintAddStr [11:34:20]wPrintStart [11:34:20]Write to MH i2c: 01 00 00 73 0C 7F [11:34:20]Write i2c OK [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: 01 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: 01 07 00 [11:34:20]MH_I2C_Read... [11:34:20]Read from MH i2c: 01 07 00 73 0C 00 00 00 00 00 FF 0F 94 [11:34:20]RasterBufferAndPrint [11:34:20]line Счет N : (1)160426 [11:34:20]line ИНН: 02508201610067 [11:34:20]line Контрольно-Кассовый Чек [11:34:20]line ПРОДАЖА [11:34:20]line ТРК (МРК, ГНК) : 11 [11:34:20]line Товар: 2710194210 [11:34:20]line ДТ-К-2 [11:34:20]line 6.570 * 76.20 [11:34:20]line = 500.63 [11:34:20]line НДС 12% НСП 1% [11:34:20]line > о реализуемом товаре [11:34:20]line ОКРУГЛЕНИЕ: -0.63 [11:34:20]line ИТОГО: 500.00 [11:34:20]line Внесено: 500.00 [11:34:20]line СДАЧА: 0.00 [11:34:20]line НСП 1% : 4.43 [11:34:20]line НДС 12% : 53.16 [11:34:20]line Наличными: 500.00 [11:34:20]line Безнал.: 0.00 [11:34:20]line Место: АЗС № 126 "Партнер Нефть" [11:34:20]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:34:20]line СНО: Общий режим [11:34:20]line Чек 98 27.10.2024 11:34 [11:34:20]line Смена: 545 ФФД: 1.0 [11:34:20]line ЗНМ: 0300000085 [11:34:20]line РНМ: 0000000000091683 [11:34:20]line Версия ККМ: 001 [11:34:20]line ФМ: 0000000000871745 [11:34:20]line ФД: 145675 [11:34:20]line ФПД: 236125271930347 [11:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113419&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145675&fm=236125271930347&tin=02508201610067®Number=0000000000091683&sum=50000 [11:34:20]OFD Sender: Processing packet 145675 [packets to send 206, broken 205] [11:34:20]ProducePacketName [11:34:20]name=ofd_packets/00145675 [11:34:20]OFD Sender: To server: pG, [11:34:20]CommunicateWithHost lk.salyk.kg:30040 [11:34:20]ConnectInit lk.salyk.kg [11:34:20]written 0, free lines is 4095 [11:34:20]Connected sock=10 [11:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 CC 07 04 01 6A B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3B 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0B 39 02 00 35 04 06 00 D6 C1 32 F4 B5 EB 2E 5B 87 E4 D8 EE 3D 42 [11:34:21]Write to MH i2c: 01 00 00 9E 0C AA [11:34:21]Write i2c OK [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: 01 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: 01 07 00 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: 01 07 00 9E 0C 00 00 00 00 00 A2 0C 5F [11:34:21]RasterBufferAndPrint [11:34:21]line [11:34:21]line [11:34:21]line [11:34:21]line [11:34:21]line [11:34:21]written 0, free lines is 3240 [11:34:21]MH_Cut [11:34:21]Write to MH i2c: D1 01 00 A5 0C 01 83 [11:34:21]Write i2c OK [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: D1 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: D1 01 00 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: D1 01 00 A5 0C 00 82 [11:34:21]Write to MH i2c: 01 00 00 A6 0C B2 [11:34:21]Write i2c OK [11:34:21]MH_I2C_Read... [11:34:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 43 F3 47 00 BC 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0B 39 02 00 F4 03 04 00 69 CA 1D 67 B6 04 01 00 00 90 9E AC ED 7F 40 7C 42 [11:34:21]CommunicateWithHost err = 0 [11:34:21]CheckOFDResponse [11:34:21]1017 (14) - 77093643461234 [11:34:21]1041 (16) - 0000000000871745 [11:34:21]1040 (4) - 145675 [11:34:21]1012 (4) - 27.10.2024 05:06 [11:34:21]1206 (1) - 0 [11:34:21]OFD Sender: Remove packet 145675 [11:34:21]ProducePacketName [11:34:21]name=ofd_packets/00145675 [11:34:21]NVStorageDeleteData [11:34:21]OFD Sender: No OFD packet to send [11:34:22]*** Cut start [11:34:22]*** Partial cut [11:34:22]*** CUTSNS_PIN = 1 [11:34:22]*** CUTSNS_PIN = 0 [11:34:22]*** Brake cut motor [11:34:22]Read from MH i2c: 01 [11:34:22]MH_I2C_Read... [11:34:22]*** Stop cut motor [11:34:22]*** Cut end [11:34:22]Read from MH i2c: 01 07 00 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: 01 07 00 A6 0C 00 00 00 00 00 FF 0F C7 [11:34:22]process_action close_receipt done [11:34:22]requested_data is exist [11:34:22]produce_requested_data [11:34:22]requested_item fm.sn is exist - process it [11:34:22]wFMCommunicate request_size=4 [11:34:22]MH_SAM_APDU [11:34:22]CAPDU: 80 11 00 00 [11:34:22]Write to MH i2c: E2 08 00 A7 0C 80 11 00 00 00 00 00 00 2D [11:34:22]Write i2c OK [11:34:22]MH_I2C_Read... [11:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:22]Read from MH i2c: E2 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 17 00 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 17 00 A7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 80 [11:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:34:22]wFMCommunicate OK [11:34:22]requested_item fd.num is exist - process it [11:34:22]SAM_PROTO_GetFieldsCounters [11:34:22]wFMCommunicate request_size=4 [11:34:22]MH_SAM_APDU [11:34:22]CAPDU: 80 13 00 00 [11:34:22]Write to MH i2c: E2 08 00 A8 0C 80 13 00 00 00 00 00 00 30 [11:34:22]Write i2c OK [11:34:22]MH_I2C_Read... [11:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:22]Read from MH i2c: E2 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 62 00 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 62 00 A8 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:22]wFMCommunicate OK [11:34:22]SAM_PROTO_GetFieldsCounters done [11:34:22]requested_item shift.num is exist - process it [11:34:22]requested_item shift.opened is exist - process it [11:34:22]req_shift_opened [11:34:22]FM_GetShiftState [11:34:22]SAM_PROTO_GetShiftState [11:34:22]wFMCommunicate request_size=4 [11:34:22]MH_SAM_APDU [11:34:22]CAPDU: 80 13 01 00 [11:34:22]Write to MH i2c: E2 08 00 A9 0C 80 13 01 00 00 00 00 00 32 [11:34:22]Write i2c OK [11:34:22]MH_I2C_Read... [11:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:22]Read from MH i2c: E2 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 0E 00 [11:34:22]MH_I2C_Read... [11:34:22]Read from MH i2c: E2 0E 00 A9 0C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AA [11:34:22]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:34:22]wFMCommunicate OK [11:34:22]SAM_PROTO_GetShiftState done [11:34:22]FM_GetShiftState done [11:34:22]req_shift_opened done [11:34:22]requested_item shift.open_date is exist - process it [11:34:22]req_shift_open_date [11:34:22]req_shift_open_date done [11:34:22]produce_requested_data done [11:34:22]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145675,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:34:22]process_action_free close_receipt [11:34:22]json_value_free [11:34:22]json_value_free done [11:34:22]process_json_proto returns [11:34:22]Send response to host [11:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145675,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:34:22]free response buf [11:34:22]execute_script done [11:34:22]execute_script returns [11:34:22]free content buf [11:34:22]Sock 7.Close socket [11:34:22]Sock 7.Thread stoped [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:18]accept exits with 9 [11:35:18]New connection [11:35:18]New thread 3066740068 created [11:35:18]Thread 3066596708 joined [11:35:18]Waiting for new connection... [11:35:18] Sock 9.Parse request [11:35:18]Sock 9.Check first char [11:35:18]Sock 9.First char is OK [11:35:18]request: POST /json_proto HTTP/1.0 [11:35:18]Method: POST [11:35:18]URL: /json_proto [11:35:18]Method is POST - this is cgi request [11:35:18]url: /json_proto [11:35:18]query_string will be loaded in cgi processing [11:35:18]execute_cgi json_proto POST (null) [11:35:18]execute_cgi path=json_proto method=POST [11:35:18]POST find Content-Length [11:35:18]Host: 172.17.40.195:8080 [11:35:18]Content-Length: 679 [11:35:18]Content-Type: application/json [11:35:18] [11:35:18]POST finish read [11:35:18]Found Content-Length = 679 [11:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:18]execute_script... [11:35:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:18]POST & json_proto [11:35:18]process_json_proto [11:35:18]json parsed OK: [11:35:18]protocol is kg_v1.0 [11:35:18]action value=close_receipt [11:35:18]process_action close_receipt [11:35:18]cmd_close_receipt [11:35:18]MH_GetDate [11:35:18]Write to MH i2c: F0 00 00 AA 0C A5 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: F0 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: F0 09 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: F0 09 00 AA 0C 00 77 25 1E 67 D5 8D 6C 64 01 [11:35:18]GetLastDocTimeStamp 1730028859 [11:35:18]current date 1730028919 [11:35:18]FM_GetShiftState [11:35:18]SAM_PROTO_GetShiftState [11:35:18]wFMCommunicate request_size=4 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 13 01 00 [11:35:18]Write to MH i2c: E2 08 00 AB 0C 80 13 01 00 00 00 00 00 34 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 0E 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 0E 00 AB 0C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AC [11:35:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:35:18]wFMCommunicate OK [11:35:18]SAM_PROTO_GetShiftState done [11:35:18]FM_GetShiftState done [11:35:18]opened in 1729988959 [11:35:18]opened+sec_in_day 1730075359 [11:35:18]quantity*price = 120015 [11:35:18]sum+1 = 120016 [11:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 99 27.10.2024 11:35 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145676 ФПД: 246713912044548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113520&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145676&fm=246713912044548&tin=02508201610067®Number=0000000000091683&sum=120000 [11:35:19]StoreToDocumentArchive [11:35:19]shift 545 fd 145676 [11:35:19]save to /storage/0545/doc_00145676 [11:35:19]save last doc name /storage/0545/doc_00145676 to /storage/kkm_last_doc_name [11:35:19]save OK [11:35:19]Clear old archive folders... [11:35:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:19]tlvbuf is B6E741E0 [11:35:19]SAM_PROTO_ClearQueue [11:35:19]wFMCommunicate request_size=4 [11:35:19]MH_SAM_APDU [11:35:19]CAPDU: 80 09 00 00 [11:35:19]Write to MH i2c: E2 08 00 B8 0C 80 09 00 00 00 00 00 00 36 [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:19]Read from MH i2c: E2 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 03 00 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [11:35:19]RAPDU: 90 00 [11:35:19]wFMCommunicate OK [11:35:19]SAM_PROTO_ClearQueue done [11:35:19]KKMCreateOFDPacket [11:35:19]OFDProtocolAddRootSTLVToBuf [11:35:19]FM_MakeSignedData [11:35:19]FM_MakeSignedData [11:35:19]SAM_PROTO_SignData [11:35:19]wFMCommunicate request_size=4 [11:35:19]MH_SAM_APDU [11:35:19]CAPDU: 80 0D 01 02 [11:35:19]Write to MH i2c: E2 08 00 B9 0C 80 0D 01 02 00 00 00 00 3E [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [11:35:20]RAPDU: 90 00 [11:35:20]wFMCommunicate OK [11:35:20]wFMCommunicate request_size=255 [11:35:20]MH_SAM_APDU [11:35: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 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 78 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0C 39 02 00 35 04 06 00 E0 62 8F 16 [11:35:20]Write to MH i2c: E2 02 01 BA 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 78 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0C 39 02 00 35 04 06 00 E0 62 8F 16 00 00 06 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 BA 0C 00 90 00 3A [11:35:20]RAPDU: 90 00 [11:35:20]wFMCommunicate OK [11:35:20]wFMCommunicate request_size=7 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 0D 02 02 02 AC 04 [11:35:20]Write to MH i2c: E2 0A 00 BB 0C 80 0D 02 02 02 00 AC 04 00 00 F5 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 BB 0C 00 90 00 3B [11:35:20]RAPDU: 90 00 [11:35:20]wFMCommunicate OK [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 0D 03 02 [11:35:20]Write to MH i2c: E2 08 00 BC 0C 80 0D 03 02 00 00 00 00 43 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0B 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0B 00 BC 0C 00 2B E0 3C 96 0A C3 A8 FF 90 00 95 [11:35:20]RAPDU: 2B E0 3C 96 0A C3 A8 FF 90 00 [11:35:20]wFMCommunicate OK [11:35:20]SAM_PROTO_SignData done [11:35:20]FM_MakeSignedData done [11:35:20]CreateOFDProtocolMessage [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 11 00 00 [11:35:20]Write to MH i2c: E2 08 00 BD 0C 80 11 00 00 00 00 00 00 43 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 17 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 17 00 BD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 96 [11:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:35:20]wFMCommunicate OK [11:35:20]CreateOFDProtocolMessage done [11:35:20]OFDSenderStorePacket 145676 [11:35:20]StoreOFDPacket docnum=145676 [11:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 23 AA 04 01 4F 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 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 78 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0C 39 02 00 35 04 06 00 E0 62 8F 16 AC 04 2B E0 3C 96 0A C3 A8 FF [11:35:20]CheckFolder [11:35:20]dirname=/storage/ofd_packets [11:35:20]CheckFolder done [11:35:20]ProducePacketName [11:35:20]name=ofd_packets/00145676 [11:35:20]NVStorageSaveData ofd_packets/00145676 [11:35:20]File name is /storage/ofd_packets/00145676 [11:35:20]Write 298 bytes [11:35:20]NVStorageSaveData done [11:35:20]OFDSenderStorePacket done [11:35:20]KKMCreateOFDPacket done [11:35:20]NVStorageSaveData kkm_last_timestamp [11:35:20]File name is /storage/kkm_last_timestamp [11:35:20]Write 4 bytes [11:35:20]NVStorageSaveData done [11:35:20]ExternCall_PrintAddStr [11:35:20]wPrintStart [11:35:20]Write to MH i2c: 01 00 00 BE 0C CA [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 07 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 07 00 BE 0C 00 00 00 00 00 FF 0F DF [11:35:20]RasterBufferAndPrint [11:35:20]line Счет N : (1)160427 [11:35:20]line ИНН: 02508201610067 [11:35:20]line Контрольно-Кассовый Чек [11:35:20]line ПРОДАЖА [11:35:20]line ТРК (МРК, ГНК) : 21 [11:35:20]line Товар: 2710194210 [11:35:20]line ДТ-К-2 [11:35:20]line 15.750 * 76.20 [11:35:20]line = 1200.15 [11:35:20]line НДС 12% НСП 1% [11:35:20]line > о реализуемом товаре [11:35:20]line ОКРУГЛЕНИЕ: -0.15 [11:35:20]line ИТОГО: 1200.00 [11:35:20]line Внесено: 1200.00 [11:35:20]line СДАЧА: 0.00 [11:35:20]line НСП 1% : 10.62 [11:35:20]line НДС 12% : 127.45 [11:35:20]line Наличными: 1200.00 [11:35:20]line Безнал.: 0.00 [11:35:20]line Место: АЗС № 126 "Партнер Нефть" [11:35:20]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:35:20]line СНО: Общий режим [11:35:20]line Чек 99 27.10.2024 11:35 [11:35:20]line Смена: 545 ФФД: 1.0 [11:35:20]line ЗНМ: 0300000085 [11:35:20]line РНМ: 0000000000091683 [11:35:20]line Версия ККМ: 001 [11:35:20]line ФМ: 0000000000871745 [11:35:20]line ФД: 145676 [11:35:20]line ФПД: 246713912044548 [11:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113520&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145676&fm=246713912044548&tin=02508201610067®Number=0000000000091683&sum=120000 [11:35:20]OFD Sender: Processing packet 145676 [packets to send 206, broken 205] [11:35:20]ProducePacketName [11:35:20]name=ofd_packets/00145676 [11:35:20]OFD Sender: To server: pG, [11:35:20]CommunicateWithHost lk.salyk.kg:30040 [11:35:20]ConnectInit lk.salyk.kg [11:35:20]written 0, free lines is 4095 [11:35:20]Connected sock=10 [11:35:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 23 AA 04 01 4F 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 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 78 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0C 39 02 00 35 04 06 00 E0 62 8F 16 AC 04 2B E0 3C 96 0A C3 A8 FF [11:35:21]Write to MH i2c: 01 00 00 E9 0C F5 [11:35:21]Write i2c OK [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: 01 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: 01 07 00 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: 01 07 00 E9 0C 00 00 00 00 00 A8 0C B0 [11:35:21]RasterBufferAndPrint [11:35:21]line [11:35:21]line [11:35:21]line [11:35:21]line [11:35:21]line [11:35:21]written 0, free lines is 3245 [11:35:21]MH_Cut [11:35:21]Write to MH i2c: D1 01 00 F0 0C 01 CE [11:35:21]Write i2c OK [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: D1 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: D1 01 00 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: D1 01 00 F0 0C 00 CD [11:35:21]Write to MH i2c: 01 00 00 F1 0C FD [11:35:21]Write i2c OK [11:35:21]MH_I2C_Read... [11:35:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 9F BC 47 00 FD 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0C 39 02 00 F4 03 04 00 A5 CA 1D 67 B6 04 01 00 00 62 E2 2D DA 15 FF 3E 7B [11:35:21]CommunicateWithHost err = 0 [11:35:21]CheckOFDResponse [11:35:21]1017 (14) - 77093643461234 [11:35:21]1041 (16) - 0000000000871745 [11:35:21]1040 (4) - 145676 [11:35:21]1012 (4) - 27.10.2024 05:07 [11:35:21]1206 (1) - 0 [11:35:21]OFD Sender: Remove packet 145676 [11:35:21]ProducePacketName [11:35:21]name=ofd_packets/00145676 [11:35:21]NVStorageDeleteData [11:35:21]OFD Sender: No OFD packet to send [11:35:22]*** Cut start [11:35:22]*** Partial cut [11:35:22]*** CUTSNS_PIN = 1 [11:35:22]*** CUTSNS_PIN = 0 [11:35:22]*** Brake cut motor [11:35:22]Read from MH i2c: 01 [11:35:22]MH_I2C_Read... [11:35:22]*** Stop cut motor [11:35:22]*** Cut end [11:35:22]Read from MH i2c: 01 07 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: 01 07 00 F1 0C 00 00 00 00 00 FF 0F 12 [11:35:22]process_action close_receipt done [11:35:22]requested_data is exist [11:35:22]produce_requested_data [11:35:22]requested_item fm.sn is exist - process it [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 11 00 00 [11:35:22]Write to MH i2c: E2 08 00 F2 0C 80 11 00 00 00 00 00 00 78 [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 17 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 17 00 F2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 CB [11:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:35:22]wFMCommunicate OK [11:35:22]requested_item fd.num is exist - process it [11:35:22]SAM_PROTO_GetFieldsCounters [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 13 00 00 [11:35:22]Write to MH i2c: E2 08 00 F3 0C 80 13 00 00 00 00 00 00 7B [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 62 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 62 00 F3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [11:35:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:22]wFMCommunicate OK [11:35:22]SAM_PROTO_GetFieldsCounters done [11:35:22]requested_item shift.num is exist - process it [11:35:22]requested_item shift.opened is exist - process it [11:35:22]req_shift_opened [11:35:22]FM_GetShiftState [11:35:22]SAM_PROTO_GetShiftState [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 13 01 00 [11:35:22]Write to MH i2c: E2 08 00 F4 0C 80 13 01 00 00 00 00 00 7D [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:22]Read from MH i2c: E2 0E 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 0E 00 F4 0C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F5 [11:35:22]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:35:22]wFMCommunicate OK [11:35:22]SAM_PROTO_GetShiftState done [11:35:22]FM_GetShiftState done [11:35:22]req_shift_opened done [11:35:22]requested_item shift.open_date is exist - process it [11:35:22]req_shift_open_date [11:35:22]req_shift_open_date done [11:35:22]produce_requested_data done [11:35:22]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145676,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:35:22]process_action_free close_receipt [11:35:22]json_value_free [11:35:22]json_value_free done [11:35:22]process_json_proto returns [11:35:22]Send response to host [11:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145676,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:35:22]free response buf [11:35:22]execute_script done [11:35:22]execute_script returns [11:35:22]free content buf [11:35:22]Sock 9.Close socket [11:35:22]Sock 9.Thread stoped [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:42]accept exits with 7 [11:35:42]New connection [11:35:42]New thread 3066596708 created [11:35:42]Thread 3066740068 joined [11:35:42]Waiting for new connection... [11:35:42] Sock 7.Parse request [11:35:42]Sock 7.Check first char [11:35:42]Sock 7.First char is OK [11:35:42]request: POST /json_proto HTTP/1.0 [11:35:42]Method: POST [11:35:42]URL: /json_proto [11:35:42]Method is POST - this is cgi request [11:35:42]url: /json_proto [11:35:42]query_string will be loaded in cgi processing [11:35:42]execute_cgi json_proto POST (null) [11:35:42]execute_cgi path=json_proto method=POST [11:35:42]POST find Content-Length [11:35:42]Host: 172.17.40.195:8080 [11:35:42]Content-Length: 682 [11:35:42]Content-Type: application/json [11:35:42] [11:35:42]POST finish read [11:35:42]Found Content-Length = 682 [11:35:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:42]execute_script... [11:35: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)160428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:42]POST & json_proto [11:35:42]process_json_proto [11:35:42]json parsed OK: [11:35:42]protocol is kg_v1.0 [11:35:42]action value=close_receipt [11:35:42]process_action close_receipt [11:35:42]cmd_close_receipt [11:35:42]MH_GetDate [11:35:42]Write to MH i2c: F0 00 00 F5 0C F0 [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: F0 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: F0 09 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: F0 09 00 F5 0C 00 8F 25 1E 67 D5 8D 6C 64 64 [11:35:42]GetLastDocTimeStamp 1730028920 [11:35:42]current date 1730028943 [11:35:42]FM_GetShiftState [11:35:42]SAM_PROTO_GetShiftState [11:35:42]wFMCommunicate request_size=4 [11:35:42]MH_SAM_APDU [11:35:42]CAPDU: 80 13 01 00 [11:35:42]Write to MH i2c: E2 08 00 F6 0C 80 13 01 00 00 00 00 00 7F [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 0E 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 0E 00 F6 0C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F7 [11:35:42]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:35:42]wFMCommunicate OK [11:35:42]SAM_PROTO_GetShiftState done [11:35:42]FM_GetShiftState done [11:35:42]opened in 1729988959 [11:35:42]opened+sec_in_day 1730075359 [11:35:42]quantity*price = 100015 [11:35:42]sum+1 = 100017 [11:35:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 100 27.10.2024 11:35 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145677 ФПД: 207561233669242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113543&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145677&fm=207561233669242&tin=02508201610067®Number=0000000000091683&sum=100000 [11:35:43]StoreToDocumentArchive [11:35:43]shift 545 fd 145677 [11:35:43]save to /storage/0545/doc_00145677 [11:35:43]save last doc name /storage/0545/doc_00145677 to /storage/kkm_last_doc_name [11:35:43]save OK [11:35:43]Clear old archive folders... [11:35:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:43]tlvbuf is 003FEA00 [11:35:43]SAM_PROTO_ClearQueue [11:35:43]wFMCommunicate request_size=4 [11:35:43]MH_SAM_APDU [11:35:43]CAPDU: 80 09 00 00 [11:35:43]Write to MH i2c: E2 08 00 03 0D 80 09 00 00 00 00 00 00 82 [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 03 0D 00 90 00 84 [11:35:43]RAPDU: 90 00 [11:35:43]wFMCommunicate OK [11:35:43]SAM_PROTO_ClearQueue done [11:35:43]KKMCreateOFDPacket [11:35:43]OFDProtocolAddRootSTLVToBuf [11:35:43]FM_MakeSignedData [11:35:43]FM_MakeSignedData [11:35:43]SAM_PROTO_SignData [11:35:43]wFMCommunicate request_size=4 [11:35:43]MH_SAM_APDU [11:35:43]CAPDU: 80 0D 01 02 [11:35:43]Write to MH i2c: E2 08 00 04 0D 80 0D 01 02 00 00 00 00 8A [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 04 0D 00 90 00 85 [11:35:43]RAPDU: 90 00 [11:35:43]wFMCommunicate OK [11:35:43]wFMCommunicate request_size=255 [11:35:43]MH_SAM_APDU [11:35: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8F 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0D 39 02 00 35 04 06 00 BC [11:35:43]Write to MH i2c: E2 02 01 05 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8F 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0D 39 02 00 35 04 06 00 BC 00 00 D6 [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 05 0D 00 90 00 86 [11:35:43]RAPDU: 90 00 [11:35:43]wFMCommunicate OK [11:35:43]wFMCommunicate request_size=10 [11:35:43]MH_SAM_APDU [11:35:43]CAPDU: 80 0D 02 02 05 C6 9D 9A 1C 7A [11:35:43]Write to MH i2c: E2 0D 00 06 0D 80 0D 02 02 05 00 C6 9D 9A 1C 7A 00 00 2A [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 03 00 06 0D 00 90 00 87 [11:35:43]RAPDU: 90 00 [11:35:43]wFMCommunicate OK [11:35:43]wFMCommunicate request_size=4 [11:35:43]MH_SAM_APDU [11:35:43]CAPDU: 80 0D 03 02 [11:35:43]Write to MH i2c: E2 08 00 07 0D 80 0D 03 02 00 00 00 00 8F [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 0B 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 0B 00 07 0D 00 02 F5 DE 42 70 F9 F2 FD 90 00 FF [11:35:43]RAPDU: 02 F5 DE 42 70 F9 F2 FD 90 00 [11:35:43]wFMCommunicate OK [11:35:43]SAM_PROTO_SignData done [11:35:43]FM_MakeSignedData done [11:35:43]CreateOFDProtocolMessage [11:35:43]wFMCommunicate request_size=4 [11:35:43]MH_SAM_APDU [11:35:43]CAPDU: 80 11 00 00 [11:35:43]Write to MH i2c: E2 08 00 08 0D 80 11 00 00 00 00 00 00 8F [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:43]Read from MH i2c: E2 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 17 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: E2 17 00 08 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E2 [11:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:35:43]wFMCommunicate OK [11:35:43]CreateOFDProtocolMessage done [11:35:44]OFDSenderStorePacket 145677 [11:35:44]StoreOFDPacket docnum=145677 [11:35:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 35 8C 07 01 2E 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8F 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0D 39 02 00 35 04 06 00 BC C6 9D 9A 1C 7A 02 F5 DE 42 70 F9 F2 FD [11:35:44]CheckFolder [11:35:44]dirname=/storage/ofd_packets [11:35:44]CheckFolder done [11:35:44]ProducePacketName [11:35:44]name=ofd_packets/00145677 [11:35:44]NVStorageSaveData ofd_packets/00145677 [11:35:44]File name is /storage/ofd_packets/00145677 [11:35:44]Write 301 bytes [11:35:44]NVStorageSaveData done [11:35:44]OFDSenderStorePacket done [11:35:44]KKMCreateOFDPacket done [11:35:44]NVStorageSaveData kkm_last_timestamp [11:35:44]File name is /storage/kkm_last_timestamp [11:35:44]Write 4 bytes [11:35:44]NVStorageSaveData done [11:35:44]ExternCall_PrintAddStr [11:35:44]wPrintStart [11:35:44]Write to MH i2c: 01 00 00 09 0D 16 [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: 01 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: 01 07 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: 01 07 00 09 0D 00 00 00 00 00 FF 0F 2B [11:35:44]RasterBufferAndPrint [11:35:44]line Счет N : (1)160428 [11:35:44]line ИНН: 02508201610067 [11:35:44]line Контрольно-Кассовый Чек [11:35:44]line ПРОДАЖА [11:35:44]line ТРК (МРК, ГНК) : 52 [11:35:44]line Товар: 2710124130 [11:35:44]line Аи-92-К-2 [11:35:44]line 14.950 * 66.90 [11:35:44]line = 1000.16 [11:35:44]line НДС 12% НСП 1% [11:35:44]line > о реализуемом товаре [11:35:44]line ОКРУГЛЕНИЕ: -0.16 [11:35:44]line ИТОГО: 1000.00 [11:35:44]line Внесено: 1000.00 [11:35:44]line СДАЧА: 0.00 [11:35:44]line НСП 1% : 8.85 [11:35:44]line НДС 12% : 106.21 [11:35:44]line Наличными: 1000.00 [11:35:44]line Безнал.: 0.00 [11:35:44]line Место: АЗС № 126 "Партнер Нефть" [11:35:44]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:35:44]line СНО: Общий режим [11:35:44]line Чек 100 27.10.2024 11:35 [11:35:44]line Смена: 545 ФФД: 1.0 [11:35:44]line ЗНМ: 0300000085 [11:35:44]line РНМ: 0000000000091683 [11:35:44]line Версия ККМ: 001 [11:35:44]line ФМ: 0000000000871745 [11:35:44]line ФД: 145677 [11:35:44]line ФПД: 207561233669242 [11:35:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113543&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145677&fm=207561233669242&tin=02508201610067®Number=0000000000091683&sum=100000 [11:35:44]OFD Sender: Processing packet 145677 [packets to send 206, broken 205] [11:35:44]ProducePacketName [11:35:44]name=ofd_packets/00145677 [11:35:44]OFD Sender: To server: pG, [11:35:44]CommunicateWithHost lk.salyk.kg:30040 [11:35:44]ConnectInit lk.salyk.kg [11:35:44]written 0, free lines is 4095 [11:35:44]Connected sock=10 [11:35:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 35 8C 07 01 2E 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8F 25 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0D 39 02 00 35 04 06 00 BC C6 9D 9A 1C 7A 02 F5 DE 42 70 F9 F2 FD [11:35:44]Write to MH i2c: 01 00 00 34 0D 41 [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: 01 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: 01 07 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: 01 07 00 34 0D 00 00 00 00 00 B6 0C 0A [11:35:44]RasterBufferAndPrint [11:35:44]line [11:35:44]line [11:35:44]line [11:35:44]line [11:35:44]line [11:35:44]written 0, free lines is 3260 [11:35:44]MH_Cut [11:35:44]Write to MH i2c: D1 01 00 3B 0D 01 1A [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: D1 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: D1 01 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: D1 01 00 3B 0D 00 19 [11:35:44]Write to MH i2c: 01 00 00 3C 0D 49 [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 F9 7A 47 00 73 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0D 39 02 00 F4 03 04 00 BD CA 1D 67 B6 04 01 00 00 18 C0 87 AB 92 8D 80 33 [11:35:44]CommunicateWithHost err = 0 [11:35:44]CheckOFDResponse [11:35:44]1017 (14) - 77093643461234 [11:35:44]1041 (16) - 0000000000871745 [11:35:44]1040 (4) - 145677 [11:35:44]1012 (4) - 27.10.2024 05:08 [11:35:44]1206 (1) - 0 [11:35:44]OFD Sender: Remove packet 145677 [11:35:44]ProducePacketName [11:35:44]name=ofd_packets/00145677 [11:35:44]NVStorageDeleteData [11:35:45]OFD Sender: No OFD packet to send [11:35:45]*** Cut start [11:35:45]*** Partial cut [11:35:45]*** CUTSNS_PIN = 1 [11:35:45]*** CUTSNS_PIN = 0 [11:35:45]*** Brake cut motor [11:35:46]Read from MH i2c: 01 [11:35:46]MH_I2C_Read... [11:35:46]*** Stop cut motor [11:35:46]*** Cut end [11:35:46]Read from MH i2c: 01 07 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: 01 07 00 3C 0D 00 00 00 00 00 FF 0F 5E [11:35:46]process_action close_receipt done [11:35:46]requested_data is exist [11:35:46]produce_requested_data [11:35:46]requested_item fm.sn is exist - process it [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 11 00 00 [11:35:46]Write to MH i2c: E2 08 00 3D 0D 80 11 00 00 00 00 00 00 C4 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 17 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 17 00 3D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 17 [11:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:35:46]wFMCommunicate OK [11:35:46]requested_item fd.num is exist - process it [11:35:46]SAM_PROTO_GetFieldsCounters [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 13 00 00 [11:35:46]Write to MH i2c: E2 08 00 3E 0D 80 13 00 00 00 00 00 00 C7 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 62 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 62 00 3E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [11:35:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:46]wFMCommunicate OK [11:35:46]SAM_PROTO_GetFieldsCounters done [11:35:46]requested_item shift.num is exist - process it [11:35:46]requested_item shift.opened is exist - process it [11:35:46]req_shift_opened [11:35:46]FM_GetShiftState [11:35:46]SAM_PROTO_GetShiftState [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 13 01 00 [11:35:46]Write to MH i2c: E2 08 00 3F 0D 80 13 01 00 00 00 00 00 C9 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0E 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0E 00 3F 0D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 41 [11:35:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:35:46]wFMCommunicate OK [11:35:46]SAM_PROTO_GetShiftState done [11:35:46]FM_GetShiftState done [11:35:46]req_shift_opened done [11:35:46]requested_item shift.open_date is exist - process it [11:35:46]req_shift_open_date [11:35:46]req_shift_open_date done [11:35:46]produce_requested_data done [11:35:46]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145677,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:35:46]process_action_free close_receipt [11:35:46]json_value_free [11:35:46]json_value_free done [11:35:46]process_json_proto returns [11:35:46]Send response to host [11:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145677,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:35:46]free response buf [11:35:46]execute_script done [11:35:46]execute_script returns [11:35:46]free content buf [11:35:46]Sock 7.Close socket [11:35:46]Sock 7.Thread stoped [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:38]accept exits with 9 [11:45:38]New connection [11:45:38]New thread 3066740068 created [11:45:38]Thread 3066596708 joined [11:45:38]Waiting for new connection... [11:45:38] Sock 9.Parse request [11:45:38]Sock 9.Check first char [11:45:38]Sock 9.First char is OK [11:45:38]request: POST /json_proto HTTP/1.0 [11:45:38]Method: POST [11:45:38]URL: /json_proto [11:45:38]Method is POST - this is cgi request [11:45:38]url: /json_proto [11:45:38]query_string will be loaded in cgi processing [11:45:38]execute_cgi json_proto POST (null) [11:45:38]execute_cgi path=json_proto method=POST [11:45:38]POST find Content-Length [11:45:38]Host: 172.17.40.195:8080 [11:45:38]Content-Length: 984 [11:45:38]Content-Type: application/json [11:45:38] [11:45:38]POST finish read [11:45:38]Found Content-Length = 984 [11:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 27.140, "sum" : 2000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 13.57 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:38]execute_script... [11:45: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)160429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 27.140, "sum" : 2000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 13.57 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:38]POST & json_proto [11:45:38]process_json_proto [11:45:38]json parsed OK: [11:45:38]protocol is kg_v1.0 [11:45:38]action value=close_receipt [11:45:38]process_action close_receipt [11:45:38]cmd_close_receipt [11:45:38]MH_GetDate [11:45:38]Write to MH i2c: F0 00 00 40 0D 3C [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: F0 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: F0 09 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: F0 09 00 40 0D 00 E3 27 1E 67 D5 8D 6C 64 06 [11:45:38]GetLastDocTimeStamp 1730028943 [11:45:38]current date 1730029539 [11:45:38]FM_GetShiftState [11:45:38]SAM_PROTO_GetShiftState [11:45:38]wFMCommunicate request_size=4 [11:45:38]MH_SAM_APDU [11:45:38]CAPDU: 80 13 01 00 [11:45:38]Write to MH i2c: E2 08 00 41 0D 80 13 01 00 00 00 00 00 CB [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:38]Read from MH i2c: E2 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 0E 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 0E 00 41 0D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 43 [11:45:38]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:45:38]wFMCommunicate OK [11:45:38]SAM_PROTO_GetShiftState done [11:45:38]FM_GetShiftState done [11:45:38]opened in 1729988959 [11:45:38]opened+sec_in_day 1730075359 [11:45:38]quantity*price = 200021 [11:45:38]sum+1 = 200023 [11:45:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 101 27.10.2024 11:45 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-95 номер 126 сэкономлено 13.57 сом ФМ: 0000000000871745 ФД: 145678 ФПД: 249114222910392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114539&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145678&fm=249114222910392&tin=02508201610067®Number=0000000000091683&sum=200000 [11:45:39]StoreToDocumentArchive [11:45:39]shift 545 fd 145678 [11:45:39]save to /storage/0545/doc_00145678 [11:45:39]save last doc name /storage/0545/doc_00145678 to /storage/kkm_last_doc_name [11:45:39]save OK [11:45:39]Clear old archive folders... [11:45:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:39]tlvbuf is 003FE7E0 [11:45:39]SAM_PROTO_ClearQueue [11:45:39]wFMCommunicate request_size=4 [11:45:39]MH_SAM_APDU [11:45:39]CAPDU: 80 09 00 00 [11:45:39]Write to MH i2c: E2 08 00 4E 0D 80 09 00 00 00 00 00 00 CD [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:39]Read from MH i2c: E2 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 4E 0D 00 90 00 CF [11:45:39]RAPDU: 90 00 [11:45:39]wFMCommunicate OK [11:45:39]SAM_PROTO_ClearQueue done [11:45:39]KKMCreateOFDPacket [11:45:39]OFDProtocolAddRootSTLVToBuf [11:45:39]FM_MakeSignedData [11:45:39]FM_MakeSignedData [11:45:39]SAM_PROTO_SignData [11:45:39]wFMCommunicate request_size=4 [11:45:39]MH_SAM_APDU [11:45:39]CAPDU: 80 0D 01 02 [11:45:39]Write to MH i2c: E2 08 00 4F 0D 80 0D 01 02 00 00 00 00 D5 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:39]Read from MH i2c: E2 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 4F 0D 00 90 00 D0 [11:45:39]RAPDU: 90 00 [11:45:39]wFMCommunicate OK [11:45:39]wFMCommunicate request_size=255 [11:45:39]MH_SAM_APDU [11:45: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 04 6A 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 56 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 F9 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 65 00 00 00 F4 03 04 00 E3 27 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0E 39 02 00 35 04 06 00 E2 [11:45:39]Write to MH i2c: E2 02 01 50 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 04 6A 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 56 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 F9 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 65 00 00 00 F4 03 04 00 E3 27 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0E 39 02 00 35 04 06 00 E2 00 00 BA [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:39]Read from MH i2c: E2 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 50 0D 00 90 00 D1 [11:45:39]RAPDU: 90 00 [11:45:39]wFMCommunicate OK [11:45:39]wFMCommunicate request_size=10 [11:45:39]MH_SAM_APDU [11:45:39]CAPDU: 80 0D 02 02 05 91 6C C3 DB B8 [11:45:39]Write to MH i2c: E2 0D 00 51 0D 80 0D 02 02 05 00 91 6C C3 DB B8 00 00 35 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 51 0D 00 90 00 D2 [11:45:40]RAPDU: 90 00 [11:45:40]wFMCommunicate OK [11:45:40]wFMCommunicate request_size=4 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 0D 03 02 [11:45:40]Write to MH i2c: E2 08 00 52 0D 80 0D 03 02 00 00 00 00 DA [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 0B 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 0B 00 52 0D 00 CB 34 60 56 4B 07 5C 6B 90 00 A9 [11:45:40]RAPDU: CB 34 60 56 4B 07 5C 6B 90 00 [11:45:40]wFMCommunicate OK [11:45:40]SAM_PROTO_SignData done [11:45:40]FM_MakeSignedData done [11:45:40]CreateOFDProtocolMessage [11:45:40]wFMCommunicate request_size=4 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 11 00 00 [11:45:40]Write to MH i2c: E2 08 00 53 0D 80 11 00 00 00 00 00 00 DA [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 17 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 17 00 53 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2D [11:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:45:40]wFMCommunicate OK [11:45:40]CreateOFDProtocolMessage done [11:45:40]OFDSenderStorePacket 145678 [11:45:40]StoreOFDPacket docnum=145678 [11:45:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 AD F3 07 01 08 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 04 6A 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 56 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 F9 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 65 00 00 00 F4 03 04 00 E3 27 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0E 39 02 00 35 04 06 00 E2 91 6C C3 DB B8 CB 34 60 56 4B 07 5C 6B [11:45:40]CheckFolder [11:45:40]dirname=/storage/ofd_packets [11:45:40]CheckFolder done [11:45:40]ProducePacketName [11:45:40]name=ofd_packets/00145678 [11:45:40]NVStorageSaveData ofd_packets/00145678 [11:45:40]File name is /storage/ofd_packets/00145678 [11:45:40]Write 301 bytes [11:45:40]NVStorageSaveData done [11:45:40]OFDSenderStorePacket done [11:45:40]KKMCreateOFDPacket done [11:45:40]NVStorageSaveData kkm_last_timestamp [11:45:40]File name is /storage/kkm_last_timestamp [11:45:40]Write 4 bytes [11:45:40]NVStorageSaveData done [11:45:40]ExternCall_PrintAddStr [11:45:40]wPrintStart [11:45:40]Write to MH i2c: 01 00 00 54 0D 61 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 07 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 07 00 54 0D 00 00 00 00 00 FF 0F 76 [11:45:40]RasterBufferAndPrint [11:45:40]line Счет N : (1)160429 [11:45:40]line ИНН: 02508201610067 [11:45:40]line Контрольно-Кассовый Чек [11:45:40]line ПРОДАЖА [11:45:40]line ТРК (МРК, ГНК) : 43 [11:45:40]line Товар: 2710124500 [11:45:40]line Аи-95-К-3 [11:45:40]line 27.140 * 73.70 [11:45:40]line = 2000.22 [11:45:40]line НДС 12% НСП 1% [11:45:40]line > о реализуемом товаре [11:45:40]line ОКРУГЛЕНИЕ: -0.22 [11:45:40]line ИТОГО: 2000.00 [11:45:40]line Внесено: 2000.00 [11:45:40]line СДАЧА: 0.00 [11:45:40]line НСП 1% : 17.70 [11:45:40]line НДС 12% : 212.41 [11:45:40]line Наличными: 2000.00 [11:45:40]line Безнал.: 0.00 [11:45:40]line Место: АЗС № 126 "Партнер Нефть" [11:45:40]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:45:40]line СНО: Общий режим [11:45:40]line Чек 101 27.10.2024 11:45 [11:45:40]line Смена: 545 ФФД: 1.0 [11:45:40]line ЗНМ: 0300000085 [11:45:40]line РНМ: 0000000000091683 [11:45:40]line Версия ККМ: 001 [11:45:40]line [11:45:40]line Дисконтная программа [11:45:40]line АИ-95 [11:45:40]line номер 126 [11:45:40]line сэкономлено 13.57 сом [11:45:40]line ФМ: 0000000000871745 [11:45:40]line ФД: 145678 [11:45:40]line ФПД: 249114222910392 [11:45:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114539&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145678&fm=249114222910392&tin=02508201610067®Number=0000000000091683&sum=200000 [11:45:40]OFD Sender: Processing packet 145678 [packets to send 206, broken 205] [11:45:40]ProducePacketName [11:45:40]name=ofd_packets/00145678 [11:45:40]OFD Sender: To server: pG, [11:45:40]CommunicateWithHost lk.salyk.kg:30040 [11:45:40]ConnectInit lk.salyk.kg [11:45:40]written 0, free lines is 4095 [11:45:40]Connected sock=10 [11:45:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 AD F3 07 01 08 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 04 6A 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 56 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 F9 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 65 00 00 00 F4 03 04 00 E3 27 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0E 39 02 00 35 04 06 00 E2 91 6C C3 DB B8 CB 34 60 56 4B 07 5C 6B [11:45:40]Write to MH i2c: 01 00 00 84 0D 91 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 07 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 07 00 84 0D 00 00 00 00 00 43 0C E7 [11:45:40]RasterBufferAndPrint [11:45:40]line [11:45:40]line [11:45:40]line [11:45:40]line [11:45:40]line [11:45:40]written 0, free lines is 3144 [11:45:40]MH_Cut [11:45:40]Write to MH i2c: D1 01 00 8B 0D 01 6A [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: D1 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: D1 01 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: D1 01 00 8B 0D 00 69 [11:45:40]Write to MH i2c: 01 00 00 8C 0D 99 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 52 84 47 00 29 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0E 39 02 00 F4 03 04 00 11 CD 1D 67 B6 04 01 00 00 F1 77 DD 8D E7 55 E9 C7 [11:45:41]CommunicateWithHost err = 0 [11:45:41]CheckOFDResponse [11:45:41]1017 (14) - 77093643461234 [11:45:41]1041 (16) - 0000000000871745 [11:45:41]1040 (4) - 145678 [11:45:41]1012 (4) - 27.10.2024 05:18 [11:45:41]1206 (1) - 0 [11:45:41]OFD Sender: Remove packet 145678 [11:45:41]ProducePacketName [11:45:41]name=ofd_packets/00145678 [11:45:41]NVStorageDeleteData [11:45:41]OFD Sender: No OFD packet to send [11:45:41]*** Cut start [11:45:41]*** Partial cut [11:45:41]*** CUTSNS_PIN = 1 [11:45:41]*** CUTSNS_PIN = 0 [11:45:42]*** Brake cut motor [11:45:42]Read from MH i2c: 01 [11:45:42]MH_I2C_Read... [11:45:42]*** Stop cut motor [11:45:42]*** Cut end [11:45:42]Read from MH i2c: 01 07 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: 01 07 00 8C 0D 00 00 00 00 00 FF 0F AE [11:45:42]process_action close_receipt done [11:45:42]requested_data is exist [11:45:42]produce_requested_data [11:45:42]requested_item fm.sn is exist - process it [11:45:42]wFMCommunicate request_size=4 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 11 00 00 [11:45:42]Write to MH i2c: E2 08 00 8D 0D 80 11 00 00 00 00 00 00 14 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 17 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 17 00 8D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 67 [11:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:45:42]wFMCommunicate OK [11:45:42]requested_item fd.num is exist - process it [11:45:42]SAM_PROTO_GetFieldsCounters [11:45:42]wFMCommunicate request_size=4 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 13 00 00 [11:45:42]Write to MH i2c: E2 08 00 8E 0D 80 13 00 00 00 00 00 00 17 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 62 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 62 00 8E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [11:45:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:42]wFMCommunicate OK [11:45:42]SAM_PROTO_GetFieldsCounters done [11:45:42]requested_item shift.num is exist - process it [11:45:42]requested_item shift.opened is exist - process it [11:45:42]req_shift_opened [11:45:42]FM_GetShiftState [11:45:42]SAM_PROTO_GetShiftState [11:45:42]wFMCommunicate request_size=4 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 13 01 00 [11:45:42]Write to MH i2c: E2 08 00 8F 0D 80 13 01 00 00 00 00 00 19 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 0E 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 0E 00 8F 0D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 91 [11:45:42]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:45:42]wFMCommunicate OK [11:45:42]SAM_PROTO_GetShiftState done [11:45:42]FM_GetShiftState done [11:45:42]req_shift_opened done [11:45:42]requested_item shift.open_date is exist - process it [11:45:42]req_shift_open_date [11:45:42]req_shift_open_date done [11:45:42]produce_requested_data done [11:45:42]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145678,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:45:42]process_action_free close_receipt [11:45:42]json_value_free [11:45:42]json_value_free done [11:45:42]process_json_proto returns [11:45:42]Send response to host [11:45:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145678,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:45:42]free response buf [11:45:42]execute_script done [11:45:42]execute_script returns [11:45:42]free content buf [11:45:42]Sock 9.Close socket [11:45:42]Sock 9.Thread stoped [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:44]accept exits with 7 [11:48:44]New connection [11:48:44]New thread 3066596708 created [11:48:44]Thread 3066740068 joined [11:48:44]Waiting for new connection... [11:48:44] Sock 7.Parse request [11:48:44]Sock 7.Check first char [11:48:44]Sock 7.First char is OK [11:48:44]request: POST /json_proto HTTP/1.0 [11:48:44]Method: POST [11:48:44]URL: /json_proto [11:48:44]Method is POST - this is cgi request [11:48:44]url: /json_proto [11:48:44]query_string will be loaded in cgi processing [11:48:44]execute_cgi json_proto POST (null) [11:48:44]execute_cgi path=json_proto method=POST [11:48:44]POST find Content-Length [11:48:44]Host: 172.17.40.195:8080 [11:48:44]Content-Length: 677 [11:48:44]Content-Type: application/json [11:48:44] [11:48:44]POST finish read [11:48:44]Found Content-Length = 677 [11:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:44]execute_script... [11:48: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)160430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:44]POST & json_proto [11:48:44]process_json_proto [11:48:44]json parsed OK: [11:48:44]protocol is kg_v1.0 [11:48:44]action value=close_receipt [11:48:44]process_action close_receipt [11:48:44]cmd_close_receipt [11:48:44]MH_GetDate [11:48:44]Write to MH i2c: F0 00 00 90 0D 8C [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: F0 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: F0 09 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: F0 09 00 90 0D 00 9D 28 1E 67 D5 8D 6C 64 11 [11:48:44]GetLastDocTimeStamp 1730029539 [11:48:44]current date 1730029725 [11:48:44]FM_GetShiftState [11:48:44]SAM_PROTO_GetShiftState [11:48:44]wFMCommunicate request_size=4 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 13 01 00 [11:48:44]Write to MH i2c: E2 08 00 91 0D 80 13 01 00 00 00 00 00 1B [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:44]Read from MH i2c: E2 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 0E 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 0E 00 91 0D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 93 [11:48:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:48:44]wFMCommunicate OK [11:48:44]SAM_PROTO_GetShiftState done [11:48:44]FM_GetShiftState done [11:48:44]opened in 1729988959 [11:48:44]opened+sec_in_day 1730075359 [11:48:44]quantity*price = 30038 [11:48:44]sum+1 = 30039 [11:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 102 27.10.2024 11:48 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145679 ФПД: 36339701793844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114845&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145679&fm=36339701793844&tin=02508201610067®Number=0000000000091683&sum=30000 [11:48:45]StoreToDocumentArchive [11:48:45]shift 545 fd 145679 [11:48:45]save to /storage/0545/doc_00145679 [11:48:45]save last doc name /storage/0545/doc_00145679 to /storage/kkm_last_doc_name [11:48:45]save OK [11:48:45]Clear old archive folders... [11:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:45]tlvbuf is 0040A4B0 [11:48:45]SAM_PROTO_ClearQueue [11:48:45]wFMCommunicate request_size=4 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 09 00 00 [11:48:45]Write to MH i2c: E2 08 00 9E 0D 80 09 00 00 00 00 00 00 1D [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 9E 0D 00 90 00 1F [11:48:45]RAPDU: 90 00 [11:48:45]wFMCommunicate OK [11:48:45]SAM_PROTO_ClearQueue done [11:48:45]KKMCreateOFDPacket [11:48:45]OFDProtocolAddRootSTLVToBuf [11:48:45]FM_MakeSignedData [11:48:45]FM_MakeSignedData [11:48:45]SAM_PROTO_SignData [11:48:45]wFMCommunicate request_size=4 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 0D 01 02 [11:48:45]Write to MH i2c: E2 08 00 9F 0D 80 0D 01 02 00 00 00 00 25 [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:45]Read from MH i2c: E2 03 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 9F 0D 00 90 00 20 [11:48:45]RAPDU: 90 00 [11:48:45]wFMCommunicate OK [11:48:45]wFMCommunicate request_size=255 [11:48:45]MH_SAM_APDU [11:48: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9D 28 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0F 39 02 00 35 04 06 00 21 [11:48:45]Write to MH i2c: E2 02 01 A0 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9D 28 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0F 39 02 00 35 04 06 00 21 00 00 E5 [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 A0 0D 00 90 00 21 [11:48:45]RAPDU: 90 00 [11:48:45]wFMCommunicate OK [11:48:45]wFMCommunicate request_size=10 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 0D 02 02 05 0C FF 04 44 34 [11:48:45]Write to MH i2c: E2 0D 00 A1 0D 80 0D 02 02 05 00 0C FF 04 44 34 00 00 B9 [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 A1 0D 00 90 00 22 [11:48:45]RAPDU: 90 00 [11:48:45]wFMCommunicate OK [11:48:45]wFMCommunicate request_size=4 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 0D 03 02 [11:48:45]Write to MH i2c: E2 08 00 A2 0D 80 0D 03 02 00 00 00 00 2A [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 0B 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 0B 00 A2 0D 00 28 EE 0F DC 06 EA 6F BE 90 00 49 [11:48:45]RAPDU: 28 EE 0F DC 06 EA 6F BE 90 00 [11:48:45]wFMCommunicate OK [11:48:45]SAM_PROTO_SignData done [11:48:45]FM_MakeSignedData done [11:48:45]CreateOFDProtocolMessage [11:48:45]wFMCommunicate request_size=4 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 11 00 00 [11:48:45]Write to MH i2c: E2 08 00 A3 0D 80 11 00 00 00 00 00 00 2A [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:46]Read from MH i2c: E2 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: E2 17 00 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: E2 17 00 A3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 7D [11:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:48:46]wFMCommunicate OK [11:48:46]CreateOFDProtocolMessage done [11:48:46]OFDSenderStorePacket 145679 [11:48:46]StoreOFDPacket docnum=145679 [11:48:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9F C7 07 01 D8 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9D 28 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0F 39 02 00 35 04 06 00 21 0C FF 04 44 34 28 EE 0F DC 06 EA 6F BE [11:48:46]CheckFolder [11:48:46]dirname=/storage/ofd_packets [11:48:46]CheckFolder done [11:48:46]ProducePacketName [11:48:46]name=ofd_packets/00145679 [11:48:46]NVStorageSaveData ofd_packets/00145679 [11:48:46]File name is /storage/ofd_packets/00145679 [11:48:46]Write 301 bytes [11:48:46]NVStorageSaveData done [11:48:46]OFDSenderStorePacket done [11:48:46]KKMCreateOFDPacket done [11:48:46]NVStorageSaveData kkm_last_timestamp [11:48:46]File name is /storage/kkm_last_timestamp [11:48:46]Write 4 bytes [11:48:46]NVStorageSaveData done [11:48:46]ExternCall_PrintAddStr [11:48:46]wPrintStart [11:48:46]Write to MH i2c: 01 00 00 A4 0D B1 [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 07 00 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 07 00 A4 0D 00 00 00 00 00 FF 0F C6 [11:48:46]RasterBufferAndPrint [11:48:46]line Счет N : (1)160430 [11:48:46]line ИНН: 02508201610067 [11:48:46]line Контрольно-Кассовый Чек [11:48:46]line ПРОДАЖА [11:48:46]line ТРК (МРК, ГНК) : 32 [11:48:46]line Товар: 2710124130 [11:48:46]line Аи-92-К-2 [11:48:46]line 4.490 * 66.90 [11:48:46]line = 300.38 [11:48:46]line НДС 12% НСП 1% [11:48:46]line > о реализуемом товаре [11:48:46]line ОКРУГЛЕНИЕ: -0.38 [11:48:46]line ИТОГО: 300.00 [11:48:46]line Внесено: 300.00 [11:48:46]line СДАЧА: 0.00 [11:48:46]line НСП 1% : 2.66 [11:48:46]line НДС 12% : 31.90 [11:48:46]line Наличными: 300.00 [11:48:46]line Безнал.: 0.00 [11:48:46]line Место: АЗС № 126 "Партнер Нефть" [11:48:46]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:48:46]line СНО: Общий режим [11:48:46]line Чек 102 27.10.2024 11:48 [11:48:46]line Смена: 545 ФФД: 1.0 [11:48:46]line ЗНМ: 0300000085 [11:48:46]line РНМ: 0000000000091683 [11:48:46]line Версия ККМ: 001 [11:48:46]line ФМ: 0000000000871745 [11:48:46]line ФД: 145679 [11:48:46]line ФПД: 36339701793844 [11:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114845&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145679&fm=36339701793844&tin=02508201610067®Number=0000000000091683&sum=30000 [11:48:46]written 0, free lines is 4095 [11:48:46]OFD Sender: Processing packet 145679 [packets to send 206, broken 205] [11:48:46]ProducePacketName [11:48:46]name=ofd_packets/00145679 [11:48:46]OFD Sender: To server: pG, [11:48:46]CommunicateWithHost lk.salyk.kg:30040 [11:48:46]ConnectInit lk.salyk.kg [11:48:46]Connected sock=10 [11:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9F C7 07 01 D8 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9D 28 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 0F 39 02 00 35 04 06 00 21 0C FF 04 44 34 28 EE 0F DC 06 EA 6F BE [11:48:46]Write to MH i2c: 01 00 00 CF 0D DC [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 07 00 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 07 00 CF 0D 00 00 00 00 00 A2 0C 91 [11:48:46]RasterBufferAndPrint [11:48:46]line [11:48:46]line [11:48:46]line [11:48:46]line [11:48:46]line [11:48:46]written 0, free lines is 3240 [11:48:46]MH_Cut [11:48:46]Write to MH i2c: D1 01 00 D6 0D 01 B5 [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: D1 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: D1 01 00 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: D1 01 00 D6 0D 00 B4 [11:48:46]Write to MH i2c: 01 00 00 D7 0D E4 [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 19 36 47 00 4F 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 31 37 34 35 10 04 04 00 0F 39 02 00 F4 03 04 00 CB CD 1D 67 B6 04 01 00 00 59 98 C7 7B FF 99 69 60 [11:48:47]CommunicateWithHost err = 0 [11:48:47]CheckOFDResponse [11:48:47]1017 (14) - 77093643461234 [11:48:47]1041 (16) - 0000000000871745 [11:48:47]1040 (4) - 145679 [11:48:47]1012 (4) - 27.10.2024 05:21 [11:48:47]1206 (1) - 0 [11:48:47]OFD Sender: Remove packet 145679 [11:48:47]ProducePacketName [11:48:47]name=ofd_packets/00145679 [11:48:47]NVStorageDeleteData [11:48:47]OFD Sender: No OFD packet to send [11:48:47]*** Cut start [11:48:47]*** Partial cut [11:48:47]*** CUTSNS_PIN = 1 [11:48:47]*** CUTSNS_PIN = 0 [11:48:47]*** Brake cut motor [11:48:48]Read from MH i2c: 01 [11:48:48]MH_I2C_Read... [11:48:48]*** Stop cut motor [11:48:48]*** Cut end [11:48:48]Read from MH i2c: 01 07 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 07 00 D7 0D 00 00 00 00 00 FF 0F F9 [11:48:48]process_action close_receipt done [11:48:48]requested_data is exist [11:48:48]produce_requested_data [11:48:48]requested_item fm.sn is exist - process it [11:48:48]wFMCommunicate request_size=4 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 11 00 00 [11:48:48]Write to MH i2c: E2 08 00 D8 0D 80 11 00 00 00 00 00 00 5F [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 17 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 17 00 D8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B2 [11:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:48:48]wFMCommunicate OK [11:48:48]requested_item fd.num is exist - process it [11:48:48]SAM_PROTO_GetFieldsCounters [11:48:48]wFMCommunicate request_size=4 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 13 00 00 [11:48:48]Write to MH i2c: E2 08 00 D9 0D 80 13 00 00 00 00 00 00 62 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 62 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 62 00 D9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [11: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 0F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:48]wFMCommunicate OK [11:48:48]SAM_PROTO_GetFieldsCounters done [11:48:48]requested_item shift.num is exist - process it [11:48:48]requested_item shift.opened is exist - process it [11:48:48]req_shift_opened [11:48:48]FM_GetShiftState [11:48:48]SAM_PROTO_GetShiftState [11:48:48]wFMCommunicate request_size=4 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 13 01 00 [11:48:48]Write to MH i2c: E2 08 00 DA 0D 80 13 01 00 00 00 00 00 64 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 0E 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 0E 00 DA 0D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 DC [11:48:48]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:48:48]wFMCommunicate OK [11:48:48]SAM_PROTO_GetShiftState done [11:48:48]FM_GetShiftState done [11:48:48]req_shift_opened done [11:48:48]requested_item shift.open_date is exist - process it [11:48:48]req_shift_open_date [11:48:48]req_shift_open_date done [11:48:48]produce_requested_data done [11:48:48]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145679,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:48:48]process_action_free close_receipt [11:48:48]json_value_free [11:48:48]json_value_free done [11:48:48]process_json_proto returns [11:48:48]Send response to host [11:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145679,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:48:48]free response buf [11:48:48]execute_script done [11:48:48]execute_script returns [11:48:48]free content buf [11:48:48]Sock 7.Close socket [11:48:48]Sock 7.Thread stoped [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:00]accept exits with 9 [11:52:00]New connection [11:52:00]New thread 3066740068 created [11:52:00]Thread 3066596708 joined [11:52:00]Waiting for new connection... [11:52:00] Sock 9.Parse request [11:52:00]Sock 9.Check first char [11:52:00]Sock 9.First char is OK [11:52:00]request: POST /json_proto HTTP/1.0 [11:52:00]Method: POST [11:52:00]URL: /json_proto [11:52:00]Method is POST - this is cgi request [11:52:00]url: /json_proto [11:52:00]query_string will be loaded in cgi processing [11:52:00]execute_cgi json_proto POST (null) [11:52:00]execute_cgi path=json_proto method=POST [11:52:00]POST find Content-Length [11:52:00]Host: 172.17.40.195:8080 [11:52:00]Content-Length: 682 [11:52:00]Content-Type: application/json [11:52:00] [11:52:00]POST finish read [11:52:00]Found Content-Length = 682 [11:52:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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:52:00]execute_script... [11:52: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)160431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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:52:00]POST & json_proto [11:52:00]process_json_proto [11:52:00]json parsed OK: [11:52:00]protocol is kg_v1.0 [11:52:00]action value=close_receipt [11:52:00]process_action close_receipt [11:52:00]cmd_close_receipt [11:52:00]MH_GetDate [11:52:00]Write to MH i2c: F0 00 00 DB 0D D7 [11:52:00]Write i2c OK [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: F0 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: F0 09 00 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: F0 09 00 DB 0D 00 61 29 1E 67 D5 8D 6C 64 21 [11:52:00]GetLastDocTimeStamp 1730029725 [11:52:00]current date 1730029921 [11:52:00]FM_GetShiftState [11:52:00]SAM_PROTO_GetShiftState [11:52:00]wFMCommunicate request_size=4 [11:52:00]MH_SAM_APDU [11:52:00]CAPDU: 80 13 01 00 [11:52:00]Write to MH i2c: E2 08 00 DC 0D 80 13 01 00 00 00 00 00 66 [11:52:00]Write i2c OK [11:52:00]MH_I2C_Read... [11:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:00]Read from MH i2c: E2 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 0E 00 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 0E 00 DC 0D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 DE [11:52:00]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:52:00]wFMCommunicate OK [11:52:00]SAM_PROTO_GetShiftState done [11:52:00]FM_GetShiftState done [11:52:00]opened in 1729988959 [11:52:00]opened+sec_in_day 1730075359 [11:52:00]quantity*price = 120055 [11:52:00]sum+1 = 120057 [11:52:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 103 27.10.2024 11:52 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145680 ФПД: 32081797473439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115201&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145680&fm=32081797473439&tin=02508201610067®Number=0000000000091683&sum=120000 [11:52:01]StoreToDocumentArchive [11:52:01]shift 545 fd 145680 [11:52:01]save to /storage/0545/doc_00145680 [11:52:01]save last doc name /storage/0545/doc_00145680 to /storage/kkm_last_doc_name [11:52:01]save OK [11:52:01]Clear old archive folders... [11:52:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:01]tlvbuf is 00446C10 [11:52:01]SAM_PROTO_ClearQueue [11:52:01]wFMCommunicate request_size=4 [11:52:01]MH_SAM_APDU [11:52:01]CAPDU: 80 09 00 00 [11:52:01]Write to MH i2c: E2 08 00 E9 0D 80 09 00 00 00 00 00 00 68 [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:01]Read from MH i2c: E2 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 E9 0D 00 90 00 6A [11:52:01]RAPDU: 90 00 [11:52:01]wFMCommunicate OK [11:52:01]SAM_PROTO_ClearQueue done [11:52:01]KKMCreateOFDPacket [11:52:01]OFDProtocolAddRootSTLVToBuf [11:52:01]FM_MakeSignedData [11:52:01]FM_MakeSignedData [11:52:01]SAM_PROTO_SignData [11:52:01]wFMCommunicate request_size=4 [11:52:01]MH_SAM_APDU [11:52:01]CAPDU: 80 0D 01 02 [11:52:01]Write to MH i2c: E2 08 00 EA 0D 80 0D 01 02 00 00 00 00 70 [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:01]Read from MH i2c: E2 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 EA 0D 00 90 00 6B [11:52:01]RAPDU: 90 00 [11:52:01]wFMCommunicate OK [11:52:01]wFMCommunicate request_size=255 [11:52:01]MH_SAM_APDU [11: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 67 00 00 00 F4 03 04 00 61 29 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 10 39 02 00 35 04 06 00 1D [11:52:01]Write to MH i2c: E2 02 01 EB 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 67 00 00 00 F4 03 04 00 61 29 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 10 39 02 00 35 04 06 00 1D 00 00 29 [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:02]Read from MH i2c: E2 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 EB 0D 00 90 00 6C [11:52:02]RAPDU: 90 00 [11:52:02]wFMCommunicate OK [11:52:02]wFMCommunicate request_size=10 [11:52:02]MH_SAM_APDU [11:52:02]CAPDU: 80 0D 02 02 05 2D A0 24 64 9F [11:52:02]Write to MH i2c: E2 0D 00 EC 0D 80 0D 02 02 05 00 2D A0 24 64 9F 00 00 71 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:02]Read from MH i2c: E2 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 EC 0D 00 90 00 6D [11:52:02]RAPDU: 90 00 [11:52:02]wFMCommunicate OK [11:52:02]wFMCommunicate request_size=4 [11:52:02]MH_SAM_APDU [11:52:02]CAPDU: 80 0D 03 02 [11:52:02]Write to MH i2c: E2 08 00 ED 0D 80 0D 03 02 00 00 00 00 75 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:02]Read from MH i2c: E2 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 0B 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 0B 00 ED 0D 00 08 A6 0B DE A4 11 14 24 90 00 FA [11:52:02]RAPDU: 08 A6 0B DE A4 11 14 24 90 00 [11:52:02]wFMCommunicate OK [11:52:02]SAM_PROTO_SignData done [11:52:02]FM_MakeSignedData done [11:52:02]CreateOFDProtocolMessage [11:52:02]wFMCommunicate request_size=4 [11:52:02]MH_SAM_APDU [11:52:02]CAPDU: 80 11 00 00 [11:52:02]Write to MH i2c: E2 08 00 EE 0D 80 11 00 00 00 00 00 00 75 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:02]Read from MH i2c: E2 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 17 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 17 00 EE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C8 [11:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:52:02]wFMCommunicate OK [11:52:02]CreateOFDProtocolMessage done [11:52:02]OFDSenderStorePacket 145680 [11:52:02]StoreOFDPacket docnum=145680 [11:52:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F7 59 07 01 F3 33 5A 03 01 00 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 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 67 00 00 00 F4 03 04 00 61 29 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 10 39 02 00 35 04 06 00 1D 2D A0 24 64 9F 08 A6 0B DE A4 11 14 24 [11:52:02]CheckFolder [11:52:02]dirname=/storage/ofd_packets [11:52:02]CheckFolder done [11:52:02]ProducePacketName [11:52:02]name=ofd_packets/00145680 [11:52:02]NVStorageSaveData ofd_packets/00145680 [11:52:02]File name is /storage/ofd_packets/00145680 [11:52:02]Write 301 bytes [11:52:02]NVStorageSaveData done [11:52:02]OFDSenderStorePacket done [11:52:02]KKMCreateOFDPacket done [11:52:02]NVStorageSaveData kkm_last_timestamp [11:52:02]File name is /storage/kkm_last_timestamp [11:52:02]Write 4 bytes [11:52:02]NVStorageSaveData done [11:52:02]ExternCall_PrintAddStr [11:52:02]wPrintStart [11:52:02]Write to MH i2c: 01 00 00 EF 0D FC [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: 01 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: 01 07 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 FF 0F 11 [11:52:02]RasterBufferAndPrint [11:52:02]line Счет N : (1)160431 [11:52:02]line ИНН: 02508201610067 [11:52:02]line Контрольно-Кассовый Чек [11:52:02]line ПРОДАЖА [11:52:02]line ТРК (МРК, ГНК) : 33 [11:52:02]line Товар: 2710124500 [11:52:02]line Аи-95-К-3 [11:52:02]line 16.180 * 74.20 [11:52:02]line = 1200.56 [11:52:02]line НДС 12% НСП 1% [11:52:02]line > о реализуемом товаре [11:52:02]line ОКРУГЛЕНИЕ: -0.56 [11:52:02]line ИТОГО: 1200.00 [11:52:02]line Внесено: 1200.00 [11:52:02]line СДАЧА: 0.00 [11:52:02]line НСП 1% : 10.62 [11:52:02]line НДС 12% : 127.49 [11:52:02]line Наличными: 1200.00 [11:52:02]line Безнал.: 0.00 [11:52:02]line Место: АЗС № 126 "Партнер Нефть" [11:52:02]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:52:02]line СНО: Общий режим [11:52:02]line Чек 103 27.10.2024 11:52 [11:52:02]line Смена: 545 ФФД: 1.0 [11:52:02]line ЗНМ: 0300000085 [11:52:02]line РНМ: 0000000000091683 [11:52:02]line Версия ККМ: 001 [11:52:02]line ФМ: 0000000000871745 [11:52:02]line ФД: 145680 [11:52:02]line ФПД: 32081797473439 [11:52:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115201&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145680&fm=32081797473439&tin=02508201610067®Number=0000000000091683&sum=120000 [11:52:02]OFD Sender: Processing packet 145680 [packets to send 206, broken 205] [11:52:02]ProducePacketName [11:52:02]name=ofd_packets/00145680 [11:52:02]OFD Sender: To server: pG, [11:52:02]CommunicateWithHost lk.salyk.kg:30040 [11:52:02]ConnectInit lk.salyk.kg [11:52:02]written 0, free lines is 4095 [11:52:02]Connected sock=11 [11: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 31 37 34 35 0F 01 00 00 F7 59 07 01 F3 33 5A 03 01 00 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 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 67 00 00 00 F4 03 04 00 61 29 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 10 39 02 00 35 04 06 00 1D 2D A0 24 64 9F 08 A6 0B DE A4 11 14 24 [11:52:02]Write to MH i2c: 01 00 00 1A 0E 28 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: 01 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: 01 07 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: 01 07 00 1A 0E 00 00 00 00 00 9C 0C D7 [11:52:02]RasterBufferAndPrint [11:52:02]line [11:52:02]line [11:52:02]line [11:52:02]line [11:52:02]line [11:52:02]written 0, free lines is 3233 [11:52:02]MH_Cut [11:52:02]Write to MH i2c: D1 01 00 21 0E 01 01 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: D1 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: D1 01 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: D1 01 00 21 0E 00 00 [11:52:02]Write to MH i2c: 01 00 00 22 0E 30 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 3E 66 47 00 1C 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 10 39 02 00 F4 03 04 00 8F CE 1D 67 B6 04 01 00 00 9C CC 81 CC D7 47 7D 9C [11:52:03]CommunicateWithHost err = 0 [11:52:03]CheckOFDResponse [11:52:03]1017 (14) - 77093643461234 [11:52:03]1041 (16) - 0000000000871745 [11:52:03]1040 (4) - 145680 [11:52:03]1012 (4) - 27.10.2024 05:24 [11:52:03]1206 (1) - 0 [11:52:03]OFD Sender: Remove packet 145680 [11:52:03]ProducePacketName [11:52:03]name=ofd_packets/00145680 [11:52:03]NVStorageDeleteData [11:52:03]OFD Sender: No OFD packet to send [11:52:03]*** Cut start [11:52:03]*** Partial cut [11:52:03]*** CUTSNS_PIN = 1 [11:52:03]*** CUTSNS_PIN = 0 [11:52:04]*** Brake cut motor [11:52:04]Read from MH i2c: 01 [11:52:04]MH_I2C_Read... [11:52:04]*** Stop cut motor [11:52:04]*** Cut end [11:52:04]Read from MH i2c: 01 07 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: 01 07 00 22 0E 00 00 00 00 00 FF 0F 45 [11:52:04]process_action close_receipt done [11:52:04]requested_data is exist [11:52:04]produce_requested_data [11:52:04]requested_item fm.sn is exist - process it [11:52:04]wFMCommunicate request_size=4 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 11 00 00 [11:52:04]Write to MH i2c: E2 08 00 23 0E 80 11 00 00 00 00 00 00 AB [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 17 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 17 00 23 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 FE [11:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:52:04]wFMCommunicate OK [11:52:04]requested_item fd.num is exist - process it [11:52:04]SAM_PROTO_GetFieldsCounters [11:52:04]wFMCommunicate request_size=4 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 13 00 00 [11:52:04]Write to MH i2c: E2 08 00 24 0E 80 13 00 00 00 00 00 00 AE [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 62 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 62 00 24 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 10 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [11:52:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 10 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:04]wFMCommunicate OK [11:52:04]SAM_PROTO_GetFieldsCounters done [11:52:04]requested_item shift.num is exist - process it [11:52:04]requested_item shift.opened is exist - process it [11:52:04]req_shift_opened [11:52:04]FM_GetShiftState [11:52:04]SAM_PROTO_GetShiftState [11:52:04]wFMCommunicate request_size=4 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 13 01 00 [11:52:04]Write to MH i2c: E2 08 00 25 0E 80 13 01 00 00 00 00 00 B0 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 0E 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 0E 00 25 0E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 28 [11:52:04]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:52:04]wFMCommunicate OK [11:52:04]SAM_PROTO_GetShiftState done [11:52:04]FM_GetShiftState done [11:52:04]req_shift_opened done [11:52:04]requested_item shift.open_date is exist - process it [11:52:04]req_shift_open_date [11:52:04]req_shift_open_date done [11:52:04]produce_requested_data done [11:52:04]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145680,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:52:04]process_action_free close_receipt [11:52:04]json_value_free [11:52:04]json_value_free done [11:52:04]process_json_proto returns [11:52:04]Send response to host [11:52:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145680,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:52:04]free response buf [11:52:04]execute_script done [11:52:04]execute_script returns [11:52:04]free content buf [11:52:04]Sock 9.Close socket [11:52:04]Sock 9.Thread stoped [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:43]OFD Sender: No OFD packet to send [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:25]accept exits with 10 [11:54:25]New connection [11:54:25]New thread 3066596708 created [11:54:25]Thread 3066740068 joined [11:54:25]Waiting for new connection... [11:54:25] Sock 10.Parse request [11:54:25]Sock 10.Check first char [11:54:25]Sock 10.First char is OK [11:54:25]request: POST /json_proto HTTP/1.0 [11:54:25]Method: POST [11:54:25]URL: /json_proto [11:54:25]Method is POST - this is cgi request [11:54:25]url: /json_proto [11:54:25]query_string will be loaded in cgi processing [11:54:25]execute_cgi json_proto POST (null) [11:54:25]execute_cgi path=json_proto method=POST [11:54:25]POST find Content-Length [11:54:25]Host: 172.17.40.195:8080 [11:54:25]Content-Length: 677 [11:54:25]Content-Type: application/json [11:54:25] [11:54:25]POST finish read [11:54:25]Found Content-Length = 677 [11:54:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:25]execute_script... [11:54:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:25]POST & json_proto [11:54:25]process_json_proto [11:54:25]json parsed OK: [11:54:25]protocol is kg_v1.0 [11:54:25]action value=close_receipt [11:54:25]process_action close_receipt [11:54:25]cmd_close_receipt [11:54:25]MH_GetDate [11:54:25]Write to MH i2c: F0 00 00 26 0E 23 [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: F0 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: F0 09 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: F0 09 00 26 0E 00 F3 29 1E 67 D5 8D 6C 64 FF [11:54:25]GetLastDocTimeStamp 1730029921 [11:54:25]current date 1730030067 [11:54:25]FM_GetShiftState [11:54:25]SAM_PROTO_GetShiftState [11:54:25]wFMCommunicate request_size=4 [11:54:25]MH_SAM_APDU [11:54:25]CAPDU: 80 13 01 00 [11:54:25]Write to MH i2c: E2 08 00 27 0E 80 13 01 00 00 00 00 00 B2 [11:54:25]Write i2c OK [11:54:26]MH_I2C_Read... [11:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:26]Read from MH i2c: E2 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 0E 00 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 0E 00 27 0E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 2A [11:54:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:54:26]wFMCommunicate OK [11:54:26]SAM_PROTO_GetShiftState done [11:54:26]FM_GetShiftState done [11:54:26]opened in 1729988959 [11:54:26]opened+sec_in_day 1730075359 [11:54:26]quantity*price = 30038 [11:54:26]sum+1 = 30039 [11:54:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 104 27.10.2024 11:54 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145681 ФПД: 7753628705077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115427&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145681&fm=7753628705077&tin=02508201610067®Number=0000000000091683&sum=30000 [11:54:27]StoreToDocumentArchive [11:54:27]shift 545 fd 145681 [11:54:27]save to /storage/0545/doc_00145681 [11:54:27]save last doc name /storage/0545/doc_00145681 to /storage/kkm_last_doc_name [11:54:27]save OK [11:54:27]Clear old archive folders... [11:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:27]tlvbuf is 00428740 [11:54:27]SAM_PROTO_ClearQueue [11:54:27]wFMCommunicate request_size=4 [11:54:27]MH_SAM_APDU [11:54:27]CAPDU: 80 09 00 00 [11:54:27]Write to MH i2c: E2 08 00 34 0E 80 09 00 00 00 00 00 00 B4 [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:27]Read from MH i2c: E2 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 34 0E 00 90 00 B6 [11:54:27]RAPDU: 90 00 [11:54:27]wFMCommunicate OK [11:54:27]SAM_PROTO_ClearQueue done [11:54:27]KKMCreateOFDPacket [11:54:27]OFDProtocolAddRootSTLVToBuf [11:54:27]FM_MakeSignedData [11:54:27]FM_MakeSignedData [11:54:27]SAM_PROTO_SignData [11:54:27]wFMCommunicate request_size=4 [11:54:27]MH_SAM_APDU [11:54:27]CAPDU: 80 0D 01 02 [11:54:27]Write to MH i2c: E2 08 00 35 0E 80 0D 01 02 00 00 00 00 BC [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:27]Read from MH i2c: E2 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 35 0E 00 90 00 B7 [11:54:27]RAPDU: 90 00 [11:54:27]wFMCommunicate OK [11:54:27]wFMCommunicate request_size=255 [11:54:27]MH_SAM_APDU [11: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F3 29 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 11 39 02 00 35 04 06 00 07 [11:54:27]Write to MH i2c: E2 02 01 36 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F3 29 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 11 39 02 00 35 04 06 00 07 00 00 BD [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:27]Read from MH i2c: E2 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [11:54:27]RAPDU: 90 00 [11:54:27]wFMCommunicate OK [11:54:27]wFMCommunicate request_size=10 [11:54:27]MH_SAM_APDU [11:54:27]CAPDU: 80 0D 02 02 05 0D 48 48 E1 35 [11:54:27]Write to MH i2c: E2 0D 00 37 0E 80 0D 02 02 05 00 0D 48 48 E1 35 00 00 7C [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:27]Read from MH i2c: E2 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 37 0E 00 90 00 B9 [11:54:27]RAPDU: 90 00 [11:54:27]wFMCommunicate OK [11:54:27]wFMCommunicate request_size=4 [11:54:27]MH_SAM_APDU [11:54:27]CAPDU: 80 0D 03 02 [11:54:27]Write to MH i2c: E2 08 00 38 0E 80 0D 03 02 00 00 00 00 C1 [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:27]Read from MH i2c: E2 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 0B 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 0B 00 38 0E 00 93 2B 8C A1 DE 82 AF B7 90 00 73 [11:54:27]RAPDU: 93 2B 8C A1 DE 82 AF B7 90 00 [11:54:27]wFMCommunicate OK [11:54:27]SAM_PROTO_SignData done [11:54:27]FM_MakeSignedData done [11:54:27]CreateOFDProtocolMessage [11:54:27]wFMCommunicate request_size=4 [11:54:27]MH_SAM_APDU [11:54:27]CAPDU: 80 11 00 00 [11:54:27]Write to MH i2c: E2 08 00 39 0E 80 11 00 00 00 00 00 00 C1 [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:27]Read from MH i2c: E2 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 17 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 17 00 39 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 14 [11:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:54:27]wFMCommunicate OK [11:54:27]CreateOFDProtocolMessage done [11:54:27]OFDSenderStorePacket 145681 [11:54:27]StoreOFDPacket docnum=145681 [11:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9B 35 07 01 3F 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F3 29 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 11 39 02 00 35 04 06 00 07 0D 48 48 E1 35 93 2B 8C A1 DE 82 AF B7 [11:54:27]CheckFolder [11:54:27]dirname=/storage/ofd_packets [11:54:27]CheckFolder done [11:54:27]ProducePacketName [11:54:27]name=ofd_packets/00145681 [11:54:27]NVStorageSaveData ofd_packets/00145681 [11:54:27]File name is /storage/ofd_packets/00145681 [11:54:27]Write 301 bytes [11:54:27]NVStorageSaveData done [11:54:27]OFDSenderStorePacket done [11:54:27]KKMCreateOFDPacket done [11:54:27]NVStorageSaveData kkm_last_timestamp [11:54:27]File name is /storage/kkm_last_timestamp [11:54:27]Write 4 bytes [11:54:27]NVStorageSaveData done [11:54:27]ExternCall_PrintAddStr [11:54:27]wPrintStart [11:54:27]Write to MH i2c: 01 00 00 3A 0E 48 [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: 01 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: 01 07 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: 01 07 00 3A 0E 00 00 00 00 00 FF 0F 5D [11:54:27]RasterBufferAndPrint [11:54:27]line Счет N : (1)160432 [11:54:27]line ИНН: 02508201610067 [11:54:27]line Контрольно-Кассовый Чек [11:54:27]line ПРОДАЖА [11:54:27]line ТРК (МРК, ГНК) : 52 [11:54:27]line Товар: 2710124130 [11:54:27]line Аи-92-К-2 [11:54:27]line 4.490 * 66.90 [11:54:27]line = 300.38 [11:54:27]line НДС 12% НСП 1% [11:54:27]line > о реализуемом товаре [11:54:27]line ОКРУГЛЕНИЕ: -0.38 [11:54:27]line ИТОГО: 300.00 [11:54:27]line Внесено: 300.00 [11:54:27]line СДАЧА: 0.00 [11:54:27]line НСП 1% : 2.66 [11:54:27]line НДС 12% : 31.90 [11:54:27]line Наличными: 300.00 [11:54:27]line Безнал.: 0.00 [11:54:27]line Место: АЗС № 126 "Партнер Нефть" [11:54:27]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:54:27]line СНО: Общий режим [11:54:27]line Чек 104 27.10.2024 11:54 [11:54:27]line Смена: 545 ФФД: 1.0 [11:54:27]line ЗНМ: 0300000085 [11:54:27]line РНМ: 0000000000091683 [11:54:27]line Версия ККМ: 001 [11:54:27]line ФМ: 0000000000871745 [11:54:27]line ФД: 145681 [11:54:27]line ФПД: 7753628705077 [11:54:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115427&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145681&fm=7753628705077&tin=02508201610067®Number=0000000000091683&sum=30000 [11:54:28]written 0, free lines is 4095 [11:54:28]OFD Sender: Processing packet 145681 [packets to send 206, broken 205] [11:54:28]ProducePacketName [11:54:28]name=ofd_packets/00145681 [11:54:28]OFD Sender: To server: pG, [11:54:28]CommunicateWithHost lk.salyk.kg:30040 [11:54:28]ConnectInit lk.salyk.kg [11:54:28]Connected sock=11 [11: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 31 37 34 35 0F 01 00 00 9B 35 07 01 3F 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F3 29 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 11 39 02 00 35 04 06 00 07 0D 48 48 E1 35 93 2B 8C A1 DE 82 AF B7 [11:54:28]Write to MH i2c: 01 00 00 65 0E 73 [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 07 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 07 00 65 0E 00 00 00 00 00 A2 0C 28 [11:54:28]RasterBufferAndPrint [11:54:28]line [11:54:28]line [11:54:28]line [11:54:28]line [11:54:28]line [11:54:28]written 0, free lines is 3240 [11:54:28]MH_Cut [11:54:28]Write to MH i2c: D1 01 00 6C 0E 01 4C [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: D1 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: D1 01 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: D1 01 00 6C 0E 00 4B [11:54:28]Write to MH i2c: 01 00 00 6D 0E 7B [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 26 F3 47 00 AB CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 11 39 02 00 F4 03 04 00 21 CF 1D 67 B6 04 01 00 00 BB 79 F9 C5 14 EC E4 47 [11:54:28]CommunicateWithHost err = 0 [11:54:28]CheckOFDResponse [11:54:28]1017 (14) - 77093643461234 [11:54:28]1041 (16) - 0000000000871745 [11:54:28]1040 (4) - 145681 [11:54:28]1012 (4) - 27.10.2024 05:26 [11:54:28]1206 (1) - 0 [11:54:28]OFD Sender: Remove packet 145681 [11:54:28]ProducePacketName [11:54:28]name=ofd_packets/00145681 [11:54:28]NVStorageDeleteData [11:54:29]OFD Sender: No OFD packet to send [11:54:29]*** Cut start [11:54:29]*** Partial cut [11:54:29]*** CUTSNS_PIN = 1 [11:54:29]*** CUTSNS_PIN = 0 [11:54:29]*** Brake cut motor [11:54:29]Read from MH i2c: 01 [11:54:29]MH_I2C_Read... [11:54:29]*** Stop cut motor [11:54:29]*** Cut end [11:54:29]Read from MH i2c: 01 07 00 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: 01 07 00 6D 0E 00 00 00 00 00 FF 0F 90 [11:54:29]process_action close_receipt done [11:54:29]requested_data is exist [11:54:29]produce_requested_data [11:54:29]requested_item fm.sn is exist - process it [11:54:29]wFMCommunicate request_size=4 [11:54:29]MH_SAM_APDU [11:54:29]CAPDU: 80 11 00 00 [11:54:29]Write to MH i2c: E2 08 00 6E 0E 80 11 00 00 00 00 00 00 F6 [11:54:29]Write i2c OK [11:54:29]MH_I2C_Read... [11:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:29]Read from MH i2c: E2 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 17 00 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 17 00 6E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 49 [11:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:54:29]wFMCommunicate OK [11:54:29]requested_item fd.num is exist - process it [11:54:29]SAM_PROTO_GetFieldsCounters [11:54:29]wFMCommunicate request_size=4 [11:54:29]MH_SAM_APDU [11:54:29]CAPDU: 80 13 00 00 [11:54:29]Write to MH i2c: E2 08 00 6F 0E 80 13 00 00 00 00 00 00 F9 [11:54:29]Write i2c OK [11:54:29]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 62 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 62 00 6F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 11 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [11: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 11 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:30]wFMCommunicate OK [11:54:30]SAM_PROTO_GetFieldsCounters done [11:54:30]requested_item shift.num is exist - process it [11:54:30]requested_item shift.opened is exist - process it [11:54:30]req_shift_opened [11:54:30]FM_GetShiftState [11:54:30]SAM_PROTO_GetShiftState [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 13 01 00 [11:54:30]Write to MH i2c: E2 08 00 70 0E 80 13 01 00 00 00 00 00 FB [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 0E 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 0E 00 70 0E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 73 [11:54:30]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:54:30]wFMCommunicate OK [11:54:30]SAM_PROTO_GetShiftState done [11:54:30]FM_GetShiftState done [11:54:30]req_shift_opened done [11:54:30]requested_item shift.open_date is exist - process it [11:54:30]req_shift_open_date [11:54:30]req_shift_open_date done [11:54:30]produce_requested_data done [11:54:30]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145681,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:54:30]process_action_free close_receipt [11:54:30]json_value_free [11:54:30]json_value_free done [11:54:30]process_json_proto returns [11:54:30]Send response to host [11:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145681,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:54:30]free response buf [11:54:30]execute_script done [11:54:30]execute_script returns [11:54:30]free content buf [11:54:30]Sock 10.Close socket [11:54:30]Sock 10.Thread stoped [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:40]accept exits with 7 [11:56:40]New connection [11:56:40]New thread 3066740068 created [11:56:40]Thread 3066596708 joined [11:56:40]Waiting for new connection... [11:56:40] Sock 7.Parse request [11:56:40]Sock 7.Check first char [11:56:40]Sock 7.First char is OK [11:56:40]request: POST /json_proto HTTP/1.0 [11:56:40]Method: POST [11:56:40]URL: /json_proto [11:56:40]Method is POST - this is cgi request [11:56:40]url: /json_proto [11:56:40]query_string will be loaded in cgi processing [11:56:40]execute_cgi json_proto POST (null) [11:56:40]execute_cgi path=json_proto method=POST [11:56:40]POST find Content-Length [11:56:40]Host: 172.17.40.195:8080 [11:56:40]Content-Length: 688 [11:56:40]Content-Type: application/json [11:56:40] [11:56:40]POST finish read [11:56:40]Found Content-Length = 688 [11:56:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:40]execute_script... [11:56: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)160433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:40]POST & json_proto [11:56:40]process_json_proto [11:56:40]json parsed OK: [11:56:40]protocol is kg_v1.0 [11:56:40]action value=close_receipt [11:56:40]process_action close_receipt [11:56:40]cmd_close_receipt [11:56:40]MH_GetDate [11:56:40]Write to MH i2c: F0 00 00 71 0E 6E [11:56:40]Write i2c OK [11:56:40]MH_I2C_Read... [11:56:40]Read from MH i2c: F0 [11:56:40]MH_I2C_Read... [11:56:40]Read from MH i2c: F0 09 00 [11:56:40]MH_I2C_Read... [11:56:40]Read from MH i2c: F0 09 00 71 0E 00 79 2A 1E 67 D5 8D 6C 64 D1 [11:56:40]GetLastDocTimeStamp 1730030067 [11:56:40]current date 1730030201 [11:56:40]FM_GetShiftState [11:56:40]SAM_PROTO_GetShiftState [11:56:40]wFMCommunicate request_size=4 [11:56:40]MH_SAM_APDU [11:56:40]CAPDU: 80 13 01 00 [11:56:40]Write to MH i2c: E2 08 00 72 0E 80 13 01 00 00 00 00 00 FD [11:56:40]Write i2c OK [11:56:40]MH_I2C_Read... [11:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:40]Read from MH i2c: E2 [11:56:40]MH_I2C_Read... [11:56:40]Read from MH i2c: E2 0E 00 [11:56:40]MH_I2C_Read... [11:56:40]Read from MH i2c: E2 0E 00 72 0E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 75 [11:56:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:56:40]wFMCommunicate OK [11:56:40]SAM_PROTO_GetShiftState done [11:56:40]FM_GetShiftState done [11:56:40]opened in 1729988959 [11:56:40]opened+sec_in_day 1730075359 [11:56:40]quantity*price = 100051 [11:56:40]sum+1 = 100052 [11:56:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 105 27.10.2024 11:56 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145682 ФПД: 276415714324671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115641&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145682&fm=276415714324671&tin=02508201610067®Number=0000000000091683&sum=100000 [11:56:41]StoreToDocumentArchive [11:56:41]shift 545 fd 145682 [11:56:41]save to /storage/0545/doc_00145682 [11:56:41]save last doc name /storage/0545/doc_00145682 to /storage/kkm_last_doc_name [11:56:41]save OK [11:56:41]Clear old archive folders... [11:56:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:56:41]tlvbuf is 0040A730 [11:56:41]SAM_PROTO_ClearQueue [11:56:41]wFMCommunicate request_size=4 [11:56:41]MH_SAM_APDU [11:56:41]CAPDU: 80 09 00 00 [11:56:41]Write to MH i2c: E2 08 00 7F 0E 80 09 00 00 00 00 00 00 FF [11:56:41]Write i2c OK [11:56:41]MH_I2C_Read... [11:56:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:41]Read from MH i2c: E2 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 03 00 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [11:56:41]RAPDU: 90 00 [11:56:41]wFMCommunicate OK [11:56:41]SAM_PROTO_ClearQueue done [11:56:41]KKMCreateOFDPacket [11:56:41]OFDProtocolAddRootSTLVToBuf [11:56:41]FM_MakeSignedData [11:56:41]FM_MakeSignedData [11:56:41]SAM_PROTO_SignData [11:56:41]wFMCommunicate request_size=4 [11:56:41]MH_SAM_APDU [11:56:41]CAPDU: 80 0D 01 02 [11:56:41]Write to MH i2c: E2 08 00 80 0E 80 0D 01 02 00 00 00 00 07 [11:56:41]Write i2c OK [11:56:41]MH_I2C_Read... [11:56:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:41]Read from MH i2c: E2 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 03 00 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 03 00 80 0E 00 90 00 02 [11:56:41]RAPDU: 90 00 [11:56:41]wFMCommunicate OK [11:56:41]wFMCommunicate request_size=255 [11:56:41]MH_SAM_APDU [11:56:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 79 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 12 39 02 [11:56:41]Write to MH i2c: E2 02 01 81 0E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 79 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 12 39 02 00 00 02 [11:56:41]Write i2c OK [11:56:41]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 81 0E 00 90 00 03 [11:56:42]RAPDU: 90 00 [11:56:42]wFMCommunicate OK [11:56:42]wFMCommunicate request_size=16 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FB 66 0C 76 70 BF [11:56:42]Write to MH i2c: E2 13 00 82 0E 80 0D 02 02 0B 00 00 35 04 06 00 FB 66 0C 76 70 BF 00 00 71 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 82 0E 00 90 00 04 [11:56:42]RAPDU: 90 00 [11:56:42]wFMCommunicate OK [11:56:42]wFMCommunicate request_size=4 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 0D 03 02 [11:56:42]Write to MH i2c: E2 08 00 83 0E 80 0D 03 02 00 00 00 00 0C [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 0B 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 0B 00 83 0E 00 B1 0F B6 F2 BE 51 59 A6 90 00 83 [11:56:42]RAPDU: B1 0F B6 F2 BE 51 59 A6 90 00 [11:56:42]wFMCommunicate OK [11:56:42]SAM_PROTO_SignData done [11:56:42]FM_MakeSignedData done [11:56:42]CreateOFDProtocolMessage [11:56:42]wFMCommunicate request_size=4 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 11 00 00 [11:56:42]Write to MH i2c: E2 08 00 84 0E 80 11 00 00 00 00 00 00 0C [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 17 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 17 00 84 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 5F [11:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:56:42]wFMCommunicate OK [11:56:42]CreateOFDProtocolMessage done [11:56:42]OFDSenderStorePacket 145682 [11:56:42]StoreOFDPacket docnum=145682 [11:56:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 EF 04 0D 01 DE 6E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 79 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 12 39 02 00 35 04 06 00 FB 66 0C 76 70 BF B1 0F B6 F2 BE 51 59 A6 [11:56:42]CheckFolder [11:56:42]dirname=/storage/ofd_packets [11:56:42]CheckFolder done [11:56:42]ProducePacketName [11:56:42]name=ofd_packets/00145682 [11:56:42]NVStorageSaveData ofd_packets/00145682 [11:56:42]File name is /storage/ofd_packets/00145682 [11:56:42]Write 307 bytes [11:56:42]NVStorageSaveData done [11:56:42]OFDSenderStorePacket done [11:56:42]KKMCreateOFDPacket done [11:56:42]NVStorageSaveData kkm_last_timestamp [11:56:42]File name is /storage/kkm_last_timestamp [11:56:42]Write 4 bytes [11:56:42]NVStorageSaveData done [11:56:42]ExternCall_PrintAddStr [11:56:42]wPrintStart [11:56:42]Write to MH i2c: 01 00 00 85 0E 93 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 07 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 07 00 85 0E 00 00 00 00 00 FF 0F A8 [11:56:42]RasterBufferAndPrint [11:56:42]line Счет N : (1)160433 [11:56:42]line ИНН: 02508201610067 [11:56:42]line Контрольно-Кассовый Чек [11:56:42]line ПРОДАЖА [11:56:42]line ТРК (МРК, ГНК) : 41 [11:56:42]line Товар: 2710194240 [11:56:42]line D-Energy Дт-К-2 [11:56:42]line 12.960 * 77.20 [11:56:42]line = 1000.51 [11:56:42]line НДС 12% НСП 1% [11:56:42]line > о реализуемом товаре [11:56:42]line ОКРУГЛЕНИЕ: -0.51 [11:56:42]line ИТОГО: 1000.00 [11:56:42]line Внесено: 1000.00 [11:56:42]line СДАЧА: 0.00 [11:56:42]line НСП 1% : 8.85 [11:56:42]line НДС 12% : 106.25 [11:56:42]line Наличными: 1000.00 [11:56:42]line Безнал.: 0.00 [11:56:42]line Место: АЗС № 126 "Партнер Нефть" [11:56:42]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:56:42]line СНО: Общий режим [11:56:42]line Чек 105 27.10.2024 11:56 [11:56:42]line Смена: 545 ФФД: 1.0 [11:56:42]line ЗНМ: 0300000085 [11:56:42]line РНМ: 0000000000091683 [11:56:42]line Версия ККМ: 001 [11:56:42]line ФМ: 0000000000871745 [11:56:42]line ФД: 145682 [11:56:42]line ФПД: 276415714324671 [11:56:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115641&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145682&fm=276415714324671&tin=02508201610067®Number=0000000000091683&sum=100000 [11:56:42]OFD Sender: Processing packet 145682 [packets to send 206, broken 205] [11:56:42]ProducePacketName [11:56:42]name=ofd_packets/00145682 [11:56:42]OFD Sender: To server: pG, [11:56:42]CommunicateWithHost lk.salyk.kg:30040 [11:56:42]ConnectInit lk.salyk.kg [11:56:42]written 0, free lines is 4095 [11:56:42]Connected sock=10 [11:56:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 EF 04 0D 01 DE 6E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 79 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 12 39 02 00 35 04 06 00 FB 66 0C 76 70 BF B1 0F B6 F2 BE 51 59 A6 [11:56:42]Write to MH i2c: 01 00 00 B0 0E BE [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 07 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 07 00 B0 0E 00 00 00 00 00 A7 0C 78 [11:56:42]RasterBufferAndPrint [11:56:42]line [11:56:42]line [11:56:42]line [11:56:42]line [11:56:42]line [11:56:42]written 0, free lines is 3245 [11:56:42]MH_Cut [11:56:42]Write to MH i2c: D1 01 00 B7 0E 01 97 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: D1 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: D1 01 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: D1 01 00 B7 0E 00 96 [11:56:42]Write to MH i2c: 01 00 00 B8 0E C6 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E6 22 47 00 51 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 12 39 02 00 F4 03 04 00 A7 CF 1D 67 B6 04 01 00 00 10 65 42 41 32 37 AE 39 [11:56:43]CommunicateWithHost err = 0 [11:56:43]CheckOFDResponse [11:56:43]1017 (14) - 77093643461234 [11:56:43]1041 (16) - 0000000000871745 [11:56:43]1040 (4) - 145682 [11:56:43]1012 (4) - 27.10.2024 05:29 [11:56:43]1206 (1) - 0 [11:56:43]OFD Sender: Remove packet 145682 [11:56:43]ProducePacketName [11:56:43]name=ofd_packets/00145682 [11:56:43]NVStorageDeleteData [11:56:43]OFD Sender: No OFD packet to send [11:56:43]*** Cut start [11:56:43]*** Partial cut [11:56:43]*** CUTSNS_PIN = 1 [11:56:43]*** CUTSNS_PIN = 0 [11:56:44]*** Brake cut motor [11:56:44]Read from MH i2c: 01 [11:56:44]MH_I2C_Read... [11:56:44]*** Stop cut motor [11:56:44]*** Cut end [11:56:44]Read from MH i2c: 01 07 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: 01 07 00 B8 0E 00 00 00 00 00 FF 0F DB [11:56:44]process_action close_receipt done [11:56:44]requested_data is exist [11:56:44]produce_requested_data [11:56:44]requested_item fm.sn is exist - process it [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 11 00 00 [11:56:44]Write to MH i2c: E2 08 00 B9 0E 80 11 00 00 00 00 00 00 41 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 17 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 17 00 B9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 94 [11:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:56:44]wFMCommunicate OK [11:56:44]requested_item fd.num is exist - process it [11:56:44]SAM_PROTO_GetFieldsCounters [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 13 00 00 [11:56:44]Write to MH i2c: E2 08 00 BA 0E 80 13 00 00 00 00 00 00 44 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 62 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 62 00 BA 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 12 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:56:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 12 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:44]wFMCommunicate OK [11:56:44]SAM_PROTO_GetFieldsCounters done [11:56:44]requested_item shift.num is exist - process it [11:56:44]requested_item shift.opened is exist - process it [11:56:44]req_shift_opened [11:56:44]FM_GetShiftState [11:56:44]SAM_PROTO_GetShiftState [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 13 01 00 [11:56:44]Write to MH i2c: E2 08 00 BB 0E 80 13 01 00 00 00 00 00 46 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 0E 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 0E 00 BB 0E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 BE [11:56:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:56:44]wFMCommunicate OK [11:56:44]SAM_PROTO_GetShiftState done [11:56:44]FM_GetShiftState done [11:56:44]req_shift_opened done [11:56:44]requested_item shift.open_date is exist - process it [11:56:44]req_shift_open_date [11:56:44]req_shift_open_date done [11:56:44]produce_requested_data done [11:56:44]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145682,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:56:44]process_action_free close_receipt [11:56:44]json_value_free [11:56:44]json_value_free done [11:56:44]process_json_proto returns [11:56:44]Send response to host [11:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145682,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:56:44]free response buf [11:56:44]execute_script done [11:56:44]execute_script returns [11:56:44]free content buf [11:56:44]Sock 7.Close socket [11:56:44]Sock 7.Thread stoped [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]accept exits with 9 [11:57:03]New connection [11:57:03]New thread 3066596708 created [11:57:03]Thread 3066740068 joined [11:57:03]Waiting for new connection... [11:57:03] Sock 9.Parse request [11:57:03]Sock 9.Check first char [11:57:03]Sock 9.First char is OK [11:57:03]request: POST /json_proto HTTP/1.0 [11:57:03]Method: POST [11:57:03]URL: /json_proto [11:57:03]Method is POST - this is cgi request [11:57:03]url: /json_proto [11:57:03]query_string will be loaded in cgi processing [11:57:03]execute_cgi json_proto POST (null) [11:57:03]execute_cgi path=json_proto method=POST [11:57:03]POST find Content-Length [11:57:03]Host: 172.17.40.195:8080 [11:57:03]Content-Length: 677 [11:57:03]Content-Type: application/json [11:57:03] [11:57:03]POST finish read [11:57:03]Found Content-Length = 677 [11:57:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:03]execute_script... [11:57: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)160434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:03]POST & json_proto [11:57:03]process_json_proto [11:57:03]json parsed OK: [11:57:03]protocol is kg_v1.0 [11:57:03]action value=close_receipt [11:57:03]process_action close_receipt [11:57:03]cmd_close_receipt [11:57:03]MH_GetDate [11:57:03]Write to MH i2c: F0 00 00 BC 0E B9 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: F0 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: F0 09 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: F0 09 00 BC 0E 00 90 2A 1E 67 D5 8D 6C 64 33 [11:57:03]GetLastDocTimeStamp 1730030201 [11:57:03]current date 1730030224 [11:57:03]FM_GetShiftState [11:57:03]SAM_PROTO_GetShiftState [11:57:03]wFMCommunicate request_size=4 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 13 01 00 [11:57:03]Write to MH i2c: E2 08 00 BD 0E 80 13 01 00 00 00 00 00 48 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 0E 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 0E 00 BD 0E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C0 [11:57:03]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:57:03]wFMCommunicate OK [11:57:03]SAM_PROTO_GetShiftState done [11:57:03]FM_GetShiftState done [11:57:03]opened in 1729988959 [11:57:03]opened+sec_in_day 1730075359 [11:57:03]quantity*price = 50041 [11:57:03]sum+1 = 50042 [11:57:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 106 27.10.2024 11:57 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145683 ФПД: 240777825440872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115704&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145683&fm=240777825440872&tin=02508201610067®Number=0000000000091683&sum=50000 [11:57:04]StoreToDocumentArchive [11:57:04]shift 545 fd 145683 [11:57:04]save to /storage/0545/doc_00145683 [11:57:04]save last doc name /storage/0545/doc_00145683 to /storage/kkm_last_doc_name [11:57:04]save OK [11:57:04]Clear old archive folders... [11:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:04]tlvbuf is B6E8D9E0 [11:57:04]SAM_PROTO_ClearQueue [11:57:04]wFMCommunicate request_size=4 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 09 00 00 [11:57:04]Write to MH i2c: E2 08 00 CA 0E 80 09 00 00 00 00 00 00 4A [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 CA 0E 00 90 00 4C [11:57:04]RAPDU: 90 00 [11:57:04]wFMCommunicate OK [11:57:04]SAM_PROTO_ClearQueue done [11:57:04]KKMCreateOFDPacket [11:57:04]OFDProtocolAddRootSTLVToBuf [11:57:04]FM_MakeSignedData [11:57:04]FM_MakeSignedData [11:57:04]SAM_PROTO_SignData [11:57:04]wFMCommunicate request_size=4 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 0D 01 02 [11:57:04]Write to MH i2c: E2 08 00 CB 0E 80 0D 01 02 00 00 00 00 52 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 CB 0E 00 90 00 4D [11:57:04]RAPDU: 90 00 [11:57:04]wFMCommunicate OK [11:57:04]wFMCommunicate request_size=255 [11:57:04]MH_SAM_APDU [11:57: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 90 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 13 39 02 00 35 04 06 00 DA [11:57:04]Write to MH i2c: E2 02 01 CC 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 90 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 13 39 02 00 35 04 06 00 DA 00 00 D4 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 CC 0E 00 90 00 4E [11:57:04]RAPDU: 90 00 [11:57:04]wFMCommunicate OK [11:57:04]wFMCommunicate request_size=10 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 0D 02 02 05 FC 74 C1 54 68 [11:57:04]Write to MH i2c: E2 0D 00 CD 0E 80 0D 02 02 05 00 FC 74 C1 54 68 00 00 4C [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 CD 0E 00 90 00 4F [11:57:04]RAPDU: 90 00 [11:57:04]wFMCommunicate OK [11:57:04]wFMCommunicate request_size=4 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 0D 03 02 [11:57:04]Write to MH i2c: E2 08 00 CE 0E 80 0D 03 02 00 00 00 00 57 [11:57:04]Write i2c OK [11:57:04]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 CE 0E 00 EA 9A 29 B7 8F 32 EA 01 90 00 68 [11:57:05]RAPDU: EA 9A 29 B7 8F 32 EA 01 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 CF 0E 80 11 00 00 00 00 00 00 57 [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 CF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AA [11:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:57:05]wFMCommunicate OK [11:57:05]CreateOFDProtocolMessage done [11:57:05]OFDSenderStorePacket 145683 [11:57:05]StoreOFDPacket docnum=145683 [11:57:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 43 47 07 01 97 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 90 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 13 39 02 00 35 04 06 00 DA FC 74 C1 54 68 EA 9A 29 B7 8F 32 EA 01 [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/00145683 [11:57:05]NVStorageSaveData ofd_packets/00145683 [11:57:05]File name is /storage/ofd_packets/00145683 [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]ExternCall_PrintAddStr [11:57:05]wPrintStart [11:57:05]Write to MH i2c: 01 00 00 D0 0E DE [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 D0 0E 00 00 00 00 00 FF 0F F3 [11:57:05]RasterBufferAndPrint [11:57:05]line Счет N : (1)160434 [11:57:05]line ИНН: 02508201610067 [11:57:05]line Контрольно-Кассовый Чек [11:57:05]line ПРОДАЖА [11:57:05]line ТРК (МРК, ГНК) : 62 [11:57:05]line Товар: 2710124130 [11:57:05]line Аи-92-К-2 [11:57:05]line 7.480 * 66.90 [11:57:05]line = 500.41 [11:57:05]line НДС 12% НСП 1% [11:57:05]line > о реализуемом товаре [11:57:05]line ОКРУГЛЕНИЕ: -0.41 [11:57:05]line ИТОГО: 500.00 [11:57:05]line Внесено: 500.00 [11:57:05]line СДАЧА: 0.00 [11:57:05]line НСП 1% : 4.43 [11:57:05]line НДС 12% : 53.14 [11:57:05]line Наличными: 500.00 [11:57:05]line Безнал.: 0.00 [11:57:05]line Место: АЗС № 126 "Партнер Нефть" [11:57:05]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:57:05]line СНО: Общий режим [11:57:05]line Чек 106 27.10.2024 11:57 [11:57:05]line Смена: 545 ФФД: 1.0 [11:57:05]line ЗНМ: 0300000085 [11:57:05]line РНМ: 0000000000091683 [11:57:05]line Версия ККМ: 001 [11:57:05]line ФМ: 0000000000871745 [11:57:05]line ФД: 145683 [11:57:05]line ФПД: 240777825440872 [11:57:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115704&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145683&fm=240777825440872&tin=02508201610067®Number=0000000000091683&sum=50000 [11:57:05]written 0, free lines is 4095 [11:57:05]OFD Sender: Processing packet 145683 [packets to send 206, broken 205] [11:57:05]ProducePacketName [11:57:05]name=ofd_packets/00145683 [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]Connected sock=10 [11:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 43 47 07 01 97 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 90 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 13 39 02 00 35 04 06 00 DA FC 74 C1 54 68 EA 9A 29 B7 8F 32 EA 01 [11:57:05]Write to MH i2c: 01 00 00 FB 0E 09 [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 FB 0E 00 00 00 00 00 A6 0C C2 [11:57:05]RasterBufferAndPrint [11:57:05]line [11:57:05]line [11:57:05]line [11:57:05]line [11:57:05]line [11:57:05]written 0, free lines is 3243 [11:57:05]MH_Cut [11:57:05]Write to MH i2c: D1 01 00 02 0F 01 E3 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: D1 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: D1 01 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: D1 01 00 02 0F 00 E2 [11:57:05]Write to MH i2c: 01 00 00 03 0F 12 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [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 31 37 34 35 4F 00 00 00 05 94 47 00 E6 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 13 39 02 00 F4 03 04 00 BE CF 1D 67 B6 04 01 00 00 E5 E6 B5 C7 D9 32 63 8F [11:57:06]CommunicateWithHost err = 0 [11:57:06]CheckOFDResponse [11:57:06]1017 (14) - 77093643461234 [11:57:06]1041 (16) - 0000000000871745 [11:57:06]1040 (4) - 145683 [11:57:06]1012 (4) - 27.10.2024 05:29 [11:57:06]1206 (1) - 0 [11:57:06]OFD Sender: Remove packet 145683 [11:57:06]ProducePacketName [11:57:06]name=ofd_packets/00145683 [11:57:06]NVStorageDeleteData [11:57:06]OFD Sender: No OFD packet to send [11:57:06]*** Cut start [11:57:06]*** Partial cut [11:57:06]*** CUTSNS_PIN = 1 [11:57:06]*** CUTSNS_PIN = 0 [11:57:06]*** Brake cut motor [11:57:07]Read from MH i2c: 01 [11:57:07]MH_I2C_Read... [11:57:07]*** Stop cut motor [11:57:07]*** Cut end [11:57:07]Read from MH i2c: 01 07 00 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: 01 07 00 03 0F 00 00 00 00 00 FF 0F 27 [11:57:07]process_action close_receipt done [11:57:07]requested_data is exist [11:57:07]produce_requested_data [11:57:07]requested_item fm.sn is exist - process it [11:57:07]wFMCommunicate request_size=4 [11:57:07]MH_SAM_APDU [11:57:07]CAPDU: 80 11 00 00 [11:57:07]Write to MH i2c: E2 08 00 04 0F 80 11 00 00 00 00 00 00 8D [11:57:07]Write i2c OK [11:57:07]MH_I2C_Read... [11:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:07]Read from MH i2c: E2 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 17 00 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 17 00 04 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E0 [11:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:57:07]wFMCommunicate OK [11:57:07]requested_item fd.num is exist - process it [11:57:07]SAM_PROTO_GetFieldsCounters [11:57:07]wFMCommunicate request_size=4 [11:57:07]MH_SAM_APDU [11:57:07]CAPDU: 80 13 00 00 [11:57:07]Write to MH i2c: E2 08 00 05 0F 80 13 00 00 00 00 00 00 90 [11:57:07]Write i2c OK [11:57:07]MH_I2C_Read... [11:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:07]Read from MH i2c: E2 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 62 00 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 62 00 05 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 13 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [11:57:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 13 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:07]wFMCommunicate OK [11:57:07]SAM_PROTO_GetFieldsCounters done [11:57:07]requested_item shift.num is exist - process it [11:57:07]requested_item shift.opened is exist - process it [11:57:07]req_shift_opened [11:57:07]FM_GetShiftState [11:57:07]SAM_PROTO_GetShiftState [11:57:07]wFMCommunicate request_size=4 [11:57:07]MH_SAM_APDU [11:57:07]CAPDU: 80 13 01 00 [11:57:07]Write to MH i2c: E2 08 00 06 0F 80 13 01 00 00 00 00 00 92 [11:57:07]Write i2c OK [11:57:07]MH_I2C_Read... [11:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:07]Read from MH i2c: E2 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 0E 00 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 0E 00 06 0F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0A [11:57:07]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:57:07]wFMCommunicate OK [11:57:07]SAM_PROTO_GetShiftState done [11:57:07]FM_GetShiftState done [11:57:07]req_shift_opened done [11:57:07]requested_item shift.open_date is exist - process it [11:57:07]req_shift_open_date [11:57:07]req_shift_open_date done [11:57:07]produce_requested_data done [11:57:07]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145683,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:57:07]process_action_free close_receipt [11:57:07]json_value_free [11:57:07]json_value_free done [11:57:07]process_json_proto returns [11:57:07]Send response to host [11:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145683,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:57:07]free response buf [11:57:07]execute_script done [11:57:07]execute_script returns [11:57:07]free content buf [11:57:07]Sock 9.Close socket [11:57:07]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:28]accept exits with 7 [11:58:28]New connection [11:58:28]New thread 3066740068 created [11:58:28]Thread 3066596708 joined [11:58:28]Waiting for new connection... [11:58:28] Sock 7.Parse request [11:58:28]Sock 7.Check first char [11:58:28]Sock 7.First char is OK [11:58:28]request: POST /json_proto HTTP/1.0 [11:58:28]Method: POST [11:58:28]URL: /json_proto [11:58:28]Method is POST - this is cgi request [11:58:28]url: /json_proto [11:58:28]query_string will be loaded in cgi processing [11:58:28]execute_cgi json_proto POST (null) [11:58:28]execute_cgi path=json_proto method=POST [11:58:28]POST find Content-Length [11:58:28]Host: 172.17.40.195:8080 [11:58:28]Content-Length: 678 [11:58:28]Content-Type: application/json [11:58:28] [11:58:28]POST finish read [11:58:28]Found Content-Length = 678 [11:58:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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:58:28]execute_script... [11:58: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)160435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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:58:28]POST & json_proto [11:58:28]process_json_proto [11:58:28]json parsed OK: [11:58:28]protocol is kg_v1.0 [11:58:28]action value=close_receipt [11:58:28]process_action close_receipt [11:58:28]cmd_close_receipt [11:58:28]MH_GetDate [11:58:28]Write to MH i2c: F0 00 00 07 0F 05 [11:58:28]Write i2c OK [11:58:28]MH_I2C_Read... [11:58:28]Read from MH i2c: F0 [11:58:28]MH_I2C_Read... [11:58:28]Read from MH i2c: F0 09 00 [11:58:28]MH_I2C_Read... [11:58:28]Read from MH i2c: F0 09 00 07 0F 00 E5 2A 1E 67 D5 8D 6C 64 D4 [11:58:28]GetLastDocTimeStamp 1730030224 [11:58:28]current date 1730030309 [11:58:28]FM_GetShiftState [11:58:28]SAM_PROTO_GetShiftState [11:58:28]wFMCommunicate request_size=4 [11:58:28]MH_SAM_APDU [11:58:28]CAPDU: 80 13 01 00 [11:58:28]Write to MH i2c: E2 08 00 08 0F 80 13 01 00 00 00 00 00 94 [11:58:28]Write i2c OK [11:58:28]MH_I2C_Read... [11:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:28]Read from MH i2c: E2 [11:58:28]MH_I2C_Read... [11:58:28]Read from MH i2c: E2 0E 00 [11:58:28]MH_I2C_Read... [11:58:28]Read from MH i2c: E2 0E 00 08 0F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0C [11:58:28]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:58:28]wFMCommunicate OK [11:58:28]SAM_PROTO_GetShiftState done [11:58:28]FM_GetShiftState done [11:58:28]opened in 1729988959 [11:58:28]opened+sec_in_day 1730075359 [11:58:28]quantity*price = 80061 [11:58:28]sum+1 = 80063 [11:58:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 107 27.10.2024 11:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145684 ФПД: 217039310097251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115829&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145684&fm=217039310097251&tin=02508201610067®Number=0000000000091683&sum=80000 [11:58:29]StoreToDocumentArchive [11:58:29]shift 545 fd 145684 [11:58:29]save to /storage/0545/doc_00145684 [11:58:29]save last doc name /storage/0545/doc_00145684 to /storage/kkm_last_doc_name [11:58:29]save OK [11:58:29]Clear old archive folders... [11:58:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:29]tlvbuf is 00451F10 [11:58:29]SAM_PROTO_ClearQueue [11:58:29]wFMCommunicate request_size=4 [11:58:29]MH_SAM_APDU [11:58:29]CAPDU: 80 09 00 00 [11:58:29]Write to MH i2c: E2 08 00 15 0F 80 09 00 00 00 00 00 00 96 [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 15 0F 00 90 00 98 [11:58:29]RAPDU: 90 00 [11:58:29]wFMCommunicate OK [11:58:29]SAM_PROTO_ClearQueue done [11:58:29]KKMCreateOFDPacket [11:58:29]OFDProtocolAddRootSTLVToBuf [11:58:29]FM_MakeSignedData [11:58:29]FM_MakeSignedData [11:58:29]SAM_PROTO_SignData [11:58:29]wFMCommunicate request_size=4 [11:58:29]MH_SAM_APDU [11:58:29]CAPDU: 80 0D 01 02 [11:58:29]Write to MH i2c: E2 08 00 16 0F 80 0D 01 02 00 00 00 00 9E [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 16 0F 00 90 00 99 [11:58:29]RAPDU: 90 00 [11:58:29]wFMCommunicate OK [11:58:29]wFMCommunicate request_size=255 [11:58:29]MH_SAM_APDU [11:58: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 6B 00 00 00 F4 03 04 00 E5 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 14 39 02 00 35 04 06 00 C5 [11:58:29]Write to MH i2c: E2 02 01 17 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 6B 00 00 00 F4 03 04 00 E5 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 14 39 02 00 35 04 06 00 C5 00 00 D0 [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 17 0F 00 90 00 9A [11:58:29]RAPDU: 90 00 [11:58:29]wFMCommunicate OK [11:58:29]wFMCommunicate request_size=10 [11:58:29]MH_SAM_APDU [11:58:29]CAPDU: 80 0D 02 02 05 65 66 FB 0B 63 [11:58:29]Write to MH i2c: E2 0D 00 18 0F 80 0D 02 02 05 00 65 66 FB 0B 63 00 00 DF [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 18 0F 00 90 00 9B [11:58:29]RAPDU: 90 00 [11:58:29]wFMCommunicate OK [11:58:29]wFMCommunicate request_size=4 [11:58:29]MH_SAM_APDU [11:58:29]CAPDU: 80 0D 03 02 [11:58:29]Write to MH i2c: E2 08 00 19 0F 80 0D 03 02 00 00 00 00 A3 [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 0B 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 0B 00 19 0F 00 9A 8F C1 9A 34 9B C6 83 90 00 40 [11:58:29]RAPDU: 9A 8F C1 9A 34 9B C6 83 90 00 [11:58:29]wFMCommunicate OK [11:58:29]SAM_PROTO_SignData done [11:58:29]FM_MakeSignedData done [11:58:29]CreateOFDProtocolMessage [11:58:29]wFMCommunicate request_size=4 [11:58:29]MH_SAM_APDU [11:58:29]CAPDU: 80 11 00 00 [11:58:29]Write to MH i2c: E2 08 00 1A 0F 80 11 00 00 00 00 00 00 A3 [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 17 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 17 00 1A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F6 [11:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:58:29]wFMCommunicate OK [11:58:29]CreateOFDProtocolMessage done [11:58:29]OFDSenderStorePacket 145684 [11:58:29]StoreOFDPacket docnum=145684 [11:58:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 27 52 07 01 7B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 6B 00 00 00 F4 03 04 00 E5 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 14 39 02 00 35 04 06 00 C5 65 66 FB 0B 63 9A 8F C1 9A 34 9B C6 83 [11:58:29]CheckFolder [11:58:29]dirname=/storage/ofd_packets [11:58:29]CheckFolder done [11:58:29]ProducePacketName [11:58:29]name=ofd_packets/00145684 [11:58:29]NVStorageSaveData ofd_packets/00145684 [11:58:29]File name is /storage/ofd_packets/00145684 [11:58:29]Write 301 bytes [11:58:29]NVStorageSaveData done [11:58:29]OFDSenderStorePacket done [11:58:29]KKMCreateOFDPacket done [11:58:29]NVStorageSaveData kkm_last_timestamp [11:58:29]File name is /storage/kkm_last_timestamp [11:58:29]Write 4 bytes [11:58:29]NVStorageSaveData done [11:58:29]ExternCall_PrintAddStr [11:58:29]wPrintStart [11:58:29]Write to MH i2c: 01 00 00 1B 0F 2A [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: 01 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: 01 07 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: 01 07 00 1B 0F 00 00 00 00 00 FF 0F 3F [11:58:29]RasterBufferAndPrint [11:58:29]line Счет N : (1)160435 [11:58:29]line ИНН: 02508201610067 [11:58:29]line Контрольно-Кассовый Чек [11:58:29]line ПРОДАЖА [11:58:29]line ТРК (МРК, ГНК) : 33 [11:58:29]line Товар: 2710124500 [11:58:29]line Аи-95-К-3 [11:58:29]line 10.790 * 74.20 [11:58:29]line = 800.62 [11:58:29]line НДС 12% НСП 1% [11:58:29]line > о реализуемом товаре [11:58:29]line ОКРУГЛЕНИЕ: -0.62 [11:58:29]line ИТОГО: 800.00 [11:58:29]line Внесено: 800.00 [11:58:29]line СДАЧА: 0.00 [11:58:29]line НСП 1% : 7.08 [11:58:29]line НДС 12% : 85.02 [11:58:29]line Наличными: 800.00 [11:58:29]line Безнал.: 0.00 [11:58:29]line Место: АЗС № 126 "Партнер Нефть" [11:58:29]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [11:58:29]line СНО: Общий режим [11:58:29]line Чек 107 27.10.2024 11:58 [11:58:29]line Смена: 545 ФФД: 1.0 [11:58:29]line ЗНМ: 0300000085 [11:58:29]line РНМ: 0000000000091683 [11:58:29]line Версия ККМ: 001 [11:58:29]line ФМ: 0000000000871745 [11:58:29]line ФД: 145684 [11:58:29]line ФПД: 217039310097251 [11:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115829&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145684&fm=217039310097251&tin=02508201610067®Number=0000000000091683&sum=80000 [11:58:30]OFD Sender: Processing packet 145684 [packets to send 206, broken 205] [11:58:30]ProducePacketName [11:58:30]name=ofd_packets/00145684 [11:58:30]OFD Sender: To server: pG, [11:58:30]CommunicateWithHost lk.salyk.kg:30040 [11:58:30]ConnectInit lk.salyk.kg [11:58:30]written 0, free lines is 4095 [11:58:30]Connected sock=10 [11:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 27 52 07 01 7B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 6B 00 00 00 F4 03 04 00 E5 2A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 14 39 02 00 35 04 06 00 C5 65 66 FB 0B 63 9A 8F C1 9A 34 9B C6 83 [11:58:30]Write to MH i2c: 01 00 00 46 0F 55 [11:58:30]Write i2c OK [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: 01 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: 01 07 00 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: 01 07 00 46 0F 00 00 00 00 00 B4 0C 1C [11:58:30]RasterBufferAndPrint [11:58:30]line [11:58:30]line [11:58:30]line [11:58:30]line [11:58:30]line [11:58:30]written 0, free lines is 3258 [11:58:30]MH_Cut [11:58:30]Write to MH i2c: D1 01 00 4D 0F 01 2E [11:58:30]Write i2c OK [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: D1 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: D1 01 00 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: D1 01 00 4D 0F 00 2D [11:58:30]Write to MH i2c: 01 00 00 4E 0F 5D [11:58:30]Write i2c OK [11:58:30]MH_I2C_Read... [11:58:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A1 17 47 00 1E 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 14 39 02 00 F4 03 04 00 13 D0 1D 67 B6 04 01 00 00 4D 4B 31 CB 85 2B 2B DD [11:58:30]CommunicateWithHost err = 0 [11:58:30]CheckOFDResponse [11:58:30]1017 (14) - 77093643461234 [11:58:30]1041 (16) - 0000000000871745 [11:58:30]1040 (4) - 145684 [11:58:30]1012 (4) - 27.10.2024 05:30 [11:58:30]1206 (1) - 0 [11:58:30]OFD Sender: Remove packet 145684 [11:58:30]ProducePacketName [11:58:30]name=ofd_packets/00145684 [11:58:30]NVStorageDeleteData [11:58:31]OFD Sender: No OFD packet to send [11:58:31]*** Cut start [11:58:31]*** Partial cut [11:58:31]*** CUTSNS_PIN = 1 [11:58:31]*** CUTSNS_PIN = 0 [11:58:31]*** Brake cut motor [11:58:32]Read from MH i2c: 01 [11:58:32]MH_I2C_Read... [11:58:32]*** Stop cut motor [11:58:32]*** Cut end [11:58:32]Read from MH i2c: 01 07 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: 01 07 00 4E 0F 00 00 00 00 00 FF 0F 72 [11:58:32]process_action close_receipt done [11:58:32]requested_data is exist [11:58:32]produce_requested_data [11:58:32]requested_item fm.sn is exist - process it [11:58:32]wFMCommunicate request_size=4 [11:58:32]MH_SAM_APDU [11:58:32]CAPDU: 80 11 00 00 [11:58:32]Write to MH i2c: E2 08 00 4F 0F 80 11 00 00 00 00 00 00 D8 [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:32]Read from MH i2c: E2 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 17 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 17 00 4F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2B [11:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [11:58:32]wFMCommunicate OK [11:58:32]requested_item fd.num is exist - process it [11:58:32]SAM_PROTO_GetFieldsCounters [11:58:32]wFMCommunicate request_size=4 [11:58:32]MH_SAM_APDU [11:58:32]CAPDU: 80 13 00 00 [11:58:32]Write to MH i2c: E2 08 00 50 0F 80 13 00 00 00 00 00 00 DB [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:32]Read from MH i2c: E2 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 62 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 62 00 50 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 14 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [11:58:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 14 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:32]wFMCommunicate OK [11:58:32]SAM_PROTO_GetFieldsCounters done [11:58:32]requested_item shift.num is exist - process it [11:58:32]requested_item shift.opened is exist - process it [11:58:32]req_shift_opened [11:58:32]FM_GetShiftState [11:58:32]SAM_PROTO_GetShiftState [11:58:32]wFMCommunicate request_size=4 [11:58:32]MH_SAM_APDU [11:58:32]CAPDU: 80 13 01 00 [11:58:32]Write to MH i2c: E2 08 00 51 0F 80 13 01 00 00 00 00 00 DD [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:32]Read from MH i2c: E2 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 0E 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 0E 00 51 0F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 55 [11:58:32]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [11:58:32]wFMCommunicate OK [11:58:32]SAM_PROTO_GetShiftState done [11:58:32]FM_GetShiftState done [11:58:32]req_shift_opened done [11:58:32]requested_item shift.open_date is exist - process it [11:58:32]req_shift_open_date [11:58:32]req_shift_open_date done [11:58:32]produce_requested_data done [11:58:32]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145684,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [11:58:32]process_action_free close_receipt [11:58:32]json_value_free [11:58:32]json_value_free done [11:58:32]process_json_proto returns [11:58:32]Send response to host [11:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145684,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [11:58:32]free response buf [11:58:32]execute_script done [11:58:32]execute_script returns [11:58:32]free content buf [11:58:32]Sock 7.Close socket [11:58:32]Sock 7.Thread stoped [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06: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:42]accept exits with 9 [12:08:42]New connection [12:08:42]New thread 3066596708 created [12:08:42]Thread 3066740068 joined [12:08:42]Waiting for new connection... [12:08:42] Sock 9.Parse request [12:08:42]Sock 9.Check first char [12:08:42]Sock 9.First char is OK [12:08:42]request: POST /json_proto HTTP/1.0 [12:08:42]Method: POST [12:08:42]URL: /json_proto [12:08:42]Method is POST - this is cgi request [12:08:42]url: /json_proto [12:08:42]query_string will be loaded in cgi processing [12:08:42]execute_cgi json_proto POST (null) [12:08:42]execute_cgi path=json_proto method=POST [12:08:42]POST find Content-Length [12:08:42]Host: 172.17.40.195:8080 [12:08:42]Content-Length: 677 [12:08:42]Content-Type: application/json [12:08:42] [12:08:42]POST finish read [12:08:42]Found Content-Length = 677 [12:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:08:42]execute_script... [12:08:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:08:42]POST & json_proto [12:08:42]process_json_proto [12:08:42]json parsed OK: [12:08:42]protocol is kg_v1.0 [12:08:42]action value=close_receipt [12:08:42]process_action close_receipt [12:08:42]cmd_close_receipt [12:08:42]MH_GetDate [12:08:42]Write to MH i2c: F0 00 00 52 0F 50 [12:08:42]Write i2c OK [12:08:42]MH_I2C_Read... [12:08:42]Read from MH i2c: F0 [12:08:42]MH_I2C_Read... [12:08:42]Read from MH i2c: F0 09 00 [12:08:42]MH_I2C_Read... [12:08:42]Read from MH i2c: F0 09 00 52 0F 00 4C 2D 1E 67 D5 8D 6C 64 89 [12:08:42]GetLastDocTimeStamp 1730030309 [12:08:42]current date 1730030924 [12:08:42]FM_GetShiftState [12:08:42]SAM_PROTO_GetShiftState [12:08:42]wFMCommunicate request_size=4 [12:08:42]MH_SAM_APDU [12:08:42]CAPDU: 80 13 01 00 [12:08:42]Write to MH i2c: E2 08 00 53 0F 80 13 01 00 00 00 00 00 DF [12:08:42]Write i2c OK [12:08:42]MH_I2C_Read... [12:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:42]Read from MH i2c: E2 [12:08:42]MH_I2C_Read... [12:08:42]Read from MH i2c: E2 0E 00 [12:08:42]MH_I2C_Read... [12:08:42]Read from MH i2c: E2 0E 00 53 0F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 57 [12:08:42]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:08:42]wFMCommunicate OK [12:08:42]SAM_PROTO_GetShiftState done [12:08:42]FM_GetShiftState done [12:08:42]opened in 1729988959 [12:08:42]opened+sec_in_day 1730075359 [12:08:42]quantity*price = 50010 [12:08:42]sum+1 = 50012 [12:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 108 27.10.2024 12:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145685 ФПД: 167258270597763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120844&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145685&fm=167258270597763&tin=02508201610067®Number=0000000000091683&sum=50000 [12:08:44]StoreToDocumentArchive [12:08:44]shift 545 fd 145685 [12:08:44]save to /storage/0545/doc_00145685 [12:08:44]save last doc name /storage/0545/doc_00145685 to /storage/kkm_last_doc_name [12:08:44]save OK [12:08:44]Clear old archive folders... [12:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:44]tlvbuf is 00428590 [12:08:44]SAM_PROTO_ClearQueue [12:08:44]wFMCommunicate request_size=4 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 09 00 00 [12:08:44]Write to MH i2c: E2 08 00 60 0F 80 09 00 00 00 00 00 00 E1 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 60 0F 00 90 00 E3 [12:08:44]RAPDU: 90 00 [12:08:44]wFMCommunicate OK [12:08:44]SAM_PROTO_ClearQueue done [12:08:44]KKMCreateOFDPacket [12:08:44]OFDProtocolAddRootSTLVToBuf [12:08:44]FM_MakeSignedData [12:08:44]FM_MakeSignedData [12:08:44]SAM_PROTO_SignData [12:08:44]wFMCommunicate request_size=4 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 0D 01 02 [12:08:44]Write to MH i2c: E2 08 00 61 0F 80 0D 01 02 00 00 00 00 E9 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 61 0F 00 90 00 E4 [12:08:44]RAPDU: 90 00 [12:08:44]wFMCommunicate OK [12:08:44]wFMCommunicate request_size=255 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 4C 2D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 15 39 02 00 35 04 06 00 98 [12:08:44]Write to MH i2c: E2 02 01 62 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 4C 2D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 15 39 02 00 35 04 06 00 98 00 00 C5 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 62 0F 00 90 00 E5 [12:08:44]RAPDU: 90 00 [12:08:44]wFMCommunicate OK [12:08:44]wFMCommunicate request_size=10 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 0D 02 02 05 1E D9 CE 02 83 [12:08:44]Write to MH i2c: E2 0D 00 63 0F 80 0D 02 02 05 00 1E D9 CE 02 83 00 00 40 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 63 0F 00 90 00 E6 [12:08:44]RAPDU: 90 00 [12:08:44]wFMCommunicate OK [12:08:44]wFMCommunicate request_size=4 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 0D 03 02 [12:08:44]Write to MH i2c: E2 08 00 64 0F 80 0D 03 02 00 00 00 00 EE [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 0B 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 0B 00 64 0F 00 A3 BF E1 F1 6E 34 B5 04 90 00 7E [12:08:44]RAPDU: A3 BF E1 F1 6E 34 B5 04 90 00 [12:08:44]wFMCommunicate OK [12:08:44]SAM_PROTO_SignData done [12:08:44]FM_MakeSignedData done [12:08:44]CreateOFDProtocolMessage [12:08:44]wFMCommunicate request_size=4 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 11 00 00 [12:08:44]Write to MH i2c: E2 08 00 65 0F 80 11 00 00 00 00 00 00 EE [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 17 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 17 00 65 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 41 [12:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:08:44]wFMCommunicate OK [12:08:44]CreateOFDProtocolMessage done [12:08:44]OFDSenderStorePacket 145685 [12:08:44]StoreOFDPacket docnum=145685 [12:08:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C7 90 07 01 76 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 4C 2D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 15 39 02 00 35 04 06 00 98 1E D9 CE 02 83 A3 BF E1 F1 6E 34 B5 04 [12:08:44]CheckFolder [12:08:44]dirname=/storage/ofd_packets [12:08:44]CheckFolder done [12:08:44]ProducePacketName [12:08:44]name=ofd_packets/00145685 [12:08:44]NVStorageSaveData ofd_packets/00145685 [12:08:44]File name is /storage/ofd_packets/00145685 [12:08:44]Write 301 bytes [12:08:44]NVStorageSaveData done [12:08:44]OFDSenderStorePacket done [12:08:44]KKMCreateOFDPacket done [12:08:44]NVStorageSaveData kkm_last_timestamp [12:08:44]File name is /storage/kkm_last_timestamp [12:08:44]Write 4 bytes [12:08:44]NVStorageSaveData done [12:08:44]ExternCall_PrintAddStr [12:08:44]wPrintStart [12:08:44]Write to MH i2c: 01 00 00 66 0F 75 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: 01 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: 01 07 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: 01 07 00 66 0F 00 00 00 00 00 FF 0F 8A [12:08:44]RasterBufferAndPrint [12:08:44]line Счет N : (1)160436 [12:08:44]line ИНН: 02508201610067 [12:08:44]line Контрольно-Кассовый Чек [12:08:44]line ПРОДАЖА [12:08:44]line ТРК (МРК, ГНК) : 53 [12:08:44]line Товар: 2710124500 [12:08:44]line Аи-95-К-3 [12:08:44]line 6.740 * 74.20 [12:08:44]line = 500.11 [12:08:44]line НДС 12% НСП 1% [12:08:44]line > о реализуемом товаре [12:08:44]line ОКРУГЛЕНИЕ: -0.11 [12:08:44]line ИТОГО: 500.00 [12:08:44]line Внесено: 500.00 [12:08:44]line СДАЧА: 0.00 [12:08:44]line НСП 1% : 4.43 [12:08:44]line НДС 12% : 53.11 [12:08:44]line Наличными: 500.00 [12:08:44]line Безнал.: 0.00 [12:08:44]line Место: АЗС № 126 "Партнер Нефть" [12:08:44]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:08:44]line СНО: Общий режим [12:08:44]line Чек 108 27.10.2024 12:08 [12:08:44]line Смена: 545 ФФД: 1.0 [12:08:44]line ЗНМ: 0300000085 [12:08:44]line РНМ: 0000000000091683 [12:08:44]line Версия ККМ: 001 [12:08:44]line ФМ: 0000000000871745 [12:08:44]line ФД: 145685 [12:08:44]line ФПД: 167258270597763 [12:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120844&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145685&fm=167258270597763&tin=02508201610067®Number=0000000000091683&sum=50000 [12:08:44]written 0, free lines is 4095 [12:08:44]OFD Sender: Processing packet 145685 [packets to send 206, broken 205] [12:08:44]ProducePacketName [12:08:44]name=ofd_packets/00145685 [12:08:44]OFD Sender: To server: pG, [12:08:44]CommunicateWithHost lk.salyk.kg:30040 [12:08:44]ConnectInit lk.salyk.kg [12:08:45]Connected sock=10 [12:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C7 90 07 01 76 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 4C 2D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 15 39 02 00 35 04 06 00 98 1E D9 CE 02 83 A3 BF E1 F1 6E 34 B5 04 [12:08:45]Write to MH i2c: 01 00 00 91 0F A0 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 07 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 07 00 91 0F 00 00 00 00 00 A3 0C 56 [12:08:45]RasterBufferAndPrint [12:08:45]line [12:08:45]line [12:08:45]line [12:08:45]line [12:08:45]line [12:08:45]written 0, free lines is 3241 [12:08:45]MH_Cut [12:08:45]Write to MH i2c: D1 01 00 98 0F 01 79 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: D1 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: D1 01 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: D1 01 00 98 0F 00 78 [12:08:45]Write to MH i2c: 01 00 00 99 0F A8 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 EF 06 47 00 6D 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 15 39 02 00 F4 03 04 00 7A D2 1D 67 B6 04 01 00 00 66 6F 9C 5E 30 AF 9A D4 [12:08:45]CommunicateWithHost err = 0 [12:08:45]CheckOFDResponse [12:08:45]1017 (14) - 77093643461234 [12:08:45]1041 (16) - 0000000000871745 [12:08:45]1040 (4) - 145685 [12:08:45]1012 (4) - 27.10.2024 05:41 [12:08:45]1206 (1) - 0 [12:08:45]OFD Sender: Remove packet 145685 [12:08:45]ProducePacketName [12:08:45]name=ofd_packets/00145685 [12:08:45]NVStorageDeleteData [12:08:45]OFD Sender: No OFD packet to send [12:08:46]*** Cut start [12:08:46]*** Partial cut [12:08:46]*** CUTSNS_PIN = 1 [12:08:46]*** CUTSNS_PIN = 0 [12:08:46]*** Brake cut motor [12:08:46]Read from MH i2c: 01 [12:08:46]MH_I2C_Read... [12:08:46]*** Stop cut motor [12:08:46]*** Cut end [12:08:46]Read from MH i2c: 01 07 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: 01 07 00 99 0F 00 00 00 00 00 FF 0F BD [12:08:46]process_action close_receipt done [12:08:46]requested_data is exist [12:08:46]produce_requested_data [12:08:46]requested_item fm.sn is exist - process it [12:08:46]wFMCommunicate request_size=4 [12:08:46]MH_SAM_APDU [12:08:46]CAPDU: 80 11 00 00 [12:08:46]Write to MH i2c: E2 08 00 9A 0F 80 11 00 00 00 00 00 00 23 [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:46]Read from MH i2c: E2 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: E2 17 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: E2 17 00 9A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 76 [12:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:08:46]wFMCommunicate OK [12:08:46]requested_item fd.num is exist - process it [12:08:46]SAM_PROTO_GetFieldsCounters [12:08:46]wFMCommunicate request_size=4 [12:08:46]MH_SAM_APDU [12:08:46]CAPDU: 80 13 00 00 [12:08:46]Write to MH i2c: E2 08 00 9B 0F 80 13 00 00 00 00 00 00 26 [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:46]Read from MH i2c: E2 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: E2 62 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: E2 62 00 9B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 15 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [12:08:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 15 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:46]wFMCommunicate OK [12:08:46]SAM_PROTO_GetFieldsCounters done [12:08:46]requested_item shift.num is exist - process it [12:08:46]requested_item shift.opened is exist - process it [12:08:46]req_shift_opened [12:08:46]FM_GetShiftState [12:08:46]SAM_PROTO_GetShiftState [12:08:46]wFMCommunicate request_size=4 [12:08:46]MH_SAM_APDU [12:08:46]CAPDU: 80 13 01 00 [12:08:46]Write to MH i2c: E2 08 00 9C 0F 80 13 01 00 00 00 00 00 28 [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 0E 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 0E 00 9C 0F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A0 [12:08:47]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:08:47]wFMCommunicate OK [12:08:47]SAM_PROTO_GetShiftState done [12:08:47]FM_GetShiftState done [12:08:47]req_shift_opened done [12:08:47]requested_item shift.open_date is exist - process it [12:08:47]req_shift_open_date [12:08:47]req_shift_open_date done [12:08:47]produce_requested_data done [12:08:47]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145685,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:08:47]process_action_free close_receipt [12:08:47]json_value_free [12:08:47]json_value_free done [12:08:47]process_json_proto returns [12:08:47]Send response to host [12:08:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145685,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:08:47]free response buf [12:08:47]execute_script done [12:08:47]execute_script returns [12:08:47]free content buf [12:08:47]Sock 9.Close socket [12:08:47]Sock 9.Thread stoped [12:08:50]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:16]accept exits with 7 [12:12:16]New connection [12:12:16]New thread 3066740068 created [12:12:16]Thread 3066596708 joined [12:12:16]Waiting for new connection... [12:12:16] Sock 7.Parse request [12:12:16]Sock 7.Check first char [12:12:16]Sock 7.First char is OK [12:12:16]request: POST /json_proto HTTP/1.0 [12:12:16]Method: POST [12:12:16]URL: /json_proto [12:12:16]Method is POST - this is cgi request [12:12:16]url: /json_proto [12:12:16]query_string will be loaded in cgi processing [12:12:16]execute_cgi json_proto POST (null) [12:12:16]execute_cgi path=json_proto method=POST [12:12:16]POST find Content-Length [12:12:16]Host: 172.17.40.195:8080 [12:12:16]Content-Length: 682 [12:12:16]Content-Type: application/json [12:12:16] [12:12:16]POST finish read [12:12:16]Found Content-Length = 682 [12:12:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:16]execute_script... [12:12: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)160437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:16]POST & json_proto [12:12:16]process_json_proto [12:12:16]json parsed OK: [12:12:16]protocol is kg_v1.0 [12:12:16]action value=close_receipt [12:12:16]process_action close_receipt [12:12:16]cmd_close_receipt [12:12:16]MH_GetDate [12:12:16]Write to MH i2c: F0 00 00 9D 0F 9B [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: F0 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: F0 09 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: F0 09 00 9D 0F 00 22 2E 1E 67 D5 8D 6C 64 AB [12:12:16]GetLastDocTimeStamp 1730030924 [12:12:16]current date 1730031138 [12:12:16]FM_GetShiftState [12:12:16]SAM_PROTO_GetShiftState [12:12:16]wFMCommunicate request_size=4 [12:12:16]MH_SAM_APDU [12:12:16]CAPDU: 80 13 01 00 [12:12:16]Write to MH i2c: E2 08 00 9E 0F 80 13 01 00 00 00 00 00 2A [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:16]Read from MH i2c: E2 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 0E 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 0E 00 9E 0F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A2 [12:12:16]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:12:16]wFMCommunicate OK [12:12:16]SAM_PROTO_GetShiftState done [12:12:16]FM_GetShiftState done [12:12:16]opened in 1729988959 [12:12:16]opened+sec_in_day 1730075359 [12:12:16]quantity*price = 100015 [12:12:16]sum+1 = 100017 [12:12:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 109 27.10.2024 12:12 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145686 ФПД: 226823201528977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121218&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145686&fm=226823201528977&tin=02508201610067®Number=0000000000091683&sum=100000 [12:12:18]StoreToDocumentArchive [12:12:18]shift 545 fd 145686 [12:12:18]save to /storage/0545/doc_00145686 [12:12:18]save last doc name /storage/0545/doc_00145686 to /storage/kkm_last_doc_name [12:12:18]save OK [12:12:18]Clear old archive folders... [12:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:18]tlvbuf is 004176C0 [12:12:18]SAM_PROTO_ClearQueue [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 09 00 00 [12:12:18]Write to MH i2c: E2 08 00 AB 0F 80 09 00 00 00 00 00 00 2C [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 AB 0F 00 90 00 2E [12:12:18]RAPDU: 90 00 [12:12:18]wFMCommunicate OK [12:12:18]SAM_PROTO_ClearQueue done [12:12:18]KKMCreateOFDPacket [12:12:18]OFDProtocolAddRootSTLVToBuf [12:12:18]FM_MakeSignedData [12:12:18]FM_MakeSignedData [12:12:18]SAM_PROTO_SignData [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 0D 01 02 [12:12:18]Write to MH i2c: E2 08 00 AC 0F 80 0D 01 02 00 00 00 00 34 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 AC 0F 00 90 00 2F [12:12:18]RAPDU: 90 00 [12:12:18]wFMCommunicate OK [12:12:18]wFMCommunicate request_size=255 [12:12:18]MH_SAM_APDU [12:12: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 22 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 16 39 02 00 35 04 06 00 CE [12:12:18]Write to MH i2c: E2 02 01 AD 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 22 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 16 39 02 00 35 04 06 00 CE 00 00 40 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 AD 0F 00 90 00 30 [12:12:18]RAPDU: 90 00 [12:12:18]wFMCommunicate OK [12:12:18]wFMCommunicate request_size=10 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 0D 02 02 05 4B 64 5A 9C 91 [12:12:18]Write to MH i2c: E2 0D 00 AE 0F 80 0D 02 02 05 00 4B 64 5A 9C 91 00 00 77 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:18]Read from MH i2c: E2 03 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 03 00 AE 0F 00 90 00 31 [12:12:18]RAPDU: 90 00 [12:12:18]wFMCommunicate OK [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 0D 03 02 [12:12:18]Write to MH i2c: E2 08 00 AF 0F 80 0D 03 02 00 00 00 00 39 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 0B 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 0B 00 AF 0F 00 2C 23 36 EB DB B7 87 C9 90 00 8C [12:12:18]RAPDU: 2C 23 36 EB DB B7 87 C9 90 00 [12:12:18]wFMCommunicate OK [12:12:18]SAM_PROTO_SignData done [12:12:18]FM_MakeSignedData done [12:12:18]CreateOFDProtocolMessage [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 11 00 00 [12:12:18]Write to MH i2c: E2 08 00 B0 0F 80 11 00 00 00 00 00 00 39 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 17 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 17 00 B0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8C [12:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:12:18]wFMCommunicate OK [12:12:18]CreateOFDProtocolMessage done [12:12:18]OFDSenderStorePacket 145686 [12:12:18]StoreOFDPacket docnum=145686 [12:12:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 67 9F 07 01 C0 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 22 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 16 39 02 00 35 04 06 00 CE 4B 64 5A 9C 91 2C 23 36 EB DB B7 87 C9 [12:12:18]CheckFolder [12:12:18]dirname=/storage/ofd_packets [12:12:18]CheckFolder done [12:12:18]ProducePacketName [12:12:18]name=ofd_packets/00145686 [12:12:18]NVStorageSaveData ofd_packets/00145686 [12:12:18]File name is /storage/ofd_packets/00145686 [12:12:18]Write 301 bytes [12:12:18]NVStorageSaveData done [12:12:18]OFDSenderStorePacket done [12:12:18]KKMCreateOFDPacket done [12:12:18]NVStorageSaveData kkm_last_timestamp [12:12:18]File name is /storage/kkm_last_timestamp [12:12:18]Write 4 bytes [12:12:18]NVStorageSaveData done [12:12:18]ExternCall_PrintAddStr [12:12:18]wPrintStart [12:12:18]Write to MH i2c: 01 00 00 B1 0F C0 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: 01 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: 01 07 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: 01 07 00 B1 0F 00 00 00 00 00 FF 0F D5 [12:12:18]RasterBufferAndPrint [12:12:18]line Счет N : (1)160437 [12:12:18]line ИНН: 02508201610067 [12:12:18]line Контрольно-Кассовый Чек [12:12:18]line ПРОДАЖА [12:12:18]line ТРК (МРК, ГНК) : 42 [12:12:18]line Товар: 2710124130 [12:12:18]line Аи-92-К-2 [12:12:18]line 14.950 * 66.90 [12:12:18]line = 1000.16 [12:12:18]line НДС 12% НСП 1% [12:12:18]line > о реализуемом товаре [12:12:18]line ОКРУГЛЕНИЕ: -0.16 [12:12:18]line ИТОГО: 1000.00 [12:12:18]line Внесено: 1000.00 [12:12:18]line СДАЧА: 0.00 [12:12:18]line НСП 1% : 8.85 [12:12:18]line НДС 12% : 106.21 [12:12:18]line Наличными: 1000.00 [12:12:18]line Безнал.: 0.00 [12:12:18]line Место: АЗС № 126 "Партнер Нефть" [12:12:18]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:12:18]line СНО: Общий режим [12:12:18]line Чек 109 27.10.2024 12:12 [12:12:18]line Смена: 545 ФФД: 1.0 [12:12:18]line ЗНМ: 0300000085 [12:12:18]line РНМ: 0000000000091683 [12:12:18]line Версия ККМ: 001 [12:12:18]line ФМ: 0000000000871745 [12:12:18]line ФД: 145686 [12:12:18]line ФПД: 226823201528977 [12:12:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121218&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145686&fm=226823201528977&tin=02508201610067®Number=0000000000091683&sum=100000 [12:12:18]OFD Sender: Processing packet 145686 [packets to send 206, broken 205] [12:12:18]ProducePacketName [12:12:18]name=ofd_packets/00145686 [12:12:18]OFD Sender: To server: pG, [12:12:18]CommunicateWithHost lk.salyk.kg:30040 [12:12:18]ConnectInit lk.salyk.kg [12:12:18]written 0, free lines is 4095 [12:12:19]Connected sock=11 [12:12:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 67 9F 07 01 C0 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 22 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 16 39 02 00 35 04 06 00 CE 4B 64 5A 9C 91 2C 23 36 EB DB B7 87 C9 [12:12:19]Write to MH i2c: 01 00 00 DC 0F EB [12:12:19]Write i2c OK [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: 01 [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: 01 07 00 [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: 01 07 00 DC 0F 00 00 00 00 00 A8 0C A6 [12:12:19]RasterBufferAndPrint [12:12:19]line [12:12:19]line [12:12:19]line [12:12:19]line [12:12:19]line [12:12:19]written 0, free lines is 3245 [12:12:19]MH_Cut [12:12:19]Write to MH i2c: D1 01 00 E3 0F 01 C4 [12:12:19]Write i2c OK [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: D1 [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: D1 01 00 [12:12:19]MH_I2C_Read... [12:12:19]Read from MH i2c: D1 01 00 E3 0F 00 C3 [12:12:19]Write to MH i2c: 01 00 00 E4 0F F3 [12:12:19]Write i2c OK [12:12:19]MH_I2C_Read... [12:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D4 25 47 00 35 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 16 39 02 00 F4 03 04 00 50 D3 1D 67 B6 04 01 00 00 D4 13 A9 49 09 B6 60 7C [12:12:19]CommunicateWithHost err = 0 [12:12:19]CheckOFDResponse [12:12:19]1017 (14) - 77093643461234 [12:12:19]1041 (16) - 0000000000871745 [12:12:19]1040 (4) - 145686 [12:12:19]1012 (4) - 27.10.2024 05:44 [12:12:19]1206 (1) - 0 [12:12:19]OFD Sender: Remove packet 145686 [12:12:19]ProducePacketName [12:12:19]name=ofd_packets/00145686 [12:12:19]NVStorageDeleteData [12:12:19]OFD Sender: No OFD packet to send [12:12:20]*** Cut start [12:12:20]*** Partial cut [12:12:20]*** CUTSNS_PIN = 1 [12:12:20]*** CUTSNS_PIN = 0 [12:12:20]*** Brake cut motor [12:12:20]Read from MH i2c: 01 [12:12:20]MH_I2C_Read... [12:12:20]*** Stop cut motor [12:12:20]*** Cut end [12:12:20]Read from MH i2c: 01 07 00 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: 01 07 00 E4 0F 00 00 00 00 00 FF 0F 08 [12:12:20]process_action close_receipt done [12:12:20]requested_data is exist [12:12:20]produce_requested_data [12:12:20]requested_item fm.sn is exist - process it [12:12:20]wFMCommunicate request_size=4 [12:12:20]MH_SAM_APDU [12:12:20]CAPDU: 80 11 00 00 [12:12:20]Write to MH i2c: E2 08 00 E5 0F 80 11 00 00 00 00 00 00 6E [12:12:20]Write i2c OK [12:12:20]MH_I2C_Read... [12:12:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:20]Read from MH i2c: E2 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: E2 17 00 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: E2 17 00 E5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C1 [12:12:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:12:20]wFMCommunicate OK [12:12:20]requested_item fd.num is exist - process it [12:12:20]SAM_PROTO_GetFieldsCounters [12:12:20]wFMCommunicate request_size=4 [12:12:20]MH_SAM_APDU [12:12:20]CAPDU: 80 13 00 00 [12:12:20]Write to MH i2c: E2 08 00 E6 0F 80 13 00 00 00 00 00 00 71 [12:12:20]Write i2c OK [12:12:20]MH_I2C_Read... [12:12:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:20]Read from MH i2c: E2 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: E2 62 00 [12:12:20]MH_I2C_Read... [12:12:20]Read from MH i2c: E2 62 00 E6 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 16 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [12:12:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 16 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:20]wFMCommunicate OK [12:12:20]SAM_PROTO_GetFieldsCounters done [12:12:20]requested_item shift.num is exist - process it [12:12:20]requested_item shift.opened is exist - process it [12:12:20]req_shift_opened [12:12:20]FM_GetShiftState [12:12:20]SAM_PROTO_GetShiftState [12:12:20]wFMCommunicate request_size=4 [12:12:20]MH_SAM_APDU [12:12:20]CAPDU: 80 13 01 00 [12:12:20]Write to MH i2c: E2 08 00 E7 0F 80 13 01 00 00 00 00 00 73 [12:12:20]Write i2c OK [12:12:20]MH_I2C_Read... [12:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:21]Read from MH i2c: E2 [12:12:21]MH_I2C_Read... [12:12:21]Read from MH i2c: E2 0E 00 [12:12:21]MH_I2C_Read... [12:12:21]Read from MH i2c: E2 0E 00 E7 0F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EB [12:12:21]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:12:21]wFMCommunicate OK [12:12:21]SAM_PROTO_GetShiftState done [12:12:21]FM_GetShiftState done [12:12:21]req_shift_opened done [12:12:21]requested_item shift.open_date is exist - process it [12:12:21]req_shift_open_date [12:12:21]req_shift_open_date done [12:12:21]produce_requested_data done [12:12:21]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145686,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:12:21]process_action_free close_receipt [12:12:21]json_value_free [12:12:21]json_value_free done [12:12:21]process_json_proto returns [12:12:21]Send response to host [12:12:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145686,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:12:21]free response buf [12:12:21]execute_script done [12:12:21]execute_script returns [12:12:21]free content buf [12:12:21]Sock 7.Close socket [12:12:21]Sock 7.Thread stoped [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:35]accept exits with 9 [12:13:35]New connection [12:13:35]New thread 3066596708 created [12:13:35]Thread 3066740068 joined [12:13:35]Waiting for new connection... [12:13:35] Sock 9.Parse request [12:13:35]Sock 9.Check first char [12:13:35]Sock 9.First char is OK [12:13:35]request: POST /json_proto HTTP/1.0 [12:13:35]Method: POST [12:13:35]URL: /json_proto [12:13:35]Method is POST - this is cgi request [12:13:35]url: /json_proto [12:13:35]query_string will be loaded in cgi processing [12:13:35]execute_cgi json_proto POST (null) [12:13:35]execute_cgi path=json_proto method=POST [12:13:35]POST find Content-Length [12:13:35]Host: 172.17.40.195:8080 [12:13:35]Content-Length: 677 [12:13:35]Content-Type: application/json [12:13:35] [12:13:35]POST finish read [12:13:35]Found Content-Length = 677 [12:13:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 1.350, "sum" : 100.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:35]execute_script... [12:13:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 1.350, "sum" : 100.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:35]POST & json_proto [12:13:35]process_json_proto [12:13:35]json parsed OK: [12:13:35]protocol is kg_v1.0 [12:13:35]action value=close_receipt [12:13:35]process_action close_receipt [12:13:35]cmd_close_receipt [12:13:35]MH_GetDate [12:13:35]Write to MH i2c: F0 00 00 E8 0F E6 [12:13:35]Write i2c OK [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: F0 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: F0 09 00 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: F0 09 00 E8 0F 00 70 2E 1E 67 D5 8D 6C 64 44 [12:13:35]GetLastDocTimeStamp 1730031138 [12:13:35]current date 1730031216 [12:13:35]FM_GetShiftState [12:13:35]SAM_PROTO_GetShiftState [12:13:35]wFMCommunicate request_size=4 [12:13:35]MH_SAM_APDU [12:13:35]CAPDU: 80 13 01 00 [12:13:35]Write to MH i2c: E2 08 00 E9 0F 80 13 01 00 00 00 00 00 75 [12:13:35]Write i2c OK [12:13:35]MH_I2C_Read... [12:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:35]Read from MH i2c: E2 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: E2 0E 00 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: E2 0E 00 E9 0F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 ED [12:13:35]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:13:35]wFMCommunicate OK [12:13:35]SAM_PROTO_GetShiftState done [12:13:35]FM_GetShiftState done [12:13:35]opened in 1729988959 [12:13:35]opened+sec_in_day 1730075359 [12:13:35]quantity*price = 10017 [12:13:35]sum+1 = 10018 [12:13:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.64 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 110 27.10.2024 12:13 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145687 ФПД: 138359999095269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121336&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145687&fm=138359999095269&tin=02508201610067®Number=0000000000091683&sum=10000 [12:13:36]StoreToDocumentArchive [12:13:36]shift 545 fd 145687 [12:13:36]save to /storage/0545/doc_00145687 [12:13:36]save last doc name /storage/0545/doc_00145687 to /storage/kkm_last_doc_name [12:13:36]save OK [12:13:36]Clear old archive folders... [12:13:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:36]tlvbuf is 004173D0 [12:13:36]SAM_PROTO_ClearQueue [12:13:36]wFMCommunicate request_size=4 [12:13:36]MH_SAM_APDU [12:13:36]CAPDU: 80 09 00 00 [12:13:36]Write to MH i2c: E2 08 00 F6 0F 80 09 00 00 00 00 00 00 77 [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [12:13:36]RAPDU: 90 00 [12:13:36]wFMCommunicate OK [12:13:36]SAM_PROTO_ClearQueue done [12:13:36]KKMCreateOFDPacket [12:13:36]OFDProtocolAddRootSTLVToBuf [12:13:36]FM_MakeSignedData [12:13:36]FM_MakeSignedData [12:13:36]SAM_PROTO_SignData [12:13:36]wFMCommunicate request_size=4 [12:13:36]MH_SAM_APDU [12:13:36]CAPDU: 80 0D 01 02 [12:13:36]Write to MH i2c: E2 08 00 F7 0F 80 0D 01 02 00 00 00 00 7F [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [12:13:36]RAPDU: 90 00 [12:13:36]wFMCommunicate OK [12:13:36]wFMCommunicate request_size=255 [12:13:36]MH_SAM_APDU [12:13: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 33 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 70 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 17 39 02 00 35 04 06 00 7D [12:13:36]Write to MH i2c: E2 02 01 F8 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 70 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 17 39 02 00 35 04 06 00 7D 00 00 AE [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 F8 0F 00 90 00 7B [12:13:36]RAPDU: 90 00 [12:13:36]wFMCommunicate OK [12:13:36]wFMCommunicate request_size=10 [12:13:36]MH_SAM_APDU [12:13:36]CAPDU: 80 0D 02 02 05 D6 72 98 E1 E5 [12:13:36]Write to MH i2c: E2 0D 00 F9 0F 80 0D 02 02 05 00 D6 72 98 E1 E5 00 00 32 [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 F9 0F 00 90 00 7C [12:13:36]RAPDU: 90 00 [12:13:36]wFMCommunicate OK [12:13:36]wFMCommunicate request_size=4 [12:13:36]MH_SAM_APDU [12:13:36]CAPDU: 80 0D 03 02 [12:13:36]Write to MH i2c: E2 08 00 FA 0F 80 0D 03 02 00 00 00 00 84 [12:13:37]Write i2c OK [12:13:37]MH_I2C_Read... [12:13:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:37]Read from MH i2c: E2 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: E2 0B 00 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: E2 0B 00 FA 0F 00 1B 81 1F 6B 6D D4 BA DA 90 00 80 [12:13:37]RAPDU: 1B 81 1F 6B 6D D4 BA DA 90 00 [12:13:37]wFMCommunicate OK [12:13:37]SAM_PROTO_SignData done [12:13:37]FM_MakeSignedData done [12:13:37]CreateOFDProtocolMessage [12:13:37]wFMCommunicate request_size=4 [12:13:37]MH_SAM_APDU [12:13:37]CAPDU: 80 11 00 00 [12:13:37]Write to MH i2c: E2 08 00 FB 0F 80 11 00 00 00 00 00 00 84 [12:13:37]Write i2c OK [12:13:37]MH_I2C_Read... [12:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:37]Read from MH i2c: E2 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: E2 17 00 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: E2 17 00 FB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D7 [12:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:13:37]wFMCommunicate OK [12:13:37]CreateOFDProtocolMessage done [12:13:37]OFDSenderStorePacket 145687 [12:13:37]StoreOFDPacket docnum=145687 [12:13:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A7 72 07 01 5F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 70 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 17 39 02 00 35 04 06 00 7D D6 72 98 E1 E5 1B 81 1F 6B 6D D4 BA DA [12:13:37]CheckFolder [12:13:37]dirname=/storage/ofd_packets [12:13:37]CheckFolder done [12:13:37]ProducePacketName [12:13:37]name=ofd_packets/00145687 [12:13:37]NVStorageSaveData ofd_packets/00145687 [12:13:37]File name is /storage/ofd_packets/00145687 [12:13:37]Write 301 bytes [12:13:37]NVStorageSaveData done [12:13:37]OFDSenderStorePacket done [12:13:37]KKMCreateOFDPacket done [12:13:37]NVStorageSaveData kkm_last_timestamp [12:13:37]File name is /storage/kkm_last_timestamp [12:13:37]Write 4 bytes [12:13:37]NVStorageSaveData done [12:13:37]ExternCall_PrintAddStr [12:13:37]wPrintStart [12:13:37]Write to MH i2c: 01 00 00 FC 0F 0B [12:13:37]OFD Sender: Processing packet 145687 [packets to send 206, broken 205] [12:13:37]ProducePacketName [12:13:37]name=ofd_packets/00145687 [12:13:37]OFD Sender: To server: pG, [12:13:37]CommunicateWithHost lk.salyk.kg:30040 [12:13:37]ConnectInit lk.salyk.kg [12:13:37]Write i2c OK [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: 01 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: 01 07 00 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: 01 07 00 FC 0F 00 00 00 00 00 FF 0F 20 [12:13:37]RasterBufferAndPrint [12:13:37]line Счет N : (1)160438 [12:13:37]line ИНН: 02508201610067 [12:13:37]line Контрольно-Кассовый Чек [12:13:37]line ПРОДАЖА [12:13:37]line ТРК (МРК, ГНК) : 53 [12:13:37]line Товар: 2710124500 [12:13:37]line Аи-95-К-3 [12:13:37]line 1.350 * 74.20 [12:13:37]line = 100.17 [12:13:37]line НДС 12% НСП 1% [12:13:37]line > о реализуемом товаре [12:13:37]line ОКРУГЛЕНИЕ: -0.17 [12:13:37]line ИТОГО: 100.00 [12:13:37]line Внесено: 100.00 [12:13:37]line СДАЧА: 0.00 [12:13:37]line НСП 1% : 0.89 [12:13:37]line НДС 12% : 10.64 [12:13:37]line Наличными: 100.00 [12:13:37]line Безнал.: 0.00 [12:13:37]line Место: АЗС № 126 "Партнер Нефть" [12:13:37]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:13:37]line СНО: Общий режим [12:13:37]line Чек 110 27.10.2024 12:13 [12:13:37]line Смена: 545 ФФД: 1.0 [12:13:37]line ЗНМ: 0300000085 [12:13:37]line РНМ: 0000000000091683 [12:13:37]line Версия ККМ: 001 [12:13:37]line ФМ: 0000000000871745 [12:13:37]line ФД: 145687 [12:13:37]line ФПД: 138359999095269 [12:13:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121336&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145687&fm=138359999095269&tin=02508201610067®Number=0000000000091683&sum=10000 [12:13:37]Connected sock=7 [12:13:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A7 72 07 01 5F A4 written 0, free lines is 4095 [12:13:37]5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 70 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 17 39 02 00 35 04 06 00 7D D6 72 98 E1 E5 1B 81 1F 6B 6D D4 BA DA [12:13:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 5B EB 47 00 06 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 17 39 02 00 F4 03 04 00 9E D3 1D 67 B6 04 01 00 00 0C 68 23 EA 9E D6 CA EB [12:13:37]CommunicateWithHost err = 0 [12:13:37]CheckOFDResponse [12:13:37]1017 (14) - 77093643461234 [12:13:37]1041 (16) - 0000000000871745 [12:13:37]1040 (4) - 145687 [12:13:37]1012 (4) - 27.10.2024 05:46 [12:13:37]1206 (1) - 0 [12:13:37]OFD Sender: Remove packet 145687 [12:13:37]ProducePacketName [12:13:37]name=ofd_packets/00145687 [12:13:37]NVStorageDeleteData [12:13:37]Write to MH i2c: 01 00 00 27 10 37 [12:13:37]Write i2c OK [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: 01 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: 01 07 00 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: 01 07 00 27 10 00 00 00 00 00 9F 0C E9 [12:13:37]RasterBufferAndPrint [12:13:37]line [12:13:37]line [12:13:37]line [12:13:37]line [12:13:37]line [12:13:37]written 0, free lines is 3237 [12:13:37]MH_Cut [12:13:37]Write to MH i2c: D1 01 00 2E 10 01 10 [12:13:37]Write i2c OK [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: D1 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: D1 01 00 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: D1 01 00 2E 10 00 0F [12:13:37]Write to MH i2c: 01 00 00 2F 10 3F [12:13:37]Write i2c OK [12:13:37]MH_I2C_Read... [12:13:38]OFD Sender: No OFD packet to send [12:13:38]*** Cut start [12:13:38]*** Partial cut [12:13:38]*** CUTSNS_PIN = 1 [12:13:38]*** CUTSNS_PIN = 0 [12:13:38]*** Brake cut motor [12:13:39]Read from MH i2c: 01 [12:13:39]MH_I2C_Read... [12:13:39]*** Stop cut motor [12:13:39]*** Cut end [12:13:39]Read from MH i2c: 01 07 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 07 00 2F 10 00 00 00 00 00 FF 0F 54 [12:13:39]process_action close_receipt done [12:13:39]requested_data is exist [12:13:39]produce_requested_data [12:13:39]requested_item fm.sn is exist - process it [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 11 00 00 [12:13:39]Write to MH i2c: E2 08 00 30 10 80 11 00 00 00 00 00 00 BA [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 17 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 17 00 30 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0D [12:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:13:39]wFMCommunicate OK [12:13:39]requested_item fd.num is exist - process it [12:13:39]SAM_PROTO_GetFieldsCounters [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 13 00 00 [12:13:39]Write to MH i2c: E2 08 00 31 10 80 13 00 00 00 00 00 00 BD [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 62 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 62 00 31 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 17 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [12:13:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 17 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:39]wFMCommunicate OK [12:13:39]SAM_PROTO_GetFieldsCounters done [12:13:39]requested_item shift.num is exist - process it [12:13:39]requested_item shift.opened is exist - process it [12:13:39]req_shift_opened [12:13:39]FM_GetShiftState [12:13:39]SAM_PROTO_GetShiftState [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 13 01 00 [12:13:39]Write to MH i2c: E2 08 00 32 10 80 13 01 00 00 00 00 00 BF [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 0E 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 0E 00 32 10 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 37 [12:13:39]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:13:39]wFMCommunicate OK [12:13:39]SAM_PROTO_GetShiftState done [12:13:39]FM_GetShiftState done [12:13:39]req_shift_opened done [12:13:39]requested_item shift.open_date is exist - process it [12:13:39]req_shift_open_date [12:13:39]req_shift_open_date done [12:13:39]produce_requested_data done [12:13:39]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145687,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:13:39]process_action_free close_receipt [12:13:39]json_value_free [12:13:39]json_value_free done [12:13:39]process_json_proto returns [12:13:39]Send response to host [12:13:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145687,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:13:39]free response buf [12:13:39]execute_script done [12:13:39]execute_script returns [12:13:39]free content buf [12:13:39]Sock 9.Close socket [12:13:39]Sock 9.Thread stoped [12:13:39]int [12:13:39]Write to MH i2c: 01 00 00 33 10 43 [12:13:39]*** FLAG_PRN_KEY set [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 07 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 07 00 33 10 00 08 00 00 00 FF 0F 60 [12:13:39]state=0 [12:13:39]Key pressed [12:13:39]Feed [12:13:39]Write to MH i2c: D8 00 00 34 10 1B [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: D8 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: D8 01 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: D8 01 00 34 10 00 1C [12:13:39]int [12:13:39]Write to MH i2c: 01 00 00 35 10 45 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 07 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 07 00 35 10 00 48 00 00 00 3C 00 D0 [12:13:39]state=2 [12:13:39]Key pressed [12:13:39]int [12:13:39]Write to MH i2c: 01 00 00 36 10 46 [12:13:39]*** FLAG_PRN_KEY reset [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 07 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 07 00 36 10 00 00 00 00 00 FF 0F 5B [12:13:39]state=2 [12:13:39]Stop feed [12:13:41]int [12:13:41]Write to MH i2c: 01 00 00 37 10 47 [12:13:41]*** FLAG_PRN_KEY set [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 37 10 00 08 00 00 00 FF 0F 64 [12:13:41]state=0 [12:13:41]Key pressed [12:13:41]Feed [12:13:41]Write to MH i2c: D8 00 00 38 10 1F [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: D8 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: D8 01 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: D8 01 00 38 10 00 20 [12:13:41]int [12:13:41]Write to MH i2c: 01 00 00 39 10 49 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 39 10 00 48 00 00 00 3C 00 D4 [12:13:41]state=2 [12:13:41]Key pressed [12:13:41]int [12:13:41]Write to MH i2c: 01 00 00 3A 10 4A [12:13:41]*** FLAG_PRN_KEY reset [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 3A 10 00 00 00 00 00 FF 0F 5F [12:13:41]state=2 [12:13:41]Stop feed [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:31]accept exits with 10 [12:14:31]New connection [12:14:31]New thread 3066740068 created [12:14:31]Thread 3066596708 joined [12:14:31]Waiting for new connection... [12:14:31] Sock 10.Parse request [12:14:31]Sock 10.Check first char [12:14:31]Sock 10.First char is OK [12:14:31]request: POST /json_proto HTTP/1.0 [12:14:31]Method: POST [12:14:31]URL: /json_proto [12:14:31]Method is POST - this is cgi request [12:14:31]url: /json_proto [12:14:31]query_string will be loaded in cgi processing [12:14:31]execute_cgi json_proto POST (null) [12:14:31]execute_cgi path=json_proto method=POST [12:14:31]POST find Content-Length [12:14:31]Host: 172.17.40.195:8080 [12:14:31]Content-Length: 775 [12:14:31]Content-Type: application/json [12:14:31] [12:14:31]POST finish read [12:14:31]Found Content-Length = 775 [12:14:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:31]execute_script... [12:14: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)160439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:31]POST & json_proto [12:14:31]process_json_proto [12:14:31]json parsed OK: [12:14:31]protocol is kg_v1.0 [12:14:31]action value=close_receipt [12:14:31]process_action close_receipt [12:14:31]cmd_close_receipt [12:14:31]MH_GetDate [12:14:31]Write to MH i2c: F0 00 00 3B 10 3A [12:14:31]Write i2c OK [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: F0 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: F0 09 00 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: F0 09 00 3B 10 00 A8 2E 1E 67 D5 8D 6C 64 D0 [12:14:31]GetLastDocTimeStamp 1730031216 [12:14:31]current date 1730031272 [12:14:31]FM_GetShiftState [12:14:31]SAM_PROTO_GetShiftState [12:14:31]wFMCommunicate request_size=4 [12:14:31]MH_SAM_APDU [12:14:31]CAPDU: 80 13 01 00 [12:14:31]Write to MH i2c: E2 08 00 3C 10 80 13 01 00 00 00 00 00 C9 [12:14:31]Write i2c OK [12:14:31]MH_I2C_Read... [12:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:31]Read from MH i2c: E2 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: E2 0E 00 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: E2 0E 00 3C 10 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 41 [12:14:31]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:14:31]wFMCommunicate OK [12:14:31]SAM_PROTO_GetShiftState done [12:14:31]FM_GetShiftState done [12:14:31]opened in 1729988959 [12:14:31]opened+sec_in_day 1730075359 [12:14:31]quantity*price = 100051 [12:14:31]sum+1 = 100052 [12:14:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 111 27.10.2024 12:14 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145688 ФПД: 182165005017719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121432&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145688&fm=182165005017719&tin=02508201610067®Number=0000000000091683&sum=100051 [12:14:32]StoreToDocumentArchive [12:14:32]shift 545 fd 145688 [12:14:32]save to /storage/0545/doc_00145688 [12:14:32]save last doc name /storage/0545/doc_00145688 to /storage/kkm_last_doc_name [12:14:32]save OK [12:14:32]Clear old archive folders... [12:14:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:14:32]tlvbuf is B6E8D940 [12:14:32]SAM_PROTO_ClearQueue [12:14:32]wFMCommunicate request_size=4 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 09 00 00 [12:14:32]Write to MH i2c: E2 08 00 49 10 80 09 00 00 00 00 00 00 CB [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 49 10 00 90 00 CD [12:14:32]RAPDU: 90 00 [12:14:32]wFMCommunicate OK [12:14:32]SAM_PROTO_ClearQueue done [12:14:32]KKMCreateOFDPacket [12:14:32]OFDProtocolAddRootSTLVToBuf [12:14:32]FM_MakeSignedData [12:14:32]FM_MakeSignedData [12:14:32]SAM_PROTO_SignData [12:14:32]wFMCommunicate request_size=4 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 0D 01 02 [12:14:32]Write to MH i2c: E2 08 00 4A 10 80 0D 01 02 00 00 00 00 D3 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [12:14:32]RAPDU: 90 00 [12:14:32]wFMCommunicate OK [12:14:32]wFMCommunicate request_size=255 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A8 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 18 39 02 [12:14:32]Write to MH i2c: E2 02 01 4B 10 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A8 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 18 39 02 00 00 73 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:33]Read from MH i2c: E2 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 03 00 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 03 00 4B 10 00 90 00 CF [12:14:33]RAPDU: 90 00 [12:14:33]wFMCommunicate OK [12:14:33]wFMCommunicate request_size=16 [12:14:33]MH_SAM_APDU [12:14:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A5 AD 98 6A 22 77 [12:14:33]Write to MH i2c: E2 13 00 4C 10 80 0D 02 02 0B 00 00 35 04 06 00 A5 AD 98 6A 22 77 00 00 18 [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:33]Read from MH i2c: E2 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 03 00 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 03 00 4C 10 00 90 00 D0 [12:14:33]RAPDU: 90 00 [12:14:33]wFMCommunicate OK [12:14:33]wFMCommunicate request_size=4 [12:14:33]MH_SAM_APDU [12:14:33]CAPDU: 80 0D 03 02 [12:14:33]Write to MH i2c: E2 08 00 4D 10 80 0D 03 02 00 00 00 00 D8 [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:33]Read from MH i2c: E2 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 0B 00 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 0B 00 4D 10 00 D3 EE 7F 85 B4 CF D3 87 90 00 7B [12:14:33]RAPDU: D3 EE 7F 85 B4 CF D3 87 90 00 [12:14:33]wFMCommunicate OK [12:14:33]SAM_PROTO_SignData done [12:14:33]FM_MakeSignedData done [12:14:33]CreateOFDProtocolMessage [12:14:33]wFMCommunicate request_size=4 [12:14:33]MH_SAM_APDU [12:14:33]CAPDU: 80 11 00 00 [12:14:33]Write to MH i2c: E2 08 00 4E 10 80 11 00 00 00 00 00 00 D8 [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:33]Read from MH i2c: E2 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 17 00 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 17 00 4E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2B [12:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:14:33]wFMCommunicate OK [12:14:33]CreateOFDProtocolMessage done [12:14:33]OFDSenderStorePacket 145688 [12:14:33]StoreOFDPacket docnum=145688 [12:14:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 AD 6B 0D 01 A4 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A8 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 18 39 02 00 35 04 06 00 A5 AD 98 6A 22 77 D3 EE 7F 85 B4 CF D3 87 [12:14:33]CheckFolder [12:14:33]dirname=/storage/ofd_packets [12:14:33]CheckFolder done [12:14:33]ProducePacketName [12:14:33]name=ofd_packets/00145688 [12:14:33]NVStorageSaveData ofd_packets/00145688 [12:14:33]File name is /storage/ofd_packets/00145688 [12:14:33]Write 307 bytes [12:14:33]NVStorageSaveData done [12:14:33]OFDSenderStorePacket done [12:14:33]KKMCreateOFDPacket done [12:14:33]NVStorageSaveData kkm_last_timestamp [12:14:33]File name is /storage/kkm_last_timestamp [12:14:33]Write 4 bytes [12:14:33]NVStorageSaveData done [12:14:33]ExternCall_PrintAddStr [12:14:33]wPrintStart [12:14:33]Write to MH i2c: 01 00 00 4F 10 5F [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: 01 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: 01 07 00 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: 01 07 00 4F 10 00 00 00 00 00 FF 0F 74 [12:14:33]RasterBufferAndPrint [12:14:33]line Счет N : (1)160439 [12:14:33]line ИНН: 02508201610067 [12:14:33]line Контрольно-Кассовый Чек [12:14:33]line ПРОДАЖА [12:14:33]line ТРК (МРК, ГНК) : 31 [12:14:33]line Товар: 2710194240 [12:14:33]line D-Energy Дт-К-2 [12:14:33]line 12.960 * 77.20 [12:14:33]line = 1000.51 [12:14:33]line НДС 12% НСП 1% [12:14:33]line > о реализуемом товаре [12:14:33]line ИТОГО: 1000.51 [12:14:33]line НСП 1% : 8.85 [12:14:33]line НДС 12% : 106.25 [12:14:33]line Наличными: 0.00 [12:14:33]line Безнал.: 1000.51 [12:14:33]line Место: АЗС № 126 "Партнер Нефть" [12:14:33]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:14:33]line СНО: Общий режим [12:14:33]line Чек 111 27.10.2024 12:14 [12:14:33]line Смена: 545 ФФД: 1.0 [12:14:33]line ЗНМ: 0300000085 [12:14:33]line РНМ: 0000000000091683 [12:14:33]line Версия ККМ: 001 [12:14:33]line Платежная система: Mbank [12:14:33]line ФМ: 0000000000871745 [12:14:33]line ФД: 145688 [12:14:33]line ФПД: 182165005017719 [12:14:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121432&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145688&fm=182165005017719&tin=02508201610067®Number=0000000000091683&sum=100051 [12:14:33]OFD Sender: Processing packet 145688 [packets to send 206, broken 205] [12:14:33]ProducePacketName [12:14:33]name=ofd_packets/00145688 [12:14:33]OFD Sender: To server: pG, [12:14:33]CommunicateWithHost lk.salyk.kg:30040 [12:14:33]ConnectInit lk.salyk.kg [12:14:33]written 0, free lines is 4095 [12:14:33]Connected sock=9 [12:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 AD 6B 0D 01 A4 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A8 2E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 18 39 02 00 35 04 06 00 A5 AD 98 6A 22 77 D3 EE 7F 85 B4 CF D3 87 [12:14:33]Write to MH i2c: 01 00 00 78 10 88 [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: 01 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: 01 07 00 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: 01 07 00 78 10 00 00 00 00 00 DA 0C 75 [12:14:33]RasterBufferAndPrint [12:14:33]line [12:14:33]line [12:14:33]line [12:14:33]line [12:14:33]line [12:14:33]written 0, free lines is 3297 [12:14:33]MH_Cut [12:14:33]Write to MH i2c: D1 01 00 7F 10 01 61 [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: D1 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: D1 01 00 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: D1 01 00 7F 10 00 60 [12:14:33]Write to MH i2c: 01 00 00 80 10 90 [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 2A B2 47 00 9C D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 18 39 02 00 F4 03 04 00 D6 D3 1D 67 B6 04 01 00 00 06 B5 53 CF 6E B2 50 05 [12:14:34]CommunicateWithHost err = 0 [12:14:34]CheckOFDResponse [12:14:34]1017 (14) - 77093643461234 [12:14:34]1041 (16) - 0000000000871745 [12:14:34]1040 (4) - 145688 [12:14:34]1012 (4) - 27.10.2024 05:47 [12:14:34]1206 (1) - 0 [12:14:34]OFD Sender: Remove packet 145688 [12:14:34]ProducePacketName [12:14:34]name=ofd_packets/00145688 [12:14:34]NVStorageDeleteData [12:14:34]OFD Sender: No OFD packet to send [12:14:34]*** Cut start [12:14:34]*** Partial cut [12:14:34]*** CUTSNS_PIN = 1 [12:14:34]*** CUTSNS_PIN = 0 [12:14:35]*** Brake cut motor [12:14:35]Read from MH i2c: 01 [12:14:35]MH_I2C_Read... [12:14:35]*** Stop cut motor [12:14:35]*** Cut end [12:14:35]Read from MH i2c: 01 07 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: 01 07 00 80 10 00 00 00 00 00 FF 0F A5 [12:14:35]process_action close_receipt done [12:14:35]requested_data is exist [12:14:35]produce_requested_data [12:14:35]requested_item fm.sn is exist - process it [12:14:35]wFMCommunicate request_size=4 [12:14:35]MH_SAM_APDU [12:14:35]CAPDU: 80 11 00 00 [12:14:35]Write to MH i2c: E2 08 00 81 10 80 11 00 00 00 00 00 00 0B [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:35]Read from MH i2c: E2 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 17 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 17 00 81 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 5E [12:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:14:35]wFMCommunicate OK [12:14:35]requested_item fd.num is exist - process it [12:14:35]SAM_PROTO_GetFieldsCounters [12:14:35]wFMCommunicate request_size=4 [12:14:35]MH_SAM_APDU [12:14:35]CAPDU: 80 13 00 00 [12:14:35]Write to MH i2c: E2 08 00 82 10 80 13 00 00 00 00 00 00 0E [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:35]Read from MH i2c: E2 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 62 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 62 00 82 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 18 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [12:14:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 18 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:35]wFMCommunicate OK [12:14:35]SAM_PROTO_GetFieldsCounters done [12:14:35]requested_item shift.num is exist - process it [12:14:35]requested_item shift.opened is exist - process it [12:14:35]req_shift_opened [12:14:35]FM_GetShiftState [12:14:35]SAM_PROTO_GetShiftState [12:14:35]wFMCommunicate request_size=4 [12:14:35]MH_SAM_APDU [12:14:35]CAPDU: 80 13 01 00 [12:14:35]Write to MH i2c: E2 08 00 83 10 80 13 01 00 00 00 00 00 10 [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:35]Read from MH i2c: E2 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 0E 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 0E 00 83 10 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 88 [12:14:35]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:14:35]wFMCommunicate OK [12:14:35]SAM_PROTO_GetShiftState done [12:14:35]FM_GetShiftState done [12:14:35]req_shift_opened done [12:14:35]requested_item shift.open_date is exist - process it [12:14:35]req_shift_open_date [12:14:35]req_shift_open_date done [12:14:35]produce_requested_data done [12:14:35]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145688,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:14:35]process_action_free close_receipt [12:14:35]json_value_free [12:14:35]json_value_free done [12:14:35]process_json_proto returns [12:14:35]Send response to host [12:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145688,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:14:35]free response buf [12:14:35]execute_script done [12:14:35]execute_script returns [12:14:35]free content buf [12:14:35]Sock 10.Close socket [12:14:35]Sock 10.Thread stoped [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:35]accept exits with 7 [12:20:35]New connection [12:20:35]New thread 3066596708 created [12:20:35]Thread 3066740068 joined [12:20:35]Waiting for new connection... [12:20:35] Sock 7.Parse request [12:20:35]Sock 7.Check first char [12:20:35]Sock 7.First char is OK [12:20:35]request: POST /json_proto HTTP/1.0 [12:20:35]Method: POST [12:20:35]URL: /json_proto [12:20:35]Method is POST - this is cgi request [12:20:35]url: /json_proto [12:20:35]query_string will be loaded in cgi processing [12:20:35]execute_cgi json_proto POST (null) [12:20:35]execute_cgi path=json_proto method=POST [12:20:35]POST find Content-Length [12:20:35]Host: 172.17.40.195:8080 [12:20:35]Content-Length: 984 [12:20:35]Content-Type: application/json [12:20:35] [12:20:35]POST finish read [12:20:35]Found Content-Length = 984 [12:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 32.010, "sum" : 2359.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 16.00 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 2359.00, "payments": [ { "type": 0, "sum" : 2359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:35]execute_script... [12:20: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)160440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 32.010, "sum" : 2359.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 16.00 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 2359.00, "payments": [ { "type": 0, "sum" : 2359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:35]POST & json_proto [12:20:35]process_json_proto [12:20:35]json parsed OK: [12:20:35]protocol is kg_v1.0 [12:20:35]action value=close_receipt [12:20:35]process_action close_receipt [12:20:35]cmd_close_receipt [12:20:35]MH_GetDate [12:20:35]Write to MH i2c: F0 00 00 84 10 83 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: F0 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: F0 09 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: F0 09 00 84 10 00 14 30 1E 67 D5 8D 6C 64 87 [12:20:35]GetLastDocTimeStamp 1730031272 [12:20:35]current date 1730031636 [12:20:35]FM_GetShiftState [12:20:35]SAM_PROTO_GetShiftState [12:20:35]wFMCommunicate request_size=4 [12:20:35]MH_SAM_APDU [12:20:35]CAPDU: 80 13 01 00 [12:20:35]Write to MH i2c: E2 08 00 85 10 80 13 01 00 00 00 00 00 12 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:35]Read from MH i2c: E2 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 0E 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: E2 0E 00 85 10 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8A [12:20:35]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:20:35]wFMCommunicate OK [12:20:35]SAM_PROTO_GetShiftState done [12:20:35]FM_GetShiftState done [12:20:35]opened in 1729988959 [12:20:35]opened+sec_in_day 1730075359 [12:20:35]quantity*price = 235913 [12:20:35]sum+1 = 235915 [12:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2359.00 Внесено: 5000.00 СДАЧА: 2641.00 НСП 1% : 20.88 НДС 12% : 250.53 Наличными: 2359.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 112 27.10.2024 12:20 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-95 номер 126 сэкономлено 16.00 сом ФМ: 0000000000871745 ФД: 145689 ФПД: 238713348794213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122036&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145689&fm=238713348794213&tin=02508201610067®Number=0000000000091683&sum=235900 [12:20:36]StoreToDocumentArchive [12:20:36]shift 545 fd 145689 [12:20:36]save to /storage/0545/doc_00145689 [12:20:36]save last doc name /storage/0545/doc_00145689 to /storage/kkm_last_doc_name [12:20:36]save OK [12:20:36]Clear old archive folders... [12:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:36]tlvbuf is B6F24BB0 [12:20:36]SAM_PROTO_ClearQueue [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 09 00 00 [12:20:36]Write to MH i2c: E2 08 00 92 10 80 09 00 00 00 00 00 00 14 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 03 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 03 00 92 10 00 90 00 16 [12:20:36]RAPDU: 90 00 [12:20:36]wFMCommunicate OK [12:20:36]SAM_PROTO_ClearQueue done [12:20:36]KKMCreateOFDPacket [12:20:36]OFDProtocolAddRootSTLVToBuf [12:20:36]FM_MakeSignedData [12:20:36]FM_MakeSignedData [12:20:36]SAM_PROTO_SignData [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 0D 01 02 [12:20:36]Write to MH i2c: E2 08 00 93 10 80 0D 01 02 00 00 00 00 1C [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 03 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 03 00 93 10 00 90 00 17 [12:20:36]RAPDU: 90 00 [12:20:36]wFMCommunicate OK [12:20:36]wFMCommunicate request_size=255 [12:20:36]MH_SAM_APDU [12:20: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 33 FF 03 08 00 03 0A 7D 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 8A 99 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 99 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 61 00 00 00 00 07 04 06 00 7C 99 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 14 30 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 19 39 02 00 35 04 06 00 D9 [12:20:36]Write to MH i2c: E2 02 01 94 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 0A 7D 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 8A 99 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 99 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 61 00 00 00 00 07 04 06 00 7C 99 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 14 30 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 19 39 02 00 35 04 06 00 D9 00 00 E4 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:36]Read from MH i2c: E2 03 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 03 00 94 10 00 90 00 18 [12:20:36]RAPDU: 90 00 [12:20:36]wFMCommunicate OK [12:20:36]wFMCommunicate request_size=10 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 0D 02 02 05 1B C8 5B A7 65 [12:20:36]Write to MH i2c: E2 0D 00 95 10 80 0D 02 02 05 00 1B C8 5B A7 65 00 00 73 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 03 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 03 00 95 10 00 90 00 19 [12:20:36]RAPDU: 90 00 [12:20:36]wFMCommunicate OK [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 0D 03 02 [12:20:36]Write to MH i2c: E2 08 00 96 10 80 0D 03 02 00 00 00 00 21 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 0B 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 0B 00 96 10 00 C9 88 B2 ED 53 1E 95 77 90 00 8F [12:20:37]RAPDU: C9 88 B2 ED 53 1E 95 77 90 00 [12:20:37]wFMCommunicate OK [12:20:37]SAM_PROTO_SignData done [12:20:37]FM_MakeSignedData done [12:20:37]CreateOFDProtocolMessage [12:20:37]wFMCommunicate request_size=4 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 11 00 00 [12:20:37]Write to MH i2c: E2 08 00 97 10 80 11 00 00 00 00 00 00 21 [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 17 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 17 00 97 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 74 [12:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:20:37]wFMCommunicate OK [12:20:37]CreateOFDProtocolMessage done [12:20:37]OFDSenderStorePacket 145689 [12:20:37]StoreOFDPacket docnum=145689 [12:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CE 0C 07 01 D7 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 0A 7D 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 8A 99 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 99 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 61 00 00 00 00 07 04 06 00 7C 99 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 14 30 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 19 39 02 00 35 04 06 00 D9 1B C8 5B A7 65 C9 88 B2 ED 53 1E 95 77 [12:20:37]CheckFolder [12:20:37]dirname=/storage/ofd_packets [12:20:37]CheckFolder done [12:20:37]ProducePacketName [12:20:37]name=ofd_packets/00145689 [12:20:37]NVStorageSaveData ofd_packets/00145689 [12:20:37]File name is /storage/ofd_packets/00145689 [12:20:37]Write 301 bytes [12:20:37]NVStorageSaveData done [12:20:37]OFDSenderStorePacket done [12:20:37]KKMCreateOFDPacket done [12:20:37]NVStorageSaveData kkm_last_timestamp [12:20:37]File name is /storage/kkm_last_timestamp [12:20:37]Write 4 bytes [12:20:37]NVStorageSaveData done [12:20:37]ExternCall_PrintAddStr [12:20:37]wPrintStart [12:20:37]Write to MH i2c: 01 00 00 98 10 A8 [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: 01 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: 01 07 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: 01 07 00 98 10 00 00 00 00 00 FF 0F BD [12:20:37]RasterBufferAndPrint [12:20:37]line Счет N : (1)160440 [12:20:37]line ИНН: 02508201610067 [12:20:37]line Контрольно-Кассовый Чек [12:20:37]line ПРОДАЖА [12:20:37]line ТРК (МРК, ГНК) : 43 [12:20:37]line Товар: 2710124500 [12:20:37]line Аи-95-К-3 [12:20:37]line 32.010 * 73.70 [12:20:37]line = 2359.14 [12:20:37]line НДС 12% НСП 1% [12:20:37]line > о реализуемом товаре [12:20:37]line ОКРУГЛЕНИЕ: -0.14 [12:20:37]line ИТОГО: 2359.00 [12:20:37]line Внесено: 5000.00 [12:20:37]line СДАЧА: 2641.00 [12:20:37]line НСП 1% : 20.88 [12:20:37]line НДС 12% : 250.53 [12:20:37]line Наличными: 2359.00 [12:20:37]line Безнал.: 0.00 [12:20:37]line Место: АЗС № 126 "Партнер Нефть" [12:20:37]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:20:37]line СНО: Общий режим [12:20:37]line Чек 112 27.10.2024 12:20 [12:20:37]line Смена: 545 ФФД: 1.0 [12:20:37]line ЗНМ: 0300000085 [12:20:37]line РНМ: 0000000000091683 [12:20:37]line Версия ККМ: 001 [12:20:37]line [12:20:37]line Дисконтная программа [12:20:37]line АИ-95 [12:20:37]line номер 126 [12:20:37]line сэкономлено 16.00 сом [12:20:37]line ФМ: 0000000000871745 [12:20:37]line ФД: 145689 [12:20:37]line ФПД: 238713348794213 [12:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122036&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145689&fm=238713348794213&tin=02508201610067®Number=0000000000091683&sum=235900 [12:20:37]OFD Sender: Processing packet 145689 [packets to send 206, broken 205] [12:20:37]ProducePacketName [12:20:37]name=ofd_packets/00145689 [12:20:37]OFD Sender: To server: pG, [12:20:37]CommunicateWithHost lk.salyk.kg:30040 [12:20:37]ConnectInit lk.salyk.kg [12:20:37]written 0, free lines is 4095 [12:20:37]Connected sock=10 [12:20:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CE 0C 07 01 D7 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 0A 7D 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 8A 99 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 99 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 61 00 00 00 00 07 04 06 00 7C 99 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 14 30 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 19 39 02 00 35 04 06 00 D9 1B C8 5B A7 65 C9 88 B2 ED 53 1E 95 77 [12:20:37]Write to MH i2c: 01 00 00 C8 10 D8 [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: 01 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: 01 07 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: 01 07 00 C8 10 00 00 00 00 00 52 0C 3D [12:20:37]RasterBufferAndPrint [12:20:37]line [12:20:37]line [12:20:37]line [12:20:37]line [12:20:37]line [12:20:37]written 0, free lines is 3159 [12:20:37]MH_Cut [12:20:37]Write to MH i2c: D1 01 00 CF 10 01 B1 [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: D1 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: D1 01 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: D1 01 00 CF 10 00 B0 [12:20:37]Write to MH i2c: 01 00 00 D0 10 E0 [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 1E DC 47 00 0A 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 19 39 02 00 F4 03 04 00 42 D5 1D 67 B6 04 01 00 00 D4 C7 16 C2 69 BD 2F E2 [12:20:37]CommunicateWithHost err = 0 [12:20:37]CheckOFDResponse [12:20:37]1017 (14) - 77093643461234 [12:20:37]1041 (16) - 0000000000871745 [12:20:37]1040 (4) - 145689 [12:20:37]1012 (4) - 27.10.2024 05:53 [12:20:37]1206 (1) - 0 [12:20:37]OFD Sender: Remove packet 145689 [12:20:37]ProducePacketName [12:20:37]name=ofd_packets/00145689 [12:20:37]NVStorageDeleteData [12:20:38]OFD Sender: No OFD packet to send [12:20:38]*** Cut start [12:20:38]*** Partial cut [12:20:38]*** CUTSNS_PIN = 1 [12:20:38]*** CUTSNS_PIN = 0 [12:20:39]*** Brake cut motor [12:20:39]Read from MH i2c: 01 [12:20:39]MH_I2C_Read... [12:20:39]*** Stop cut motor [12:20:39]*** Cut end [12:20:39]Read from MH i2c: 01 07 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 D0 10 00 00 00 00 00 FF 0F F5 [12:20:39]process_action close_receipt done [12:20:39]requested_data is exist [12:20:39]produce_requested_data [12:20:39]requested_item fm.sn is exist - process it [12:20:39]wFMCommunicate request_size=4 [12:20:39]MH_SAM_APDU [12:20:39]CAPDU: 80 11 00 00 [12:20:39]Write to MH i2c: E2 08 00 D1 10 80 11 00 00 00 00 00 00 5B [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:39]Read from MH i2c: E2 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 17 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 17 00 D1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AE [12:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:20:39]wFMCommunicate OK [12:20:39]requested_item fd.num is exist - process it [12:20:39]SAM_PROTO_GetFieldsCounters [12:20:39]wFMCommunicate request_size=4 [12:20:39]MH_SAM_APDU [12:20:39]CAPDU: 80 13 00 00 [12:20:39]Write to MH i2c: E2 08 00 D2 10 80 13 00 00 00 00 00 00 5E [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]int [12:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:39]*** FLAG_PRN_KEY set [12:20:39]Read from MH i2c: E2 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 62 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 62 00 D2 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 19 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [12:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 19 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:39]wFMCommunicate OK [12:20:39]SAM_PROTO_GetFieldsCounters done [12:20:39]requested_item shift.num is exist - process it [12:20:39]requested_item shift.opened is exist - process it [12:20:39]req_shift_opened [12:20:39]FM_GetShiftState [12:20:39]SAM_PROTO_GetShiftState [12:20:39]wFMCommunicate request_size=4 [12:20:39]MH_SAM_APDU [12:20:39]CAPDU: 80 13 01 00 [12:20:39]Write to MH i2c: E2 08 00 D3 10 80 13 01 00 00 00 00 00 60 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:39]Read from MH i2c: E2 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 D3 10 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D8 [12:20:39]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:20:39]wFMCommunicate OK [12:20:39]SAM_PROTO_GetShiftState done [12:20:39]FM_GetShiftState done [12:20:39]req_shift_opened done [12:20:39]requested_item shift.open_date is exist - process it [12:20:39]req_shift_open_date [12:20:39]req_shift_open_date done [12:20:39]produce_requested_data done [12:20:39]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145689,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:20:39]process_action_free close_receipt [12:20:39]json_value_free [12:20:39]json_value_free done [12:20:39]process_json_proto returns [12:20:39]Send response to host [12:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145689,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:20:39]free response buf [12:20:39]execute_script done [12:20:39]execute_script returns [12:20:39]free content buf [12:20:39]Sock 7.Close socket [12:20:39]Sock 7.Thread stoped [12:20:39]Write to MH i2c: 01 00 00 D4 10 E4 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 D4 10 00 08 00 00 00 FF 0F 01 [12:20:39]state=0 [12:20:39]Key pressed [12:20:39]Feed [12:20:39]Write to MH i2c: D8 00 00 D5 10 BC [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D8 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D8 01 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D8 01 00 D5 10 00 BD [12:20:39]int [12:20:39]Write to MH i2c: 01 00 00 D6 10 E6 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 D6 10 00 48 00 00 00 3C 00 71 [12:20:39]state=2 [12:20:39]Key pressed [12:20:39]int [12:20:39]Write to MH i2c: 01 00 00 D7 10 E7 [12:20:39]*** FLAG_PRN_KEY reset [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 D7 10 00 00 00 00 00 FF 0F FC [12:20:39]state=2 [12:20:39]Stop feed [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:42]accept exits with 9 [12:40:42]New connection [12:40:42]New thread 3066740068 created [12:40:42]Thread 3066596708 joined [12:40:42]Waiting for new connection... [12:40:42] Sock 9.Parse request [12:40:42]Sock 9.Check first char [12:40:42]Sock 9.First char is OK [12:40:42]request: POST /json_proto HTTP/1.0 [12:40:42]Method: POST [12:40:42]URL: /json_proto [12:40:42]Method is POST - this is cgi request [12:40:42]url: /json_proto [12:40:42]query_string will be loaded in cgi processing [12:40:42]execute_cgi json_proto POST (null) [12:40:42]execute_cgi path=json_proto method=POST [12:40:42]POST find Content-Length [12:40:42]Host: 172.17.40.195:8080 [12:40:42]Content-Length: 766 [12:40:42]Content-Type: application/json [12:40:42] [12:40:42]POST finish read [12:40:42]Found Content-Length = 766 [12:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:42]execute_script... [12:40: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)160441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:42]POST & json_proto [12:40:42]process_json_proto [12:40:42]json parsed OK: [12:40:42]protocol is kg_v1.0 [12:40:42]action value=close_receipt [12:40:42]process_action close_receipt [12:40:42]cmd_close_receipt [12:40:42]MH_GetDate [12:40:42]Write to MH i2c: F0 00 00 D8 10 D7 [12:40:42]Write i2c OK [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: F0 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: F0 09 00 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: F0 09 00 D8 10 00 CC 34 1E 67 D5 8D 6C 64 97 [12:40:42]GetLastDocTimeStamp 1730031636 [12:40:42]current date 1730032844 [12:40:42]FM_GetShiftState [12:40:42]SAM_PROTO_GetShiftState [12:40:42]wFMCommunicate request_size=4 [12:40:42]MH_SAM_APDU [12:40:42]CAPDU: 80 13 01 00 [12:40:42]Write to MH i2c: E2 08 00 D9 10 80 13 01 00 00 00 00 00 66 [12:40:42]Write i2c OK [12:40:42]MH_I2C_Read... [12:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:42]Read from MH i2c: E2 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: E2 0E 00 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: E2 0E 00 D9 10 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 DE [12:40:42]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:40:42]wFMCommunicate OK [12:40:42]SAM_PROTO_GetShiftState done [12:40:42]FM_GetShiftState done [12:40:42]opened in 1729988959 [12:40:42]opened+sec_in_day 1730075359 [12:40:42]quantity*price = 50041 [12:40:42]sum+1 = 50042 [12:40:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 113 27.10.2024 12:40 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145690 ФПД: 171681366531798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124044&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145690&fm=171681366531798&tin=02508201610067®Number=0000000000091683&sum=50041 [12:40:43]StoreToDocumentArchive [12:40:43]shift 545 fd 145690 [12:40:43]save to /storage/0545/doc_00145690 [12:40:43]save last doc name /storage/0545/doc_00145690 to /storage/kkm_last_doc_name [12:40:43]save OK [12:40:43]Clear old archive folders... [12:40:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:43]tlvbuf is 00408460 [12:40:43]SAM_PROTO_ClearQueue [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 09 00 00 [12:40:43]Write to MH i2c: E2 08 00 E6 10 80 09 00 00 00 00 00 00 68 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:44]Read from MH i2c: E2 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 E6 10 00 90 00 6A [12:40:44]RAPDU: 90 00 [12:40:44]wFMCommunicate OK [12:40:44]SAM_PROTO_ClearQueue done [12:40:44]KKMCreateOFDPacket [12:40:44]OFDProtocolAddRootSTLVToBuf [12:40:44]FM_MakeSignedData [12:40:44]FM_MakeSignedData [12:40:44]SAM_PROTO_SignData [12:40:44]wFMCommunicate request_size=4 [12:40:44]MH_SAM_APDU [12:40:44]CAPDU: 80 0D 01 02 [12:40:44]Write to MH i2c: E2 08 00 E7 10 80 0D 01 02 00 00 00 00 70 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:44]Read from MH i2c: E2 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 E7 10 00 90 00 6B [12:40:44]RAPDU: 90 00 [12:40:44]wFMCommunicate OK [12:40:44]wFMCommunicate request_size=255 [12:40:44]MH_SAM_APDU [12:40: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 CC 34 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1A 39 02 00 35 04 06 00 9C [12:40:44]Write to MH i2c: E2 02 01 E8 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 CC 34 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1A 39 02 00 35 04 06 00 9C 00 00 5A [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:44]Read from MH i2c: E2 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 E8 10 00 90 00 6C [12:40:44]RAPDU: 90 00 [12:40:44]wFMCommunicate OK [12:40:44]wFMCommunicate request_size=10 [12:40:44]MH_SAM_APDU [12:40:44]CAPDU: 80 0D 02 02 05 24 AE DD DE D6 [12:40:44]Write to MH i2c: E2 0D 00 E9 10 80 0D 02 02 05 00 24 AE DD DE D6 00 00 E0 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:44]Read from MH i2c: E2 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 E9 10 00 90 00 6D [12:40:44]RAPDU: 90 00 [12:40:44]wFMCommunicate OK [12:40:44]wFMCommunicate request_size=4 [12:40:44]MH_SAM_APDU [12:40:44]CAPDU: 80 0D 03 02 [12:40:44]Write to MH i2c: E2 08 00 EA 10 80 0D 03 02 00 00 00 00 75 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:44]Read from MH i2c: E2 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 0B 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 0B 00 EA 10 00 DC 05 6C D7 10 E9 E3 52 90 00 C8 [12:40:44]RAPDU: DC 05 6C D7 10 E9 E3 52 90 00 [12:40:44]wFMCommunicate OK [12:40:44]SAM_PROTO_SignData done [12:40:44]FM_MakeSignedData done [12:40:44]CreateOFDProtocolMessage [12:40:44]wFMCommunicate request_size=4 [12:40:44]MH_SAM_APDU [12:40:44]CAPDU: 80 11 00 00 [12:40:44]Write to MH i2c: E2 08 00 EB 10 80 11 00 00 00 00 00 00 75 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:44]Read from MH i2c: E2 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 17 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 17 00 EB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C8 [12:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:40:44]wFMCommunicate OK [12:40:44]CreateOFDProtocolMessage done [12:40:44]OFDSenderStorePacket 145690 [12:40:44]StoreOFDPacket docnum=145690 [12:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BE 9E 07 01 5A 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 CC 34 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1A 39 02 00 35 04 06 00 9C 24 AE DD DE D6 DC 05 6C D7 10 E9 E3 52 [12:40:44]CheckFolder [12:40:44]dirname=/storage/ofd_packets [12:40:44]CheckFolder done [12:40:44]ProducePacketName [12:40:44]name=ofd_packets/00145690 [12:40:44]NVStorageSaveData ofd_packets/00145690 [12:40:44]File name is /storage/ofd_packets/00145690 [12:40:44]Write 301 bytes [12:40:44]NVStorageSaveData done [12:40:44]OFDSenderStorePacket done [12:40:44]KKMCreateOFDPacket done [12:40:44]NVStorageSaveData kkm_last_timestamp [12:40:44]File name is /storage/kkm_last_timestamp [12:40:44]Write 4 bytes [12:40:44]NVStorageSaveData done [12:40:44]ExternCall_PrintAddStr [12:40:44]wPrintStart [12:40:44]Write to MH i2c: 01 00 00 EC 10 FC [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: 01 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: 01 07 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: 01 07 00 EC 10 00 00 00 00 00 FF 0F 11 [12:40:44]RasterBufferAndPrint [12:40:44]line Счет N : (1)160441 [12:40:44]line ИНН: 02508201610067 [12:40:44]line Контрольно-Кассовый Чек [12:40:44]line ПРОДАЖА [12:40:44]line ТРК (МРК, ГНК) : 52 [12:40:44]line Товар: 2710124130 [12:40:44]line Аи-92-К-2 [12:40:44]line 7.480 * 66.90 [12:40:44]line = 500.41 [12:40:44]line НДС 12% НСП 1% [12:40:44]line > о реализуемом товаре [12:40:44]line ИТОГО: 500.41 [12:40:44]line НСП 1% : 4.43 [12:40:44]line НДС 12% : 53.14 [12:40:44]line Наличными: 0.00 [12:40:44]line Безнал.: 500.41 [12:40:44]line Место: АЗС № 126 "Партнер Нефть" [12:40:44]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:40:44]line СНО: Общий режим [12:40:44]line Чек 113 27.10.2024 12:40 [12:40:44]line Смена: 545 ФФД: 1.0 [12:40:44]line ЗНМ: 0300000085 [12:40:44]line РНМ: 0000000000091683 [12:40:44]line Версия ККМ: 001 [12:40:44]line Платежная система: Mbank [12:40:44]line ФМ: 0000000000871745 [12:40:44]line ФД: 145690 [12:40:44]line ФПД: 171681366531798 [12:40:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124044&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145690&fm=171681366531798&tin=02508201610067®Number=0000000000091683&sum=50041 [12:40:44]written 0, free lines is 4095 [12:40:44]OFD Sender: Processing packet 145690 [packets to send 206, broken 205] [12:40:44]ProducePacketName [12:40:44]name=ofd_packets/00145690 [12:40:44]OFD Sender: To server: pG, [12:40:44]CommunicateWithHost lk.salyk.kg:30040 [12:40:44]ConnectInit lk.salyk.kg [12:40:44]Connected sock=7 [12:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BE 9E 07 01 5A 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 CC 34 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1A 39 02 00 35 04 06 00 9C 24 AE DD DE D6 DC 05 6C D7 10 E9 E3 52 [12:40:44]Write to MH i2c: 01 00 00 15 11 26 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: 01 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: 01 07 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: 01 07 00 15 11 00 00 00 00 00 D9 0C 12 [12:40:44]RasterBufferAndPrint [12:40:44]line [12:40:44]line [12:40:44]line [12:40:44]line [12:40:44]line [12:40:44]written 0, free lines is 3295 [12:40:44]MH_Cut [12:40:44]Write to MH i2c: D1 01 00 1C 11 01 FF [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: D1 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: D1 01 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: D1 01 00 1C 11 00 FE [12:40:44]Write to MH i2c: 01 00 00 1D 11 2E [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 52 5A 47 00 01 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1A 39 02 00 F4 03 04 00 F9 D9 1D 67 B6 04 01 00 00 A6 99 FB D0 B1 CE 84 93 [12:40:45]CommunicateWithHost err = 0 [12:40:45]CheckOFDResponse [12:40:45]1017 (14) - 77093643461234 [12:40:45]1041 (16) - 0000000000871745 [12:40:45]1040 (4) - 145690 [12:40:45]1012 (4) - 27.10.2024 06:13 [12:40:45]1206 (1) - 0 [12:40:45]OFD Sender: Remove packet 145690 [12:40:45]ProducePacketName [12:40:45]name=ofd_packets/00145690 [12:40:45]NVStorageDeleteData [12:40:45]OFD Sender: No OFD packet to send [12:40:45]*** Cut start [12:40:45]*** Partial cut [12:40:45]*** CUTSNS_PIN = 1 [12:40:45]*** CUTSNS_PIN = 0 [12:40:45]*** Brake cut motor [12:40:46]Read from MH i2c: 01 [12:40:46]MH_I2C_Read... [12:40:46]*** Stop cut motor [12:40:46]*** Cut end [12:40:46]Read from MH i2c: 01 07 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: 01 07 00 1D 11 00 00 00 00 00 FF 0F 43 [12:40:46]process_action close_receipt done [12:40:46]requested_data is exist [12:40:46]produce_requested_data [12:40:46]requested_item fm.sn is exist - process it [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 11 00 00 [12:40:46]Write to MH i2c: E2 08 00 1E 11 80 11 00 00 00 00 00 00 A9 [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 17 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 17 00 1E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 FC [12:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:40:46]wFMCommunicate OK [12:40:46]requested_item fd.num is exist - process it [12:40:46]SAM_PROTO_GetFieldsCounters [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 13 00 00 [12:40:46]Write to MH i2c: E2 08 00 1F 11 80 13 00 00 00 00 00 00 AC [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 62 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 62 00 1F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [12:40:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:46]wFMCommunicate OK [12:40:46]SAM_PROTO_GetFieldsCounters done [12:40:46]requested_item shift.num is exist - process it [12:40:46]requested_item shift.opened is exist - process it [12:40:46]req_shift_opened [12:40:46]FM_GetShiftState [12:40:46]SAM_PROTO_GetShiftState [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 13 01 00 [12:40:46]Write to MH i2c: E2 08 00 20 11 80 13 01 00 00 00 00 00 AE [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 0E 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 0E 00 20 11 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 26 [12:40:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:40:46]wFMCommunicate OK [12:40:46]SAM_PROTO_GetShiftState done [12:40:46]FM_GetShiftState done [12:40:46]req_shift_opened done [12:40:46]requested_item shift.open_date is exist - process it [12:40:46]req_shift_open_date [12:40:46]req_shift_open_date done [12:40:46]produce_requested_data done [12:40:46]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145690,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:40:46]process_action_free close_receipt [12:40:46]json_value_free [12:40:46]json_value_free done [12:40:46]process_json_proto returns [12:40:46]Send response to host [12:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145690,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:40:46]free response buf [12:40:46]execute_script done [12:40:46]execute_script returns [12:40:46]free content buf [12:40:46]Sock 9.Close socket [12:40:46]Sock 9.Thread stoped [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:41]accept exits with 10 [12:42:41]New connection [12:42:41]New thread 3066596708 created [12:42:41]Thread 3066740068 joined [12:42:41]Waiting for new connection... [12:42:41] Sock 10.Parse request [12:42:41]Sock 10.Check first char [12:42:41]Sock 10.First char is OK [12:42:41]request: POST /json_proto HTTP/1.0 [12:42:41]Method: POST [12:42:41]URL: /json_proto [12:42:41]Method is POST - this is cgi request [12:42:41]url: /json_proto [12:42:41]query_string will be loaded in cgi processing [12:42:41]execute_cgi json_proto POST (null) [12:42:41]execute_cgi path=json_proto method=POST [12:42:41]POST find Content-Length [12:42:41]Host: 172.17.40.195:8080 [12:42:41]Content-Length: 677 [12:42:41]Content-Type: application/json [12:42:41] [12:42:41]POST finish read [12:42:41]Found Content-Length = 677 [12:42:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:41]execute_script... [12:42: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)160442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:41]POST & json_proto [12:42:41]process_json_proto [12:42:41]json parsed OK: [12:42:41]protocol is kg_v1.0 [12:42:41]action value=close_receipt [12:42:41]process_action close_receipt [12:42:41]cmd_close_receipt [12:42:41]MH_GetDate [12:42:41]Write to MH i2c: F0 00 00 21 11 21 [12:42:41]Write i2c OK [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: F0 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: F0 09 00 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: F0 09 00 21 11 00 43 35 1E 67 D5 8D 6C 64 59 [12:42:41]GetLastDocTimeStamp 1730032844 [12:42:41]current date 1730032963 [12:42:41]FM_GetShiftState [12:42:41]SAM_PROTO_GetShiftState [12:42:41]wFMCommunicate request_size=4 [12:42:41]MH_SAM_APDU [12:42:41]CAPDU: 80 13 01 00 [12:42:41]Write to MH i2c: E2 08 00 22 11 80 13 01 00 00 00 00 00 B0 [12:42:41]Write i2c OK [12:42:41]MH_I2C_Read... [12:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:41]Read from MH i2c: E2 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 0E 00 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 0E 00 22 11 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 28 [12:42:41]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:42:41]wFMCommunicate OK [12:42:41]SAM_PROTO_GetShiftState done [12:42:41]FM_GetShiftState done [12:42:41]opened in 1729988959 [12:42:41]opened+sec_in_day 1730075359 [12:42:41]quantity*price = 60009 [12:42:41]sum+1 = 60010 [12:42:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 114 27.10.2024 12:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145691 ФПД: 187001349191429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124243&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145691&fm=187001349191429&tin=02508201610067®Number=0000000000091683&sum=60000 [12:42:43]StoreToDocumentArchive [12:42:43]shift 545 fd 145691 [12:42:43]save to /storage/0545/doc_00145691 [12:42:43]save last doc name /storage/0545/doc_00145691 to /storage/kkm_last_doc_name [12:42:43]save OK [12:42:43]Clear old archive folders... [12:42:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:43]tlvbuf is 00407CB0 [12:42:43]SAM_PROTO_ClearQueue [12:42:43]wFMCommunicate request_size=4 [12:42:43]MH_SAM_APDU [12:42:43]CAPDU: 80 09 00 00 [12:42:43]Write to MH i2c: E2 08 00 2F 11 80 09 00 00 00 00 00 00 B2 [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:43]Read from MH i2c: E2 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 03 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 03 00 2F 11 00 90 00 B4 [12:42:43]RAPDU: 90 00 [12:42:43]wFMCommunicate OK [12:42:43]SAM_PROTO_ClearQueue done [12:42:43]KKMCreateOFDPacket [12:42:43]OFDProtocolAddRootSTLVToBuf [12:42:43]FM_MakeSignedData [12:42:43]FM_MakeSignedData [12:42:43]SAM_PROTO_SignData [12:42:43]wFMCommunicate request_size=4 [12:42:43]MH_SAM_APDU [12:42:43]CAPDU: 80 0D 01 02 [12:42:43]Write to MH i2c: E2 08 00 30 11 80 0D 01 02 00 00 00 00 BA [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:43]Read from MH i2c: E2 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 03 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 03 00 30 11 00 90 00 B5 [12:42:43]RAPDU: 90 00 [12:42:43]wFMCommunicate OK [12:42:43]wFMCommunicate request_size=255 [12:42:43]MH_SAM_APDU [12:42: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 43 35 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1B 39 02 00 35 04 06 00 AA [12:42:43]Write to MH i2c: E2 02 01 31 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 43 35 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1B 39 02 00 35 04 06 00 AA 00 00 B7 [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:43]Read from MH i2c: E2 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 03 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 03 00 31 11 00 90 00 B6 [12:42:43]RAPDU: 90 00 [12:42:43]wFMCommunicate OK [12:42:43]wFMCommunicate request_size=10 [12:42:43]MH_SAM_APDU [12:42:43]CAPDU: 80 0D 02 02 05 13 A4 FD B7 05 [12:42:43]Write to MH i2c: E2 0D 00 32 11 80 0D 02 02 05 00 13 A4 FD B7 05 00 00 37 [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:43]Read from MH i2c: E2 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 03 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 03 00 32 11 00 90 00 B7 [12:42:43]RAPDU: 90 00 [12:42:43]wFMCommunicate OK [12:42:43]wFMCommunicate request_size=4 [12:42:43]MH_SAM_APDU [12:42:43]CAPDU: 80 0D 03 02 [12:42:43]Write to MH i2c: E2 08 00 33 11 80 0D 03 02 00 00 00 00 BF [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:43]Read from MH i2c: E2 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 0B 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 0B 00 33 11 00 75 6F C6 AA 08 C9 BC 23 90 00 C4 [12:42:43]RAPDU: 75 6F C6 AA 08 C9 BC 23 90 00 [12:42:43]wFMCommunicate OK [12:42:43]SAM_PROTO_SignData done [12:42:43]FM_MakeSignedData done [12:42:43]CreateOFDProtocolMessage [12:42:43]wFMCommunicate request_size=4 [12:42:43]MH_SAM_APDU [12:42:43]CAPDU: 80 11 00 00 [12:42:43]Write to MH i2c: E2 08 00 34 11 80 11 00 00 00 00 00 00 BF [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:43]Read from MH i2c: E2 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 17 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 17 00 34 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 12 [12:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:42:43]wFMCommunicate OK [12:42:43]CreateOFDProtocolMessage done [12:42:43]OFDSenderStorePacket 145691 [12:42:43]StoreOFDPacket docnum=145691 [12:42:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F6 15 07 01 F9 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 43 35 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1B 39 02 00 35 04 06 00 AA 13 A4 FD B7 05 75 6F C6 AA 08 C9 BC 23 [12:42:43]CheckFolder [12:42:43]dirname=/storage/ofd_packets [12:42:43]CheckFolder done [12:42:43]ProducePacketName [12:42:43]name=ofd_packets/00145691 [12:42:43]NVStorageSaveData ofd_packets/00145691 [12:42:43]File name is /storage/ofd_packets/00145691 [12:42:43]Write 301 bytes [12:42:43]NVStorageSaveData done [12:42:43]OFDSenderStorePacket done [12:42:43]KKMCreateOFDPacket done [12:42:43]NVStorageSaveData kkm_last_timestamp [12:42:43]File name is /storage/kkm_last_timestamp [12:42:43]Write 4 bytes [12:42:43]NVStorageSaveData done [12:42:43]ExternCall_PrintAddStr [12:42:43]wPrintStart [12:42:43]Write to MH i2c: 01 00 00 35 11 46 [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: 01 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: 01 07 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: 01 07 00 35 11 00 00 00 00 00 FF 0F 5B [12:42:43]RasterBufferAndPrint [12:42:43]line Счет N : (1)160442 [12:42:43]line ИНН: 02508201610067 [12:42:43]line Контрольно-Кассовый Чек [12:42:43]line ПРОДАЖА [12:42:43]line ТРК (МРК, ГНК) : 42 [12:42:43]line Товар: 2710124130 [12:42:43]line Аи-92-К-2 [12:42:43]line 8.970 * 66.90 [12:42:43]line = 600.09 [12:42:43]line НДС 12% НСП 1% [12:42:43]line > о реализуемом товаре [12:42:43]line ОКРУГЛЕНИЕ: -0.09 [12:42:43]line ИТОГО: 600.00 [12:42:43]line Внесено: 600.00 [12:42:43]line СДАЧА: 0.00 [12:42:43]line НСП 1% : 5.31 [12:42:43]line НДС 12% : 63.73 [12:42:43]line Наличными: 600.00 [12:42:43]line Безнал.: 0.00 [12:42:43]line Место: АЗС № 126 "Партнер Нефть" [12:42:43]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:42:43]line СНО: Общий режим [12:42:43]line Чек 114 27.10.2024 12:42 [12:42:43]line Смена: 545 ФФД: 1.0 [12:42:43]line ЗНМ: 0300000085 [12:42:43]line РНМ: 0000000000091683 [12:42:43]line Версия ККМ: 001 [12:42:43]line ФМ: 0000000000871745 [12:42:43]line ФД: 145691 [12:42:43]line ФПД: 187001349191429 [12:42:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124243&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145691&fm=187001349191429&tin=02508201610067®Number=0000000000091683&sum=60000 [12:42:43]OFD Sender: Processing packet 145691 [packets to send 206, broken 205] [12:42:43]ProducePacketName [12:42:43]name=ofd_packets/00145691 [12:42:43]OFD Sender: To server: pG, [12:42:43]CommunicateWithHost lk.salyk.kg:30040 [12:42:43]ConnectInit lk.salyk.kg [12:42:43]written 0, free lines is 4095 [12:42:44]Connected sock=9 [12:42:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F6 15 07 01 F9 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 43 35 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1B 39 02 00 35 04 06 00 AA 13 A4 FD B7 05 75 6F C6 AA 08 C9 BC 23 [12:42:44]Write to MH i2c: 01 00 00 60 11 71 [12:42:44]Write i2c OK [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: 01 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: 01 07 00 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: 01 07 00 60 11 00 00 00 00 00 B4 0C 38 [12:42:44]RasterBufferAndPrint [12:42:44]line [12:42:44]line [12:42:44]line [12:42:44]line [12:42:44]line [12:42:44]written 0, free lines is 3259 [12:42:44]MH_Cut [12:42:44]Write to MH i2c: D1 01 00 67 11 01 4A [12:42:44]Write i2c OK [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: D1 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: D1 01 00 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: D1 01 00 67 11 00 49 [12:42:44]Write to MH i2c: 01 00 00 68 11 79 [12:42:44]Write i2c OK [12:42:44]MH_I2C_Read... [12:42:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 36 AE 47 00 C5 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1B 39 02 00 F4 03 04 00 71 DA 1D 67 B6 04 01 00 00 51 0F 3C DF F0 88 D2 5C [12:42:44]CommunicateWithHost err = 0 [12:42:44]CheckOFDResponse [12:42:44]1017 (14) - 77093643461234 [12:42:44]1041 (16) - 0000000000871745 [12:42:44]1040 (4) - 145691 [12:42:44]1012 (4) - 27.10.2024 06:15 [12:42:44]1206 (1) - 0 [12:42:44]OFD Sender: Remove packet 145691 [12:42:44]ProducePacketName [12:42:44]name=ofd_packets/00145691 [12:42:44]NVStorageDeleteData [12:42:44]OFD Sender: No OFD packet to send [12:42:45]*** Cut start [12:42:45]*** Partial cut [12:42:45]*** CUTSNS_PIN = 1 [12:42:45]*** CUTSNS_PIN = 0 [12:42:45]*** Brake cut motor [12:42:45]Read from MH i2c: 01 [12:42:45]MH_I2C_Read... [12:42:45]*** Stop cut motor [12:42:45]*** Cut end [12:42:45]Read from MH i2c: 01 07 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: 01 07 00 68 11 00 00 00 00 00 FF 0F 8E [12:42:45]process_action close_receipt done [12:42:45]requested_data is exist [12:42:45]produce_requested_data [12:42:45]requested_item fm.sn is exist - process it [12:42:45]wFMCommunicate request_size=4 [12:42:45]MH_SAM_APDU [12:42:45]CAPDU: 80 11 00 00 [12:42:45]Write to MH i2c: E2 08 00 69 11 80 11 00 00 00 00 00 00 F4 [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:45]Read from MH i2c: E2 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 17 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 17 00 69 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 47 [12:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:42:45]wFMCommunicate OK [12:42:45]requested_item fd.num is exist - process it [12:42:45]SAM_PROTO_GetFieldsCounters [12:42:45]wFMCommunicate request_size=4 [12:42:45]MH_SAM_APDU [12:42:45]CAPDU: 80 13 00 00 [12:42:45]Write to MH i2c: E2 08 00 6A 11 80 13 00 00 00 00 00 00 F7 [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:45]Read from MH i2c: E2 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 62 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 62 00 6A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [12:42:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:45]wFMCommunicate OK [12:42:45]SAM_PROTO_GetFieldsCounters done [12:42:45]requested_item shift.num is exist - process it [12:42:45]requested_item shift.opened is exist - process it [12:42:45]req_shift_opened [12:42:45]FM_GetShiftState [12:42:45]SAM_PROTO_GetShiftState [12:42:45]wFMCommunicate request_size=4 [12:42:45]MH_SAM_APDU [12:42:45]CAPDU: 80 13 01 00 [12:42:45]Write to MH i2c: E2 08 00 6B 11 80 13 01 00 00 00 00 00 F9 [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:46]Read from MH i2c: E2 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 0E 00 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 0E 00 6B 11 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 71 [12:42:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:42:46]wFMCommunicate OK [12:42:46]SAM_PROTO_GetShiftState done [12:42:46]FM_GetShiftState done [12:42:46]req_shift_opened done [12:42:46]requested_item shift.open_date is exist - process it [12:42:46]req_shift_open_date [12:42:46]req_shift_open_date done [12:42:46]produce_requested_data done [12:42:46]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145691,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:42:46]process_action_free close_receipt [12:42:46]json_value_free [12:42:46]json_value_free done [12:42:46]process_json_proto returns [12:42:46]Send response to host [12:42:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145691,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:42:46]free response buf [12:42:46]execute_script done [12:42:46]execute_script returns [12:42:46]free content buf [12:42:46]Sock 10.Close socket [12:42:46]Sock 10.Thread stoped [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:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:37]accept exits with 7 [12:46:37]New connection [12:46:37]New thread 3066740068 created [12:46:37]Thread 3066596708 joined [12:46:37]Waiting for new connection... [12:46:37] Sock 7.Parse request [12:46:37]Sock 7.Check first char [12:46:37]Sock 7.First char is OK [12:46:37]request: POST /json_proto HTTP/1.0 [12:46:37]Method: POST [12:46:37]URL: /json_proto [12:46:37]Method is POST - this is cgi request [12:46:37]url: /json_proto [12:46:37]query_string will be loaded in cgi processing [12:46:37]execute_cgi json_proto POST (null) [12:46:37]execute_cgi path=json_proto method=POST [12:46:37]POST find Content-Length [12:46:37]Host: 172.17.40.195:8080 [12:46:37]Content-Length: 677 [12:46:37]Content-Type: application/json [12:46:37] [12:46:37]POST finish read [12:46:37]Found Content-Length = 677 [12:46:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:37]execute_script... [12:46: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)160443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:37]POST & json_proto [12:46:37]process_json_proto [12:46:37]json parsed OK: [12:46:37]protocol is kg_v1.0 [12:46:37]action value=close_receipt [12:46:37]process_action close_receipt [12:46:37]cmd_close_receipt [12:46:37]MH_GetDate [12:46:37]Write to MH i2c: F0 00 00 6C 11 6C [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: F0 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: F0 09 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: F0 09 00 6C 11 00 2E 36 1E 67 D5 8D 6C 64 90 [12:46:37]GetLastDocTimeStamp 1730032963 [12:46:37]current date 1730033198 [12:46:37]FM_GetShiftState [12:46:37]SAM_PROTO_GetShiftState [12:46:37]wFMCommunicate request_size=4 [12:46:37]MH_SAM_APDU [12:46:37]CAPDU: 80 13 01 00 [12:46:37]Write to MH i2c: E2 08 00 6D 11 80 13 01 00 00 00 00 00 FB [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:37]Read from MH i2c: E2 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 0E 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 0E 00 6D 11 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 73 [12:46:37]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:46:37]wFMCommunicate OK [12:46:37]SAM_PROTO_GetShiftState done [12:46:37]FM_GetShiftState done [12:46:37]opened in 1729988959 [12:46:37]opened+sec_in_day 1730075359 [12:46:37]quantity*price = 20003 [12:46:37]sum+1 = 20004 [12:46:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 115 27.10.2024 12:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145692 ФПД: 233100153310162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124638&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145692&fm=233100153310162&tin=02508201610067®Number=0000000000091683&sum=20000 [12:46:38]StoreToDocumentArchive [12:46:38]shift 545 fd 145692 [12:46:38]save to /storage/0545/doc_00145692 [12:46:38]save last doc name /storage/0545/doc_00145692 to /storage/kkm_last_doc_name [12:46:38]save OK [12:46:38]Clear old archive folders... [12:46:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:38]tlvbuf is 0046FD90 [12:46:38]SAM_PROTO_ClearQueue [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 09 00 00 [12:46:38]Write to MH i2c: E2 08 00 7A 11 80 09 00 00 00 00 00 00 FD [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 03 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 03 00 7A 11 00 90 00 FF [12:46:38]RAPDU: 90 00 [12:46:38]wFMCommunicate OK [12:46:38]SAM_PROTO_ClearQueue done [12:46:38]KKMCreateOFDPacket [12:46:38]OFDProtocolAddRootSTLVToBuf [12:46:38]FM_MakeSignedData [12:46:38]FM_MakeSignedData [12:46:38]SAM_PROTO_SignData [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 0D 01 02 [12:46:38]Write to MH i2c: E2 08 00 7B 11 80 0D 01 02 00 00 00 00 05 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 03 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 03 00 7B 11 00 90 00 00 [12:46:38]RAPDU: 90 00 [12:46:38]wFMCommunicate OK [12:46:38]wFMCommunicate request_size=255 [12:46:38]MH_SAM_APDU [12:46: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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2E 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1C 39 02 00 35 04 06 00 D4 [12:46:38]Write to MH i2c: E2 02 01 7C 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2E 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1C 39 02 00 35 04 06 00 D4 00 00 FF [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 03 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 03 00 7C 11 00 90 00 01 [12:46:38]RAPDU: 90 00 [12:46:38]wFMCommunicate OK [12:46:38]wFMCommunicate request_size=10 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 0D 02 02 05 00 DB D5 CB D2 [12:46:38]Write to MH i2c: E2 0D 00 7D 11 80 0D 02 02 05 00 00 DB D5 CB D2 00 00 5F [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 03 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 03 00 7D 11 00 90 00 02 [12:46:38]RAPDU: 90 00 [12:46:38]wFMCommunicate OK [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 0D 03 02 [12:46:38]Write to MH i2c: E2 08 00 7E 11 80 0D 03 02 00 00 00 00 0A [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0B 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0B 00 7E 11 00 E0 F5 53 94 18 FC 38 57 90 00 6A [12:46:38]RAPDU: E0 F5 53 94 18 FC 38 57 90 00 [12:46:38]wFMCommunicate OK [12:46:38]SAM_PROTO_SignData done [12:46:38]FM_MakeSignedData done [12:46:38]CreateOFDProtocolMessage [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 11 00 00 [12:46:38]Write to MH i2c: E2 08 00 7F 11 80 11 00 00 00 00 00 00 0A [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 17 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 17 00 7F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 5D [12:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:46:38]wFMCommunicate OK [12:46:38]CreateOFDProtocolMessage done [12:46:38]OFDSenderStorePacket 145692 [12:46:38]StoreOFDPacket docnum=145692 [12:46:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 22 C2 07 01 70 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2E 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1C 39 02 00 35 04 06 00 D4 00 DB D5 CB D2 E0 F5 53 94 18 FC 38 57 [12:46:38]CheckFolder [12:46:38]dirname=/storage/ofd_packets [12:46:38]CheckFolder done [12:46:38]ProducePacketName [12:46:38]name=ofd_packets/00145692 [12:46:38]NVStorageSaveData ofd_packets/00145692 [12:46:38]File name is /storage/ofd_packets/00145692 [12:46:38]Write 301 bytes [12:46:38]NVStorageSaveData done [12:46:38]OFDSenderStorePacket done [12:46:38]KKMCreateOFDPacket done [12:46:38]NVStorageSaveData kkm_last_timestamp [12:46:38]File name is /storage/kkm_last_timestamp [12:46:38]Write 4 bytes [12:46:38]NVStorageSaveData done [12:46:38]ExternCall_PrintAddStr [12:46:38]wPrintStart [12:46:38]Write to MH i2c: 01 00 00 80 11 91 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: 01 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: 01 07 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: 01 07 00 80 11 00 00 00 00 00 FF 0F A6 [12:46:38]RasterBufferAndPrint [12:46:38]line Счет N : (1)160443 [12:46:38]line ИНН: 02508201610067 [12:46:38]line Контрольно-Кассовый Чек [12:46:38]line ПРОДАЖА [12:46:38]line ТРК (МРК, ГНК) : 42 [12:46:38]line Товар: 2710124130 [12:46:38]line Аи-92-К-2 [12:46:38]line 2.990 * 66.90 [12:46:38]line = 200.03 [12:46:38]line НДС 12% НСП 1% [12:46:38]line > о реализуемом товаре [12:46:38]line ОКРУГЛЕНИЕ: -0.03 [12:46:38]line ИТОГО: 200.00 [12:46:38]line Внесено: 200.00 [12:46:38]line СДАЧА: 0.00 [12:46:38]line НСП 1% : 1.77 [12:46:38]line НДС 12% : 21.24 [12:46:38]line Наличными: 200.00 [12:46:38]line Безнал.: 0.00 [12:46:38]line Место: АЗС № 126 "Партнер Нефть" [12:46:38]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:46:38]line СНО: Общий режим [12:46:38]line Чек 115 27.10.2024 12:46 [12:46:38]line Смена: 545 ФФД: 1.0 [12:46:38]line ЗНМ: 0300000085 [12:46:38]line РНМ: 0000000000091683 [12:46:38]line Версия ККМ: 001 [12:46:38]line ФМ: 0000000000871745 [12:46:38]line ФД: 145692 [12:46:38]line ФПД: 233100153310162 [12:46:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124638&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145692&fm=233100153310162&tin=02508201610067®Number=0000000000091683&sum=20000 [12:46:39]OFD Sender: Processing packet 145692 [packets to send 206, broken 205] [12:46:39]ProducePacketName [12:46:39]name=ofd_packets/00145692 [12:46:39]OFD Sender: To server: pG, [12:46:39]CommunicateWithHost lk.salyk.kg:30040 [12:46:39]ConnectInit lk.salyk.kg [12:46:39]written 0, free lines is 4095 [12:46:39]Connected sock=10 [12:46:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 22 C2 07 01 70 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2E 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1C 39 02 00 35 04 06 00 D4 00 DB D5 CB D2 E0 F5 53 94 18 FC 38 57 [12:46:39]Write to MH i2c: 01 00 00 AB 11 BC [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: 01 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: 01 07 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: 01 07 00 AB 11 00 00 00 00 00 AF 0C 7E [12:46:39]RasterBufferAndPrint [12:46:39]line [12:46:39]line [12:46:39]line [12:46:39]line [12:46:39]line [12:46:39]written 0, free lines is 3252 [12:46:39]MH_Cut [12:46:39]Write to MH i2c: D1 01 00 B2 11 01 95 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: D1 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: D1 01 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: D1 01 00 B2 11 00 94 [12:46:39]Write to MH i2c: 01 00 00 B3 11 C4 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E0 A6 47 00 76 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1C 39 02 00 F4 03 04 00 5C DB 1D 67 B6 04 01 00 00 0A 44 C3 22 13 3A 84 99 [12:46:39]CommunicateWithHost err = 0 [12:46:39]CheckOFDResponse [12:46:39]1017 (14) - 77093643461234 [12:46:39]1041 (16) - 0000000000871745 [12:46:39]1040 (4) - 145692 [12:46:39]1012 (4) - 27.10.2024 06:19 [12:46:39]1206 (1) - 0 [12:46:39]OFD Sender: Remove packet 145692 [12:46:39]ProducePacketName [12:46:39]name=ofd_packets/00145692 [12:46:39]NVStorageDeleteData [12:46:40]OFD Sender: No OFD packet to send [12:46:40]*** Cut start [12:46:40]*** Partial cut [12:46:40]*** CUTSNS_PIN = 1 [12:46:40]*** CUTSNS_PIN = 0 [12:46:40]*** Brake cut motor [12:46:40]Read from MH i2c: 01 [12:46:40]MH_I2C_Read... [12:46:40]*** Stop cut motor [12:46:40]*** Cut end [12:46:40]Read from MH i2c: 01 07 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 07 00 B3 11 00 00 00 00 00 FF 0F D9 [12:46:40]process_action close_receipt done [12:46:40]requested_data is exist [12:46:40]produce_requested_data [12:46:40]requested_item fm.sn is exist - process it [12:46:40]wFMCommunicate request_size=4 [12:46:40]MH_SAM_APDU [12:46:40]CAPDU: 80 11 00 00 [12:46:40]Write to MH i2c: E2 08 00 B4 11 80 11 00 00 00 00 00 00 3F [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:41]Read from MH i2c: E2 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 17 00 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 17 00 B4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 92 [12:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:46:41]wFMCommunicate OK [12:46:41]requested_item fd.num is exist - process it [12:46:41]SAM_PROTO_GetFieldsCounters [12:46:41]wFMCommunicate request_size=4 [12:46:41]MH_SAM_APDU [12:46:41]CAPDU: 80 13 00 00 [12:46:41]Write to MH i2c: E2 08 00 B5 11 80 13 00 00 00 00 00 00 42 [12:46:41]Write i2c OK [12:46:41]MH_I2C_Read... [12:46:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:41]Read from MH i2c: E2 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 62 00 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 62 00 B5 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [12:46:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:41]wFMCommunicate OK [12:46:41]SAM_PROTO_GetFieldsCounters done [12:46:41]requested_item shift.num is exist - process it [12:46:41]requested_item shift.opened is exist - process it [12:46:41]req_shift_opened [12:46:41]FM_GetShiftState [12:46:41]SAM_PROTO_GetShiftState [12:46:41]wFMCommunicate request_size=4 [12:46:41]MH_SAM_APDU [12:46:41]CAPDU: 80 13 01 00 [12:46:41]Write to MH i2c: E2 08 00 B6 11 80 13 01 00 00 00 00 00 44 [12:46:41]Write i2c OK [12:46:41]MH_I2C_Read... [12:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:41]Read from MH i2c: E2 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 0E 00 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 0E 00 B6 11 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 BC [12:46:41]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:46:41]wFMCommunicate OK [12:46:41]SAM_PROTO_GetShiftState done [12:46:41]FM_GetShiftState done [12:46:41]req_shift_opened done [12:46:41]requested_item shift.open_date is exist - process it [12:46:41]req_shift_open_date [12:46:41]req_shift_open_date done [12:46:41]produce_requested_data done [12:46:41]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145692,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:46:41]process_action_free close_receipt [12:46:41]json_value_free [12:46:41]json_value_free done [12:46:41]process_json_proto returns [12:46:41]Send response to host [12:46:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145692,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:46:41]free response buf [12:46:41]execute_script done [12:46:41]execute_script returns [12:46:41]free content buf [12:46:41]Sock 7.Close socket [12:46:41]Sock 7.Thread stoped [12:46:42]int [12:46:42]Write to MH i2c: 01 00 00 B7 11 C8 [12:46:42]*** FLAG_PRN_KEY set [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: 01 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: 01 07 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: 01 07 00 B7 11 00 08 00 00 00 FF 0F E5 [12:46:42]state=0 [12:46:42]Key pressed [12:46:42]Feed [12:46:42]Write to MH i2c: D8 00 00 B8 11 A0 [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: D8 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: D8 01 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: D8 01 00 B8 11 00 A1 [12:46:42]int [12:46:42]Write to MH i2c: 01 00 00 B9 11 CA [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: 01 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: 01 07 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: 01 07 00 B9 11 00 48 00 00 00 3C 00 55 [12:46:42]state=2 [12:46:42]Key pressed [12:46:42]int [12:46:42]Write to MH i2c: 01 00 00 BA 11 CB [12:46:42]*** FLAG_PRN_KEY reset [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: 01 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: 01 07 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: 01 07 00 BA 11 00 00 00 00 00 FE 0F DF [12:46:42]state=2 [12:46:42]Stop feed [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:06]accept exits with 9 [12:47:06]New connection [12:47:06]New thread 3066596708 created [12:47:06]Thread 3066740068 joined [12:47:06]Waiting for new connection... [12:47:06] Sock 9.Parse request [12:47:06]Sock 9.Check first char [12:47:06]Sock 9.First char is OK [12:47:06]request: POST /json_proto HTTP/1.0 [12:47:06]Method: POST [12:47:06]URL: /json_proto [12:47:06]Method is POST - this is cgi request [12:47:06]url: /json_proto [12:47:06]query_string will be loaded in cgi processing [12:47:06]execute_cgi json_proto POST (null) [12:47:06]execute_cgi path=json_proto method=POST [12:47:06]POST find Content-Length [12:47:06]Host: 172.17.40.195:8080 [12:47:06]Content-Length: 769 [12:47:06]Content-Type: application/json [12:47:06] [12:47:06]POST finish read [12:47:06]Found Content-Length = 769 [12:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:06]execute_script... [12:47:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:06]POST & json_proto [12:47:06]process_json_proto [12:47:06]json parsed OK: [12:47:06]protocol is kg_v1.0 [12:47:06]action value=close_receipt [12:47:06]process_action close_receipt [12:47:06]cmd_close_receipt [12:47:06]MH_GetDate [12:47:06]Write to MH i2c: F0 00 00 BB 11 BB [12:47:06]Write i2c OK [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: F0 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: F0 09 00 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: F0 09 00 BB 11 00 4C 36 1E 67 D5 8D 6C 64 FD [12:47:06]GetLastDocTimeStamp 1730033198 [12:47:06]current date 1730033228 [12:47:06]FM_GetShiftState [12:47:06]SAM_PROTO_GetShiftState [12:47:06]wFMCommunicate request_size=4 [12:47:06]MH_SAM_APDU [12:47:06]CAPDU: 80 13 01 00 [12:47:06]Write to MH i2c: E2 08 00 BC 11 80 13 01 00 00 00 00 00 4A [12:47:06]Write i2c OK [12:47:06]MH_I2C_Read... [12:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:06]Read from MH i2c: E2 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: E2 0E 00 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: E2 0E 00 BC 11 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C2 [12:47:06]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:47:06]wFMCommunicate OK [12:47:06]SAM_PROTO_GetShiftState done [12:47:06]FM_GetShiftState done [12:47:06]opened in 1729988959 [12:47:06]opened+sec_in_day 1730075359 [12:47:06]quantity*price = 200043 [12:47:06]sum+1 = 200044 [12:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 116 27.10.2024 12:47 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145693 ФПД: 26295361778635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124708&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145693&fm=26295361778635&tin=02508201610067®Number=0000000000091683&sum=200043 [12:47:07]StoreToDocumentArchive [12:47:07]shift 545 fd 145693 [12:47:07]save to /storage/0545/doc_00145693 [12:47:07]save last doc name /storage/0545/doc_00145693 to /storage/kkm_last_doc_name [12:47:07]save OK [12:47:07]Clear old archive folders... [12:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:07]tlvbuf is 0046F6F0 [12:47:07]SAM_PROTO_ClearQueue [12:47:07]wFMCommunicate request_size=4 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 09 00 00 [12:47:07]Write to MH i2c: E2 08 00 C9 11 80 09 00 00 00 00 00 00 4C [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 C9 11 00 90 00 4E [12:47:07]RAPDU: 90 00 [12:47:07]wFMCommunicate OK [12:47:07]SAM_PROTO_ClearQueue done [12:47:07]KKMCreateOFDPacket [12:47:07]OFDProtocolAddRootSTLVToBuf [12:47:07]FM_MakeSignedData [12:47:07]FM_MakeSignedData [12:47:07]SAM_PROTO_SignData [12:47:07]wFMCommunicate request_size=4 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 0D 01 02 [12:47:07]Write to MH i2c: E2 08 00 CA 11 80 0D 01 02 00 00 00 00 54 [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 03 00 CA 11 00 90 00 4F [12:47:07]RAPDU: 90 00 [12:47:07]wFMCommunicate OK [12:47:07]wFMCommunicate request_size=255 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4C 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1D 39 02 00 35 04 06 00 17 [12:47:07]Write to MH i2c: E2 02 01 CB 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4C 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1D 39 02 00 35 04 06 00 17 00 00 EE [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 CB 11 00 90 00 50 [12:47:08]RAPDU: 90 00 [12:47:08]wFMCommunicate OK [12:47:08]wFMCommunicate request_size=10 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 0D 02 02 05 EA 5D B2 B3 CB [12:47:08]Write to MH i2c: E2 0D 00 CC 11 80 0D 02 02 05 00 EA 5D B2 B3 CB 00 00 D8 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 03 00 CC 11 00 90 00 51 [12:47:08]RAPDU: 90 00 [12:47:08]wFMCommunicate OK [12:47:08]wFMCommunicate request_size=4 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 0D 03 02 [12:47:08]Write to MH i2c: E2 08 00 CD 11 80 0D 03 02 00 00 00 00 59 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 0B 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 0B 00 CD 11 00 42 80 2D C1 83 FB CC 43 90 00 97 [12:47:08]RAPDU: 42 80 2D C1 83 FB CC 43 90 00 [12:47:08]wFMCommunicate OK [12:47:08]SAM_PROTO_SignData done [12:47:08]FM_MakeSignedData done [12:47:08]CreateOFDProtocolMessage [12:47:08]wFMCommunicate request_size=4 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 11 00 00 [12:47:08]Write to MH i2c: E2 08 00 CE 11 80 11 00 00 00 00 00 00 59 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 17 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 17 00 CE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AC [12:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:47:08]wFMCommunicate OK [12:47:08]CreateOFDProtocolMessage done [12:47:08]OFDSenderStorePacket 145693 [12:47:08]StoreOFDPacket docnum=145693 [12:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 29 96 07 01 D4 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4C 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1D 39 02 00 35 04 06 00 17 EA 5D B2 B3 CB 42 80 2D C1 83 FB CC 43 [12:47:08]CheckFolder [12:47:08]dirname=/storage/ofd_packets [12:47:08]CheckFolder done [12:47:08]ProducePacketName [12:47:08]name=ofd_packets/00145693 [12:47:08]NVStorageSaveData ofd_packets/00145693 [12:47:08]File name is /storage/ofd_packets/00145693 [12:47:08]Write 301 bytes [12:47:08]NVStorageSaveData done [12:47:08]OFDSenderStorePacket done [12:47:08]KKMCreateOFDPacket done [12:47:08]NVStorageSaveData kkm_last_timestamp [12:47:08]File name is /storage/kkm_last_timestamp [12:47:08]Write 4 bytes [12:47:08]NVStorageSaveData done [12:47:08]OFD Sender: Processing packet 145693 [packets to send 206, broken 205] [12:47:08]ProducePacketName [12:47:08]name=ofd_packets/00145693 [12:47:08]OFD Sender: To server: pG, [12:47:08]CommunicateWithHost lk.salyk.kg:30040 [12:47:08]ConnectInit lk.salyk.kg [12:47:08]ExternCall_PrintAddStr [12:47:08]wPrintStart [12:47:08]Write to MH i2c: 01 00 00 CF 11 E0 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: 01 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: 01 07 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: 01 07 00 CF 11 00 00 00 00 00 FF 0F F5 [12:47:08]RasterBufferAndPrint [12:47:08]line Счет N : (1)160444 [12:47:08]line ИНН: 02508201610067 [12:47:08]line Контрольно-Кассовый Чек [12:47:08]line ПРОДАЖА [12:47:08]line ТРК (МРК, ГНК) : 63 [12:47:08]line Товар: 2710124500 [12:47:08]line Аи-95-К-3 [12:47:08]line 26.960 * 74.20 [12:47:08]line = 2000.43 [12:47:08]line НДС 12% НСП 1% [12:47:08]line > о реализуемом товаре [12:47:08]line ИТОГО: 2000.43 [12:47:08]line НСП 1% : 17.70 [12:47:08]line НДС 12% : 212.43 [12:47:08]line Наличными: 0.00 [12:47:08]line Безнал.: 2000.43 [12:47:08]line Место: АЗС № 126 "Партнер Нефть" [12:47:08]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:47:08]line СНО: Общий режим [12:47:08]line Чек 116 27.10.2024 12:47 [12:47:08]line Смена: 545 ФФД: 1.0 [12:47:08]line ЗНМ: 0300000085 [12:47:08]line РНМ: 0000000000091683 [12:47:08]line Версия ККМ: 001 [12:47:08]line Платежная система: Mbank [12:47:08]line ФМ: 0000000000871745 [12:47:08]line ФД: 145693 [12:47:08]line ФПД: 26295361778635 [12:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124708&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145693&fm=26295361778635&tin=02508201610067®Number=0000000000091683&sum=200043 [12:47:08]Connected sock=11 [12:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 29 96 07 01 D4 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4C 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1D 39 02 00 35 04 06 00 17 EA 5D B2 B3 CB 42 80 2D C1 83 FB CC 43 [12:47:08]written 0, free lines is 4095 [12:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 56 D3 47 00 EF 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1D 39 02 00 F4 03 04 00 79 DB 1D 67 B6 04 01 00 00 E2 22 42 DF D7 91 68 02 [12:47:09]CommunicateWithHost err = 0 [12:47:09]CheckOFDResponse [12:47:09]1017 (14) - 77093643461234 [12:47:09]1041 (16) - 0000000000871745 [12:47:09]1040 (4) - 145693 [12:47:09]1012 (4) - 27.10.2024 06:19 [12:47:09]1206 (1) - 0 [12:47:09]OFD Sender: Remove packet 145693 [12:47:09]ProducePacketName [12:47:09]name=ofd_packets/00145693 [12:47:09]NVStorageDeleteData [12:47:09]Write to MH i2c: 01 00 00 F8 11 09 [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: 01 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: 01 07 00 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: 01 07 00 F8 11 00 00 00 00 00 DE 0C FA [12:47:09]RasterBufferAndPrint [12:47:09]line [12:47:09]line [12:47:09]line [12:47:09]line [12:47:09]line [12:47:09]written 0, free lines is 3301 [12:47:09]MH_Cut [12:47:09]Write to MH i2c: D1 01 00 FF 11 01 E2 [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: D1 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: D1 01 00 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: D1 01 00 FF 11 00 E1 [12:47:09]Write to MH i2c: 01 00 00 00 12 12 [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:09]OFD Sender: No OFD packet to send [12:47:10]*** Cut start [12:47:10]*** Partial cut [12:47:10]*** CUTSNS_PIN = 1 [12:47:10]*** CUTSNS_PIN = 0 [12:47:10]*** Brake cut motor [12:47:10]Read from MH i2c: 01 [12:47:10]MH_I2C_Read... [12:47:10]*** Stop cut motor [12:47:10]*** Cut end [12:47:10]Read from MH i2c: 01 07 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: 01 07 00 00 12 00 00 00 00 00 FF 0F 27 [12:47:10]process_action close_receipt done [12:47:10]requested_data is exist [12:47:10]produce_requested_data [12:47:10]requested_item fm.sn is exist - process it [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 11 00 00 [12:47:10]Write to MH i2c: E2 08 00 01 12 80 11 00 00 00 00 00 00 8D [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 17 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 17 00 01 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E0 [12:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:47:10]wFMCommunicate OK [12:47:10]requested_item fd.num is exist - process it [12:47:10]SAM_PROTO_GetFieldsCounters [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 13 00 00 [12:47:10]Write to MH i2c: E2 08 00 02 12 80 13 00 00 00 00 00 00 90 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 62 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 62 00 02 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [12:47:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:10]wFMCommunicate OK [12:47:10]SAM_PROTO_GetFieldsCounters done [12:47:10]requested_item shift.num is exist - process it [12:47:10]requested_item shift.opened is exist - process it [12:47:10]req_shift_opened [12:47:10]FM_GetShiftState [12:47:10]SAM_PROTO_GetShiftState [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 13 01 00 [12:47:10]Write to MH i2c: E2 08 00 03 12 80 13 01 00 00 00 00 00 92 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:10]Read from MH i2c: E2 0E 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 0E 00 03 12 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0A [12:47:10]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:47:10]wFMCommunicate OK [12:47:10]SAM_PROTO_GetShiftState done [12:47:10]FM_GetShiftState done [12:47:10]req_shift_opened done [12:47:10]requested_item shift.open_date is exist - process it [12:47:10]req_shift_open_date [12:47:10]req_shift_open_date done [12:47:10]produce_requested_data done [12:47:10]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145693,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:47:10]process_action_free close_receipt [12:47:10]json_value_free [12:47:10]json_value_free done [12:47:10]process_json_proto returns [12:47:10]Send response to host [12:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145693,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:47:10]free response buf [12:47:10]execute_script done [12:47:10]execute_script returns [12:47:10]free content buf [12:47:10]Sock 9.Close socket [12:47:10]Sock 9.Thread stoped [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:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:40]accept exits with 7 [12:49:40]New connection [12:49:40]New thread 3066740068 created [12:49:40]Thread 3066596708 joined [12:49:40]Waiting for new connection... [12:49:40] Sock 7.Parse request [12:49:40]Sock 7.Check first char [12:49:40]Sock 7.First char is OK [12:49:40]request: POST /json_proto HTTP/1.0 [12:49:40]Method: POST [12:49:40]URL: /json_proto [12:49:40]Method is POST - this is cgi request [12:49:40]url: /json_proto [12:49:40]query_string will be loaded in cgi processing [12:49:40]execute_cgi json_proto POST (null) [12:49:40]execute_cgi path=json_proto method=POST [12:49:40]POST find Content-Length [12:49:40]Host: 172.17.40.195:8080 [12:49:40]Content-Length: 682 [12:49:40]Content-Type: application/json [12:49:40] [12:49:40]POST finish read [12:49:40]Found Content-Length = 682 [12:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:40]execute_script... [12:49:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:40]POST & json_proto [12:49:40]process_json_proto [12:49:40]json parsed OK: [12:49:40]protocol is kg_v1.0 [12:49:40]action value=close_receipt [12:49:40]process_action close_receipt [12:49:40]cmd_close_receipt [12:49:40]MH_GetDate [12:49:40]Write to MH i2c: F0 00 00 04 12 05 [12:49:40]Write i2c OK [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: F0 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: F0 09 00 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: F0 09 00 04 12 00 E5 36 1E 67 D5 8D 6C 64 E0 [12:49:40]GetLastDocTimeStamp 1730033228 [12:49:40]current date 1730033381 [12:49:40]FM_GetShiftState [12:49:40]SAM_PROTO_GetShiftState [12:49:40]wFMCommunicate request_size=4 [12:49:40]MH_SAM_APDU [12:49:40]CAPDU: 80 13 01 00 [12:49:40]Write to MH i2c: E2 08 00 05 12 80 13 01 00 00 00 00 00 94 [12:49:40]Write i2c OK [12:49:40]MH_I2C_Read... [12:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:40]Read from MH i2c: E2 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: E2 0E 00 [12:49:40]MH_I2C_Read... [12:49:40]Read from MH i2c: E2 0E 00 05 12 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0C [12:49:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:49:40]wFMCommunicate OK [12:49:40]SAM_PROTO_GetShiftState done [12:49:40]FM_GetShiftState done [12:49:40]opened in 1729988959 [12:49:40]opened+sec_in_day 1730075359 [12:49:40]quantity*price = 100015 [12:49:40]sum+1 = 100017 [12:49:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 117 27.10.2024 12:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145694 ФПД: 121454697174941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124941&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145694&fm=121454697174941&tin=02508201610067®Number=0000000000091683&sum=100000 [12:49:41]StoreToDocumentArchive [12:49:41]shift 545 fd 145694 [12:49:41]save to /storage/0545/doc_00145694 [12:49:41]save last doc name /storage/0545/doc_00145694 to /storage/kkm_last_doc_name [12:49:41]save OK [12:49:41]Clear old archive folders... [12:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:41]tlvbuf is 00411300 [12:49:41]SAM_PROTO_ClearQueue [12:49:41]wFMCommunicate request_size=4 [12:49:41]MH_SAM_APDU [12:49:41]CAPDU: 80 09 00 00 [12:49:41]Write to MH i2c: E2 08 00 12 12 80 09 00 00 00 00 00 00 96 [12:49:41]Write i2c OK [12:49:41]MH_I2C_Read... [12:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:41]Read from MH i2c: E2 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 03 00 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 03 00 12 12 00 90 00 98 [12:49:41]RAPDU: 90 00 [12:49:41]wFMCommunicate OK [12:49:41]SAM_PROTO_ClearQueue done [12:49:41]KKMCreateOFDPacket [12:49:41]OFDProtocolAddRootSTLVToBuf [12:49:41]FM_MakeSignedData [12:49:41]FM_MakeSignedData [12:49:41]SAM_PROTO_SignData [12:49:41]wFMCommunicate request_size=4 [12:49:41]MH_SAM_APDU [12:49:41]CAPDU: 80 0D 01 02 [12:49:41]Write to MH i2c: E2 08 00 13 12 80 0D 01 02 00 00 00 00 9E [12:49:41]Write i2c OK [12:49:41]MH_I2C_Read... [12:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:41]Read from MH i2c: E2 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 03 00 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 03 00 13 12 00 90 00 99 [12:49:41]RAPDU: 90 00 [12:49:41]wFMCommunicate OK [12:49:41]wFMCommunicate request_size=255 [12:49:41]MH_SAM_APDU [12:49:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E5 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1E 39 02 00 35 04 06 00 6E [12:49:41]Write to MH i2c: E2 02 01 14 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E5 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1E 39 02 00 35 04 06 00 6E 00 00 25 [12:49:41]Write i2c OK [12:49:41]MH_I2C_Read... [12:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:41]Read from MH i2c: E2 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 03 00 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 03 00 14 12 00 90 00 9A [12:49:41]RAPDU: 90 00 [12:49:41]wFMCommunicate OK [12:49:41]wFMCommunicate request_size=10 [12:49:41]MH_SAM_APDU [12:49:41]CAPDU: 80 0D 02 02 05 76 60 14 D7 9D [12:49:41]Write to MH i2c: E2 0D 00 15 12 80 0D 02 02 05 00 76 60 14 D7 9D 00 00 09 [12:49:41]Write i2c OK [12:49:41]MH_I2C_Read... [12:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:41]Read from MH i2c: E2 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 03 00 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 03 00 15 12 00 90 00 9B [12:49:41]RAPDU: 90 00 [12:49:41]wFMCommunicate OK [12:49:41]wFMCommunicate request_size=4 [12:49:41]MH_SAM_APDU [12:49:41]CAPDU: 80 0D 03 02 [12:49:41]Write to MH i2c: E2 08 00 16 12 80 0D 03 02 00 00 00 00 A3 [12:49:41]Write i2c OK [12:49:41]MH_I2C_Read... [12:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:41]Read from MH i2c: E2 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 0B 00 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 0B 00 16 12 00 D6 C3 A8 22 8A 3A 5F 23 90 00 4D [12:49:41]RAPDU: D6 C3 A8 22 8A 3A 5F 23 90 00 [12:49:41]wFMCommunicate OK [12:49:41]SAM_PROTO_SignData done [12:49:41]FM_MakeSignedData done [12:49:41]CreateOFDProtocolMessage [12:49:41]wFMCommunicate request_size=4 [12:49:41]MH_SAM_APDU [12:49:41]CAPDU: 80 11 00 00 [12:49:41]Write to MH i2c: E2 08 00 17 12 80 11 00 00 00 00 00 00 A3 [12:49:41]Write i2c OK [12:49:41]MH_I2C_Read... [12:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:41]Read from MH i2c: E2 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 17 00 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 17 00 17 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F6 [12:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:49:41]wFMCommunicate OK [12:49:41]CreateOFDProtocolMessage done [12:49:41]OFDSenderStorePacket 145694 [12:49:41]StoreOFDPacket docnum=145694 [12:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 20 CF 07 01 E5 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E5 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1E 39 02 00 35 04 06 00 6E 76 60 14 D7 9D D6 C3 A8 22 8A 3A 5F 23 [12:49:41]CheckFolder [12:49:41]dirname=/storage/ofd_packets [12:49:41]CheckFolder done [12:49:41]ProducePacketName [12:49:41]name=ofd_packets/00145694 [12:49:41]NVStorageSaveData ofd_packets/00145694 [12:49:41]File name is /storage/ofd_packets/00145694 [12:49:41]Write 301 bytes [12:49:41]NVStorageSaveData done [12:49:41]OFDSenderStorePacket done [12:49:41]KKMCreateOFDPacket done [12:49:42]NVStorageSaveData kkm_last_timestamp [12:49:42]File name is /storage/kkm_last_timestamp [12:49:42]Write 4 bytes [12:49:42]NVStorageSaveData done [12:49:42]ExternCall_PrintAddStr [12:49:42]wPrintStart [12:49:42]Write to MH i2c: 01 00 00 18 12 2A [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: 01 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: 01 07 00 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: 01 07 00 18 12 00 00 00 00 00 FF 0F 3F [12:49:42]RasterBufferAndPrint [12:49:42]line Счет N : (1)160446 [12:49:42]line ИНН: 02508201610067 [12:49:42]line Контрольно-Кассовый Чек [12:49:42]line ПРОДАЖА [12:49:42]line ТРК (МРК, ГНК) : 42 [12:49:42]line Товар: 2710124130 [12:49:42]line Аи-92-К-2 [12:49:42]line 14.950 * 66.90 [12:49:42]line = 1000.16 [12:49:42]line НДС 12% НСП 1% [12:49:42]line > о реализуемом товаре [12:49:42]line ОКРУГЛЕНИЕ: -0.16 [12:49:42]line ИТОГО: 1000.00 [12:49:42]line Внесено: 1000.00 [12:49:42]line СДАЧА: 0.00 [12:49:42]line НСП 1% : 8.85 [12:49:42]line НДС 12% : 106.21 [12:49:42]line Наличными: 1000.00 [12:49:42]line Безнал.: 0.00 [12:49:42]line Место: АЗС № 126 "Партнер Нефть" [12:49:42]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:49:42]line СНО: Общий режим [12:49:42]line Чек 117 27.10.2024 12:49 [12:49:42]line Смена: 545 ФФД: 1.0 [12:49:42]line ЗНМ: 0300000085 [12:49:42]line РНМ: 0000000000091683 [12:49:42]line Версия ККМ: 001 [12:49:42]line ФМ: 0000000000871745 [12:49:42]line ФД: 145694 [12:49:42]line ФПД: 121454697174941 [12:49:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124941&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145694&fm=121454697174941&tin=02508201610067®Number=0000000000091683&sum=100000 [12:49:42]OFD Sender: Processing packet 145694 [packets to send 206, broken 205] [12:49:42]ProducePacketName [12:49:42]name=ofd_packets/00145694 [12:49:42]OFD Sender: To server: pG, [12:49:42]CommunicateWithHost lk.salyk.kg:30040 [12:49:42]ConnectInit lk.salyk.kg [12:49:42]written 0, free lines is 4095 [12:49:42]Connected sock=10 [12:49:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 20 CF 07 01 E5 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E5 36 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1E 39 02 00 35 04 06 00 6E 76 60 14 D7 9D D6 C3 A8 22 8A 3A 5F 23 [12:49:42]Write to MH i2c: 01 00 00 43 12 55 [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: 01 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: 01 07 00 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: 01 07 00 43 12 00 00 00 00 00 B8 0C 20 [12:49:42]RasterBufferAndPrint [12:49:42]line [12:49:42]line [12:49:42]line [12:49:42]line [12:49:42]line [12:49:42]written 0, free lines is 3263 [12:49:42]MH_Cut [12:49:42]Write to MH i2c: D1 01 00 4A 12 01 2E [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: D1 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: D1 01 00 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: D1 01 00 4A 12 00 2D [12:49:42]Write to MH i2c: 01 00 00 4B 12 5D [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 0A 20 47 00 F3 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1E 39 02 00 F4 03 04 00 13 DC 1D 67 B6 04 01 00 00 59 04 FF 18 23 72 CD 5E [12:49:42]CommunicateWithHost err = 0 [12:49:42]CheckOFDResponse [12:49:42]1017 (14) - 77093643461234 [12:49:42]1041 (16) - 0000000000871745 [12:49:42]1040 (4) - 145694 [12:49:42]1012 (4) - 27.10.2024 06:22 [12:49:42]1206 (1) - 0 [12:49:42]OFD Sender: Remove packet 145694 [12:49:42]ProducePacketName [12:49:42]name=ofd_packets/00145694 [12:49:42]NVStorageDeleteData [12:49:43]OFD Sender: No OFD packet to send [12:49:43]*** Cut start [12:49:43]*** Partial cut [12:49:43]*** CUTSNS_PIN = 1 [12:49:43]*** CUTSNS_PIN = 0 [12:49:43]*** Brake cut motor [12:49:44]Read from MH i2c: 01 [12:49:44]MH_I2C_Read... [12:49:44]*** Stop cut motor [12:49:44]*** Cut end [12:49:44]Read from MH i2c: 01 07 00 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: 01 07 00 4B 12 00 00 00 00 00 FF 0F 72 [12:49:44]process_action close_receipt done [12:49:44]requested_data is exist [12:49:44]produce_requested_data [12:49:44]requested_item fm.sn is exist - process it [12:49:44]wFMCommunicate request_size=4 [12:49:44]MH_SAM_APDU [12:49:44]CAPDU: 80 11 00 00 [12:49:44]Write to MH i2c: E2 08 00 4C 12 80 11 00 00 00 00 00 00 D8 [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:44]Read from MH i2c: E2 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 17 00 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 17 00 4C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2B [12:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:49:44]wFMCommunicate OK [12:49:44]requested_item fd.num is exist - process it [12:49:44]SAM_PROTO_GetFieldsCounters [12:49:44]wFMCommunicate request_size=4 [12:49:44]MH_SAM_APDU [12:49:44]CAPDU: 80 13 00 00 [12:49:44]Write to MH i2c: E2 08 00 4D 12 80 13 00 00 00 00 00 00 DB [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:44]Read from MH i2c: E2 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 62 00 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 62 00 4D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [12:49:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:44]wFMCommunicate OK [12:49:44]SAM_PROTO_GetFieldsCounters done [12:49:44]requested_item shift.num is exist - process it [12:49:44]requested_item shift.opened is exist - process it [12:49:44]req_shift_opened [12:49:44]FM_GetShiftState [12:49:44]SAM_PROTO_GetShiftState [12:49:44]wFMCommunicate request_size=4 [12:49:44]MH_SAM_APDU [12:49:44]CAPDU: 80 13 01 00 [12:49:44]Write to MH i2c: E2 08 00 4E 12 80 13 01 00 00 00 00 00 DD [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:44]Read from MH i2c: E2 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 0E 00 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 0E 00 4E 12 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 55 [12:49:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:49:44]wFMCommunicate OK [12:49:44]SAM_PROTO_GetShiftState done [12:49:44]FM_GetShiftState done [12:49:44]req_shift_opened done [12:49:44]requested_item shift.open_date is exist - process it [12:49:44]req_shift_open_date [12:49:44]req_shift_open_date done [12:49:44]produce_requested_data done [12:49:44]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145694,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:49:44]process_action_free close_receipt [12:49:44]json_value_free [12:49:44]json_value_free done [12:49:44]process_json_proto returns [12:49:44]Send response to host [12:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145694,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:49:44]free response buf [12:49:44]execute_script done [12:49:44]execute_script returns [12:49:44]free content buf [12:49:44]Sock 7.Close socket [12:49:44]Sock 7.Thread stoped [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:36]accept exits with 9 [12:50:36]New connection [12:50:36]New thread 3066596708 created [12:50:36]Thread 3066740068 joined [12:50:36]Waiting for new connection... [12:50:36] Sock 9.Parse request [12:50:36]Sock 9.Check first char [12:50:36]Sock 9.First char is OK [12:50:36]request: POST /json_proto HTTP/1.0 [12:50:36]Method: POST [12:50:36]URL: /json_proto [12:50:36]Method is POST - this is cgi request [12:50:36]url: /json_proto [12:50:36]query_string will be loaded in cgi processing [12:50:36]execute_cgi json_proto POST (null) [12:50:36]execute_cgi path=json_proto method=POST [12:50:36]POST find Content-Length [12:50:36]Host: 172.17.40.195:8080 [12:50:36]Content-Length: 682 [12:50:36]Content-Type: application/json [12:50:36] [12:50:36]POST finish read [12:50:36]Found Content-Length = 682 [12:50:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:36]execute_script... [12:50:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:36]POST & json_proto [12:50:36]process_json_proto [12:50:36]json parsed OK: [12:50:36]protocol is kg_v1.0 [12:50:36]action value=close_receipt [12:50:36]process_action close_receipt [12:50:36]cmd_close_receipt [12:50:36]MH_GetDate [12:50:36]Write to MH i2c: F0 00 00 4F 12 50 [12:50:36]Write i2c OK [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: F0 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: F0 09 00 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: F0 09 00 4F 12 00 1E 37 1E 67 D5 8D 6C 64 65 [12:50:36]GetLastDocTimeStamp 1730033381 [12:50:36]current date 1730033438 [12:50:36]FM_GetShiftState [12:50:36]SAM_PROTO_GetShiftState [12:50:36]wFMCommunicate request_size=4 [12:50:36]MH_SAM_APDU [12:50:36]CAPDU: 80 13 01 00 [12:50:36]Write to MH i2c: E2 08 00 50 12 80 13 01 00 00 00 00 00 DF [12:50:36]Write i2c OK [12:50:36]MH_I2C_Read... [12:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:36]Read from MH i2c: E2 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 0E 00 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 0E 00 50 12 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 57 [12:50:36]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:50:36]wFMCommunicate OK [12:50:36]SAM_PROTO_GetShiftState done [12:50:36]FM_GetShiftState done [12:50:36]opened in 1729988959 [12:50:36]opened+sec_in_day 1730075359 [12:50:36]quantity*price = 100021 [12:50:36]sum+1 = 100023 [12:50:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 118 27.10.2024 12:50 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145695 ФПД: 182196169173719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125038&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145695&fm=182196169173719&tin=02508201610067®Number=0000000000091683&sum=100000 [12:50:37]StoreToDocumentArchive [12:50:37]shift 545 fd 145695 [12:50:37]save to /storage/0545/doc_00145695 [12:50:37]save last doc name /storage/0545/doc_00145695 to /storage/kkm_last_doc_name [12:50:37]save OK [12:50:37]Clear old archive folders... [12:50:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:37]tlvbuf is 00407C40 [12:50:37]SAM_PROTO_ClearQueue [12:50:37]wFMCommunicate request_size=4 [12:50:37]MH_SAM_APDU [12:50:37]CAPDU: 80 09 00 00 [12:50:37]Write to MH i2c: E2 08 00 5D 12 80 09 00 00 00 00 00 00 E1 [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:38]Read from MH i2c: E2 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 03 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [12:50:38]RAPDU: 90 00 [12:50:38]wFMCommunicate OK [12:50:38]SAM_PROTO_ClearQueue done [12:50:38]KKMCreateOFDPacket [12:50:38]OFDProtocolAddRootSTLVToBuf [12:50:38]FM_MakeSignedData [12:50:38]FM_MakeSignedData [12:50:38]SAM_PROTO_SignData [12:50:38]wFMCommunicate request_size=4 [12:50:38]MH_SAM_APDU [12:50:38]CAPDU: 80 0D 01 02 [12:50:38]Write to MH i2c: E2 08 00 5E 12 80 0D 01 02 00 00 00 00 E9 [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:38]Read from MH i2c: E2 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 03 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 03 00 5E 12 00 90 00 E4 [12:50:38]RAPDU: 90 00 [12:50:38]wFMCommunicate OK [12:50:38]wFMCommunicate request_size=255 [12:50:38]MH_SAM_APDU [12:50: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 1E 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1F 39 02 00 35 04 06 00 A5 [12:50:38]Write to MH i2c: E2 02 01 5F 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 1E 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1F 39 02 00 35 04 06 00 A5 00 00 07 [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:38]Read from MH i2c: E2 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 03 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 03 00 5F 12 00 90 00 E5 [12:50:38]RAPDU: 90 00 [12:50:38]wFMCommunicate OK [12:50:38]wFMCommunicate request_size=10 [12:50:38]MH_SAM_APDU [12:50:38]CAPDU: 80 0D 02 02 05 B4 D9 F1 6A D7 [12:50:38]Write to MH i2c: E2 0D 00 60 12 80 0D 02 02 05 00 B4 D9 F1 6A D7 00 00 B5 [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:38]Read from MH i2c: E2 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 03 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 03 00 60 12 00 90 00 E6 [12:50:38]RAPDU: 90 00 [12:50:38]wFMCommunicate OK [12:50:38]wFMCommunicate request_size=4 [12:50:38]MH_SAM_APDU [12:50:38]CAPDU: 80 0D 03 02 [12:50:38]Write to MH i2c: E2 08 00 61 12 80 0D 03 02 00 00 00 00 EE [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:38]Read from MH i2c: E2 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 0B 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 0B 00 61 12 00 1E 6D 4A 2B 52 4E E2 81 90 00 F2 [12:50:38]RAPDU: 1E 6D 4A 2B 52 4E E2 81 90 00 [12:50:38]wFMCommunicate OK [12:50:38]SAM_PROTO_SignData done [12:50:38]FM_MakeSignedData done [12:50:38]CreateOFDProtocolMessage [12:50:38]wFMCommunicate request_size=4 [12:50:38]MH_SAM_APDU [12:50:38]CAPDU: 80 11 00 00 [12:50:38]Write to MH i2c: E2 08 00 62 12 80 11 00 00 00 00 00 00 EE [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:38]Read from MH i2c: E2 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 17 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 17 00 62 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 41 [12:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:50:38]wFMCommunicate OK [12:50:38]CreateOFDProtocolMessage done [12:50:38]OFDSenderStorePacket 145695 [12:50:38]StoreOFDPacket docnum=145695 [12:50:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A7 C6 07 01 D9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 1E 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1F 39 02 00 35 04 06 00 A5 B4 D9 F1 6A D7 1E 6D 4A 2B 52 4E E2 81 [12:50:38]CheckFolder [12:50:38]dirname=/storage/ofd_packets [12:50:38]CheckFolder done [12:50:38]ProducePacketName [12:50:38]name=ofd_packets/00145695 [12:50:38]NVStorageSaveData ofd_packets/00145695 [12:50:38]File name is /storage/ofd_packets/00145695 [12:50:38]Write 301 bytes [12:50:38]NVStorageSaveData done [12:50:38]OFDSenderStorePacket done [12:50:38]KKMCreateOFDPacket done [12:50:38]NVStorageSaveData kkm_last_timestamp [12:50:38]File name is /storage/kkm_last_timestamp [12:50:38]Write 4 bytes [12:50:38]NVStorageSaveData done [12:50:38]OFD Sender: Processing packet 145695 [packets to send 206, broken 205] [12:50:38]ProducePacketName [12:50:38]name=ofd_packets/00145695 [12:50:38]OFD Sender: To server: pG, [12:50:38]CommunicateWithHost lk.salyk.kg:30040 [12:50:38]ConnectInit lk.salyk.kg [12:50:38]ExternCall_PrintAddStr [12:50:38]wPrintStart [12:50:38]Write to MH i2c: 01 00 00 63 12 75 [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: 01 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: 01 07 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: 01 07 00 63 12 00 00 00 00 00 FF 0F 8A [12:50:38]RasterBufferAndPrint [12:50:38]line Счет N : (1)160448 [12:50:38]line ИНН: 02508201610067 [12:50:38]line Контрольно-Кассовый Чек [12:50:38]line ПРОДАЖА [12:50:38]line ТРК (МРК, ГНК) : 53 [12:50:38]line Товар: 2710124500 [12:50:38]line Аи-95-К-3 [12:50:38]line 13.480 * 74.20 [12:50:38]line = 1000.22 [12:50:38]line НДС 12% НСП 1% [12:50:38]line > о реализуемом товаре [12:50:38]line ОКРУГЛЕНИЕ: -0.22 [12:50:38]line ИТОГО: 1000.00 [12:50:38]line Внесено: 1000.00 [12:50:38]line СДАЧА: 0.00 [12:50:38]line НСП 1% : 8.85 [12:50:38]line НДС 12% : 106.22 [12:50:38]line Наличными: 1000.00 [12:50:38]line Безнал.: 0.00 [12:50:38]line Место: АЗС № 126 "Партнер Нефть" [12:50:38]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:50:38]line СНО: Общий режим [12:50:38]line Чек 118 27.10.2024 12:50 [12:50:38]line Смена: 545 ФФД: 1.0 [12:50:38]line ЗНМ: 0300000085 [12:50:38]line РНМ: 0000000000091683 [12:50:38]line Версия ККМ: 001 [12:50:38]line ФМ: 0000000000871745 [12:50:38]line ФД: 145695 [12:50:38]line ФПД: 182196169173719 [12:50:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125038&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145695&fm=182196169173719&tin=02508201610067®Number=0000000000091683&sum=100000 [12:50:38]Connected sock=10 [12:50:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A7 C6 07 01 D9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 1E 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1F 39 02 00 35 04 06 00 A5 B4 D9 F1 6A D7 1E 6D 4A 2B 52 4E E2 81 [12:50:38]written 0, free lines is 4095 [12:50:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 3C 64 47 00 7C 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 1F 39 02 00 F4 03 04 00 4B DC 1D 67 B6 04 01 00 00 D7 2C 0D 4B 2C 0A A0 9A [12:50:39]CommunicateWithHost err = 0 [12:50:39]CheckOFDResponse [12:50:39]1017 (14) - 77093643461234 [12:50:39]1041 (16) - 0000000000871745 [12:50:39]1040 (4) - 145695 [12:50:39]1012 (4) - 27.10.2024 06:23 [12:50:39]1206 (1) - 0 [12:50:39]OFD Sender: Remove packet 145695 [12:50:39]ProducePacketName [12:50:39]name=ofd_packets/00145695 [12:50:39]NVStorageDeleteData [12:50:39]Write to MH i2c: 01 00 00 8E 12 A0 [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: 01 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: 01 07 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: 01 07 00 8E 12 00 00 00 00 00 B4 0C 67 [12:50:39]RasterBufferAndPrint [12:50:39]line [12:50:39]line [12:50:39]line [12:50:39]line [12:50:39]line [12:50:39]written 0, free lines is 3255 [12:50:39]MH_Cut [12:50:39]Write to MH i2c: D1 01 00 95 12 01 79 [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: D1 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: D1 01 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: D1 01 00 95 12 00 78 [12:50:39]Write to MH i2c: 01 00 00 96 12 A8 [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]OFD Sender: No OFD packet to send [12:50:40]*** Cut start [12:50:40]*** Partial cut [12:50:40]*** CUTSNS_PIN = 1 [12:50:40]*** CUTSNS_PIN = 0 [12:50:40]*** Brake cut motor [12:50:40]Read from MH i2c: 01 [12:50:40]MH_I2C_Read... [12:50:40]*** Stop cut motor [12:50:40]*** Cut end [12:50:40]Read from MH i2c: 01 07 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: 01 07 00 96 12 00 00 00 00 00 FF 0F BD [12:50:40]process_action close_receipt done [12:50:40]requested_data is exist [12:50:40]produce_requested_data [12:50:40]requested_item fm.sn is exist - process it [12:50:40]wFMCommunicate request_size=4 [12:50:40]MH_SAM_APDU [12:50:40]CAPDU: 80 11 00 00 [12:50:40]Write to MH i2c: E2 08 00 97 12 80 11 00 00 00 00 00 00 23 [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:40]Read from MH i2c: E2 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 17 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 17 00 97 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 76 [12:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:50:40]wFMCommunicate OK [12:50:40]requested_item fd.num is exist - process it [12:50:40]SAM_PROTO_GetFieldsCounters [12:50:40]wFMCommunicate request_size=4 [12:50:40]MH_SAM_APDU [12:50:40]CAPDU: 80 13 00 00 [12:50:40]Write to MH i2c: E2 08 00 98 12 80 13 00 00 00 00 00 00 26 [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:40]Read from MH i2c: E2 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 62 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 62 00 98 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [12:50:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 1F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:40]wFMCommunicate OK [12:50:40]SAM_PROTO_GetFieldsCounters done [12:50:40]requested_item shift.num is exist - process it [12:50:40]requested_item shift.opened is exist - process it [12:50:40]req_shift_opened [12:50:40]FM_GetShiftState [12:50:40]SAM_PROTO_GetShiftState [12:50:40]wFMCommunicate request_size=4 [12:50:40]MH_SAM_APDU [12:50:40]CAPDU: 80 13 01 00 [12:50:40]Write to MH i2c: E2 08 00 99 12 80 13 01 00 00 00 00 00 28 [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:40]Read from MH i2c: E2 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: E2 0E 00 [12:50:40]MH_I2C_Read... [12:50:41]Read from MH i2c: E2 0E 00 99 12 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A0 [12:50:41]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:50:41]wFMCommunicate OK [12:50:41]SAM_PROTO_GetShiftState done [12:50:41]FM_GetShiftState done [12:50:41]req_shift_opened done [12:50:41]requested_item shift.open_date is exist - process it [12:50:41]req_shift_open_date [12:50:41]req_shift_open_date done [12:50:41]produce_requested_data done [12:50:41]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145695,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:50:41]process_action_free close_receipt [12:50:41]json_value_free [12:50:41]json_value_free done [12:50:41]process_json_proto returns [12:50:41]Send response to host [12:50:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145695,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:50:41]free response buf [12:50:41]execute_script done [12:50:41]execute_script returns [12:50:41]free content buf [12:50:41]Sock 9.Close socket [12:50:41]Sock 9.Thread stoped [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:08]accept exits with 7 [12:51:08]New connection [12:51:08]New thread 3066740068 created [12:51:08]Thread 3066596708 joined [12:51:08]Waiting for new connection... [12:51:08] Sock 7.Parse request [12:51:08]Sock 7.Check first char [12:51:08]Sock 7.First char is OK [12:51:08]request: POST /json_proto HTTP/1.0 [12:51:08]Method: POST [12:51:08]URL: /json_proto [12:51:08]Method is POST - this is cgi request [12:51:08]url: /json_proto [12:51:08]query_string will be loaded in cgi processing [12:51:08]execute_cgi json_proto POST (null) [12:51:08]execute_cgi path=json_proto method=POST [12:51:08]POST find Content-Length [12:51:08]Host: 172.17.40.195:8080 [12:51:08]Content-Length: 766 [12:51:08]Content-Type: application/json [12:51:08] [12:51:08]POST finish read [12:51:08]Found Content-Length = 766 [12:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:08]execute_script... [12:51: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)160445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:08]POST & json_proto [12:51:08]process_json_proto [12:51:08]json parsed OK: [12:51:08]protocol is kg_v1.0 [12:51:08]action value=close_receipt [12:51:08]process_action close_receipt [12:51:08]cmd_close_receipt [12:51:08]MH_GetDate [12:51:08]Write to MH i2c: F0 00 00 9A 12 9B [12:51:08]Write i2c OK [12:51:08]MH_I2C_Read... [12:51:08]Read from MH i2c: F0 [12:51:08]MH_I2C_Read... [12:51:08]Read from MH i2c: F0 09 00 [12:51:08]MH_I2C_Read... [12:51:08]Read from MH i2c: F0 09 00 9A 12 00 3E 37 1E 67 D5 8D 6C 64 D0 [12:51:08]GetLastDocTimeStamp 1730033438 [12:51:08]current date 1730033470 [12:51:08]FM_GetShiftState [12:51:08]SAM_PROTO_GetShiftState [12:51:08]wFMCommunicate request_size=4 [12:51:08]MH_SAM_APDU [12:51:08]CAPDU: 80 13 01 00 [12:51:08]Write to MH i2c: E2 08 00 9B 12 80 13 01 00 00 00 00 00 2A [12:51:08]Write i2c OK [12:51:08]MH_I2C_Read... [12:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:08]Read from MH i2c: E2 [12:51:08]MH_I2C_Read... [12:51:08]Read from MH i2c: E2 0E 00 [12:51:08]MH_I2C_Read... [12:51:08]Read from MH i2c: E2 0E 00 9B 12 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A2 [12:51:08]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:51:08]wFMCommunicate OK [12:51:08]SAM_PROTO_GetShiftState done [12:51:08]FM_GetShiftState done [12:51:08]opened in 1729988959 [12:51:08]opened+sec_in_day 1730075359 [12:51:08]quantity*price = 700049 [12:51:08]sum+1 = 700050 [12:51:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7000.49 НСП 1% : 61.95 НДС 12% : 743.41 Наличными: 0.00 Безнал.: 7000.49 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 119 27.10.2024 12:51 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145696 ФПД: 254613194792591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125110&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145696&fm=254613194792591&tin=02508201610067®Number=0000000000091683&sum=700049 [12:51:09]StoreToDocumentArchive [12:51:09]shift 545 fd 145696 [12:51:09]save to /storage/0545/doc_00145696 [12:51:09]save last doc name /storage/0545/doc_00145696 to /storage/kkm_last_doc_name [12:51:09]save OK [12:51:09]Clear old archive folders... [12:51:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:51:09]tlvbuf is 004646F0 [12:51:09]SAM_PROTO_ClearQueue [12:51:09]wFMCommunicate request_size=4 [12:51:09]MH_SAM_APDU [12:51:09]CAPDU: 80 09 00 00 [12:51:09]Write to MH i2c: E2 08 00 A8 12 80 09 00 00 00 00 00 00 2C [12:51:09]Write i2c OK [12:51:09]MH_I2C_Read... [12:51:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:09]Read from MH i2c: E2 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: E2 03 00 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: E2 03 00 A8 12 00 90 00 2E [12:51:09]RAPDU: 90 00 [12:51:09]wFMCommunicate OK [12:51:09]SAM_PROTO_ClearQueue done [12:51:09]KKMCreateOFDPacket [12:51:09]OFDProtocolAddRootSTLVToBuf [12:51:09]FM_MakeSignedData [12:51:09]FM_MakeSignedData [12:51:09]SAM_PROTO_SignData [12:51:09]wFMCommunicate request_size=4 [12:51:09]MH_SAM_APDU [12:51:09]CAPDU: 80 0D 01 02 [12:51:09]Write to MH i2c: E2 08 00 A9 12 80 0D 01 02 00 00 00 00 34 [12:51:09]Write i2c OK [12:51:09]MH_I2C_Read... [12:51:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:09]Read from MH i2c: E2 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: E2 03 00 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: E2 03 00 A9 12 00 90 00 2F [12:51:09]RAPDU: 90 00 [12:51:09]wFMCommunicate OK [12:51:09]wFMCommunicate request_size=255 [12:51:09]MH_SAM_APDU [12:51:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3E 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 20 39 02 00 35 04 06 00 E7 91 C1 07 [12:51:09]Write to MH i2c: E2 02 01 AA 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3E 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 20 39 02 00 35 04 06 00 E7 91 C1 07 00 00 93 [12:51:09]Write i2c OK [12:51:09]MH_I2C_Read... [12:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:10]Read from MH i2c: E2 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 AA 12 00 90 00 30 [12:51:10]RAPDU: 90 00 [12:51:10]wFMCommunicate OK [12:51:10]wFMCommunicate request_size=7 [12:51:10]MH_SAM_APDU [12:51:10]CAPDU: 80 0D 02 02 02 DE 8F [12:51:10]Write to MH i2c: E2 0A 00 AB 12 80 0D 02 02 02 00 DE 8F 00 00 A8 [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:10]Read from MH i2c: E2 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 AB 12 00 90 00 31 [12:51:10]RAPDU: 90 00 [12:51:10]wFMCommunicate OK [12:51:10]wFMCommunicate request_size=4 [12:51:10]MH_SAM_APDU [12:51:10]CAPDU: 80 0D 03 02 [12:51:10]Write to MH i2c: E2 08 00 AC 12 80 0D 03 02 00 00 00 00 39 [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:10]Read from MH i2c: E2 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 0B 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 0B 00 AC 12 00 3D 26 3B 14 18 EE EC 14 90 00 F2 [12:51:10]RAPDU: 3D 26 3B 14 18 EE EC 14 90 00 [12:51:10]wFMCommunicate OK [12:51:10]SAM_PROTO_SignData done [12:51:10]FM_MakeSignedData done [12:51:10]CreateOFDProtocolMessage [12:51:10]wFMCommunicate request_size=4 [12:51:10]MH_SAM_APDU [12:51:10]CAPDU: 80 11 00 00 [12:51:10]Write to MH i2c: E2 08 00 AD 12 80 11 00 00 00 00 00 00 39 [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:10]Read from MH i2c: E2 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 17 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 17 00 AD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8C [12:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:51:10]wFMCommunicate OK [12:51:10]CreateOFDProtocolMessage done [12:51:10]OFDSenderStorePacket 145696 [12:51:10]StoreOFDPacket docnum=145696 [12:51:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 31 9A 04 01 A1 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 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3E 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 20 39 02 00 35 04 06 00 E7 91 C1 07 DE 8F 3D 26 3B 14 18 EE EC 14 [12:51:10]CheckFolder [12:51:10]dirname=/storage/ofd_packets [12:51:10]CheckFolder done [12:51:10]ProducePacketName [12:51:10]name=ofd_packets/00145696 [12:51:10]NVStorageSaveData ofd_packets/00145696 [12:51:10]File name is /storage/ofd_packets/00145696 [12:51:10]Write 298 bytes [12:51:10]NVStorageSaveData done [12:51:10]OFDSenderStorePacket done [12:51:10]KKMCreateOFDPacket done [12:51:10]NVStorageSaveData kkm_last_timestamp [12:51:10]File name is /storage/kkm_last_timestamp [12:51:10]Write 4 bytes [12:51:10]NVStorageSaveData done [12:51:10]ExternCall_PrintAddStr [12:51:10]wPrintStart [12:51:10]Write to MH i2c: 01 00 00 AE 12 C0 [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: 01 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: 01 07 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: 01 07 00 AE 12 00 00 00 00 00 FF 0F D5 [12:51:10]RasterBufferAndPrint [12:51:10]line Счет N : (1)160445 [12:51:10]line ИНН: 02508201610067 [12:51:10]line Контрольно-Кассовый Чек [12:51:10]line ПРОДАЖА [12:51:10]line ТРК (МРК, ГНК) : 21 [12:51:10]line Товар: 2710194210 [12:51:10]line ДТ-К-2 [12:51:10]line 91.870 * 76.20 [12:51:10]line = 7000.49 [12:51:10]line НДС 12% НСП 1% [12:51:10]line > о реализуемом товаре [12:51:10]line ИТОГО: 7000.49 [12:51:10]line НСП 1% : 61.95 [12:51:10]line НДС 12% : 743.41 [12:51:10]line Наличными: 0.00 [12:51:10]line Безнал.: 7000.49 [12:51:10]line Место: АЗС № 126 "Партнер Нефть" [12:51:10]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:51:10]line СНО: Общий режим [12:51:10]line Чек 119 27.10.2024 12:51 [12:51:10]line Смена: 545 ФФД: 1.0 [12:51:10]line ЗНМ: 0300000085 [12:51:10]line РНМ: 0000000000091683 [12:51:10]line Версия ККМ: 001 [12:51:10]line Платежная система: Mbank [12:51:10]line ФМ: 0000000000871745 [12:51:10]line ФД: 145696 [12:51:10]line ФПД: 254613194792591 [12:51:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125110&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145696&fm=254613194792591&tin=02508201610067®Number=0000000000091683&sum=700049 [12:51:10]OFD Sender: Processing packet 145696 [packets to send 206, broken 205] [12:51:10]ProducePacketName [12:51:10]name=ofd_packets/00145696 [12:51:10]OFD Sender: To server: pG, [12:51:10]CommunicateWithHost lk.salyk.kg:30040 [12:51:10]ConnectInit lk.salyk.kg [12:51:10]written 0, free lines is 4095 [12:51:10]Connected sock=10 [12:51:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 31 9A 04 01 A1 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 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 91 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 3E 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 20 39 02 00 35 04 06 00 E7 91 C1 07 DE 8F 3D 26 3B 14 18 EE EC 14 [12:51:10]Write to MH i2c: 01 00 00 D7 12 E9 [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: 01 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: 01 07 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: 01 07 00 D7 12 00 00 00 00 00 D9 0C D5 [12:51:10]RasterBufferAndPrint [12:51:10]line [12:51:10]line [12:51:10]line [12:51:10]line [12:51:10]line [12:51:10]written 0, free lines is 3296 [12:51:10]MH_Cut [12:51:10]Write to MH i2c: D1 01 00 DE 12 01 C2 [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: D1 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: D1 01 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: D1 01 00 DE 12 00 C1 [12:51:10]Write to MH i2c: 01 00 00 DF 12 F1 [12:51:11]Write i2c OK [12:51:11]MH_I2C_Read... [12:51:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 16 E2 47 00 82 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 20 39 02 00 F4 03 04 00 6B DC 1D 67 B6 04 01 00 00 36 09 5B 1E AB B4 59 36 [12:51:11]CommunicateWithHost err = 0 [12:51:11]CheckOFDResponse [12:51:11]1017 (14) - 77093643461234 [12:51:11]1041 (16) - 0000000000871745 [12:51:11]1040 (4) - 145696 [12:51:11]1012 (4) - 27.10.2024 06:23 [12:51:11]1206 (1) - 0 [12:51:11]OFD Sender: Remove packet 145696 [12:51:11]ProducePacketName [12:51:11]name=ofd_packets/00145696 [12:51:11]NVStorageDeleteData [12:51:11]OFD Sender: No OFD packet to send [12:51:11]*** Cut start [12:51:11]*** Partial cut [12:51:11]*** CUTSNS_PIN = 1 [12:51:11]*** CUTSNS_PIN = 0 [12:51:12]*** Brake cut motor [12:51:12]Read from MH i2c: 01 [12:51:12]MH_I2C_Read... [12:51:12]*** Stop cut motor [12:51:12]*** Cut end [12:51:12]Read from MH i2c: 01 07 00 [12:51:12]MH_I2C_Read... [12:51:12]Read from MH i2c: 01 07 00 DF 12 00 00 00 00 00 FF 0F 06 [12:51:12]process_action close_receipt done [12:51:12]requested_data is exist [12:51:12]produce_requested_data [12:51:12]requested_item fm.sn is exist - process it [12:51:12]wFMCommunicate request_size=4 [12:51:12]MH_SAM_APDU [12:51:12]CAPDU: 80 11 00 00 [12:51:12]Write to MH i2c: E2 08 00 E0 12 80 11 00 00 00 00 00 00 6C [12:51:12]Write i2c OK [12:51:12]MH_I2C_Read... [12:51:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:12]Read from MH i2c: E2 [12:51:12]MH_I2C_Read... [12:51:12]Read from MH i2c: E2 17 00 [12:51:12]MH_I2C_Read... [12:51:12]Read from MH i2c: E2 17 00 E0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BF [12:51:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:51:12]wFMCommunicate OK [12:51:12]requested_item fd.num is exist - process it [12:51:12]SAM_PROTO_GetFieldsCounters [12:51:12]wFMCommunicate request_size=4 [12:51:12]MH_SAM_APDU [12:51:12]CAPDU: 80 13 00 00 [12:51:12]Write to MH i2c: E2 08 00 E1 12 80 13 00 00 00 00 00 00 6F [12:51:12]Write i2c OK [12:51:12]MH_I2C_Read... [12:51:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:12]Read from MH i2c: E2 [12:51:12]MH_I2C_Read... [12:51:12]Read from MH i2c: E2 62 00 [12:51:12]MH_I2C_Read... [12:51:12]Read from MH i2c: E2 62 00 E1 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 20 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [12:51:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 20 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:12]wFMCommunicate OK [12:51:12]SAM_PROTO_GetFieldsCounters done [12:51:12]requested_item shift.num is exist - process it [12:51:12]requested_item shift.opened is exist - process it [12:51:12]req_shift_opened [12:51:12]FM_GetShiftState [12:51:12]SAM_PROTO_GetShiftState [12:51:12]wFMCommunicate request_size=4 [12:51:12]MH_SAM_APDU [12:51:12]CAPDU: 80 13 01 00 [12:51:12]Write to MH i2c: E2 08 00 E2 12 80 13 01 00 00 00 00 00 71 [12:51:12]Write i2c OK [12:51:12]MH_I2C_Read... [12:51:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:12]Read from MH i2c: E2 [12:51:12]MH_I2C_Read... [12:51:12]Read from MH i2c: E2 0E 00 [12:51:12]MH_I2C_Read... [12:51:12]Read from MH i2c: E2 0E 00 E2 12 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E9 [12:51:12]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:51:12]wFMCommunicate OK [12:51:12]SAM_PROTO_GetShiftState done [12:51:12]FM_GetShiftState done [12:51:12]req_shift_opened done [12:51:12]requested_item shift.open_date is exist - process it [12:51:12]req_shift_open_date [12:51:12]req_shift_open_date done [12:51:12]produce_requested_data done [12:51:12]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145696,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:51:12]process_action_free close_receipt [12:51:12]json_value_free [12:51:12]json_value_free done [12:51:12]process_json_proto returns [12:51:12]Send response to host [12:51:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145696,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:51:12]free response buf [12:51:12]execute_script done [12:51:12]execute_script returns [12:51:12]free content buf [12:51:12]Sock 7.Close socket [12:51:12]Sock 7.Thread stoped [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:14]accept exits with 9 [12:53:14]New connection [12:53:14]New thread 3066596708 created [12:53:14]Thread 3066740068 joined [12:53:14]Waiting for new connection... [12:53:14] Sock 9.Parse request [12:53:14]Sock 9.Check first char [12:53:14]Sock 9.First char is OK [12:53:14]request: POST /json_proto HTTP/1.0 [12:53:14]Method: POST [12:53:14]URL: /json_proto [12:53:14]Method is POST - this is cgi request [12:53:14]url: /json_proto [12:53:14]query_string will be loaded in cgi processing [12:53:14]execute_cgi json_proto POST (null) [12:53:14]execute_cgi path=json_proto method=POST [12:53:14]POST find Content-Length [12:53:14]Host: 172.17.40.195:8080 [12:53:14]Content-Length: 679 [12:53:14]Content-Type: application/json [12:53:14] [12:53:14]POST finish read [12:53:14]Found Content-Length = 679 [12:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:14]execute_script... [12:53: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)160451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:14]POST & json_proto [12:53:14]process_json_proto [12:53:14]json parsed OK: [12:53:14]protocol is kg_v1.0 [12:53:14]action value=close_receipt [12:53:14]process_action close_receipt [12:53:14]cmd_close_receipt [12:53:14]MH_GetDate [12:53:14]Write to MH i2c: F0 00 00 E3 12 E4 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: F0 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: F0 09 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: F0 09 00 E3 12 00 BC 37 1E 67 D5 8D 6C 64 97 [12:53:14]GetLastDocTimeStamp 1730033470 [12:53:14]current date 1730033596 [12:53:14]FM_GetShiftState [12:53:14]SAM_PROTO_GetShiftState [12:53:14]wFMCommunicate request_size=4 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 13 01 00 [12:53:14]Write to MH i2c: E2 08 00 E4 12 80 13 01 00 00 00 00 00 73 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 0E 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 0E 00 E4 12 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EB [12:53:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:53:14]wFMCommunicate OK [12:53:14]SAM_PROTO_GetShiftState done [12:53:14]FM_GetShiftState done [12:53:14]opened in 1729988959 [12:53:14]opened+sec_in_day 1730075359 [12:53:14]quantity*price = 100050 [12:53:14]sum+1 = 100052 [12:53:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 120 27.10.2024 12:53 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145697 ФПД: 235852580913229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125316&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145697&fm=235852580913229&tin=02508201610067®Number=0000000000091683&sum=100000 [12:53:16]StoreToDocumentArchive [12:53:16]shift 545 fd 145697 [12:53:16]save to /storage/0545/doc_00145697 [12:53:16]save last doc name /storage/0545/doc_00145697 to /storage/kkm_last_doc_name [12:53:16]save OK [12:53:16]Clear old archive folders... [12:53:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:53:16]tlvbuf is 00427F70 [12:53:16]SAM_PROTO_ClearQueue [12:53:16]wFMCommunicate request_size=4 [12:53:16]MH_SAM_APDU [12:53:16]CAPDU: 80 09 00 00 [12:53:16]Write to MH i2c: E2 08 00 F1 12 80 09 00 00 00 00 00 00 75 [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 F1 12 00 90 00 77 [12:53:16]RAPDU: 90 00 [12:53:16]wFMCommunicate OK [12:53:16]SAM_PROTO_ClearQueue done [12:53:16]KKMCreateOFDPacket [12:53:16]OFDProtocolAddRootSTLVToBuf [12:53:16]FM_MakeSignedData [12:53:16]FM_MakeSignedData [12:53:16]SAM_PROTO_SignData [12:53:16]wFMCommunicate request_size=4 [12:53:16]MH_SAM_APDU [12:53:16]CAPDU: 80 0D 01 02 [12:53:16]Write to MH i2c: E2 08 00 F2 12 80 0D 01 02 00 00 00 00 7D [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 F2 12 00 90 00 78 [12:53:16]RAPDU: 90 00 [12:53:16]wFMCommunicate OK [12:53:16]wFMCommunicate request_size=255 [12:53:16]MH_SAM_APDU [12:53: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 BC 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 21 39 02 00 35 04 06 00 D6 81 B5 4E [12:53:16]Write to MH i2c: E2 02 01 F3 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 BC 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 21 39 02 00 35 04 06 00 D6 81 B5 4E 00 00 CA [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 F3 12 00 90 00 79 [12:53:16]RAPDU: 90 00 [12:53:16]wFMCommunicate OK [12:53:16]wFMCommunicate request_size=7 [12:53:16]MH_SAM_APDU [12:53:16]CAPDU: 80 0D 02 02 02 00 4D [12:53:16]Write to MH i2c: E2 0A 00 F4 12 80 0D 02 02 02 00 00 4D 00 00 D1 [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 F4 12 00 90 00 7A [12:53:16]RAPDU: 90 00 [12:53:16]wFMCommunicate OK [12:53:16]wFMCommunicate request_size=4 [12:53:16]MH_SAM_APDU [12:53:16]CAPDU: 80 0D 03 02 [12:53:16]Write to MH i2c: E2 08 00 F5 12 80 0D 03 02 00 00 00 00 82 [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 0B 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 0B 00 F5 12 00 8D 8A 66 14 E9 69 A3 6C 90 00 75 [12:53:16]RAPDU: 8D 8A 66 14 E9 69 A3 6C 90 00 [12:53:16]wFMCommunicate OK [12:53:16]SAM_PROTO_SignData done [12:53:16]FM_MakeSignedData done [12:53:16]CreateOFDProtocolMessage [12:53:16]wFMCommunicate request_size=4 [12:53:16]MH_SAM_APDU [12:53:16]CAPDU: 80 11 00 00 [12:53:16]Write to MH i2c: E2 08 00 F6 12 80 11 00 00 00 00 00 00 82 [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 17 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 17 00 F6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D5 [12:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:53:16]wFMCommunicate OK [12:53:16]CreateOFDProtocolMessage done [12:53:16]OFDSenderStorePacket 145697 [12:53:16]StoreOFDPacket docnum=145697 [12:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 23 17 04 01 88 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 BC 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 21 39 02 00 35 04 06 00 D6 81 B5 4E 00 4D 8D 8A 66 14 E9 69 A3 6C [12:53:16]CheckFolder [12:53:16]dirname=/storage/ofd_packets [12:53:16]CheckFolder done [12:53:16]ProducePacketName [12:53:16]name=ofd_packets/00145697 [12:53:16]NVStorageSaveData ofd_packets/00145697 [12:53:16]File name is /storage/ofd_packets/00145697 [12:53:16]Write 298 bytes [12:53:16]NVStorageSaveData done [12:53:16]OFDSenderStorePacket done [12:53:16]KKMCreateOFDPacket done [12:53:16]NVStorageSaveData kkm_last_timestamp [12:53:16]File name is /storage/kkm_last_timestamp [12:53:16]Write 4 bytes [12:53:16]NVStorageSaveData done [12:53:16]ExternCall_PrintAddStr [12:53:16]wPrintStart [12:53:16]Write to MH i2c: 01 00 00 F7 12 09 [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: 01 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: 01 07 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: 01 07 00 F7 12 00 00 00 00 00 FF 0F 1E [12:53:16]RasterBufferAndPrint [12:53:16]line Счет N : (1)160451 [12:53:16]line ИНН: 02508201610067 [12:53:16]line Контрольно-Кассовый Чек [12:53:16]line ПРОДАЖА [12:53:16]line ТРК (МРК, ГНК) : 11 [12:53:16]line Товар: 2710194210 [12:53:16]line ДТ-К-2 [12:53:16]line 13.130 * 76.20 [12:53:16]line = 1000.51 [12:53:16]line НДС 12% НСП 1% [12:53:16]line > о реализуемом товаре [12:53:16]line ОКРУГЛЕНИЕ: -0.51 [12:53:16]line ИТОГО: 1000.00 [12:53:16]line Внесено: 1000.00 [12:53:16]line СДАЧА: 0.00 [12:53:16]line НСП 1% : 8.85 [12:53:16]line НДС 12% : 106.25 [12:53:16]line Наличными: 1000.00 [12:53:16]line Безнал.: 0.00 [12:53:16]line Место: АЗС № 126 "Партнер Нефть" [12:53:16]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:53:16]line СНО: Общий режим [12:53:16]line Чек 120 27.10.2024 12:53 [12:53:16]line Смена: 545 ФФД: 1.0 [12:53:16]line ЗНМ: 0300000085 [12:53:16]line РНМ: 0000000000091683 [12:53:16]line Версия ККМ: 001 [12:53:16]line ФМ: 0000000000871745 [12:53:16]line ФД: 145697 [12:53:16]line ФПД: 235852580913229 [12:53:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125316&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145697&fm=235852580913229&tin=02508201610067®Number=0000000000091683&sum=100000 [12:53:16]OFD Sender: Processing packet 145697 [packets to send 206, broken 205] [12:53:16]ProducePacketName [12:53:16]name=ofd_packets/00145697 [12:53:16]OFD Sender: To server: pG, [12:53:16]CommunicateWithHost lk.salyk.kg:30040 [12:53:16]ConnectInit lk.salyk.kg [12:53:16]written 0, free lines is 4095 [12:53:17]Connected sock=10 [12:53:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 23 17 04 01 88 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 BC 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 21 39 02 00 35 04 06 00 D6 81 B5 4E 00 4D 8D 8A 66 14 E9 69 A3 6C [12:53:17]Write to MH i2c: 01 00 00 22 13 35 [12:53:17]Write i2c OK [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: 01 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: 01 07 00 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: 01 07 00 22 13 00 00 00 00 00 B5 0C FD [12:53:17]RasterBufferAndPrint [12:53:17]line [12:53:17]line [12:53:17]line [12:53:17]line [12:53:17]line [12:53:17]written 0, free lines is 3260 [12:53:17]MH_Cut [12:53:17]Write to MH i2c: D1 01 00 29 13 01 0E [12:53:17]Write i2c OK [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: D1 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: D1 01 00 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: D1 01 00 29 13 00 0D [12:53:17]Write to MH i2c: 01 00 00 2A 13 3D [12:53:17]Write i2c OK [12:53:17]MH_I2C_Read... [12:53:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 01 A0 47 00 0C 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 31 37 34 35 10 04 04 00 21 39 02 00 F4 03 04 00 EA DC 1D 67 B6 04 01 00 00 8D E8 A0 95 AD 57 F0 5F [12:53:17]CommunicateWithHost err = 0 [12:53:17]CheckOFDResponse [12:53:17]1017 (14) - 77093643461234 [12:53:17]1041 (16) - 0000000000871745 [12:53:17]1040 (4) - 145697 [12:53:17]1012 (4) - 27.10.2024 06:25 [12:53:17]1206 (1) - 0 [12:53:17]OFD Sender: Remove packet 145697 [12:53:17]ProducePacketName [12:53:17]name=ofd_packets/00145697 [12:53:17]NVStorageDeleteData [12:53:17]OFD Sender: No OFD packet to send [12:53:18]*** Cut start [12:53:18]*** Partial cut [12:53:18]*** CUTSNS_PIN = 1 [12:53:18]*** CUTSNS_PIN = 0 [12:53:18]*** Brake cut motor [12:53:18]Read from MH i2c: 01 [12:53:18]MH_I2C_Read... [12:53:18]*** Stop cut motor [12:53:18]*** Cut end [12:53:18]Read from MH i2c: 01 07 00 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: 01 07 00 2A 13 00 00 00 00 00 FF 0F 52 [12:53:18]process_action close_receipt done [12:53:18]requested_data is exist [12:53:18]produce_requested_data [12:53:18]requested_item fm.sn is exist - process it [12:53:18]wFMCommunicate request_size=4 [12:53:18]MH_SAM_APDU [12:53:18]CAPDU: 80 11 00 00 [12:53:18]Write to MH i2c: E2 08 00 2B 13 80 11 00 00 00 00 00 00 B8 [12:53:18]Write i2c OK [12:53:18]MH_I2C_Read... [12:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:18]Read from MH i2c: E2 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 17 00 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 17 00 2B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0B [12:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:53:18]wFMCommunicate OK [12:53:18]requested_item fd.num is exist - process it [12:53:18]SAM_PROTO_GetFieldsCounters [12:53:18]wFMCommunicate request_size=4 [12:53:18]MH_SAM_APDU [12:53:18]CAPDU: 80 13 00 00 [12:53:18]Write to MH i2c: E2 08 00 2C 13 80 13 00 00 00 00 00 00 BB [12:53:18]Write i2c OK [12:53:18]MH_I2C_Read... [12:53:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:19]Read from MH i2c: E2 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: E2 62 00 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: E2 62 00 2C 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 21 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [12:53:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 21 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:19]wFMCommunicate OK [12:53:19]SAM_PROTO_GetFieldsCounters done [12:53:19]requested_item shift.num is exist - process it [12:53:19]requested_item shift.opened is exist - process it [12:53:19]req_shift_opened [12:53:19]FM_GetShiftState [12:53:19]SAM_PROTO_GetShiftState [12:53:19]wFMCommunicate request_size=4 [12:53:19]MH_SAM_APDU [12:53:19]CAPDU: 80 13 01 00 [12:53:19]Write to MH i2c: E2 08 00 2D 13 80 13 01 00 00 00 00 00 BD [12:53:19]Write i2c OK [12:53:19]MH_I2C_Read... [12:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:19]Read from MH i2c: E2 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: E2 0E 00 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: E2 0E 00 2D 13 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 35 [12:53:19]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:53:19]wFMCommunicate OK [12:53:19]SAM_PROTO_GetShiftState done [12:53:19]FM_GetShiftState done [12:53:19]req_shift_opened done [12:53:19]requested_item shift.open_date is exist - process it [12:53:19]req_shift_open_date [12:53:19]req_shift_open_date done [12:53:19]produce_requested_data done [12:53:19]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145697,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:53:19]process_action_free close_receipt [12:53:19]json_value_free [12:53:19]json_value_free done [12:53:19]process_json_proto returns [12:53:19]Send response to host [12:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145697,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:53:19]free response buf [12:53:19]execute_script done [12:53:19]execute_script returns [12:53:19]free content buf [12:53:19]Sock 9.Close socket [12:53:19]Sock 9.Thread stoped [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:42]accept exits with 7 [12:53:42]New connection [12:53:42]New thread 3066740068 created [12:53:42]Thread 3066596708 joined [12:53:42]Waiting for new connection... [12:53:42] Sock 7.Parse request [12:53:42]Sock 7.Check first char [12:53:42]Sock 7.First char is OK [12:53:42]request: POST /json_proto HTTP/1.0 [12:53:42]Method: POST [12:53:42]URL: /json_proto [12:53:42]Method is POST - this is cgi request [12:53:42]url: /json_proto [12:53:42]query_string will be loaded in cgi processing [12:53:42]execute_cgi json_proto POST (null) [12:53:42]execute_cgi path=json_proto method=POST [12:53:42]POST find Content-Length [12:53:42]Host: 172.17.40.195:8080 [12:53:42]Content-Length: 677 [12:53:42]Content-Type: application/json [12:53:42] [12:53:42]POST finish read [12:53:42]Found Content-Length = 677 [12:53:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:42]execute_script... [12:53: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)160453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:42]POST & json_proto [12:53:42]process_json_proto [12:53:42]json parsed OK: [12:53:42]protocol is kg_v1.0 [12:53:42]action value=close_receipt [12:53:42]process_action close_receipt [12:53:42]cmd_close_receipt [12:53:42]MH_GetDate [12:53:42]Write to MH i2c: F0 00 00 2E 13 30 [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: F0 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: F0 09 00 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: F0 09 00 2E 13 00 D7 37 1E 67 D5 8D 6C 64 FE [12:53:42]GetLastDocTimeStamp 1730033596 [12:53:42]current date 1730033623 [12:53:42]FM_GetShiftState [12:53:42]SAM_PROTO_GetShiftState [12:53:42]wFMCommunicate request_size=4 [12:53:42]MH_SAM_APDU [12:53:42]CAPDU: 80 13 01 00 [12:53:42]Write to MH i2c: E2 08 00 2F 13 80 13 01 00 00 00 00 00 BF [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:42]Read from MH i2c: E2 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: E2 0E 00 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: E2 0E 00 2F 13 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 37 [12:53:42]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:53:42]wFMCommunicate OK [12:53:42]SAM_PROTO_GetShiftState done [12:53:42]FM_GetShiftState done [12:53:42]opened in 1729988959 [12:53:42]opened+sec_in_day 1730075359 [12:53:42]quantity*price = 60009 [12:53:42]sum+1 = 60010 [12:53:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 121 27.10.2024 12:53 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145698 ФПД: 52958345697545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125343&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145698&fm=52958345697545&tin=02508201610067®Number=0000000000091683&sum=60000 [12:53:43]StoreToDocumentArchive [12:53:43]shift 545 fd 145698 [12:53:43]save to /storage/0545/doc_00145698 [12:53:43]save last doc name /storage/0545/doc_00145698 to /storage/kkm_last_doc_name [12:53:43]save OK [12:53:43]Clear old archive folders... [12:53:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:43]tlvbuf is 00428800 [12:53:43]SAM_PROTO_ClearQueue [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 09 00 00 [12:53:43]Write to MH i2c: E2 08 00 3C 13 80 09 00 00 00 00 00 00 C1 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 3C 13 00 90 00 C3 [12:53:43]RAPDU: 90 00 [12:53:43]wFMCommunicate OK [12:53:43]SAM_PROTO_ClearQueue done [12:53:43]KKMCreateOFDPacket [12:53:43]OFDProtocolAddRootSTLVToBuf [12:53:43]FM_MakeSignedData [12:53:43]FM_MakeSignedData [12:53:43]SAM_PROTO_SignData [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 0D 01 02 [12:53:43]Write to MH i2c: E2 08 00 3D 13 80 0D 01 02 00 00 00 00 C9 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 3D 13 00 90 00 C4 [12:53:43]RAPDU: 90 00 [12:53:43]wFMCommunicate OK [12:53:43]wFMCommunicate request_size=255 [12:53:43]MH_SAM_APDU [12:53: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D7 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 22 39 02 00 35 04 06 00 30 [12:53:43]Write to MH i2c: E2 02 01 3E 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D7 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 22 39 02 00 35 04 06 00 30 00 00 F0 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 3E 13 00 90 00 C5 [12:53:43]RAPDU: 90 00 [12:53:43]wFMCommunicate OK [12:53:43]wFMCommunicate request_size=10 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 0D 02 02 05 2A 53 62 19 09 [12:53:43]Write to MH i2c: E2 0D 00 3F 13 80 0D 02 02 05 00 2A 53 62 19 09 00 00 D7 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 3F 13 00 90 00 C6 [12:53:43]RAPDU: 90 00 [12:53:43]wFMCommunicate OK [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 0D 03 02 [12:53:43]Write to MH i2c: E2 08 00 40 13 80 0D 03 02 00 00 00 00 CE [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 0B 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 0B 00 40 13 00 C7 98 80 EC E2 73 15 25 90 00 29 [12:53:43]RAPDU: C7 98 80 EC E2 73 15 25 90 00 [12:53:43]wFMCommunicate OK [12:53:43]SAM_PROTO_SignData done [12:53:43]FM_MakeSignedData done [12:53:43]CreateOFDProtocolMessage [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 11 00 00 [12:53:43]Write to MH i2c: E2 08 00 41 13 80 11 00 00 00 00 00 00 CE [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 17 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 17 00 41 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 21 [12:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:53:43]wFMCommunicate OK [12:53:43]CreateOFDProtocolMessage done [12:53:43]OFDSenderStorePacket 145698 [12:53:43]StoreOFDPacket docnum=145698 [12:53:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 96 D0 07 01 C7 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D7 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 22 39 02 00 35 04 06 00 30 2A 53 62 19 09 C7 98 80 EC E2 73 15 25 [12:53:43]CheckFolder [12:53:43]dirname=/storage/ofd_packets [12:53:43]CheckFolder done [12:53:43]ProducePacketName [12:53:43]name=ofd_packets/00145698 [12:53:43]NVStorageSaveData ofd_packets/00145698 [12:53:43]File name is /storage/ofd_packets/00145698 [12:53:43]Write 301 bytes [12:53:43]NVStorageSaveData done [12:53:43]OFDSenderStorePacket done [12:53:43]KKMCreateOFDPacket done [12:53:43]NVStorageSaveData kkm_last_timestamp [12:53:43]File name is /storage/kkm_last_timestamp [12:53:43]Write 4 bytes [12:53:43]NVStorageSaveData done [12:53:43]ExternCall_PrintAddStr [12:53:43]wPrintStart [12:53:43]Write to MH i2c: 01 00 00 42 13 55 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 07 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 07 00 42 13 00 00 00 00 00 FF 0F 6A [12:53:43]RasterBufferAndPrint [12:53:43]line Счет N : (1)160453 [12:53:43]line ИНН: 02508201610067 [12:53:43]line Контрольно-Кассовый Чек [12:53:43]line ПРОДАЖА [12:53:43]line ТРК (МРК, ГНК) : 62 [12:53:43]line Товар: 2710124130 [12:53:43]line Аи-92-К-2 [12:53:43]line 8.970 * 66.90 [12:53:43]line = 600.09 [12:53:43]line НДС 12% НСП 1% [12:53:43]line > о реализуемом товаре [12:53:43]line ОКРУГЛЕНИЕ: -0.09 [12:53:43]line ИТОГО: 600.00 [12:53:43]line Внесено: 600.00 [12:53:43]line СДАЧА: 0.00 [12:53:43]line НСП 1% : 5.31 [12:53:43]line НДС 12% : 63.73 [12:53:43]line Наличными: 600.00 [12:53:43]line Безнал.: 0.00 [12:53:43]line Место: АЗС № 126 "Партнер Нефть" [12:53:43]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:53:43]line СНО: Общий режим [12:53:43]line Чек 121 27.10.2024 12:53 [12:53:43]line Смена: 545 ФФД: 1.0 [12:53:43]line ЗНМ: 0300000085 [12:53:43]line РНМ: 0000000000091683 [12:53:43]line Версия ККМ: 001 [12:53:43]line ФМ: 0000000000871745 [12:53:43]line ФД: 145698 [12:53:43]line ФПД: 52958345697545 [12:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125343&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145698&fm=52958345697545&tin=02508201610067®Number=0000000000091683&sum=60000 [12:53:44]written 0, free lines is 4095 [12:53:44]OFD Sender: Processing packet 145698 [packets to send 206, broken 205] [12:53:44]ProducePacketName [12:53:44]name=ofd_packets/00145698 [12:53:44]OFD Sender: To server: pG, [12:53:44]CommunicateWithHost lk.salyk.kg:30040 [12:53:44]ConnectInit lk.salyk.kg [12:53:44]Connected sock=10 [12:53:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 96 D0 07 01 C7 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D7 37 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 22 39 02 00 35 04 06 00 30 2A 53 62 19 09 C7 98 80 EC E2 73 15 25 [12:53:44]Write to MH i2c: 01 00 00 6D 13 80 [12:53:44]Write i2c OK [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: 01 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: 01 07 00 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: 01 07 00 6D 13 00 00 00 00 00 B7 0C 4A [12:53:44]RasterBufferAndPrint [12:53:44]line [12:53:44]line [12:53:44]line [12:53:44]line [12:53:44]line [12:53:44]written 0, free lines is 3262 [12:53:44]MH_Cut [12:53:44]Write to MH i2c: D1 01 00 74 13 01 59 [12:53:44]Write i2c OK [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: D1 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: D1 01 00 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: D1 01 00 74 13 00 58 [12:53:44]Write to MH i2c: 01 00 00 75 13 88 [12:53:44]Write i2c OK [12:53:44]MH_I2C_Read... [12:53:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 77 07 47 00 9B A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 22 39 02 00 F4 03 04 00 05 DD 1D 67 B6 04 01 00 00 38 88 BB 5B DF 34 AC 3D [12:53:44]CommunicateWithHost err = 0 [12:53:44]CheckOFDResponse [12:53:44]1017 (14) - 77093643461234 [12:53:44]1041 (16) - 0000000000871745 [12:53:44]1040 (4) - 145698 [12:53:44]1012 (4) - 27.10.2024 06:26 [12:53:44]1206 (1) - 0 [12:53:44]OFD Sender: Remove packet 145698 [12:53:44]ProducePacketName [12:53:44]name=ofd_packets/00145698 [12:53:44]NVStorageDeleteData [12:53:45]OFD Sender: No OFD packet to send [12:53:45]*** Cut start [12:53:45]*** Partial cut [12:53:45]*** CUTSNS_PIN = 1 [12:53:45]*** CUTSNS_PIN = 0 [12:53:45]*** Brake cut motor [12:53:45]Read from MH i2c: 01 [12:53:45]MH_I2C_Read... [12:53:45]*** Stop cut motor [12:53:45]*** Cut end [12:53:45]Read from MH i2c: 01 07 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: 01 07 00 75 13 00 00 00 00 00 FF 0F 9D [12:53:45]process_action close_receipt done [12:53:45]requested_data is exist [12:53:45]produce_requested_data [12:53:45]requested_item fm.sn is exist - process it [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 11 00 00 [12:53:45]Write to MH i2c: E2 08 00 76 13 80 11 00 00 00 00 00 00 03 [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 17 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 17 00 76 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 56 [12:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:53:45]wFMCommunicate OK [12:53:45]requested_item fd.num is exist - process it [12:53:45]SAM_PROTO_GetFieldsCounters [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 13 00 00 [12:53:45]Write to MH i2c: E2 08 00 77 13 80 13 00 00 00 00 00 00 06 [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 62 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 62 00 77 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 22 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [12:53:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 22 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:46]wFMCommunicate OK [12:53:46]SAM_PROTO_GetFieldsCounters done [12:53:46]requested_item shift.num is exist - process it [12:53:46]requested_item shift.opened is exist - process it [12:53:46]req_shift_opened [12:53:46]FM_GetShiftState [12:53:46]SAM_PROTO_GetShiftState [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 13 01 00 [12:53:46]Write to MH i2c: E2 08 00 78 13 80 13 01 00 00 00 00 00 08 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0E 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0E 00 78 13 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 80 [12:53:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:53:46]wFMCommunicate OK [12:53:46]SAM_PROTO_GetShiftState done [12:53:46]FM_GetShiftState done [12:53:46]req_shift_opened done [12:53:46]requested_item shift.open_date is exist - process it [12:53:46]req_shift_open_date [12:53:46]req_shift_open_date done [12:53:46]produce_requested_data done [12:53:46]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145698,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:53:46]process_action_free close_receipt [12:53:46]json_value_free [12:53:46]json_value_free done [12:53:46]process_json_proto returns [12:53:46]Send response to host [12:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145698,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:53:46]free response buf [12:53:46]execute_script done [12:53:46]execute_script returns [12:53:46]free content buf [12:53:46]Sock 7.Close socket [12:53:46]Sock 7.Thread stoped [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:32]accept exits with 9 [12:57:32]New connection [12:57:32]New thread 3066596708 created [12:57:32]Thread 3066740068 joined [12:57:32]Waiting for new connection... [12:57:32] Sock 9.Parse request [12:57:32]Sock 9.Check first char [12:57:32]Sock 9.First char is OK [12:57:32]request: POST /json_proto HTTP/1.0 [12:57:32]Method: POST [12:57:32]URL: /json_proto [12:57:32]Method is POST - this is cgi request [12:57:32]url: /json_proto [12:57:32]query_string will be loaded in cgi processing [12:57:32]execute_cgi json_proto POST (null) [12:57:32]execute_cgi path=json_proto method=POST [12:57:32]POST find Content-Length [12:57:32]Host: 172.17.40.195:8080 [12:57:32]Content-Length: 984 [12:57:32]Content-Type: application/json [12:57:32] [12:57:32]POST finish read [12:57:32]Found Content-Length = 984 [12:57:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 33.930, "sum" : 2500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 16.97 \u0441\u043E\u043C", "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" ] } } [12:57:32]execute_script... [12:57: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)160452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 33.930, "sum" : 2500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 16.97 \u0441\u043E\u043C", "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" ] } } [12:57:32]POST & json_proto [12:57:32]process_json_proto [12:57:32]json parsed OK: [12:57:32]protocol is kg_v1.0 [12:57:32]action value=close_receipt [12:57:32]process_action close_receipt [12:57:32]cmd_close_receipt [12:57:32]MH_GetDate [12:57:32]Write to MH i2c: F0 00 00 79 13 7B [12:57:32]Write i2c OK [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: F0 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: F0 09 00 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: F0 09 00 79 13 00 BD 38 1E 67 D5 8D 6C 64 30 [12:57:32]GetLastDocTimeStamp 1730033623 [12:57:32]current date 1730033853 [12:57:32]FM_GetShiftState [12:57:32]SAM_PROTO_GetShiftState [12:57:32]wFMCommunicate request_size=4 [12:57:32]MH_SAM_APDU [12:57:32]CAPDU: 80 13 01 00 [12:57:32]Write to MH i2c: E2 08 00 7A 13 80 13 01 00 00 00 00 00 0A [12:57:32]Write i2c OK [12:57:32]MH_I2C_Read... [12:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:32]Read from MH i2c: E2 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 0E 00 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 0E 00 7A 13 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 82 [12:57:32]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:57:32]wFMCommunicate OK [12:57:32]SAM_PROTO_GetShiftState done [12:57:32]FM_GetShiftState done [12:57:32]opened in 1729988959 [12:57:32]opened+sec_in_day 1730075359 [12:57:32]quantity*price = 250064 [12:57:32]sum+1 = 250065 [12:57:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 122 27.10.2024 12:57 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-95 номер 126 сэкономлено 16.97 сом ФМ: 0000000000871745 ФД: 145699 ФПД: 149393911040093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125733&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145699&fm=149393911040093&tin=02508201610067®Number=0000000000091683&sum=250000 [12:57:33]StoreToDocumentArchive [12:57:33]shift 545 fd 145699 [12:57:33]save to /storage/0545/doc_00145699 [12:57:33]save last doc name /storage/0545/doc_00145699 to /storage/kkm_last_doc_name [12:57:33]save OK [12:57:33]Clear old archive folders... [12:57:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:33]tlvbuf is B6E744D0 [12:57:33]SAM_PROTO_ClearQueue [12:57:33]wFMCommunicate request_size=4 [12:57:33]MH_SAM_APDU [12:57:33]CAPDU: 80 09 00 00 [12:57:33]Write to MH i2c: E2 08 00 87 13 80 09 00 00 00 00 00 00 0C [12:57:33]Write i2c OK [12:57:33]MH_I2C_Read... [12:57:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:33]Read from MH i2c: E2 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 03 00 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 03 00 87 13 00 90 00 0E [12:57:33]RAPDU: 90 00 [12:57:33]wFMCommunicate OK [12:57:33]SAM_PROTO_ClearQueue done [12:57:33]KKMCreateOFDPacket [12:57:33]OFDProtocolAddRootSTLVToBuf [12:57:33]FM_MakeSignedData [12:57:33]FM_MakeSignedData [12:57:33]SAM_PROTO_SignData [12:57:33]wFMCommunicate request_size=4 [12:57:33]MH_SAM_APDU [12:57:33]CAPDU: 80 0D 01 02 [12:57:33]Write to MH i2c: E2 08 00 88 13 80 0D 01 02 00 00 00 00 14 [12:57:33]Write i2c OK [12:57:33]MH_I2C_Read... [12:57:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:33]Read from MH i2c: E2 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 03 00 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 03 00 88 13 00 90 00 0F [12:57:33]RAPDU: 90 00 [12:57:33]wFMCommunicate OK [12:57:33]wFMCommunicate request_size=255 [12:57:33]MH_SAM_APDU [12:57:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8A 84 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 D0 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 7A 00 00 00 F4 03 04 00 BD 38 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 23 39 02 00 35 04 06 00 87 [12:57:33]Write to MH i2c: E2 02 01 89 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8A 84 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 D0 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 7A 00 00 00 F4 03 04 00 BD 38 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 23 39 02 00 35 04 06 00 87 00 00 4A [12:57:33]Write i2c OK [12:57:33]MH_I2C_Read... [12:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:33]Read from MH i2c: E2 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 03 00 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 03 00 89 13 00 90 00 10 [12:57:33]RAPDU: 90 00 [12:57:33]wFMCommunicate OK [12:57:33]wFMCommunicate request_size=10 [12:57:33]MH_SAM_APDU [12:57:33]CAPDU: 80 0D 02 02 05 DF 7A FF C8 5D [12:57:33]Write to MH i2c: E2 0D 00 8A 13 80 0D 02 02 05 00 DF 7A FF C8 5D 00 00 9E [12:57:33]Write i2c OK [12:57:33]MH_I2C_Read... [12:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:33]Read from MH i2c: E2 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 03 00 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 03 00 8A 13 00 90 00 11 [12:57:33]RAPDU: 90 00 [12:57:33]wFMCommunicate OK [12:57:33]wFMCommunicate request_size=4 [12:57:33]MH_SAM_APDU [12:57:33]CAPDU: 80 0D 03 02 [12:57:33]Write to MH i2c: E2 08 00 8B 13 80 0D 03 02 00 00 00 00 19 [12:57:33]Write i2c OK [12:57:33]MH_I2C_Read... [12:57:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:33]Read from MH i2c: E2 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 0B 00 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 0B 00 8B 13 00 F9 F4 CD 28 75 9F F5 B8 90 00 BD [12:57:33]RAPDU: F9 F4 CD 28 75 9F F5 B8 90 00 [12:57:33]wFMCommunicate OK [12:57:33]SAM_PROTO_SignData done [12:57:33]FM_MakeSignedData done [12:57:33]CreateOFDProtocolMessage [12:57:33]wFMCommunicate request_size=4 [12:57:33]MH_SAM_APDU [12:57:33]CAPDU: 80 11 00 00 [12:57:33]Write to MH i2c: E2 08 00 8C 13 80 11 00 00 00 00 00 00 19 [12:57:33]Write i2c OK [12:57:33]MH_I2C_Read... [12:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:33]Read from MH i2c: E2 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 17 00 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 17 00 8C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6C [12:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:57:33]wFMCommunicate OK [12:57:33]CreateOFDProtocolMessage done [12:57:33]OFDSenderStorePacket 145699 [12:57:33]StoreOFDPacket docnum=145699 [12:57:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A2 00 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8A 84 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 D0 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 7A 00 00 00 F4 03 04 00 BD 38 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 23 39 02 00 35 04 06 00 87 DF 7A FF C8 5D F9 F4 CD 28 75 9F F5 B8 [12:57:33]CheckFolder [12:57:33]dirname=/storage/ofd_packets [12:57:33]CheckFolder done [12:57:33]ProducePacketName [12:57:33]name=ofd_packets/00145699 [12:57:33]NVStorageSaveData ofd_packets/00145699 [12:57:33]File name is /storage/ofd_packets/00145699 [12:57:33]Write 301 bytes [12:57:33]NVStorageSaveData done [12:57:33]OFDSenderStorePacket done [12:57:33]KKMCreateOFDPacket done [12:57:33]NVStorageSaveData kkm_last_timestamp [12:57:33]File name is /storage/kkm_last_timestamp [12:57:33]Write 4 bytes [12:57:33]NVStorageSaveData done [12:57:33]ExternCall_PrintAddStr [12:57:33]wPrintStart [12:57:33]Write to MH i2c: 01 00 00 8D 13 A0 [12:57:33]Write i2c OK [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: 01 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: 01 07 00 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: 01 07 00 8D 13 00 00 00 00 00 FF 0F B5 [12:57:33]RasterBufferAndPrint [12:57:33]line Счет N : (1)160452 [12:57:33]line ИНН: 02508201610067 [12:57:33]line Контрольно-Кассовый Чек [12:57:33]line ПРОДАЖА [12:57:33]line ТРК (МРК, ГНК) : 53 [12:57:33]line Товар: 2710124500 [12:57:33]line Аи-95-К-3 [12:57:33]line 33.930 * 73.70 [12:57:33]line = 2500.64 [12:57:33]line НДС 12% НСП 1% [12:57:33]line > о реализуемом товаре [12:57:33]line ОКРУГЛЕНИЕ: -0.64 [12:57:33]line ИТОГО: 2500.00 [12:57:33]line Внесено: 2500.00 [12:57:33]line СДАЧА: 0.00 [12:57:33]line НСП 1% : 22.13 [12:57:33]line НДС 12% : 265.55 [12:57:33]line Наличными: 2500.00 [12:57:33]line Безнал.: 0.00 [12:57:33]line Место: АЗС № 126 "Партнер Нефть" [12:57:33]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [12:57:33]line СНО: Общий режим [12:57:33]line Чек 122 27.10.2024 12:57 [12:57:33]line Смена: 545 ФФД: 1.0 [12:57:33]line ЗНМ: 0300000085 [12:57:33]line РНМ: 0000000000091683 [12:57:33]line Версия ККМ: 001 [12:57:33]line [12:57:33]line Дисконтная программа [12:57:33]line АИ-95 [12:57:33]line номер 126 [12:57:33]line сэкономлено 16.97 сом [12:57:33]line ФМ: 0000000000871745 [12:57:33]line ФД: 145699 [12:57:33]line ФПД: 149393911040093 [12:57:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125733&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145699&fm=149393911040093&tin=02508201610067®Number=0000000000091683&sum=250000 [12:57:34]OFD Sender: Processing packet 145699 [packets to send 206, broken 205] [12:57:34]ProducePacketName [12:57:34]name=ofd_packets/00145699 [12:57:34]OFD Sender: To server: pG, [12:57:34]CommunicateWithHost lk.salyk.kg:30040 [12:57:34]ConnectInit lk.salyk.kg [12:57:34]written 0, free lines is 4095 [12:57:34]Connected sock=10 [12:57:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A2 00 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8A 84 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 D0 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 7A 00 00 00 F4 03 04 00 BD 38 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 23 39 02 00 35 04 06 00 87 DF 7A FF C8 5D F9 F4 CD 28 75 9F F5 B8 [12:57:34]Write to MH i2c: 01 00 00 BD 13 D0 [12:57:34]Write i2c OK [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: 01 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: 01 07 00 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: 01 07 00 BD 13 00 00 00 00 00 4B 0C 2E [12:57:34]RasterBufferAndPrint [12:57:34]line [12:57:34]line [12:57:34]line [12:57:34]line [12:57:34]line [12:57:34]written 0, free lines is 3153 [12:57:34]MH_Cut [12:57:34]Write to MH i2c: D1 01 00 C4 13 01 A9 [12:57:34]Write i2c OK [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: D1 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: D1 01 00 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: D1 01 00 C4 13 00 A8 [12:57:34]Write to MH i2c: 01 00 00 C5 13 D8 [12:57:34]Write i2c OK [12:57:34]MH_I2C_Read... [12:57:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 39 DC 47 00 ED 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 23 39 02 00 F4 03 04 00 EB DD 1D 67 B6 04 01 00 00 B0 76 D5 16 B3 01 49 B5 [12:57:34]CommunicateWithHost err = 0 [12:57:34]CheckOFDResponse [12:57:34]1017 (14) - 77093643461234 [12:57:34]1041 (16) - 0000000000871745 [12:57:34]1040 (4) - 145699 [12:57:34]1012 (4) - 27.10.2024 06:30 [12:57:34]1206 (1) - 0 [12:57:34]OFD Sender: Remove packet 145699 [12:57:34]ProducePacketName [12:57:34]name=ofd_packets/00145699 [12:57:34]NVStorageDeleteData [12:57:35]OFD Sender: No OFD packet to send [12:57:35]*** Cut start [12:57:35]*** Partial cut [12:57:35]*** CUTSNS_PIN = 1 [12:57:35]*** CUTSNS_PIN = 0 [12:57:35]*** Brake cut motor [12:57:36]Read from MH i2c: 01 [12:57:36]MH_I2C_Read... [12:57:36]*** Stop cut motor [12:57:36]Read from MH i2c: 01 07 00 [12:57:36]MH_I2C_Read... [12:57:36]*** Cut end [12:57:36]Read from MH i2c: 01 07 00 C5 13 00 00 00 00 00 FF 0F ED [12:57:36]process_action close_receipt done [12:57:36]requested_data is exist [12:57:36]produce_requested_data [12:57:36]requested_item fm.sn is exist - process it [12:57:36]wFMCommunicate request_size=4 [12:57:36]MH_SAM_APDU [12:57:36]CAPDU: 80 11 00 00 [12:57:36]Write to MH i2c: E2 08 00 C6 13 80 11 00 00 00 00 00 00 53 [12:57:36]Write i2c OK [12:57:36]MH_I2C_Read... [12:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:36]Read from MH i2c: E2 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 17 00 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 17 00 C6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A6 [12:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [12:57:36]wFMCommunicate OK [12:57:36]requested_item fd.num is exist - process it [12:57:36]SAM_PROTO_GetFieldsCounters [12:57:36]wFMCommunicate request_size=4 [12:57:36]MH_SAM_APDU [12:57:36]CAPDU: 80 13 00 00 [12:57:36]Write to MH i2c: E2 08 00 C7 13 80 13 00 00 00 00 00 00 56 [12:57:36]Write i2c OK [12:57:36]MH_I2C_Read... [12:57:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:36]Read from MH i2c: E2 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 62 00 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 62 00 C7 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 23 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [12:57:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 23 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:36]wFMCommunicate OK [12:57:36]SAM_PROTO_GetFieldsCounters done [12:57:36]requested_item shift.num is exist - process it [12:57:36]requested_item shift.opened is exist - process it [12:57:36]req_shift_opened [12:57:36]FM_GetShiftState [12:57:36]SAM_PROTO_GetShiftState [12:57:36]wFMCommunicate request_size=4 [12:57:36]MH_SAM_APDU [12:57:36]CAPDU: 80 13 01 00 [12:57:36]Write to MH i2c: E2 08 00 C8 13 80 13 01 00 00 00 00 00 58 [12:57:36]Write i2c OK [12:57:36]MH_I2C_Read... [12:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:36]Read from MH i2c: E2 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 0E 00 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 0E 00 C8 13 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D0 [12:57:36]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [12:57:36]wFMCommunicate OK [12:57:36]SAM_PROTO_GetShiftState done [12:57:36]FM_GetShiftState done [12:57:36]req_shift_opened done [12:57:36]requested_item shift.open_date is exist - process it [12:57:36]req_shift_open_date [12:57:36]req_shift_open_date done [12:57:36]produce_requested_data done [12:57:36]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145699,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [12:57:36]process_action_free close_receipt [12:57:36]json_value_free [12:57:36]json_value_free done [12:57:36]process_json_proto returns [12:57:36]Send response to host [12:57:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145699,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [12:57:36]free response buf [12:57:36]execute_script done [12:57:36]execute_script returns [12:57:36]free content buf [12:57:36]Sock 9.Close socket [12:57:36]Sock 9.Thread stoped [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:38]accept exits with 7 [13:01:38]New connection [13:01:38]New thread 3066740068 created [13:01:38]Thread 3066596708 joined [13:01:38]Waiting for new connection... [13:01:38] Sock 7.Parse request [13:01:38]Sock 7.Check first char [13:01:38]Sock 7.First char is OK [13:01:38]request: POST /json_proto HTTP/1.0 [13:01:38]Method: POST [13:01:38]URL: /json_proto [13:01:38]Method is POST - this is cgi request [13:01:38]url: /json_proto [13:01:38]query_string will be loaded in cgi processing [13:01:38]execute_cgi json_proto POST (null) [13:01:38]execute_cgi path=json_proto method=POST [13:01:38]POST find Content-Length [13:01:38]Host: 172.17.40.195:8080 [13:01:38]Content-Length: 675 [13:01:38]Content-Type: application/json [13:01:38] [13:01:38]POST finish read [13:01:38]Found Content-Length = 675 [13:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.300, "sum" : 861.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 861.00, "total" : 861.00, "payments": [ { "type": 0, "sum" : 861.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:38]execute_script... [13:01: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)160455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.300, "sum" : 861.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 861.00, "total" : 861.00, "payments": [ { "type": 0, "sum" : 861.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:38]POST & json_proto [13:01:38]process_json_proto [13:01:38]json parsed OK: [13:01:38]protocol is kg_v1.0 [13:01:38]action value=close_receipt [13:01:38]process_action close_receipt [13:01:38]cmd_close_receipt [13:01:38]MH_GetDate [13:01:38]Write to MH i2c: F0 00 00 C9 13 CB [13:01:38]Write i2c OK [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: F0 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: F0 09 00 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: F0 09 00 C9 13 00 B4 39 1E 67 D5 8D 6C 64 78 [13:01:38]GetLastDocTimeStamp 1730033853 [13:01:38]current date 1730034100 [13:01:38]FM_GetShiftState [13:01:38]SAM_PROTO_GetShiftState [13:01:38]wFMCommunicate request_size=4 [13:01:38]MH_SAM_APDU [13:01:38]CAPDU: 80 13 01 00 [13:01:38]Write to MH i2c: E2 08 00 CA 13 80 13 01 00 00 00 00 00 5A [13:01:38]Write i2c OK [13:01:38]MH_I2C_Read... [13:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:38]Read from MH i2c: E2 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 0E 00 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 0E 00 CA 13 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D2 [13:01:38]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:01:38]wFMCommunicate OK [13:01:38]SAM_PROTO_GetShiftState done [13:01:38]FM_GetShiftState done [13:01:38]opened in 1729988959 [13:01:38]opened+sec_in_day 1730075359 [13:01:38]quantity*price = 86106 [13:01:38]sum+1 = 86107 [13:01:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 861.00 Внесено: 861.00 СДАЧА: 0.00 НСП 1% : 7.62 НДС 12% : 91.44 Наличными: 861.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 123 27.10.2024 13:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145700 ФПД: 222846886323069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130140&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145700&fm=222846886323069&tin=02508201610067®Number=0000000000091683&sum=86100 [13:01:39]StoreToDocumentArchive [13:01:39]shift 545 fd 145700 [13:01:39]save to /storage/0545/doc_00145700 [13:01:39]save last doc name /storage/0545/doc_00145700 to /storage/kkm_last_doc_name [13:01:39]save OK [13:01:39]Clear old archive folders... [13:01:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:01:39]tlvbuf is B6E8D550 [13:01:39]SAM_PROTO_ClearQueue [13:01:39]wFMCommunicate request_size=4 [13:01:39]MH_SAM_APDU [13:01:39]CAPDU: 80 09 00 00 [13:01:39]Write to MH i2c: E2 08 00 D7 13 80 09 00 00 00 00 00 00 5C [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:39]Read from MH i2c: E2 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 03 00 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 03 00 D7 13 00 90 00 5E [13:01:39]RAPDU: 90 00 [13:01:39]wFMCommunicate OK [13:01:39]SAM_PROTO_ClearQueue done [13:01:39]KKMCreateOFDPacket [13:01:39]OFDProtocolAddRootSTLVToBuf [13:01:39]FM_MakeSignedData [13:01:39]FM_MakeSignedData [13:01:39]SAM_PROTO_SignData [13:01:39]wFMCommunicate request_size=4 [13:01:39]MH_SAM_APDU [13:01:39]CAPDU: 80 0D 01 02 [13:01:39]Write to MH i2c: E2 08 00 D8 13 80 0D 01 02 00 00 00 00 64 [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:39]Read from MH i2c: E2 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 03 00 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 03 00 D8 13 00 90 00 5F [13:01:39]RAPDU: 90 00 [13:01:39]wFMCommunicate OK [13:01:39]wFMCommunicate request_size=255 [13:01:39]MH_SAM_APDU [13:01:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 24 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5A 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 23 00 00 00 00 07 04 06 00 54 50 01 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 B4 39 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 24 39 02 00 35 04 06 00 CA AD 95 7F [13:01:39]Write to MH i2c: E2 02 01 D9 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 24 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5A 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 23 00 00 00 00 07 04 06 00 54 50 01 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 B4 39 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 24 39 02 00 35 04 06 00 CA AD 95 7F 00 00 B7 [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 03 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 03 00 D9 13 00 90 00 60 [13:01:40]RAPDU: 90 00 [13:01:40]wFMCommunicate OK [13:01:40]wFMCommunicate request_size=7 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 0D 02 02 02 A3 7D [13:01:40]Write to MH i2c: E2 0A 00 DA 13 80 0D 02 02 02 00 A3 7D 00 00 8B [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 03 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 03 00 DA 13 00 90 00 61 [13:01:40]RAPDU: 90 00 [13:01:40]wFMCommunicate OK [13:01:40]wFMCommunicate request_size=4 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 0D 03 02 [13:01:40]Write to MH i2c: E2 08 00 DB 13 80 0D 03 02 00 00 00 00 69 [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 0B 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 0B 00 DB 13 00 7D CA 87 43 EB 70 98 4D 90 00 BB [13:01:40]RAPDU: 7D CA 87 43 EB 70 98 4D 90 00 [13:01:40]wFMCommunicate OK [13:01:40]SAM_PROTO_SignData done [13:01:40]FM_MakeSignedData done [13:01:40]CreateOFDProtocolMessage [13:01:40]wFMCommunicate request_size=4 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 11 00 00 [13:01:40]Write to MH i2c: E2 08 00 DC 13 80 11 00 00 00 00 00 00 69 [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 17 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 17 00 DC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BC [13:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:01:40]wFMCommunicate OK [13:01:40]CreateOFDProtocolMessage done [13:01:40]OFDSenderStorePacket 145700 [13:01:40]StoreOFDPacket docnum=145700 [13:01:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 53 8F 04 01 70 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 32 FF 03 08 00 03 24 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5A 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 23 00 00 00 00 07 04 06 00 54 50 01 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 B4 39 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 24 39 02 00 35 04 06 00 CA AD 95 7F A3 7D 7D CA 87 43 EB 70 98 4D [13:01:40]CheckFolder [13:01:40]dirname=/storage/ofd_packets [13:01:40]CheckFolder done [13:01:40]ProducePacketName [13:01:40]name=ofd_packets/00145700 [13:01:40]NVStorageSaveData ofd_packets/00145700 [13:01:40]File name is /storage/ofd_packets/00145700 [13:01:40]Write 298 bytes [13:01:40]NVStorageSaveData done [13:01:40]OFDSenderStorePacket done [13:01:40]KKMCreateOFDPacket done [13:01:40]NVStorageSaveData kkm_last_timestamp [13:01:40]File name is /storage/kkm_last_timestamp [13:01:40]Write 4 bytes [13:01:40]NVStorageSaveData done [13:01:40]ExternCall_PrintAddStr [13:01:40]wPrintStart [13:01:40]Write to MH i2c: 01 00 00 DD 13 F0 [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 07 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 07 00 DD 13 00 00 00 00 00 FF 0F 05 [13:01:40]RasterBufferAndPrint [13:01:40]line Счет N : (1)160455 [13:01:40]line ИНН: 02508201610067 [13:01:40]line Контрольно-Кассовый Чек [13:01:40]line ПРОДАЖА [13:01:40]line ТРК (МРК, ГНК) : 21 [13:01:40]line Товар: 2710194210 [13:01:40]line ДТ-К-2 [13:01:40]line 11.300 * 76.20 [13:01:40]line = 861.06 [13:01:40]line НДС 12% НСП 1% [13:01:40]line > о реализуемом товаре [13:01:40]line ОКРУГЛЕНИЕ: -0.06 [13:01:40]line ИТОГО: 861.00 [13:01:40]line Внесено: 861.00 [13:01:40]line СДАЧА: 0.00 [13:01:40]line НСП 1% : 7.62 [13:01:40]line НДС 12% : 91.44 [13:01:40]line Наличными: 861.00 [13:01:40]line Безнал.: 0.00 [13:01:40]line Место: АЗС № 126 "Партнер Нефть" [13:01:40]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:01:40]line СНО: Общий режим [13:01:40]line Чек 123 27.10.2024 13:01 [13:01:40]line Смена: 545 ФФД: 1.0 [13:01:40]line ЗНМ: 0300000085 [13:01:40]line РНМ: 0000000000091683 [13:01:40]line Версия ККМ: 001 [13:01:40]line ФМ: 0000000000871745 [13:01:40]line ФД: 145700 [13:01:40]line ФПД: 222846886323069 [13:01:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130140&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145700&fm=222846886323069&tin=02508201610067®Number=0000000000091683&sum=86100 [13:01:40]OFD Sender: Processing packet 145700 [packets to send 206, broken 205] [13:01:40]ProducePacketName [13:01:40]name=ofd_packets/00145700 [13:01:40]OFD Sender: To server: pG, [13:01:40]CommunicateWithHost lk.salyk.kg:30040 [13:01:40]ConnectInit lk.salyk.kg [13:01:40]written 0, free lines is 4095 [13:01:40]Connected sock=10 [13:01:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 53 8F 04 01 70 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 32 FF 03 08 00 03 24 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5A 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 23 00 00 00 00 07 04 06 00 54 50 01 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 B4 39 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 24 39 02 00 35 04 06 00 CA AD 95 7F A3 7D 7D CA 87 43 EB 70 98 4D [13:01:40]Write to MH i2c: 01 00 00 08 14 1C [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 07 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 07 00 08 14 00 00 00 00 00 B2 0C E1 [13:01:40]RasterBufferAndPrint [13:01:40]line [13:01:40]line [13:01:40]line [13:01:40]line [13:01:40]line [13:01:40]written 0, free lines is 3257 [13:01:41]MH_Cut [13:01:41]Write to MH i2c: D1 01 00 0F 14 01 F5 [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: D1 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: D1 01 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: D1 01 00 0F 14 00 F4 [13:01:41]Write to MH i2c: 01 00 00 10 14 24 [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 BD EA 47 00 EC 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 24 39 02 00 F4 03 04 00 E1 DE 1D 67 B6 04 01 00 00 78 A9 A6 FE 51 64 A6 E1 [13:01:41]CommunicateWithHost err = 0 [13:01:41]CheckOFDResponse [13:01:41]1017 (14) - 77093643461234 [13:01:41]1041 (16) - 0000000000871745 [13:01:41]1040 (4) - 145700 [13:01:41]1012 (4) - 27.10.2024 06:34 [13:01:41]1206 (1) - 0 [13:01:41]OFD Sender: Remove packet 145700 [13:01:41]ProducePacketName [13:01:41]name=ofd_packets/00145700 [13:01:41]NVStorageDeleteData [13:01:41]OFD Sender: No OFD packet to send [13:01:41]*** Cut start [13:01:41]*** Partial cut [13:01:41]*** CUTSNS_PIN = 1 [13:01:41]*** CUTSNS_PIN = 0 [13:01:42]*** Brake cut motor [13:01:42]Read from MH i2c: 01 [13:01:42]MH_I2C_Read... [13:01:42]*** Stop cut motor [13:01:42]*** Cut end [13:01:42]Read from MH i2c: 01 07 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: 01 07 00 10 14 00 00 00 00 00 FF 0F 39 [13:01:42]process_action close_receipt done [13:01:42]requested_data is exist [13:01:42]produce_requested_data [13:01:42]requested_item fm.sn is exist - process it [13:01:42]wFMCommunicate request_size=4 [13:01:42]MH_SAM_APDU [13:01:42]CAPDU: 80 11 00 00 [13:01:42]Write to MH i2c: E2 08 00 11 14 80 11 00 00 00 00 00 00 9F [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:42]Read from MH i2c: E2 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 17 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 17 00 11 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F2 [13:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:01:42]wFMCommunicate OK [13:01:42]requested_item fd.num is exist - process it [13:01:42]SAM_PROTO_GetFieldsCounters [13:01:42]wFMCommunicate request_size=4 [13:01:42]MH_SAM_APDU [13:01:42]CAPDU: 80 13 00 00 [13:01:42]Write to MH i2c: E2 08 00 12 14 80 13 00 00 00 00 00 00 A2 [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:42]Read from MH i2c: E2 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 62 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 62 00 12 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 24 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [13:01:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 24 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:42]wFMCommunicate OK [13:01:42]SAM_PROTO_GetFieldsCounters done [13:01:42]requested_item shift.num is exist - process it [13:01:42]requested_item shift.opened is exist - process it [13:01:42]req_shift_opened [13:01:42]FM_GetShiftState [13:01:42]SAM_PROTO_GetShiftState [13:01:42]wFMCommunicate request_size=4 [13:01:42]MH_SAM_APDU [13:01:42]CAPDU: 80 13 01 00 [13:01:42]Write to MH i2c: E2 08 00 13 14 80 13 01 00 00 00 00 00 A4 [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:42]Read from MH i2c: E2 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 0E 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 0E 00 13 14 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1C [13:01:42]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:01:42]wFMCommunicate OK [13:01:42]SAM_PROTO_GetShiftState done [13:01:42]FM_GetShiftState done [13:01:42]req_shift_opened done [13:01:42]requested_item shift.open_date is exist - process it [13:01:42]req_shift_open_date [13:01:42]req_shift_open_date done [13:01:42]produce_requested_data done [13:01:42]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145700,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:01:42]process_action_free close_receipt [13:01:42]json_value_free [13:01:42]json_value_free done [13:01:42]process_json_proto returns [13:01:42]Send response to host [13:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145700,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:01:42]free response buf [13:01:42]execute_script done [13:01:42]execute_script returns [13:01:42]free content buf [13:01:42]Sock 7.Close socket [13:01:42]Sock 7.Thread stoped [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:25]accept exits with 9 [13:10:25]New connection [13:10:25]New thread 3066596708 created [13:10:25]Thread 3066740068 joined [13:10:25]Waiting for new connection... [13:10:25] Sock 9.Parse request [13:10:25]Sock 9.Check first char [13:10:25]Sock 9.First char is OK [13:10:25]request: POST /json_proto HTTP/1.0 [13:10:25]Method: POST [13:10:25]URL: /json_proto [13:10:25]Method is POST - this is cgi request [13:10:25]url: /json_proto [13:10:25]query_string will be loaded in cgi processing [13:10:25]execute_cgi json_proto POST (null) [13:10:25]execute_cgi path=json_proto method=POST [13:10:25]POST find Content-Length [13:10:25]Host: 172.17.40.195:8080 [13:10:25]Content-Length: 682 [13:10:25]Content-Type: application/json [13:10:25] [13:10:25]POST finish read [13:10:25]Found Content-Length = 682 [13:10:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:25]execute_script... [13:10: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)160457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:25]POST & json_proto [13:10:25]process_json_proto [13:10:25]json parsed OK: [13:10:25]protocol is kg_v1.0 [13:10:25]action value=close_receipt [13:10:25]process_action close_receipt [13:10:25]cmd_close_receipt [13:10:25]MH_GetDate [13:10:25]Write to MH i2c: F0 00 00 14 14 17 [13:10:25]Write i2c OK [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: F0 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: F0 09 00 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: F0 09 00 14 14 00 C3 3B 1E 67 D5 8D 6C 64 D5 [13:10:25]GetLastDocTimeStamp 1730034100 [13:10:25]current date 1730034627 [13:10:25]FM_GetShiftState [13:10:25]SAM_PROTO_GetShiftState [13:10:25]wFMCommunicate request_size=4 [13:10:25]MH_SAM_APDU [13:10:25]CAPDU: 80 13 01 00 [13:10:25]Write to MH i2c: E2 08 00 15 14 80 13 01 00 00 00 00 00 A6 [13:10:25]Write i2c OK [13:10:25]MH_I2C_Read... [13:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:25]Read from MH i2c: E2 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: E2 0E 00 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: E2 0E 00 15 14 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1E [13:10:25]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:10:25]wFMCommunicate OK [13:10:25]SAM_PROTO_GetShiftState done [13:10:25]FM_GetShiftState done [13:10:25]opened in 1729988959 [13:10:25]opened+sec_in_day 1730075359 [13:10:25]quantity*price = 100015 [13:10:25]sum+1 = 100017 [13:10:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 124 27.10.2024 13:10 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145701 ФПД: 194814061191824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131027&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145701&fm=194814061191824&tin=02508201610067®Number=0000000000091683&sum=100000 [13:10:26]StoreToDocumentArchive [13:10:26]shift 545 fd 145701 [13:10:26]save to /storage/0545/doc_00145701 [13:10:26]save last doc name /storage/0545/doc_00145701 to /storage/kkm_last_doc_name [13:10:26]save OK [13:10:26]Clear old archive folders... [13:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:26]tlvbuf is B6E8D0E0 [13:10:26]SAM_PROTO_ClearQueue [13:10:26]wFMCommunicate request_size=4 [13:10:26]MH_SAM_APDU [13:10:26]CAPDU: 80 09 00 00 [13:10:26]Write to MH i2c: E2 08 00 22 14 80 09 00 00 00 00 00 00 A8 [13:10:26]Write i2c OK [13:10:26]MH_I2C_Read... [13:10:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:27]Read from MH i2c: E2 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 03 00 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [13:10:27]RAPDU: 90 00 [13:10:27]wFMCommunicate OK [13:10:27]SAM_PROTO_ClearQueue done [13:10:27]KKMCreateOFDPacket [13:10:27]OFDProtocolAddRootSTLVToBuf [13:10:27]FM_MakeSignedData [13:10:27]FM_MakeSignedData [13:10:27]SAM_PROTO_SignData [13:10:27]wFMCommunicate request_size=4 [13:10:27]MH_SAM_APDU [13:10:27]CAPDU: 80 0D 01 02 [13:10:27]Write to MH i2c: E2 08 00 23 14 80 0D 01 02 00 00 00 00 B0 [13:10:27]Write i2c OK [13:10:27]MH_I2C_Read... [13:10:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:27]Read from MH i2c: E2 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 03 00 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [13:10:27]RAPDU: 90 00 [13:10:27]wFMCommunicate OK [13:10:27]wFMCommunicate request_size=255 [13:10:27]MH_SAM_APDU [13:10: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C3 3B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 25 39 02 00 35 04 06 00 B1 [13:10:27]Write to MH i2c: E2 02 01 24 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C3 3B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 25 39 02 00 35 04 06 00 B1 00 00 6B [13:10:27]Write i2c OK [13:10:27]MH_I2C_Read... [13:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:27]Read from MH i2c: E2 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 03 00 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 03 00 24 14 00 90 00 AC [13:10:27]RAPDU: 90 00 [13:10:27]wFMCommunicate OK [13:10:27]wFMCommunicate request_size=10 [13:10:27]MH_SAM_APDU [13:10:27]CAPDU: 80 0D 02 02 05 2E AE EA 22 90 [13:10:27]Write to MH i2c: E2 0D 00 25 14 80 0D 02 02 05 00 2E AE EA 22 90 00 00 35 [13:10:27]Write i2c OK [13:10:27]MH_I2C_Read... [13:10:27]OFD Sender: No OFD packet to send [13:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:27]Read from MH i2c: E2 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 03 00 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 03 00 25 14 00 90 00 AD [13:10:27]RAPDU: 90 00 [13:10:27]wFMCommunicate OK [13:10:27]wFMCommunicate request_size=4 [13:10:27]MH_SAM_APDU [13:10:27]CAPDU: 80 0D 03 02 [13:10:27]Write to MH i2c: E2 08 00 26 14 80 0D 03 02 00 00 00 00 B5 [13:10:27]Write i2c OK [13:10:27]MH_I2C_Read... [13:10:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:27]Read from MH i2c: E2 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 0B 00 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 0B 00 26 14 00 C5 93 78 DD 90 80 BE 4E 90 00 7F [13:10:27]RAPDU: C5 93 78 DD 90 80 BE 4E 90 00 [13:10:27]wFMCommunicate OK [13:10:27]SAM_PROTO_SignData done [13:10:27]FM_MakeSignedData done [13:10:27]CreateOFDProtocolMessage [13:10:27]wFMCommunicate request_size=4 [13:10:27]MH_SAM_APDU [13:10:27]CAPDU: 80 11 00 00 [13:10:27]Write to MH i2c: E2 08 00 27 14 80 11 00 00 00 00 00 00 B5 [13:10:27]Write i2c OK [13:10:27]MH_I2C_Read... [13:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:27]Read from MH i2c: E2 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 17 00 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: E2 17 00 27 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 08 [13:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:10:27]wFMCommunicate OK [13:10:27]CreateOFDProtocolMessage done [13:10:27]OFDSenderStorePacket 145701 [13:10:27]StoreOFDPacket docnum=145701 [13:10:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 2B 52 07 01 85 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C3 3B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 25 39 02 00 35 04 06 00 B1 2E AE EA 22 90 C5 93 78 DD 90 80 BE 4E [13:10:27]CheckFolder [13:10:27]dirname=/storage/ofd_packets [13:10:27]CheckFolder done [13:10:27]ProducePacketName [13:10:27]name=ofd_packets/00145701 [13:10:27]NVStorageSaveData ofd_packets/00145701 [13:10:27]File name is /storage/ofd_packets/00145701 [13:10:27]Write 301 bytes [13:10:27]NVStorageSaveData done [13:10:27]OFDSenderStorePacket done [13:10:27]KKMCreateOFDPacket done [13:10:27]NVStorageSaveData kkm_last_timestamp [13:10:27]File name is /storage/kkm_last_timestamp [13:10:27]Write 4 bytes [13:10:27]NVStorageSaveData done [13:10:27]ExternCall_PrintAddStr [13:10:27]wPrintStart [13:10:27]Write to MH i2c: 01 00 00 28 14 3C [13:10:27]Write i2c OK [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: 01 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: 01 07 00 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: 01 07 00 28 14 00 00 00 00 00 FF 0F 51 [13:10:27]RasterBufferAndPrint [13:10:27]line Счет N : (1)160457 [13:10:27]line ИНН: 02508201610067 [13:10:27]line Контрольно-Кассовый Чек [13:10:27]line ПРОДАЖА [13:10:27]line ТРК (МРК, ГНК) : 32 [13:10:27]line Товар: 2710124130 [13:10:27]line Аи-92-К-2 [13:10:27]line 14.950 * 66.90 [13:10:27]line = 1000.16 [13:10:27]line НДС 12% НСП 1% [13:10:27]line > о реализуемом товаре [13:10:27]line ОКРУГЛЕНИЕ: -0.16 [13:10:27]line ИТОГО: 1000.00 [13:10:27]line Внесено: 1000.00 [13:10:27]line СДАЧА: 0.00 [13:10:27]line НСП 1% : 8.85 [13:10:27]line НДС 12% : 106.21 [13:10:27]line Наличными: 1000.00 [13:10:27]line Безнал.: 0.00 [13:10:27]line Место: АЗС № 126 "Партнер Нефть" [13:10:27]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:10:27]line СНО: Общий режим [13:10:27]line Чек 124 27.10.2024 13:10 [13:10:27]line Смена: 545 ФФД: 1.0 [13:10:27]line ЗНМ: 0300000085 [13:10:27]line РНМ: 0000000000091683 [13:10:27]line Версия ККМ: 001 [13:10:27]line ФМ: 0000000000871745 [13:10:27]line ФД: 145701 [13:10:27]line ФПД: 194814061191824 [13:10:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131027&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145701&fm=194814061191824&tin=02508201610067®Number=0000000000091683&sum=100000 [13:10:27]OFD Sender: Processing packet 145701 [packets to send 206, broken 205] [13:10:27]ProducePacketName [13:10:27]name=ofd_packets/00145701 [13:10:27]OFD Sender: To server: pG, [13:10:27]CommunicateWithHost lk.salyk.kg:30040 [13:10:27]ConnectInit lk.salyk.kg [13:10:27]written 0, free lines is 4095 [13:10:28]Connected sock=10 [13:10:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 2B 52 07 01 85 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C3 3B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 25 39 02 00 35 04 06 00 B1 2E AE EA 22 90 C5 93 78 DD 90 80 BE 4E [13:10:28]Write to MH i2c: 01 00 00 53 14 67 [13:10:28]Write i2c OK [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: 01 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: 01 07 00 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: 01 07 00 53 14 00 00 00 00 00 B2 0C 2C [13:10:28]RasterBufferAndPrint [13:10:28]line [13:10:28]line [13:10:28]line [13:10:28]line [13:10:28]line [13:10:28]written 0, free lines is 3257 [13:10:28]MH_Cut [13:10:28]Write to MH i2c: D1 01 00 5A 14 01 40 [13:10:28]Write i2c OK [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: D1 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: D1 01 00 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: D1 01 00 5A 14 00 3F [13:10:28]Write to MH i2c: 01 00 00 5B 14 6F [13:10:28]Write i2c OK [13:10:28]MH_I2C_Read... [13:10:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 18 1C 47 00 F2 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 25 39 02 00 F4 03 04 00 F1 E0 1D 67 B6 04 01 00 00 2E 6F 57 A9 F2 21 55 04 [13:10:28]CommunicateWithHost err = 0 [13:10:28]CheckOFDResponse [13:10:28]1017 (14) - 77093643461234 [13:10:28]1041 (16) - 0000000000871745 [13:10:28]1040 (4) - 145701 [13:10:28]1012 (4) - 27.10.2024 06:42 [13:10:28]1206 (1) - 0 [13:10:28]OFD Sender: Remove packet 145701 [13:10:28]ProducePacketName [13:10:28]name=ofd_packets/00145701 [13:10:28]NVStorageDeleteData [13:10:28]OFD Sender: No OFD packet to send [13:10:29]*** Cut start [13:10:29]*** Partial cut [13:10:29]*** CUTSNS_PIN = 1 [13:10:29]*** CUTSNS_PIN = 0 [13:10:29]*** Brake cut motor [13:10:29]Read from MH i2c: 01 [13:10:29]MH_I2C_Read... [13:10:29]*** Stop cut motor [13:10:29]*** Cut end [13:10:29]Read from MH i2c: 01 07 00 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: 01 07 00 5B 14 00 00 00 00 00 FF 0F 84 [13:10:29]process_action close_receipt done [13:10:29]requested_data is exist [13:10:29]produce_requested_data [13:10:29]requested_item fm.sn is exist - process it [13:10:29]wFMCommunicate request_size=4 [13:10:29]MH_SAM_APDU [13:10:29]CAPDU: 80 11 00 00 [13:10:29]Write to MH i2c: E2 08 00 5C 14 80 11 00 00 00 00 00 00 EA [13:10:29]Write i2c OK [13:10:29]MH_I2C_Read... [13:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:29]Read from MH i2c: E2 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 17 00 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 17 00 5C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3D [13:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:10:29]wFMCommunicate OK [13:10:29]requested_item fd.num is exist - process it [13:10:29]SAM_PROTO_GetFieldsCounters [13:10:29]wFMCommunicate request_size=4 [13:10:29]MH_SAM_APDU [13:10:29]CAPDU: 80 13 00 00 [13:10:29]Write to MH i2c: E2 08 00 5D 14 80 13 00 00 00 00 00 00 ED [13:10:29]Write i2c OK [13:10:29]MH_I2C_Read... [13:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:29]Read from MH i2c: E2 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 62 00 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 62 00 5D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 25 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [13:10:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 25 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:29]wFMCommunicate OK [13:10:29]SAM_PROTO_GetFieldsCounters done [13:10:29]requested_item shift.num is exist - process it [13:10:29]requested_item shift.opened is exist - process it [13:10:29]req_shift_opened [13:10:29]FM_GetShiftState [13:10:29]SAM_PROTO_GetShiftState [13:10:29]wFMCommunicate request_size=4 [13:10:29]MH_SAM_APDU [13:10:29]CAPDU: 80 13 01 00 [13:10:29]Write to MH i2c: E2 08 00 5E 14 80 13 01 00 00 00 00 00 EF [13:10:29]Write i2c OK [13:10:29]MH_I2C_Read... [13:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:29]Read from MH i2c: E2 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 0E 00 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 0E 00 5E 14 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 67 [13:10:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:10:29]wFMCommunicate OK [13:10:29]SAM_PROTO_GetShiftState done [13:10:29]FM_GetShiftState done [13:10:29]req_shift_opened done [13:10:29]requested_item shift.open_date is exist - process it [13:10:29]req_shift_open_date [13:10:29]req_shift_open_date done [13:10:29]produce_requested_data done [13:10:29]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145701,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:10:29]process_action_free close_receipt [13:10:29]json_value_free [13:10:29]json_value_free done [13:10:29]process_json_proto returns [13:10:29]Send response to host [13:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145701,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:10:29]free response buf [13:10:29]execute_script done [13:10:29]execute_script returns [13:10:29]free content buf [13:10:29]Sock 9.Close socket [13:10:29]Sock 9.Thread stoped [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:32]accept exits with 7 [13:11:32]New connection [13:11:32]New thread 3066740068 created [13:11:32]Thread 3066596708 joined [13:11:32]Waiting for new connection... [13:11:32] Sock 7.Parse request [13:11:32]Sock 7.Check first char [13:11:32]Sock 7.First char is OK [13:11:32]request: POST /json_proto HTTP/1.0 [13:11:32]Method: POST [13:11:32]URL: /json_proto [13:11:32]Method is POST - this is cgi request [13:11:32]url: /json_proto [13:11:32]query_string will be loaded in cgi processing [13:11:32]execute_cgi json_proto POST (null) [13:11:32]execute_cgi path=json_proto method=POST [13:11:32]POST find Content-Length [13:11:32]Host: 172.17.40.195:8080 [13:11:32]Content-Length: 688 [13:11:32]Content-Type: application/json [13:11:32] [13:11:32]POST finish read [13:11:32]Found Content-Length = 688 [13:11:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 22.740, "sum" : 1755.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1755.00, "payments": [ { "type": 0, "sum" : 1755.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:32]execute_script... [13:11: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)160456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 22.740, "sum" : 1755.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1755.00, "payments": [ { "type": 0, "sum" : 1755.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:32]POST & json_proto [13:11:32]process_json_proto [13:11:32]json parsed OK: [13:11:32]protocol is kg_v1.0 [13:11:32]action value=close_receipt [13:11:32]process_action close_receipt [13:11:32]cmd_close_receipt [13:11:32]MH_GetDate [13:11:32]Write to MH i2c: F0 00 00 5F 14 62 [13:11:32]Write i2c OK [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: F0 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: F0 09 00 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: F0 09 00 5F 14 00 06 3C 1E 67 D5 8D 6C 64 64 [13:11:32]GetLastDocTimeStamp 1730034627 [13:11:32]current date 1730034694 [13:11:32]FM_GetShiftState [13:11:32]SAM_PROTO_GetShiftState [13:11:32]wFMCommunicate request_size=4 [13:11:32]MH_SAM_APDU [13:11:32]CAPDU: 80 13 01 00 [13:11:32]Write to MH i2c: E2 08 00 60 14 80 13 01 00 00 00 00 00 F1 [13:11:32]Write i2c OK [13:11:32]MH_I2C_Read... [13:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:32]Read from MH i2c: E2 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: E2 0E 00 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: E2 0E 00 60 14 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 69 [13:11:32]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:11:32]wFMCommunicate OK [13:11:32]SAM_PROTO_GetShiftState done [13:11:32]FM_GetShiftState done [13:11:32]opened in 1729988959 [13:11:32]opened+sec_in_day 1730075359 [13:11:32]quantity*price = 175552 [13:11:32]sum+1 = 175554 [13:11:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 1755.00 Внесено: 4000.00 СДАЧА: 2245.00 НСП 1% : 15.54 НДС 12% : 186.43 Наличными: 1755.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 125 27.10.2024 13:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145702 ФПД: 106744372645888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131134&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145702&fm=106744372645888&tin=02508201610067®Number=0000000000091683&sum=175500 [13:11:33]StoreToDocumentArchive [13:11:33]shift 545 fd 145702 [13:11:33]save to /storage/0545/doc_00145702 [13:11:33]save last doc name /storage/0545/doc_00145702 to /storage/kkm_last_doc_name [13:11:33]save OK [13:11:33]Clear old archive folders... [13:11:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:11:33]tlvbuf is B6F244D0 [13:11:33]SAM_PROTO_ClearQueue [13:11:33]wFMCommunicate request_size=4 [13:11:33]MH_SAM_APDU [13:11:33]CAPDU: 80 09 00 00 [13:11:33]Write to MH i2c: E2 08 00 6D 14 80 09 00 00 00 00 00 00 F3 [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:33]OFD Sender: No OFD packet to send [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 6D 14 00 90 00 F5 [13:11:34]RAPDU: 90 00 [13:11:34]wFMCommunicate OK [13:11:34]SAM_PROTO_ClearQueue done [13:11:34]KKMCreateOFDPacket [13:11:34]OFDProtocolAddRootSTLVToBuf [13:11:34]FM_MakeSignedData [13:11:34]FM_MakeSignedData [13:11:34]SAM_PROTO_SignData [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 0D 01 02 [13:11:34]Write to MH i2c: E2 08 00 6E 14 80 0D 01 02 00 00 00 00 FB [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 6E 14 00 90 00 F6 [13:11:34]RAPDU: 90 00 [13:11:34]wFMCommunicate OK [13:11:34]wFMCommunicate request_size=255 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D4 58 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C1 AD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C AD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 48 00 00 00 00 07 04 06 00 8C AD 02 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 06 3C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 26 39 02 [13:11:34]Write to MH i2c: E2 02 01 6F 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D4 58 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C1 AD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C AD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 48 00 00 00 00 07 04 06 00 8C AD 02 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 06 3C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 26 39 02 00 00 66 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 6F 14 00 90 00 F7 [13:11:34]RAPDU: 90 00 [13:11:34]wFMCommunicate OK [13:11:34]wFMCommunicate request_size=16 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 61 15 5C 69 D0 00 [13:11:34]Write to MH i2c: E2 13 00 70 14 80 0D 02 02 0B 00 00 35 04 06 00 61 15 5C 69 D0 00 00 00 5E [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 70 14 00 90 00 F8 [13:11:34]RAPDU: 90 00 [13:11:34]wFMCommunicate OK [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 0D 03 02 [13:11:34]Write to MH i2c: E2 08 00 71 14 80 0D 03 02 00 00 00 00 00 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 0B 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 0B 00 71 14 00 B2 59 1F A5 6A 2B 45 89 90 00 33 [13:11:34]RAPDU: B2 59 1F A5 6A 2B 45 89 90 00 [13:11:34]wFMCommunicate OK [13:11:34]SAM_PROTO_SignData done [13:11:34]FM_MakeSignedData done [13:11:34]CreateOFDProtocolMessage [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 11 00 00 [13:11:34]Write to MH i2c: E2 08 00 72 14 80 11 00 00 00 00 00 00 00 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 17 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 17 00 72 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 53 [13:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:11:34]wFMCommunicate OK [13:11:34]CreateOFDProtocolMessage done [13:11:34]OFDSenderStorePacket 145702 [13:11:34]StoreOFDPacket docnum=145702 [13:11:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 9C 41 0D 01 D3 D6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D4 58 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C1 AD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C AD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 48 00 00 00 00 07 04 06 00 8C AD 02 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 06 3C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 26 39 02 00 35 04 06 00 61 15 5C 69 D0 00 B2 59 1F A5 6A 2B 45 89 [13:11:34]CheckFolder [13:11:34]dirname=/storage/ofd_packets [13:11:34]CheckFolder done [13:11:34]ProducePacketName [13:11:34]name=ofd_packets/00145702 [13:11:34]NVStorageSaveData ofd_packets/00145702 [13:11:34]File name is /storage/ofd_packets/00145702 [13:11:34]Write 307 bytes [13:11:34]NVStorageSaveData done [13:11:34]OFDSenderStorePacket done [13:11:34]KKMCreateOFDPacket done [13:11:34]NVStorageSaveData kkm_last_timestamp [13:11:34]File name is /storage/kkm_last_timestamp [13:11:34]Write 4 bytes [13:11:34]NVStorageSaveData done [13:11:34]ExternCall_PrintAddStr [13:11:34]wPrintStart [13:11:34]Write to MH i2c: 01 00 00 73 14 87 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: 01 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: 01 07 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: 01 07 00 73 14 00 00 00 00 00 FF 0F 9C [13:11:34]RasterBufferAndPrint [13:11:34]line Счет N : (1)160456 [13:11:34]line ИНН: 02508201610067 [13:11:34]line Контрольно-Кассовый Чек [13:11:34]line ПРОДАЖА [13:11:34]line ТРК (МРК, ГНК) : 41 [13:11:34]line Товар: 2710194240 [13:11:34]line D-Energy Дт-К-2 [13:11:34]line 22.740 * 77.20 [13:11:34]line = 1755.53 [13:11:34]line НДС 12% НСП 1% [13:11:34]line > о реализуемом товаре [13:11:34]line ОКРУГЛЕНИЕ: -0.53 [13:11:34]line ИТОГО: 1755.00 [13:11:34]line Внесено: 4000.00 [13:11:34]line СДАЧА: 2245.00 [13:11:34]line НСП 1% : 15.54 [13:11:34]line НДС 12% : 186.43 [13:11:34]line Наличными: 1755.00 [13:11:34]line Безнал.: 0.00 [13:11:34]line Место: АЗС № 126 "Партнер Нефть" [13:11:34]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:11:34]line СНО: Общий режим [13:11:34]line Чек 125 27.10.2024 13:11 [13:11:34]line Смена: 545 ФФД: 1.0 [13:11:34]line ЗНМ: 0300000085 [13:11:34]line РНМ: 0000000000091683 [13:11:34]line Версия ККМ: 001 [13:11:34]line ФМ: 0000000000871745 [13:11:34]line ФД: 145702 [13:11:34]line ФПД: 106744372645888 [13:11:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131134&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145702&fm=106744372645888&tin=02508201610067®Number=0000000000091683&sum=175500 [13:11:34]OFD Sender: Processing packet 145702 [packets to send 206, broken 205] [13:11:34]ProducePacketName [13:11:34]name=ofd_packets/00145702 [13:11:34]OFD Sender: To server: pG, [13:11:34]CommunicateWithHost lk.salyk.kg:30040 [13:11:34]ConnectInit lk.salyk.kg [13:11:34]written 0, free lines is 4095 [13:11:35]Connected sock=11 [13:11:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 9C 41 0D 01 D3 D6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D4 58 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C1 AD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C AD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 48 00 00 00 00 07 04 06 00 8C AD 02 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 06 3C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 26 39 02 00 35 04 06 00 61 15 5C 69 D0 00 B2 59 1F A5 6A 2B 45 89 [13:11:35]Write to MH i2c: 01 00 00 9E 14 B2 [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 07 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 07 00 9E 14 00 00 00 00 00 B7 0C 7C [13:11:35]RasterBufferAndPrint [13:11:35]line [13:11:35]line [13:11:35]line [13:11:35]line [13:11:35]line [13:11:35]written 0, free lines is 3259 [13:11:35]MH_Cut [13:11:35]Write to MH i2c: D1 01 00 A5 14 01 8B [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: D1 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: D1 01 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: D1 01 00 A5 14 00 8A [13:11:35]Write to MH i2c: 01 00 00 A6 14 BA [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A9 A7 47 00 6F 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 26 39 02 00 F4 03 04 00 34 E1 1D 67 B6 04 01 00 00 95 A5 FA 72 33 BC B9 1E [13:11:35]CommunicateWithHost err = 0 [13:11:35]CheckOFDResponse [13:11:35]1017 (14) - 77093643461234 [13:11:35]1041 (16) - 0000000000871745 [13:11:35]1040 (4) - 145702 [13:11:35]1012 (4) - 27.10.2024 06:44 [13:11:35]1206 (1) - 0 [13:11:35]OFD Sender: Remove packet 145702 [13:11:35]ProducePacketName [13:11:35]name=ofd_packets/00145702 [13:11:35]NVStorageDeleteData [13:11:35]OFD Sender: No OFD packet to send [13:11:36]*** Cut start [13:11:36]*** Partial cut [13:11:36]*** CUTSNS_PIN = 1 [13:11:36]*** CUTSNS_PIN = 0 [13:11:36]*** Brake cut motor [13:11:36]Read from MH i2c: 01 [13:11:36]MH_I2C_Read... [13:11:36]*** Stop cut motor [13:11:36]*** Cut end [13:11:36]Read from MH i2c: 01 07 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: 01 07 00 A6 14 00 00 00 00 00 FF 0F CF [13:11:36]process_action close_receipt done [13:11:36]requested_data is exist [13:11:36]produce_requested_data [13:11:36]requested_item fm.sn is exist - process it [13:11:36]wFMCommunicate request_size=4 [13:11:36]MH_SAM_APDU [13:11:36]CAPDU: 80 11 00 00 [13:11:36]Write to MH i2c: E2 08 00 A7 14 80 11 00 00 00 00 00 00 35 [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:36]Read from MH i2c: E2 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 17 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 17 00 A7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 88 [13:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:11:36]wFMCommunicate OK [13:11:36]requested_item fd.num is exist - process it [13:11:36]SAM_PROTO_GetFieldsCounters [13:11:36]wFMCommunicate request_size=4 [13:11:36]MH_SAM_APDU [13:11:36]CAPDU: 80 13 00 00 [13:11:36]Write to MH i2c: E2 08 00 A8 14 80 13 00 00 00 00 00 00 38 [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:36]Read from MH i2c: E2 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 62 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 62 00 A8 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 26 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [13:11:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 26 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:36]wFMCommunicate OK [13:11:36]SAM_PROTO_GetFieldsCounters done [13:11:36]requested_item shift.num is exist - process it [13:11:36]requested_item shift.opened is exist - process it [13:11:36]req_shift_opened [13:11:36]FM_GetShiftState [13:11:36]SAM_PROTO_GetShiftState [13:11:36]wFMCommunicate request_size=4 [13:11:36]MH_SAM_APDU [13:11:36]CAPDU: 80 13 01 00 [13:11:36]Write to MH i2c: E2 08 00 A9 14 80 13 01 00 00 00 00 00 3A [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:36]Read from MH i2c: E2 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 0E 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 0E 00 A9 14 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B2 [13:11:36]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:11:36]wFMCommunicate OK [13:11:36]SAM_PROTO_GetShiftState done [13:11:36]FM_GetShiftState done [13:11:36]req_shift_opened done [13:11:36]requested_item shift.open_date is exist - process it [13:11:36]req_shift_open_date [13:11:36]req_shift_open_date done [13:11:36]produce_requested_data done [13:11:36]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145702,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:11:36]process_action_free close_receipt [13:11:36]json_value_free [13:11:36]json_value_free done [13:11:36]process_json_proto returns [13:11:36]Send response to host [13:11:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145702,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:11:36]free response buf [13:11:36]execute_script done [13:11:36]execute_script returns [13:11:36]free content buf [13:11:36]Sock 7.Close socket [13:11:36]Sock 7.Thread stoped [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:27]accept exits with 9 [13:15:27]New connection [13:15:27]New thread 3066596708 created [13:15:27]Thread 3066740068 joined [13:15:27]Waiting for new connection... [13:15:27] Sock 9.Parse request [13:15:27]Sock 9.Check first char [13:15:27]Sock 9.First char is OK [13:15:27]request: POST /json_proto HTTP/1.0 [13:15:27]Method: POST [13:15:27]URL: /json_proto [13:15:27]Method is POST - this is cgi request [13:15:27]url: /json_proto [13:15:27]query_string will be loaded in cgi processing [13:15:27]execute_cgi json_proto POST (null) [13:15:27]execute_cgi path=json_proto method=POST [13:15:27]POST find Content-Length [13:15:27]Host: 172.17.40.195:8080 [13:15:27]Content-Length: 984 [13:15:27]Content-Type: application/json [13:15:27] [13:15:27]POST finish read [13:15:27]Found Content-Length = 984 [13:15:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 45.530, "sum" : 3000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 45.53 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:27]execute_script... [13:15:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 45.530, "sum" : 3000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 45.53 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:27]POST & json_proto [13:15:27]process_json_proto [13:15:27]json parsed OK: [13:15:27]protocol is kg_v1.0 [13:15:27]action value=close_receipt [13:15:27]process_action close_receipt [13:15:27]cmd_close_receipt [13:15:27]MH_GetDate [13:15:27]Write to MH i2c: F0 00 00 AA 14 AD [13:15:27]Write i2c OK [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: F0 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: F0 09 00 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: F0 09 00 AA 14 00 F1 3C 1E 67 D5 8D 6C 64 9A [13:15:27]GetLastDocTimeStamp 1730034694 [13:15:27]current date 1730034929 [13:15:27]FM_GetShiftState [13:15:27]SAM_PROTO_GetShiftState [13:15:27]wFMCommunicate request_size=4 [13:15:27]MH_SAM_APDU [13:15:27]CAPDU: 80 13 01 00 [13:15:27]Write to MH i2c: E2 08 00 AB 14 80 13 01 00 00 00 00 00 3C [13:15:27]Write i2c OK [13:15:27]MH_I2C_Read... [13:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:27]Read from MH i2c: E2 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: E2 0E 00 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: E2 0E 00 AB 14 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B4 [13:15:27]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:15:27]wFMCommunicate OK [13:15:27]SAM_PROTO_GetShiftState done [13:15:27]FM_GetShiftState done [13:15:27]opened in 1729988959 [13:15:27]opened+sec_in_day 1730075359 [13:15:27]quantity*price = 300042 [13:15:27]sum+1 = 300044 [13:15:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 126 27.10.2024 13:15 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-92 номер 126 сэкономлено 45.53 сом ФМ: 0000000000871745 ФД: 145703 ФПД: 243398286438152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131529&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145703&fm=243398286438152&tin=02508201610067®Number=0000000000091683&sum=300000 [13:15:28]StoreToDocumentArchive [13:15:28]shift 545 fd 145703 [13:15:28]save to /storage/0545/doc_00145703 [13:15:28]save last doc name /storage/0545/doc_00145703 to /storage/kkm_last_doc_name [13:15:28]save OK [13:15:28]Clear old archive folders... [13:15:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:28]tlvbuf is B6E8D260 [13:15:28]SAM_PROTO_ClearQueue [13:15:28]wFMCommunicate request_size=4 [13:15:28]MH_SAM_APDU [13:15:28]CAPDU: 80 09 00 00 [13:15:28]Write to MH i2c: E2 08 00 B8 14 80 09 00 00 00 00 00 00 3E [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:28]Read from MH i2c: E2 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 B8 14 00 90 00 40 [13:15:28]RAPDU: 90 00 [13:15:28]wFMCommunicate OK [13:15:28]SAM_PROTO_ClearQueue done [13:15:28]KKMCreateOFDPacket [13:15:28]OFDProtocolAddRootSTLVToBuf [13:15:28]FM_MakeSignedData [13:15:28]FM_MakeSignedData [13:15:28]SAM_PROTO_SignData [13:15:28]wFMCommunicate request_size=4 [13:15:28]MH_SAM_APDU [13:15:28]CAPDU: 80 0D 01 02 [13:15:28]Write to MH i2c: E2 08 00 B9 14 80 0D 01 02 00 00 00 00 46 [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:28]Read from MH i2c: E2 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 03 00 B9 14 00 90 00 41 [13:15:28]RAPDU: 90 00 [13:15:28]wFMCommunicate OK [13:15:28]wFMCommunicate request_size=255 [13:15:28]MH_SAM_APDU [13:15:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA B1 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0B 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 3C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 27 39 02 00 35 04 06 00 DD [13:15:28]Write to MH i2c: E2 02 01 BA 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA B1 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0B 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 3C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 27 39 02 00 35 04 06 00 DD 00 00 30 [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:29]Read from MH i2c: E2 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 03 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 03 00 BA 14 00 90 00 42 [13:15:29]RAPDU: 90 00 [13:15:29]wFMCommunicate OK [13:15:29]wFMCommunicate request_size=10 [13:15:29]MH_SAM_APDU [13:15:29]CAPDU: 80 0D 02 02 05 5E 94 66 EF 08 [13:15:29]Write to MH i2c: E2 0D 00 BB 14 80 0D 02 02 05 00 5E 94 66 EF 08 00 00 A2 [13:15:29]Write i2c OK [13:15:29]MH_I2C_Read... [13:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:29]Read from MH i2c: E2 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 03 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 03 00 BB 14 00 90 00 43 [13:15:29]RAPDU: 90 00 [13:15:29]wFMCommunicate OK [13:15:29]wFMCommunicate request_size=4 [13:15:29]MH_SAM_APDU [13:15:29]CAPDU: 80 0D 03 02 [13:15:29]Write to MH i2c: E2 08 00 BC 14 80 0D 03 02 00 00 00 00 4B [13:15:29]Write i2c OK [13:15:29]MH_I2C_Read... [13:15:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:29]Read from MH i2c: E2 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 0B 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 0B 00 BC 14 00 18 4B 81 7F 8D 81 7B 31 90 00 69 [13:15:29]RAPDU: 18 4B 81 7F 8D 81 7B 31 90 00 [13:15:29]wFMCommunicate OK [13:15:29]SAM_PROTO_SignData done [13:15:29]FM_MakeSignedData done [13:15:29]CreateOFDProtocolMessage [13:15:29]wFMCommunicate request_size=4 [13:15:29]MH_SAM_APDU [13:15:29]CAPDU: 80 11 00 00 [13:15:29]Write to MH i2c: E2 08 00 BD 14 80 11 00 00 00 00 00 00 4B [13:15:29]Write i2c OK [13:15:29]MH_I2C_Read... [13:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:29]Read from MH i2c: E2 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 17 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 17 00 BD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9E [13:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:15:29]wFMCommunicate OK [13:15:29]CreateOFDProtocolMessage done [13:15:29]OFDSenderStorePacket 145703 [13:15:29]StoreOFDPacket docnum=145703 [13:15:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 04 88 07 01 77 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 32 FF 03 08 00 03 DA B1 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0B 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 3C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 27 39 02 00 35 04 06 00 DD 5E 94 66 EF 08 18 4B 81 7F 8D 81 7B 31 [13:15:29]CheckFolder [13:15:29]dirname=/storage/ofd_packets [13:15:29]CheckFolder done [13:15:29]ProducePacketName [13:15:29]name=ofd_packets/00145703 [13:15:29]NVStorageSaveData ofd_packets/00145703 [13:15:29]File name is /storage/ofd_packets/00145703 [13:15:29]Write 301 bytes [13:15:29]NVStorageSaveData done [13:15:29]OFDSenderStorePacket done [13:15:29]KKMCreateOFDPacket done [13:15:29]NVStorageSaveData kkm_last_timestamp [13:15:29]File name is /storage/kkm_last_timestamp [13:15:29]Write 4 bytes [13:15:29]NVStorageSaveData done [13:15:29]ExternCall_PrintAddStr [13:15:29]wPrintStart [13:15:29]Write to MH i2c: 01 00 00 BE 14 D2 [13:15:29]Write i2c OK [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: 01 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: 01 07 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: 01 07 00 BE 14 00 00 00 00 00 FF 0F E7 [13:15:29]RasterBufferAndPrint [13:15:29]line Счет N : (1)160458 [13:15:29]line ИНН: 02508201610067 [13:15:29]line Контрольно-Кассовый Чек [13:15:29]line ПРОДАЖА [13:15:29]line ТРК (МРК, ГНК) : 32 [13:15:29]line Товар: 2710124130 [13:15:29]line Аи-92-К-2 [13:15:29]line 45.530 * 65.90 [13:15:29]line = 3000.43 [13:15:29]line НДС 12% НСП 1% [13:15:29]line > о реализуемом товаре [13:15:29]line ОКРУГЛЕНИЕ: -0.43 [13:15:29]line ИТОГО: 3000.00 [13:15:29]line Внесено: 3000.00 [13:15:29]line СДАЧА: 0.00 [13:15:29]line НСП 1% : 26.55 [13:15:29]line НДС 12% : 318.63 [13:15:29]line Наличными: 3000.00 [13:15:29]line Безнал.: 0.00 [13:15:29]line Место: АЗС № 126 "Партнер Нефть" [13:15:29]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:15:29]line СНО: Общий режим [13:15:29]line Чек 126 27.10.2024 13:15 [13:15:29]line Смена: 545 ФФД: 1.0 [13:15:29]line ЗНМ: 0300000085 [13:15:29]line РНМ: 0000000000091683 [13:15:29]line Версия ККМ: 001 [13:15:29]line [13:15:29]line Дисконтная программа [13:15:29]line АИ-92 [13:15:29]line номер 126 [13:15:29]line сэкономлено 45.53 сом [13:15:29]line ФМ: 0000000000871745 [13:15:29]line ФД: 145703 [13:15:29]line ФПД: 243398286438152 [13:15:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131529&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145703&fm=243398286438152&tin=02508201610067®Number=0000000000091683&sum=300000 [13:15:29]OFD Sender: Processing packet 145703 [packets to send 206, broken 205] [13:15:29]ProducePacketName [13:15:29]name=ofd_packets/00145703 [13:15:29]OFD Sender: To server: pG, [13:15:29]CommunicateWithHost lk.salyk.kg:30040 [13:15:29]ConnectInit lk.salyk.kg [13:15:29]written 0, free lines is 4095 [13:15:30]Connected sock=11 [13:15:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 04 88 07 01 77 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 32 FF 03 08 00 03 DA B1 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 0B 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 3C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 27 39 02 00 35 04 06 00 DD 5E 94 66 EF 08 18 4B 81 7F 8D 81 7B 31 [13:15:30]Write to MH i2c: 01 00 00 EE 14 02 [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: 01 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: 01 07 00 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: 01 07 00 EE 14 00 00 00 00 00 57 0C 6C [13:15:30]RasterBufferAndPrint [13:15:30]line [13:15:30]line [13:15:30]line [13:15:30]line [13:15:30]line [13:15:30]written 0, free lines is 3165 [13:15:30]MH_Cut [13:15:30]Write to MH i2c: D1 01 00 F5 14 01 DB [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: D1 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: D1 01 00 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: D1 01 00 F5 14 00 DA [13:15:30]Write to MH i2c: 01 00 00 F6 14 0A [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 42 C2 47 00 E0 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 27 39 02 00 F4 03 04 00 1E E2 1D 67 B6 04 01 00 00 A4 63 61 F0 56 00 E0 7C [13:15:30]CommunicateWithHost err = 0 [13:15:30]CheckOFDResponse [13:15:30]1017 (14) - 77093643461234 [13:15:30]1041 (16) - 0000000000871745 [13:15:30]1040 (4) - 145703 [13:15:30]1012 (4) - 27.10.2024 06:47 [13:15:30]1206 (1) - 0 [13:15:30]OFD Sender: Remove packet 145703 [13:15:30]ProducePacketName [13:15:30]name=ofd_packets/00145703 [13:15:30]NVStorageDeleteData [13:15:30]OFD Sender: No OFD packet to send [13:15:31]*** Cut start [13:15:31]*** Partial cut [13:15:31]*** CUTSNS_PIN = 1 [13:15:31]*** CUTSNS_PIN = 0 [13:15:31]*** Brake cut motor [13:15:31]Read from MH i2c: 01 [13:15:31]MH_I2C_Read... [13:15:31]*** Stop cut motor [13:15:31]*** Cut end [13:15:31]Read from MH i2c: 01 07 00 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: 01 07 00 F6 14 00 00 00 00 00 FF 0F 1F [13:15:31]process_action close_receipt done [13:15:31]requested_data is exist [13:15:31]produce_requested_data [13:15:31]requested_item fm.sn is exist - process it [13:15:31]wFMCommunicate request_size=4 [13:15:31]MH_SAM_APDU [13:15:31]CAPDU: 80 11 00 00 [13:15:31]Write to MH i2c: E2 08 00 F7 14 80 11 00 00 00 00 00 00 85 [13:15:31]Write i2c OK [13:15:31]MH_I2C_Read... [13:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:31]Read from MH i2c: E2 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: E2 17 00 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: E2 17 00 F7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D8 [13:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:15:31]wFMCommunicate OK [13:15:31]requested_item fd.num is exist - process it [13:15:31]SAM_PROTO_GetFieldsCounters [13:15:31]wFMCommunicate request_size=4 [13:15:31]MH_SAM_APDU [13:15:31]CAPDU: 80 13 00 00 [13:15:31]Write to MH i2c: E2 08 00 F8 14 80 13 00 00 00 00 00 00 88 [13:15:31]Write i2c OK [13:15:31]MH_I2C_Read... [13:15:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:31]Read from MH i2c: E2 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: E2 62 00 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: E2 62 00 F8 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 27 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [13:15:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 27 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:31]wFMCommunicate OK [13:15:31]SAM_PROTO_GetFieldsCounters done [13:15:31]requested_item shift.num is exist - process it [13:15:31]requested_item shift.opened is exist - process it [13:15:31]req_shift_opened [13:15:31]FM_GetShiftState [13:15:31]SAM_PROTO_GetShiftState [13:15:31]wFMCommunicate request_size=4 [13:15:31]MH_SAM_APDU [13:15:31]CAPDU: 80 13 01 00 [13:15:31]Write to MH i2c: E2 08 00 F9 14 80 13 01 00 00 00 00 00 8A [13:15:31]Write i2c OK [13:15:31]MH_I2C_Read... [13:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:31]Read from MH i2c: E2 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: E2 0E 00 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: E2 0E 00 F9 14 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 02 [13:15:31]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:15:31]wFMCommunicate OK [13:15:31]SAM_PROTO_GetShiftState done [13:15:31]FM_GetShiftState done [13:15:31]req_shift_opened done [13:15:31]requested_item shift.open_date is exist - process it [13:15:31]req_shift_open_date [13:15:31]req_shift_open_date done [13:15:31]produce_requested_data done [13:15:31]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145703,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:15:31]process_action_free close_receipt [13:15:31]json_value_free [13:15:31]json_value_free done [13:15:31]process_json_proto returns [13:15:31]Send response to host [13:15:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145703,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:15:31]free response buf [13:15:31]execute_script done [13:15:31]execute_script returns [13:15:31]free content buf [13:15:31]Sock 9.Close socket [13:15:31]Sock 9.Thread stoped [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]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:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:33]accept exits with 7 [13:24:33]New connection [13:24:33]New thread 3066740068 created [13:24:33]Thread 3066596708 joined [13:24:33]Waiting for new connection... [13:24:33] Sock 7.Parse request [13:24:33]Sock 7.Check first char [13:24:33]Sock 7.First char is OK [13:24:33]request: POST /json_proto HTTP/1.0 [13:24:33]Method: POST [13:24:33]URL: /json_proto [13:24:33]Method is POST - this is cgi request [13:24:33]url: /json_proto [13:24:33]query_string will be loaded in cgi processing [13:24:33]execute_cgi json_proto POST (null) [13:24:33]execute_cgi path=json_proto method=POST [13:24:33]POST find Content-Length [13:24:33]Host: 172.17.40.195:8080 [13:24:33]Content-Length: 677 [13:24:33]Content-Type: application/json [13:24:33] [13:24:33]POST finish read [13:24:33]Found Content-Length = 677 [13:24:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:33]execute_script... [13:24: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)160460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:33]POST & json_proto [13:24:33]process_json_proto [13:24:33]json parsed OK: [13:24:33]protocol is kg_v1.0 [13:24:33]action value=close_receipt [13:24:33]process_action close_receipt [13:24:33]cmd_close_receipt [13:24:33]MH_GetDate [13:24:33]Write to MH i2c: F0 00 00 FA 14 FD [13:24:33]Write i2c OK [13:24:33]MH_I2C_Read... [13:24:33]Read from MH i2c: F0 [13:24:33]MH_I2C_Read... [13:24:33]Read from MH i2c: F0 09 00 [13:24:33]MH_I2C_Read... [13:24:33]Read from MH i2c: F0 09 00 FA 14 00 13 3F 1E 67 D5 8D 6C 64 0F [13:24:33]GetLastDocTimeStamp 1730034929 [13:24:33]current date 1730035475 [13:24:33]FM_GetShiftState [13:24:33]SAM_PROTO_GetShiftState [13:24:33]wFMCommunicate request_size=4 [13:24:33]MH_SAM_APDU [13:24:33]CAPDU: 80 13 01 00 [13:24:33]Write to MH i2c: E2 08 00 FB 14 80 13 01 00 00 00 00 00 8C [13:24:33]Write i2c OK [13:24:33]MH_I2C_Read... [13:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:33]Read from MH i2c: E2 [13:24:33]MH_I2C_Read... [13:24:33]Read from MH i2c: E2 0E 00 [13:24:33]MH_I2C_Read... [13:24:33]Read from MH i2c: E2 0E 00 FB 14 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 04 [13:24:33]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:24:33]wFMCommunicate OK [13:24:33]SAM_PROTO_GetShiftState done [13:24:33]FM_GetShiftState done [13:24:33]opened in 1729988959 [13:24:33]opened+sec_in_day 1730075359 [13:24:33]quantity*price = 50041 [13:24:33]sum+1 = 50042 [13:24:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 127 27.10.2024 13:24 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145704 ФПД: 288823774603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132435&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145704&fm=288823774603&tin=02508201610067®Number=0000000000091683&sum=50000 [13:24:34]StoreToDocumentArchive [13:24:34]shift 545 fd 145704 [13:24:34]save to /storage/0545/doc_00145704 [13:24:34]save last doc name /storage/0545/doc_00145704 to /storage/kkm_last_doc_name [13:24:34]save OK [13:24:34]Clear old archive folders... [13:24:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:34]tlvbuf is 0048ADB0 [13:24:34]SAM_PROTO_ClearQueue [13:24:34]wFMCommunicate request_size=4 [13:24:34]MH_SAM_APDU [13:24:34]CAPDU: 80 09 00 00 [13:24:34]Write to MH i2c: E2 08 00 08 15 80 09 00 00 00 00 00 00 8F [13:24:34]Write i2c OK [13:24:34]MH_I2C_Read... [13:24:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:34]Read from MH i2c: E2 [13:24:34]MH_I2C_Read... [13:24:34]Read from MH i2c: E2 03 00 [13:24:34]MH_I2C_Read... [13:24:34]Read from MH i2c: E2 03 00 08 15 00 90 00 91 [13:24:34]RAPDU: 90 00 [13:24:34]wFMCommunicate OK [13:24:34]SAM_PROTO_ClearQueue done [13:24:34]KKMCreateOFDPacket [13:24:34]OFDProtocolAddRootSTLVToBuf [13:24:34]FM_MakeSignedData [13:24:34]FM_MakeSignedData [13:24:34]SAM_PROTO_SignData [13:24:34]wFMCommunicate request_size=4 [13:24:34]MH_SAM_APDU [13:24:34]CAPDU: 80 0D 01 02 [13:24:34]Write to MH i2c: E2 08 00 09 15 80 0D 01 02 00 00 00 00 97 [13:24:34]Write i2c OK [13:24:34]MH_I2C_Read... [13:24:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:34]Read from MH i2c: E2 [13:24:34]MH_I2C_Read... [13:24:34]Read from MH i2c: E2 03 00 [13:24:34]MH_I2C_Read... [13:24:34]Read from MH i2c: E2 03 00 09 15 00 90 00 92 [13:24:34]RAPDU: 90 00 [13:24:34]wFMCommunicate OK [13:24:34]wFMCommunicate request_size=255 [13:24:34]MH_SAM_APDU [13:24: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 13 3F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 28 39 02 00 35 04 06 00 00 [13:24:34]Write to MH i2c: E2 02 01 0A 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 13 3F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 28 39 02 00 35 04 06 00 00 00 00 01 [13:24:34]Write i2c OK [13:24:34]MH_I2C_Read... [13:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:35]Read from MH i2c: E2 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 03 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 03 00 0A 15 00 90 00 93 [13:24:35]RAPDU: 90 00 [13:24:35]wFMCommunicate OK [13:24:35]wFMCommunicate request_size=10 [13:24:35]MH_SAM_APDU [13:24:35]CAPDU: 80 0D 02 02 05 43 3F 3D 0D 8B [13:24:35]Write to MH i2c: E2 0D 00 0B 15 80 0D 02 02 05 00 43 3F 3D 0D 8B 00 00 FB [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:35]Read from MH i2c: E2 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 03 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 03 00 0B 15 00 90 00 94 [13:24:35]RAPDU: 90 00 [13:24:35]wFMCommunicate OK [13:24:35]wFMCommunicate request_size=4 [13:24:35]MH_SAM_APDU [13:24:35]CAPDU: 80 0D 03 02 [13:24:35]Write to MH i2c: E2 08 00 0C 15 80 0D 03 02 00 00 00 00 9C [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:35]Read from MH i2c: E2 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 0B 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 0B 00 0C 15 00 9D 39 68 4B A0 DA 5C 35 90 00 31 [13:24:35]RAPDU: 9D 39 68 4B A0 DA 5C 35 90 00 [13:24:35]wFMCommunicate OK [13:24:35]SAM_PROTO_SignData done [13:24:35]FM_MakeSignedData done [13:24:35]CreateOFDProtocolMessage [13:24:35]wFMCommunicate request_size=4 [13:24:35]MH_SAM_APDU [13:24:35]CAPDU: 80 11 00 00 [13:24:35]Write to MH i2c: E2 08 00 0D 15 80 11 00 00 00 00 00 00 9C [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:35]Read from MH i2c: E2 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 17 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 17 00 0D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EF [13:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:24:35]wFMCommunicate OK [13:24:35]CreateOFDProtocolMessage done [13:24:35]OFDSenderStorePacket 145704 [13:24:35]StoreOFDPacket docnum=145704 [13:24:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 3B C6 07 01 9A 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 13 3F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 28 39 02 00 35 04 06 00 00 43 3F 3D 0D 8B 9D 39 68 4B A0 DA 5C 35 [13:24:35]CheckFolder [13:24:35]dirname=/storage/ofd_packets [13:24:35]CheckFolder done [13:24:35]ProducePacketName [13:24:35]name=ofd_packets/00145704 [13:24:35]NVStorageSaveData ofd_packets/00145704 [13:24:35]File name is /storage/ofd_packets/00145704 [13:24:35]Write 301 bytes [13:24:35]NVStorageSaveData done [13:24:35]OFDSenderStorePacket done [13:24:35]KKMCreateOFDPacket done [13:24:35]NVStorageSaveData kkm_last_timestamp [13:24:35]File name is /storage/kkm_last_timestamp [13:24:35]Write 4 bytes [13:24:35]NVStorageSaveData done [13:24:35]ExternCall_PrintAddStr [13:24:35]wPrintStart [13:24:35]Write to MH i2c: 01 00 00 0E 15 23 [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: 01 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: 01 07 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: 01 07 00 0E 15 00 00 00 00 00 FF 0F 38 [13:24:35]RasterBufferAndPrint [13:24:35]line Счет N : (1)160460 [13:24:35]line ИНН: 02508201610067 [13:24:35]line Контрольно-Кассовый Чек [13:24:35]line ПРОДАЖА [13:24:35]line ТРК (МРК, ГНК) : 42 [13:24:35]line Товар: 2710124130 [13:24:35]line Аи-92-К-2 [13:24:35]line 7.480 * 66.90 [13:24:35]line = 500.41 [13:24:35]line НДС 12% НСП 1% [13:24:35]line > о реализуемом товаре [13:24:35]line ОКРУГЛЕНИЕ: -0.41 [13:24:35]line ИТОГО: 500.00 [13:24:35]line Внесено: 500.00 [13:24:35]line СДАЧА: 0.00 [13:24:35]line НСП 1% : 4.43 [13:24:35]line НДС 12% : 53.14 [13:24:35]line Наличными: 500.00 [13:24:35]line Безнал.: 0.00 [13:24:35]line Место: АЗС № 126 "Партнер Нефть" [13:24:35]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:24:35]line СНО: Общий режим [13:24:35]line Чек 127 27.10.2024 13:24 [13:24:35]line Смена: 545 ФФД: 1.0 [13:24:35]line ЗНМ: 0300000085 [13:24:35]line РНМ: 0000000000091683 [13:24:35]line Версия ККМ: 001 [13:24:35]line ФМ: 0000000000871745 [13:24:35]line ФД: 145704 [13:24:35]line ФПД: 288823774603 [13:24:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132435&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145704&fm=288823774603&tin=02508201610067®Number=0000000000091683&sum=50000 [13:24:35]written 0, free lines is 4095 [13:24:35]OFD Sender: Processing packet 145704 [packets to send 206, broken 205] [13:24:35]ProducePacketName [13:24:35]name=ofd_packets/00145704 [13:24:35]OFD Sender: To server: pG, [13:24:35]CommunicateWithHost lk.salyk.kg:30040 [13:24:35]ConnectInit lk.salyk.kg [13:24:35]Connected sock=11 [13:24:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 3B C6 07 01 9A 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 13 3F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 28 39 02 00 35 04 06 00 00 43 3F 3D 0D 8B 9D 39 68 4B A0 DA 5C 35 [13:24:36]Write to MH i2c: 01 00 00 39 15 4E [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 39 15 00 00 00 00 00 BE 0C 1F [13:24:36]RasterBufferAndPrint [13:24:36]line [13:24:36]line [13:24:36]line [13:24:36]line [13:24:36]line [13:24:36]written 0, free lines is 3269 [13:24:36]MH_Cut [13:24:36]Write to MH i2c: D1 01 00 40 15 01 27 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D1 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D1 01 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D1 01 00 40 15 00 26 [13:24:36]Write to MH i2c: 01 00 00 41 15 56 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 1D 16 47 00 CE D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 28 39 02 00 F4 03 04 00 41 E4 1D 67 B6 04 01 00 00 11 F9 E1 C3 B8 EC 6D 49 [13:24:36]CommunicateWithHost err = 0 [13:24:36]CheckOFDResponse [13:24:36]1017 (14) - 77093643461234 [13:24:36]1041 (16) - 0000000000871745 [13:24:36]1040 (4) - 145704 [13:24:36]1012 (4) - 27.10.2024 06:57 [13:24:36]1206 (1) - 0 [13:24:36]OFD Sender: Remove packet 145704 [13:24:36]ProducePacketName [13:24:36]name=ofd_packets/00145704 [13:24:36]NVStorageDeleteData [13:24:36]OFD Sender: No OFD packet to send [13:24:36]*** Cut start [13:24:36]*** Partial cut [13:24:36]*** CUTSNS_PIN = 1 [13:24:36]*** CUTSNS_PIN = 0 [13:24:37]*** Brake cut motor [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]*** Stop cut motor [13:24:37]*** Cut end [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 41 15 00 00 00 00 00 FF 0F 6B [13:24:37]process_action close_receipt done [13:24:37]requested_data is exist [13:24:37]produce_requested_data [13:24:37]requested_item fm.sn is exist - process it [13:24:37]wFMCommunicate request_size=4 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 11 00 00 [13:24:37]Write to MH i2c: E2 08 00 42 15 80 11 00 00 00 00 00 00 D1 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 17 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 17 00 42 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 24 [13:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:24:37]wFMCommunicate OK [13:24:37]requested_item fd.num is exist - process it [13:24:37]SAM_PROTO_GetFieldsCounters [13:24:37]wFMCommunicate request_size=4 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 13 00 00 [13:24:37]Write to MH i2c: E2 08 00 43 15 80 13 00 00 00 00 00 00 D4 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 62 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 62 00 43 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 28 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [13:24:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 28 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:37]wFMCommunicate OK [13:24:37]SAM_PROTO_GetFieldsCounters done [13:24:37]requested_item shift.num is exist - process it [13:24:37]requested_item shift.opened is exist - process it [13:24:37]req_shift_opened [13:24:37]FM_GetShiftState [13:24:37]SAM_PROTO_GetShiftState [13:24:37]wFMCommunicate request_size=4 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 13 01 00 [13:24:37]Write to MH i2c: E2 08 00 44 15 80 13 01 00 00 00 00 00 D6 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 0E 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 0E 00 44 15 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4E [13:24:37]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:24:37]wFMCommunicate OK [13:24:37]SAM_PROTO_GetShiftState done [13:24:37]FM_GetShiftState done [13:24:37]req_shift_opened done [13:24:37]requested_item shift.open_date is exist - process it [13:24:37]req_shift_open_date [13:24:37]req_shift_open_date done [13:24:37]produce_requested_data done [13:24:37]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145704,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:24:37]process_action_free close_receipt [13:24:37]json_value_free [13:24:37]json_value_free done [13:24:37]process_json_proto returns [13:24:37]Send response to host [13:24:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145704,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:24:37]free response buf [13:24:37]execute_script done [13:24:37]execute_script returns [13:24:37]free content buf [13:24:37]Sock 7.Close socket [13:24:37]Sock 7.Thread stoped [13:24:41]accept exits with 9 [13:24:41]New connection [13:24:41]New thread 3066596708 created [13:24:41]Thread 3066740068 joined [13:24:41]Waiting for new connection... [13:24:41] Sock 9.Parse request [13:24:41]Sock 9.Check first char [13:24:41]Sock 9.First char is OK [13:24:41]request: POST /json_proto HTTP/1.0 [13:24:41]Method: POST [13:24:41]URL: /json_proto [13:24:41]Method is POST - this is cgi request [13:24:41]url: /json_proto [13:24:41]query_string will be loaded in cgi processing [13:24:41]execute_cgi json_proto POST (null) [13:24:41]execute_cgi path=json_proto method=POST [13:24:41]POST find Content-Length [13:24:41]Host: 172.17.40.195:8080 [13:24:41]Content-Length: 682 [13:24:41]Content-Type: application/json [13:24:41] [13:24:41]POST finish read [13:24:41]Found Content-Length = 682 [13:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:41]execute_script... [13:24: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)160459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:41]POST & json_proto [13:24:41]process_json_proto [13:24:41]json parsed OK: [13:24:41]protocol is kg_v1.0 [13:24:41]action value=close_receipt [13:24:41]process_action close_receipt [13:24:41]cmd_close_receipt [13:24:41]MH_GetDate [13:24:41]Write to MH i2c: F0 00 00 45 15 49 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: F0 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: F0 09 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: F0 09 00 45 15 00 1B 3F 1E 67 D5 8D 6C 64 63 [13:24:41]GetLastDocTimeStamp 1730035475 [13:24:41]current date 1730035483 [13:24:41]FM_GetShiftState [13:24:41]SAM_PROTO_GetShiftState [13:24:41]wFMCommunicate request_size=4 [13:24:41]MH_SAM_APDU [13:24:41]CAPDU: 80 13 01 00 [13:24:41]Write to MH i2c: E2 08 00 46 15 80 13 01 00 00 00 00 00 D8 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:41]Read from MH i2c: E2 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 0E 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 0E 00 46 15 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 50 [13:24:41]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:24:41]wFMCommunicate OK [13:24:41]SAM_PROTO_GetShiftState done [13:24:41]FM_GetShiftState done [13:24:41]opened in 1729988959 [13:24:41]opened+sec_in_day 1730075359 [13:24:41]quantity*price = 140021 [13:24:41]sum+1 = 140023 [13:24:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 128 27.10.2024 13:24 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145705 ФПД: 175810870679400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132443&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145705&fm=175810870679400&tin=02508201610067®Number=0000000000091683&sum=140000 [13:24:42]StoreToDocumentArchive [13:24:42]shift 545 fd 145705 [13:24:42]save to /storage/0545/doc_00145705 [13:24:42]save last doc name /storage/0545/doc_00145705 to /storage/kkm_last_doc_name [13:24:42]save OK [13:24:42]Clear old archive folders... [13:24:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:42]tlvbuf is 0047E300 [13:24:42]SAM_PROTO_ClearQueue [13:24:42]wFMCommunicate request_size=4 [13:24:42]MH_SAM_APDU [13:24:42]CAPDU: 80 09 00 00 [13:24:42]Write to MH i2c: E2 08 00 53 15 80 09 00 00 00 00 00 00 DA [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:42]Read from MH i2c: E2 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 03 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 03 00 53 15 00 90 00 DC [13:24:42]RAPDU: 90 00 [13:24:42]wFMCommunicate OK [13:24:42]SAM_PROTO_ClearQueue done [13:24:42]KKMCreateOFDPacket [13:24:42]OFDProtocolAddRootSTLVToBuf [13:24:42]FM_MakeSignedData [13:24:42]FM_MakeSignedData [13:24:42]SAM_PROTO_SignData [13:24:42]wFMCommunicate request_size=4 [13:24:42]MH_SAM_APDU [13:24:42]CAPDU: 80 0D 01 02 [13:24:42]Write to MH i2c: E2 08 00 54 15 80 0D 01 02 00 00 00 00 E2 [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 54 15 00 90 00 DD [13:24:43]RAPDU: 90 00 [13:24:43]wFMCommunicate OK [13:24:43]wFMCommunicate request_size=255 [13:24:43]MH_SAM_APDU [13: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 32 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1B 3F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 29 39 02 00 35 04 06 00 9F [13:24:43]Write to MH i2c: E2 02 01 55 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 32 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1B 3F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 29 39 02 00 35 04 06 00 9F 00 00 0C [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 55 15 00 90 00 DE [13:24:43]RAPDU: 90 00 [13:24:43]wFMCommunicate OK [13:24:43]wFMCommunicate request_size=10 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 0D 02 02 05 E6 28 7E 97 68 [13:24:43]Write to MH i2c: E2 0D 00 56 15 80 0D 02 02 05 00 E6 28 7E 97 68 00 00 7A [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 03 00 56 15 00 90 00 DF [13:24:43]RAPDU: 90 00 [13:24:43]wFMCommunicate OK [13:24:43]wFMCommunicate request_size=4 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 0D 03 02 [13:24:43]Write to MH i2c: E2 08 00 57 15 80 0D 03 02 00 00 00 00 E7 [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 0B 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 0B 00 57 15 00 A6 28 DD D0 C9 B9 27 01 90 00 0D [13:24:43]RAPDU: A6 28 DD D0 C9 B9 27 01 90 00 [13:24:43]wFMCommunicate OK [13:24:43]SAM_PROTO_SignData done [13:24:43]FM_MakeSignedData done [13:24:43]CreateOFDProtocolMessage [13:24:43]wFMCommunicate request_size=4 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 11 00 00 [13:24:43]Write to MH i2c: E2 08 00 58 15 80 11 00 00 00 00 00 00 E7 [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 17 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 17 00 58 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3A [13:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:24:43]wFMCommunicate OK [13:24:43]CreateOFDProtocolMessage done [13:24:43]OFDSenderStorePacket 145705 [13:24:43]StoreOFDPacket docnum=145705 [13:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1A 95 07 01 F7 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1B 3F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 29 39 02 00 35 04 06 00 9F E6 28 7E 97 68 A6 28 DD D0 C9 B9 27 01 [13:24:43]CheckFolder [13:24:43]dirname=/storage/ofd_packets [13:24:43]CheckFolder done [13:24:43]ProducePacketName [13:24:43]name=ofd_packets/00145705 [13:24:43]NVStorageSaveData ofd_packets/00145705 [13:24:43]File name is /storage/ofd_packets/00145705 [13:24:43]Write 301 bytes [13:24:43]NVStorageSaveData done [13:24:43]OFDSenderStorePacket done [13:24:43]KKMCreateOFDPacket done [13:24:43]NVStorageSaveData kkm_last_timestamp [13:24:43]File name is /storage/kkm_last_timestamp [13:24:43]Write 4 bytes [13:24:43]NVStorageSaveData done [13:24:43]ExternCall_PrintAddStr [13:24:43]wPrintStart [13:24:43]Write to MH i2c: 01 00 00 59 15 6E [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: 01 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: 01 07 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: 01 07 00 59 15 00 00 00 00 00 FF 0F 83 [13:24:43]RasterBufferAndPrint [13:24:43]line Счет N : (1)160459 [13:24:43]line ИНН: 02508201610067 [13:24:43]line Контрольно-Кассовый Чек [13:24:43]line ПРОДАЖА [13:24:43]line ТРК (МРК, ГНК) : 52 [13:24:43]line Товар: 2710124130 [13:24:43]line Аи-92-К-2 [13:24:43]line 20.930 * 66.90 [13:24:43]line = 1400.22 [13:24:43]line НДС 12% НСП 1% [13:24:43]line > о реализуемом товаре [13:24:43]line ОКРУГЛЕНИЕ: -0.22 [13:24:43]line ИТОГО: 1400.00 [13:24:43]line Внесено: 1400.00 [13:24:43]line СДАЧА: 0.00 [13:24:43]line НСП 1% : 12.39 [13:24:43]line НДС 12% : 148.70 [13:24:43]line Наличными: 1400.00 [13:24:43]line Безнал.: 0.00 [13:24:43]line Место: АЗС № 126 "Партнер Нефть" [13:24:43]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:24:43]line СНО: Общий режим [13:24:43]line Чек 128 27.10.2024 13:24 [13:24:43]line Смена: 545 ФФД: 1.0 [13:24:43]line ЗНМ: 0300000085 [13:24:43]line РНМ: 0000000000091683 [13:24:43]line Версия ККМ: 001 [13:24:43]line ФМ: 0000000000871745 [13:24:43]line ФД: 145705 [13:24:43]line ФПД: 175810870679400 [13:24:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132443&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145705&fm=175810870679400&tin=02508201610067®Number=0000000000091683&sum=140000 [13:24:43]OFD Sender: Processing packet 145705 [packets to send 206, broken 205] [13:24:43]ProducePacketName [13:24:43]name=ofd_packets/00145705 [13:24:43]OFD Sender: To server: pG, [13:24:43]CommunicateWithHost lk.salyk.kg:30040 [13:24:43]ConnectInit lk.salyk.kg [13:24:43]written 0, free lines is 4095 [13:24:43]Connected sock=10 [13:24:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1A 95 07 01 F7 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1B 3F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 29 39 02 00 35 04 06 00 9F E6 28 7E 97 68 A6 28 DD D0 C9 B9 27 01 [13:24:43]Write to MH i2c: 01 00 00 84 15 99 [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: 01 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: 01 07 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: 01 07 00 84 15 00 00 00 00 00 C0 0C 6C [13:24:43]RasterBufferAndPrint [13:24:43]line [13:24:43]line [13:24:43]line [13:24:43]line [13:24:43]line [13:24:43]written 0, free lines is 3273 [13:24:43]MH_Cut [13:24:43]Write to MH i2c: D1 01 00 8B 15 01 72 [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: D1 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: D1 01 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: D1 01 00 8B 15 00 71 [13:24:43]Write to MH i2c: 01 00 00 8C 15 A1 [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C1 90 47 00 1B 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 29 39 02 00 F4 03 04 00 48 E4 1D 67 B6 04 01 00 00 2F 32 AB 5D D8 E7 7D C5 [13:24:44]CommunicateWithHost err = 0 [13:24:44]CheckOFDResponse [13:24:44]1017 (14) - 77093643461234 [13:24:44]1041 (16) - 0000000000871745 [13:24:44]1040 (4) - 145705 [13:24:44]1012 (4) - 27.10.2024 06:57 [13:24:44]1206 (1) - 0 [13:24:44]OFD Sender: Remove packet 145705 [13:24:44]ProducePacketName [13:24:44]name=ofd_packets/00145705 [13:24:44]NVStorageDeleteData [13:24:44]OFD Sender: No OFD packet to send [13:24:44]*** Cut start [13:24:44]*** Partial cut [13:24:44]*** CUTSNS_PIN = 1 [13:24:44]*** CUTSNS_PIN = 0 [13:24:44]*** Brake cut motor [13:24:45]Read from MH i2c: 01 [13:24:45]MH_I2C_Read... [13:24:45]*** Stop cut motor [13:24:45]*** Cut end [13:24:45]Read from MH i2c: 01 07 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: 01 07 00 8C 15 00 00 00 00 00 FF 0F B6 [13:24:45]process_action close_receipt done [13:24:45]requested_data is exist [13:24:45]produce_requested_data [13:24:45]requested_item fm.sn is exist - process it [13:24:45]wFMCommunicate request_size=4 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 11 00 00 [13:24:45]Write to MH i2c: E2 08 00 8D 15 80 11 00 00 00 00 00 00 1C [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 17 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 17 00 8D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6F [13:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:24:45]wFMCommunicate OK [13:24:45]requested_item fd.num is exist - process it [13:24:45]SAM_PROTO_GetFieldsCounters [13:24:45]wFMCommunicate request_size=4 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 13 00 00 [13:24:45]Write to MH i2c: E2 08 00 8E 15 80 13 00 00 00 00 00 00 1F [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 62 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 62 00 8E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 29 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [13:24:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 29 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:45]wFMCommunicate OK [13:24:45]SAM_PROTO_GetFieldsCounters done [13:24:45]requested_item shift.num is exist - process it [13:24:45]requested_item shift.opened is exist - process it [13:24:45]req_shift_opened [13:24:45]FM_GetShiftState [13:24:45]SAM_PROTO_GetShiftState [13:24:45]wFMCommunicate request_size=4 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 13 01 00 [13:24:45]Write to MH i2c: E2 08 00 8F 15 80 13 01 00 00 00 00 00 21 [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 0E 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 0E 00 8F 15 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 99 [13:24:45]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:24:45]wFMCommunicate OK [13:24:45]SAM_PROTO_GetShiftState done [13:24:45]FM_GetShiftState done [13:24:45]req_shift_opened done [13:24:45]requested_item shift.open_date is exist - process it [13:24:45]req_shift_open_date [13:24:45]req_shift_open_date done [13:24:45]produce_requested_data done [13:24:45]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145705,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:24:45]process_action_free close_receipt [13:24:45]json_value_free [13:24:45]json_value_free done [13:24:45]process_json_proto returns [13:24:45]Send response to host [13:24:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145705,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:24:45]free response buf [13:24:45]execute_script done [13:24:45]execute_script returns [13:24:45]free content buf [13:24:45]Sock 9.Close socket [13:24:45]Sock 9.Thread stoped [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:06]accept exits with 7 [13:33:06]New connection [13:33:06]New thread 3066740068 created [13:33:06]Thread 3066596708 joined [13:33:06]Waiting for new connection... [13:33:06] Sock 7.Parse request [13:33:06]Sock 7.Check first char [13:33:06]Sock 7.First char is OK [13:33:06]request: POST /json_proto HTTP/1.0 [13:33:06]Method: POST [13:33:06]URL: /json_proto [13:33:06]Method is POST - this is cgi request [13:33:06]url: /json_proto [13:33:06]query_string will be loaded in cgi processing [13:33:06]execute_cgi json_proto POST (null) [13:33:06]execute_cgi path=json_proto method=POST [13:33:06]POST find Content-Length [13:33:06]Host: 172.17.40.195:8080 [13:33:06]Content-Length: 677 [13:33:06]Content-Type: application/json [13:33:06] [13:33:06]POST finish read [13:33:06]Found Content-Length = 677 [13:33:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:06]execute_script... [13:33: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)160461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:06]POST & json_proto [13:33:06]process_json_proto [13:33:06]json parsed OK: [13:33:06]protocol is kg_v1.0 [13:33:06]action value=close_receipt [13:33:06]process_action close_receipt [13:33:06]cmd_close_receipt [13:33:06]MH_GetDate [13:33:06]Write to MH i2c: F0 00 00 90 15 94 [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: F0 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: F0 09 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: F0 09 00 90 15 00 13 41 1E 67 D5 8D 6C 64 A8 [13:33:06]GetLastDocTimeStamp 1730035483 [13:33:06]current date 1730035987 [13:33:06]FM_GetShiftState [13:33:06]SAM_PROTO_GetShiftState [13:33:06]wFMCommunicate request_size=4 [13:33:06]MH_SAM_APDU [13:33:06]CAPDU: 80 13 01 00 [13:33:06]Write to MH i2c: E2 08 00 91 15 80 13 01 00 00 00 00 00 23 [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:06]Read from MH i2c: E2 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 0E 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 0E 00 91 15 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9B [13:33:06]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:33:06]wFMCommunicate OK [13:33:06]SAM_PROTO_GetShiftState done [13:33:06]FM_GetShiftState done [13:33:06]opened in 1729988959 [13:33:06]opened+sec_in_day 1730075359 [13:33:06]quantity*price = 50010 [13:33:06]sum+1 = 50012 [13:33:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 129 27.10.2024 13:33 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145706 ФПД: 105656934097422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133307&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145706&fm=105656934097422&tin=02508201610067®Number=0000000000091683&sum=50000 [13:33:07]StoreToDocumentArchive [13:33:07]shift 545 fd 145706 [13:33:07]save to /storage/0545/doc_00145706 [13:33:07]save last doc name /storage/0545/doc_00145706 to /storage/kkm_last_doc_name [13:33:07]save OK [13:33:07]Clear old archive folders... [13:33:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:07]tlvbuf is B6E8DEC0 [13:33:07]SAM_PROTO_ClearQueue [13:33:07]wFMCommunicate request_size=4 [13:33:07]MH_SAM_APDU [13:33:07]CAPDU: 80 09 00 00 [13:33:07]Write to MH i2c: E2 08 00 9E 15 80 09 00 00 00 00 00 00 25 [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:07]Read from MH i2c: E2 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 9E 15 00 90 00 27 [13:33:07]RAPDU: 90 00 [13:33:07]wFMCommunicate OK [13:33:07]SAM_PROTO_ClearQueue done [13:33:07]KKMCreateOFDPacket [13:33:07]OFDProtocolAddRootSTLVToBuf [13:33:07]FM_MakeSignedData [13:33:07]FM_MakeSignedData [13:33:07]SAM_PROTO_SignData [13:33:07]wFMCommunicate request_size=4 [13:33:07]MH_SAM_APDU [13:33:07]CAPDU: 80 0D 01 02 [13:33:07]Write to MH i2c: E2 08 00 9F 15 80 0D 01 02 00 00 00 00 2D [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:07]Read from MH i2c: E2 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 9F 15 00 90 00 28 [13:33:07]RAPDU: 90 00 [13:33:07]wFMCommunicate OK [13:33:07]wFMCommunicate request_size=255 [13:33:07]MH_SAM_APDU [13:33:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 81 00 00 00 F4 03 04 00 13 41 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2A 39 02 00 35 04 06 00 60 [13:33:07]Write to MH i2c: E2 02 01 A0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 81 00 00 00 F4 03 04 00 13 41 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2A 39 02 00 35 04 06 00 60 00 00 D6 [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:07]Read from MH i2c: E2 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 A0 15 00 90 00 29 [13:33:07]RAPDU: 90 00 [13:33:07]wFMCommunicate OK [13:33:07]wFMCommunicate request_size=10 [13:33:07]MH_SAM_APDU [13:33:07]CAPDU: 80 0D 02 02 05 18 2C 06 62 0E [13:33:07]Write to MH i2c: E2 0D 00 A1 15 80 0D 02 02 05 00 18 2C 06 62 0E 00 00 F4 [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:07]Read from MH i2c: E2 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 A1 15 00 90 00 2A [13:33:07]RAPDU: 90 00 [13:33:07]wFMCommunicate OK [13:33:07]wFMCommunicate request_size=4 [13:33:07]MH_SAM_APDU [13:33:07]CAPDU: 80 0D 03 02 [13:33:07]Write to MH i2c: E2 08 00 A2 15 80 0D 03 02 00 00 00 00 32 [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:07]Read from MH i2c: E2 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 0B 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 0B 00 A2 15 00 D3 77 A3 47 A6 22 E6 83 90 00 98 [13:33:07]RAPDU: D3 77 A3 47 A6 22 E6 83 90 00 [13:33:07]wFMCommunicate OK [13:33:07]SAM_PROTO_SignData done [13:33:07]FM_MakeSignedData done [13:33:07]CreateOFDProtocolMessage [13:33:07]wFMCommunicate request_size=4 [13:33:07]MH_SAM_APDU [13:33:07]CAPDU: 80 11 00 00 [13:33:07]Write to MH i2c: E2 08 00 A3 15 80 11 00 00 00 00 00 00 32 [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:07]Read from MH i2c: E2 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 17 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 17 00 A3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 85 [13:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:33:07]wFMCommunicate OK [13:33:07]CreateOFDProtocolMessage done [13:33:07]OFDSenderStorePacket 145706 [13:33:07]StoreOFDPacket docnum=145706 [13:33:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C8 E1 07 01 E2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 81 00 00 00 F4 03 04 00 13 41 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2A 39 02 00 35 04 06 00 60 18 2C 06 62 0E D3 77 A3 47 A6 22 E6 83 [13:33:07]CheckFolder [13:33:07]dirname=/storage/ofd_packets [13:33:07]CheckFolder done [13:33:07]ProducePacketName [13:33:07]name=ofd_packets/00145706 [13:33:07]NVStorageSaveData ofd_packets/00145706 [13:33:07]File name is /storage/ofd_packets/00145706 [13:33:07]Write 301 bytes [13:33:07]NVStorageSaveData done [13:33:07]OFDSenderStorePacket done [13:33:07]KKMCreateOFDPacket done [13:33:07]NVStorageSaveData kkm_last_timestamp [13:33:07]File name is /storage/kkm_last_timestamp [13:33:07]Write 4 bytes [13:33:07]NVStorageSaveData done [13:33:07]ExternCall_PrintAddStr [13:33:07]wPrintStart [13:33:07]Write to MH i2c: 01 00 00 A4 15 B9 [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: 01 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: 01 07 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: 01 07 00 A4 15 00 00 00 00 00 FF 0F CE [13:33:07]RasterBufferAndPrint [13:33:07]line Счет N : (1)160461 [13:33:07]line ИНН: 02508201610067 [13:33:07]line Контрольно-Кассовый Чек [13:33:07]line ПРОДАЖА [13:33:07]line ТРК (МРК, ГНК) : 43 [13:33:07]line Товар: 2710124500 [13:33:07]line Аи-95-К-3 [13:33:07]line 6.740 * 74.20 [13:33:07]line = 500.11 [13:33:07]line НДС 12% НСП 1% [13:33:07]line > о реализуемом товаре [13:33:07]line ОКРУГЛЕНИЕ: -0.11 [13:33:07]line ИТОГО: 500.00 [13:33:07]line Внесено: 500.00 [13:33:07]line СДАЧА: 0.00 [13:33:07]line НСП 1% : 4.43 [13:33:07]line НДС 12% : 53.11 [13:33:07]line Наличными: 500.00 [13:33:07]line Безнал.: 0.00 [13:33:07]line Место: АЗС № 126 "Партнер Нефть" [13:33:07]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:33:07]line СНО: Общий режим [13:33:07]line Чек 129 27.10.2024 13:33 [13:33:07]line Смена: 545 ФФД: 1.0 [13:33:07]line ЗНМ: 0300000085 [13:33:07]line РНМ: 0000000000091683 [13:33:07]line Версия ККМ: 001 [13:33:07]line ФМ: 0000000000871745 [13:33:07]line ФД: 145706 [13:33:07]line ФПД: 105656934097422 [13:33:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133307&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145706&fm=105656934097422&tin=02508201610067®Number=0000000000091683&sum=50000 [13:33:08]written 0, free lines is 4095 [13:33:08]OFD Sender: Processing packet 145706 [packets to send 206, broken 205] [13:33:08]ProducePacketName [13:33:08]name=ofd_packets/00145706 [13:33:08]OFD Sender: To server: pG, [13:33:08]CommunicateWithHost lk.salyk.kg:30040 [13:33:08]ConnectInit lk.salyk.kg [13:33:08]Connected sock=10 [13:33:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C8 E1 07 01 E2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 81 00 00 00 F4 03 04 00 13 41 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2A 39 02 00 35 04 06 00 60 18 2C 06 62 0E D3 77 A3 47 A6 22 E6 83 [13:33:08]Write to MH i2c: 01 00 00 CF 15 E4 [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: 01 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: 01 07 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: 01 07 00 CF 15 00 00 00 00 00 BA 0C B1 [13:33:08]RasterBufferAndPrint [13:33:08]line [13:33:08]line [13:33:08]line [13:33:08]line [13:33:08]line [13:33:08]written 0, free lines is 3265 [13:33:08]MH_Cut [13:33:08]Write to MH i2c: D1 01 00 D6 15 01 BD [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: D1 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: D1 01 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: D1 01 00 D6 15 00 BC [13:33:08]Write to MH i2c: 01 00 00 D7 15 EC [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 29 03 47 00 04 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2A 39 02 00 F4 03 04 00 41 E6 1D 67 B6 04 01 00 00 A6 53 F5 D2 17 2C 60 D2 [13:33:08]CommunicateWithHost err = 0 [13:33:08]CheckOFDResponse [13:33:08]1017 (14) - 77093643461234 [13:33:08]1041 (16) - 0000000000871745 [13:33:08]1040 (4) - 145706 [13:33:08]1012 (4) - 27.10.2024 07:05 [13:33:08]1206 (1) - 0 [13:33:08]OFD Sender: Remove packet 145706 [13:33:08]ProducePacketName [13:33:08]name=ofd_packets/00145706 [13:33:08]NVStorageDeleteData [13:33:09]OFD Sender: No OFD packet to send [13:33:09]*** Cut start [13:33:09]*** Partial cut [13:33:09]*** CUTSNS_PIN = 1 [13:33:09]*** CUTSNS_PIN = 0 [13:33:09]*** Brake cut motor [13:33:10]Read from MH i2c: 01 [13:33:10]MH_I2C_Read... [13:33:10]*** Stop cut motor [13:33:10]*** Cut end [13:33:10]Read from MH i2c: 01 07 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: 01 07 00 D7 15 00 00 00 00 00 FF 0F 01 [13:33:10]process_action close_receipt done [13:33:10]requested_data is exist [13:33:10]produce_requested_data [13:33:10]requested_item fm.sn is exist - process it [13:33:10]wFMCommunicate request_size=4 [13:33:10]MH_SAM_APDU [13:33:10]CAPDU: 80 11 00 00 [13:33:10]Write to MH i2c: E2 08 00 D8 15 80 11 00 00 00 00 00 00 67 [13:33:10]Write i2c OK [13:33:10]MH_I2C_Read... [13:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:10]Read from MH i2c: E2 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 17 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 17 00 D8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BA [13:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:33:10]wFMCommunicate OK [13:33:10]requested_item fd.num is exist - process it [13:33:10]SAM_PROTO_GetFieldsCounters [13:33:10]wFMCommunicate request_size=4 [13:33:10]MH_SAM_APDU [13:33:10]CAPDU: 80 13 00 00 [13:33:10]Write to MH i2c: E2 08 00 D9 15 80 13 00 00 00 00 00 00 6A [13:33:10]Write i2c OK [13:33:10]MH_I2C_Read... [13:33:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:10]Read from MH i2c: E2 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 62 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 62 00 D9 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [13:33:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:10]wFMCommunicate OK [13:33:10]SAM_PROTO_GetFieldsCounters done [13:33:10]requested_item shift.num is exist - process it [13:33:10]requested_item shift.opened is exist - process it [13:33:10]req_shift_opened [13:33:10]FM_GetShiftState [13:33:10]SAM_PROTO_GetShiftState [13:33:10]wFMCommunicate request_size=4 [13:33:10]MH_SAM_APDU [13:33:10]CAPDU: 80 13 01 00 [13:33:10]Write to MH i2c: E2 08 00 DA 15 80 13 01 00 00 00 00 00 6C [13:33:10]Write i2c OK [13:33:10]MH_I2C_Read... [13:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:10]Read from MH i2c: E2 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 0E 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 0E 00 DA 15 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E4 [13:33:10]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:33:10]wFMCommunicate OK [13:33:10]SAM_PROTO_GetShiftState done [13:33:10]FM_GetShiftState done [13:33:10]req_shift_opened done [13:33:10]requested_item shift.open_date is exist - process it [13:33:10]req_shift_open_date [13:33:10]req_shift_open_date done [13:33:10]produce_requested_data done [13:33:10]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145706,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:33:10]process_action_free close_receipt [13:33:10]json_value_free [13:33:10]json_value_free done [13:33:10]process_json_proto returns [13:33:10]Send response to host [13:33:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145706,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:33:10]free response buf [13:33:10]execute_script done [13:33:10]execute_script returns [13:33:10]free content buf [13:33:10]Sock 7.Close socket [13:33:10]Sock 7.Thread stoped [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:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]int [13:38:39]Write to MH i2c: 01 00 00 DB 15 F0 [13:38:39]*** FLAG_PRN_KEY set [13:38:39]Write i2c OK [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: 01 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: 01 07 00 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: 01 07 00 DB 15 00 08 00 00 00 FF 0F 0D [13:38:39]state=0 [13:38:39]Key pressed [13:38:39]Feed [13:38:39]Write to MH i2c: D8 00 00 DC 15 C8 [13:38:39]Write i2c OK [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: D8 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: D8 01 00 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: D8 01 00 DC 15 00 C9 [13:38:39]int [13:38:39]Write to MH i2c: 01 00 00 DD 15 F2 [13:38:39]Write i2c OK [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: 01 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: 01 07 00 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: 01 07 00 DD 15 00 48 00 00 00 3C 00 7D [13:38:39]state=2 [13:38:39]Key pressed [13:38:39]int [13:38:39]Write to MH i2c: 01 00 00 DE 15 F3 [13:38:39]*** FLAG_PRN_KEY reset [13:38:39]Write i2c OK [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: 01 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: 01 07 00 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: 01 07 00 DE 15 00 00 00 00 00 F7 0F 00 [13:38:39]state=2 [13:38:39]Stop feed [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:01]accept exits with 9 [13:39:01]New connection [13:39:01]New thread 3066596708 created [13:39:01]Thread 3066740068 joined [13:39:01]Waiting for new connection... [13:39:01] Sock 9.Parse request [13:39:01]Sock 9.Check first char [13:39:01]Sock 9.First char is OK [13:39:01]request: POST /json_proto HTTP/1.0 [13:39:01]Method: POST [13:39:01]URL: /json_proto [13:39:01]Method is POST - this is cgi request [13:39:01]url: /json_proto [13:39:01]query_string will be loaded in cgi processing [13:39:01]execute_cgi json_proto POST (null) [13:39:01]execute_cgi path=json_proto method=POST [13:39:01]POST find Content-Length [13:39:01]Host: 172.17.40.195:8080 [13:39:01]Content-Length: 675 [13:39:01]Content-Type: application/json [13:39:01] [13:39:01]POST finish read [13:39:01]Found Content-Length = 675 [13:39:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:01]execute_script... [13:39:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:01]POST & json_proto [13:39:01]process_json_proto [13:39:01]json parsed OK: [13:39:01]protocol is kg_v1.0 [13:39:01]action value=close_receipt [13:39:01]process_action close_receipt [13:39:01]cmd_close_receipt [13:39:01]MH_GetDate [13:39:01]Write to MH i2c: F0 00 00 DF 15 E3 [13:39:01]Write i2c OK [13:39:01]MH_I2C_Read... [13:39:01]Read from MH i2c: F0 [13:39:01]MH_I2C_Read... [13:39:01]Read from MH i2c: F0 09 00 [13:39:01]MH_I2C_Read... [13:39:01]Read from MH i2c: F0 09 00 DF 15 00 76 42 1E 67 D5 8D 6C 64 5B [13:39:01]GetLastDocTimeStamp 1730035987 [13:39:01]current date 1730036342 [13:39:01]FM_GetShiftState [13:39:01]SAM_PROTO_GetShiftState [13:39:01]wFMCommunicate request_size=4 [13:39:01]MH_SAM_APDU [13:39:01]CAPDU: 80 13 01 00 [13:39:01]Write to MH i2c: E2 08 00 E0 15 80 13 01 00 00 00 00 00 72 [13:39:01]Write i2c OK [13:39:01]MH_I2C_Read... [13:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:01]Read from MH i2c: E2 [13:39:01]MH_I2C_Read... [13:39:01]Read from MH i2c: E2 0E 00 [13:39:01]MH_I2C_Read... [13:39:01]Read from MH i2c: E2 0E 00 E0 15 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EA [13:39:01]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:39:01]wFMCommunicate OK [13:39:01]SAM_PROTO_GetShiftState done [13:39:01]FM_GetShiftState done [13:39:01]opened in 1729988959 [13:39:01]opened+sec_in_day 1730075359 [13:39:01]quantity*price = 80010 [13:39:01]sum+1 = 80011 [13:39:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 130 27.10.2024 13:39 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145707 ФПД: 202033517493816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133902&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145707&fm=202033517493816&tin=02508201610067®Number=0000000000091683&sum=80000 [13:39:02]StoreToDocumentArchive [13:39:02]shift 545 fd 145707 [13:39:02]save to /storage/0545/doc_00145707 [13:39:02]save last doc name /storage/0545/doc_00145707 to /storage/kkm_last_doc_name [13:39:02]save OK [13:39:02]Clear old archive folders... [13:39:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:39:02]tlvbuf is 00464340 [13:39:02]SAM_PROTO_ClearQueue [13:39:02]wFMCommunicate request_size=4 [13:39:02]MH_SAM_APDU [13:39:02]CAPDU: 80 09 00 00 [13:39:02]Write to MH i2c: E2 08 00 ED 15 80 09 00 00 00 00 00 00 74 [13:39:02]Write i2c OK [13:39:02]MH_I2C_Read... [13:39:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:02]Read from MH i2c: E2 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 ED 15 00 90 00 76 [13:39:02]RAPDU: 90 00 [13:39:02]wFMCommunicate OK [13:39:02]SAM_PROTO_ClearQueue done [13:39:02]KKMCreateOFDPacket [13:39:02]OFDProtocolAddRootSTLVToBuf [13:39:02]FM_MakeSignedData [13:39:02]FM_MakeSignedData [13:39:02]SAM_PROTO_SignData [13:39:02]wFMCommunicate request_size=4 [13:39:02]MH_SAM_APDU [13:39:02]CAPDU: 80 0D 01 02 [13:39:02]Write to MH i2c: E2 08 00 EE 15 80 0D 01 02 00 00 00 00 7C [13:39:02]Write i2c OK [13:39:02]MH_I2C_Read... [13:39:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:02]Read from MH i2c: E2 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 EE 15 00 90 00 77 [13:39:02]RAPDU: 90 00 [13:39:02]wFMCommunicate OK [13:39:02]wFMCommunicate request_size=255 [13:39:02]MH_SAM_APDU [13:39:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 42 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2B 39 02 00 35 04 06 00 B7 BF 98 0A [13:39:02]Write to MH i2c: E2 02 01 EF 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 42 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2B 39 02 00 35 04 06 00 B7 BF 98 0A 00 00 93 [13:39:02]Write i2c OK [13:39:02]MH_I2C_Read... [13:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:02]Read from MH i2c: E2 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 EF 15 00 90 00 78 [13:39:02]RAPDU: 90 00 [13:39:02]wFMCommunicate OK [13:39:02]wFMCommunicate request_size=7 [13:39:02]MH_SAM_APDU [13:39:02]CAPDU: 80 0D 02 02 02 FE 38 [13:39:02]Write to MH i2c: E2 0A 00 F0 15 80 0D 02 02 02 00 FE 38 00 00 B9 [13:39:02]Write i2c OK [13:39:02]MH_I2C_Read... [13:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:02]Read from MH i2c: E2 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 F0 15 00 90 00 79 [13:39:02]RAPDU: 90 00 [13:39:02]wFMCommunicate OK [13:39:02]wFMCommunicate request_size=4 [13:39:02]MH_SAM_APDU [13:39:02]CAPDU: 80 0D 03 02 [13:39:02]Write to MH i2c: E2 08 00 F1 15 80 0D 03 02 00 00 00 00 81 [13:39:02]Write i2c OK [13:39:02]MH_I2C_Read... [13:39:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:02]Read from MH i2c: E2 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 0B 00 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 0B 00 F1 15 00 92 28 52 08 69 B6 1D B9 90 00 8B [13:39:02]RAPDU: 92 28 52 08 69 B6 1D B9 90 00 [13:39:02]wFMCommunicate OK [13:39:02]SAM_PROTO_SignData done [13:39:02]FM_MakeSignedData done [13:39:02]CreateOFDProtocolMessage [13:39:02]wFMCommunicate request_size=4 [13:39:02]MH_SAM_APDU [13:39:02]CAPDU: 80 11 00 00 [13:39:02]Write to MH i2c: E2 08 00 F2 15 80 11 00 00 00 00 00 00 81 [13:39:02]Write i2c OK [13:39:02]MH_I2C_Read... [13:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:02]Read from MH i2c: E2 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 17 00 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 17 00 F2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D4 [13:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:39:02]wFMCommunicate OK [13:39:02]CreateOFDProtocolMessage done [13:39:02]OFDSenderStorePacket 145707 [13:39:02]StoreOFDPacket docnum=145707 [13:39:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 31 4E 04 01 C8 DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 42 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2B 39 02 00 35 04 06 00 B7 BF 98 0A FE 38 92 28 52 08 69 B6 1D B9 [13:39:02]CheckFolder [13:39:02]dirname=/storage/ofd_packets [13:39:02]CheckFolder done [13:39:02]ProducePacketName [13:39:02]name=ofd_packets/00145707 [13:39:02]NVStorageSaveData ofd_packets/00145707 [13:39:02]File name is /storage/ofd_packets/00145707 [13:39:02]Write 298 bytes [13:39:02]NVStorageSaveData done [13:39:02]OFDSenderStorePacket done [13:39:02]KKMCreateOFDPacket done [13:39:02]NVStorageSaveData kkm_last_timestamp [13:39:02]File name is /storage/kkm_last_timestamp [13:39:02]Write 4 bytes [13:39:02]NVStorageSaveData done [13:39:02]ExternCall_PrintAddStr [13:39:02]wPrintStart [13:39:02]Write to MH i2c: 01 00 00 F3 15 08 [13:39:02]Write i2c OK [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: 01 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: 01 07 00 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: 01 07 00 F3 15 00 00 00 00 00 FF 0F 1D [13:39:02]RasterBufferAndPrint [13:39:02]line Счет N : (1)160462 [13:39:02]line ИНН: 02508201610067 [13:39:02]line Контрольно-Кассовый Чек [13:39:02]line ПРОДАЖА [13:39:02]line ТРК (МРК, ГНК) : 21 [13:39:02]line Товар: 2710194210 [13:39:02]line ДТ-К-2 [13:39:02]line 10.500 * 76.20 [13:39:02]line = 800.10 [13:39:02]line НДС 12% НСП 1% [13:39:02]line > о реализуемом товаре [13:39:02]line ОКРУГЛЕНИЕ: -0.10 [13:39:02]line ИТОГО: 800.00 [13:39:02]line Внесено: 800.00 [13:39:02]line СДАЧА: 0.00 [13:39:02]line НСП 1% : 7.08 [13:39:02]line НДС 12% : 84.97 [13:39:02]line Наличными: 800.00 [13:39:02]line Безнал.: 0.00 [13:39:02]line Место: АЗС № 126 "Партнер Нефть" [13:39:02]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:39:02]line СНО: Общий режим [13:39:02]line Чек 130 27.10.2024 13:39 [13:39:02]line Смена: 545 ФФД: 1.0 [13:39:02]line ЗНМ: 0300000085 [13:39:02]line РНМ: 0000000000091683 [13:39:02]line Версия ККМ: 001 [13:39:02]line ФМ: 0000000000871745 [13:39:02]line ФД: 145707 [13:39:02]line ФПД: 202033517493816 [13:39:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133902&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145707&fm=202033517493816&tin=02508201610067®Number=0000000000091683&sum=80000 [13:39:03]OFD Sender: Processing packet 145707 [packets to send 206, broken 205] [13:39:03]ProducePacketName [13:39:03]name=ofd_packets/00145707 [13:39:03]OFD Sender: To server: pG, [13:39:03]CommunicateWithHost lk.salyk.kg:30040 [13:39:03]ConnectInit lk.salyk.kg [13:39:03]written 0, free lines is 4095 [13:39:03]Connected sock=10 [13:39:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 31 4E 04 01 C8 DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 42 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2B 39 02 00 35 04 06 00 B7 BF 98 0A FE 38 92 28 52 08 69 B6 1D B9 [13:39:03]Write to MH i2c: 01 00 00 1E 16 34 [13:39:03]Write i2c OK [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: 01 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: 01 07 00 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: 01 07 00 1E 16 00 00 00 00 00 B9 0C 00 [13:39:03]RasterBufferAndPrint [13:39:03]line [13:39:03]line [13:39:03]line [13:39:03]line [13:39:03]line [13:39:03]written 0, free lines is 3264 [13:39:03]MH_Cut [13:39:03]Write to MH i2c: D1 01 00 25 16 01 0D [13:39:03]Write i2c OK [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: D1 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: D1 01 00 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: D1 01 00 25 16 00 0C [13:39:03]Write to MH i2c: 01 00 00 26 16 3C [13:39:03]Write i2c OK [13:39:03]MH_I2C_Read... [13:39:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 33 EF 47 00 EA 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2B 39 02 00 F4 03 04 00 A4 E7 1D 67 B6 04 01 00 00 59 13 4C 51 46 F1 04 A4 [13:39:03]CommunicateWithHost err = 0 [13:39:03]CheckOFDResponse [13:39:03]1017 (14) - 77093643461234 [13:39:03]1041 (16) - 0000000000871745 [13:39:03]1040 (4) - 145707 [13:39:03]1012 (4) - 27.10.2024 07:11 [13:39:03]1206 (1) - 0 [13:39:03]OFD Sender: Remove packet 145707 [13:39:03]ProducePacketName [13:39:03]name=ofd_packets/00145707 [13:39:03]NVStorageDeleteData [13:39:04]OFD Sender: No OFD packet to send [13:39:04]*** Cut start [13:39:04]*** Partial cut [13:39:04]*** CUTSNS_PIN = 1 [13:39:04]*** CUTSNS_PIN = 0 [13:39:04]*** Brake cut motor [13:39:05]Read from MH i2c: 01 [13:39:05]MH_I2C_Read... [13:39:05]*** Stop cut motor [13:39:05]*** Cut end [13:39:05]Read from MH i2c: 01 07 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: 01 07 00 26 16 00 00 00 00 00 FF 0F 51 [13:39:05]process_action close_receipt done [13:39:05]requested_data is exist [13:39:05]produce_requested_data [13:39:05]requested_item fm.sn is exist - process it [13:39:05]wFMCommunicate request_size=4 [13:39:05]MH_SAM_APDU [13:39:05]CAPDU: 80 11 00 00 [13:39:05]Write to MH i2c: E2 08 00 27 16 80 11 00 00 00 00 00 00 B7 [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:05]Read from MH i2c: E2 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 17 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 17 00 27 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0A [13:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:39:05]wFMCommunicate OK [13:39:05]requested_item fd.num is exist - process it [13:39:05]SAM_PROTO_GetFieldsCounters [13:39:05]wFMCommunicate request_size=4 [13:39:05]MH_SAM_APDU [13:39:05]CAPDU: 80 13 00 00 [13:39:05]Write to MH i2c: E2 08 00 28 16 80 13 00 00 00 00 00 00 BA [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:05]Read from MH i2c: E2 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 62 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 62 00 28 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [13:39:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:05]wFMCommunicate OK [13:39:05]SAM_PROTO_GetFieldsCounters done [13:39:05]requested_item shift.num is exist - process it [13:39:05]requested_item shift.opened is exist - process it [13:39:05]req_shift_opened [13:39:05]FM_GetShiftState [13:39:05]SAM_PROTO_GetShiftState [13:39:05]wFMCommunicate request_size=4 [13:39:05]MH_SAM_APDU [13:39:05]CAPDU: 80 13 01 00 [13:39:05]Write to MH i2c: E2 08 00 29 16 80 13 01 00 00 00 00 00 BC [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:05]Read from MH i2c: E2 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 0E 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 0E 00 29 16 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 34 [13:39:05]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:39:05]wFMCommunicate OK [13:39:05]SAM_PROTO_GetShiftState done [13:39:05]FM_GetShiftState done [13:39:05]req_shift_opened done [13:39:05]requested_item shift.open_date is exist - process it [13:39:05]req_shift_open_date [13:39:05]req_shift_open_date done [13:39:05]produce_requested_data done [13:39:05]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145707,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:39:05]process_action_free close_receipt [13:39:05]json_value_free [13:39:05]json_value_free done [13:39:05]process_json_proto returns [13:39:05]Send response to host [13:39:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145707,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:39:05]free response buf [13:39:05]execute_script done [13:39:05]execute_script returns [13:39:05]free content buf [13:39:05]Sock 9.Close socket [13:39:05]Sock 9.Thread stoped [13:39:09]OFD Sender: No OFD packet to send [13:39:14]accept exits with 7 [13:39:14]New connection [13:39:14]New thread 3066740068 created [13:39:14]Thread 3066596708 joined [13:39:14]Waiting for new connection... [13:39:14] Sock 7.Parse request [13:39:14]Sock 7.Check first char [13:39:14]Sock 7.First char is OK [13:39:14]request: POST /json_proto HTTP/1.0 [13:39:14]Method: POST [13:39:14]URL: /json_proto [13:39:14]Method is POST - this is cgi request [13:39:14]url: /json_proto [13:39:14]query_string will be loaded in cgi processing [13:39:14]execute_cgi json_proto POST (null) [13:39:14]execute_cgi path=json_proto method=POST [13:39:14]POST find Content-Length [13:39:14]Host: 172.17.40.195:8080 [13:39:14]Content-Length: 677 [13:39:14]Content-Type: application/json [13:39:14] [13:39:14]POST finish read [13:39:14]Found Content-Length = 677 [13:39:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:14]execute_script... [13:39: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)160463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:14]POST & json_proto [13:39:14]process_json_proto [13:39:14]json parsed OK: [13:39:14]protocol is kg_v1.0 [13:39:14]action value=close_receipt [13:39:14]process_action close_receipt [13:39:14]cmd_close_receipt [13:39:14]MH_GetDate [13:39:14]Write to MH i2c: F0 00 00 2A 16 2F [13:39:14]Write i2c OK [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: F0 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: F0 09 00 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: F0 09 00 2A 16 00 83 42 1E 67 D5 8D 6C 64 B4 [13:39:14]GetLastDocTimeStamp 1730036342 [13:39:14]current date 1730036355 [13:39:14]FM_GetShiftState [13:39:14]SAM_PROTO_GetShiftState [13:39:14]wFMCommunicate request_size=4 [13:39:14]MH_SAM_APDU [13:39:14]CAPDU: 80 13 01 00 [13:39:14]Write to MH i2c: E2 08 00 2B 16 80 13 01 00 00 00 00 00 BE [13:39:14]Write i2c OK [13:39:14]MH_I2C_Read... [13:39:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:14]Read from MH i2c: E2 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: E2 0E 00 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: E2 0E 00 2B 16 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 36 [13:39:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:39:14]wFMCommunicate OK [13:39:14]SAM_PROTO_GetShiftState done [13:39:14]FM_GetShiftState done [13:39:14]opened in 1729988959 [13:39:14]opened+sec_in_day 1730075359 [13:39:14]quantity*price = 50041 [13:39:14]sum+1 = 50042 [13:39:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 131 27.10.2024 13:39 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145708 ФПД: 189306643187830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133916&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145708&fm=189306643187830&tin=02508201610067®Number=0000000000091683&sum=50000 [13:39:15]StoreToDocumentArchive [13:39:15]shift 545 fd 145708 [13:39:15]save to /storage/0545/doc_00145708 [13:39:15]save last doc name /storage/0545/doc_00145708 to /storage/kkm_last_doc_name [13:39:15]save OK [13:39:15]Clear old archive folders... [13:39:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:15]tlvbuf is 0042FD70 [13:39:15]SAM_PROTO_ClearQueue [13:39:15]wFMCommunicate request_size=4 [13:39:15]MH_SAM_APDU [13:39:15]CAPDU: 80 09 00 00 [13:39:15]Write to MH i2c: E2 08 00 38 16 80 09 00 00 00 00 00 00 C0 [13:39:15]Write i2c OK [13:39:15]MH_I2C_Read... [13:39:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:15]Read from MH i2c: E2 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 03 00 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 03 00 38 16 00 90 00 C2 [13:39:15]RAPDU: 90 00 [13:39:15]wFMCommunicate OK [13:39:15]SAM_PROTO_ClearQueue done [13:39:15]KKMCreateOFDPacket [13:39:15]OFDProtocolAddRootSTLVToBuf [13:39:15]FM_MakeSignedData [13:39:15]FM_MakeSignedData [13:39:15]SAM_PROTO_SignData [13:39:15]wFMCommunicate request_size=4 [13:39:15]MH_SAM_APDU [13:39:15]CAPDU: 80 0D 01 02 [13:39:15]Write to MH i2c: E2 08 00 39 16 80 0D 01 02 00 00 00 00 C8 [13:39:15]Write i2c OK [13:39:15]MH_I2C_Read... [13:39:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:15]Read from MH i2c: E2 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 03 00 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 03 00 39 16 00 90 00 C3 [13:39:15]RAPDU: 90 00 [13:39:15]wFMCommunicate OK [13:39:15]wFMCommunicate request_size=255 [13:39:15]MH_SAM_APDU [13:39: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 84 42 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2C 39 02 00 35 04 06 00 AC [13:39:15]Write to MH i2c: E2 02 01 3A 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 84 42 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2C 39 02 00 35 04 06 00 AC 00 00 5A [13:39:15]Write i2c OK [13:39:15]MH_I2C_Read... [13:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:15]Read from MH i2c: E2 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 03 00 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 03 00 3A 16 00 90 00 C4 [13:39:15]RAPDU: 90 00 [13:39:15]wFMCommunicate OK [13:39:15]wFMCommunicate request_size=10 [13:39:15]MH_SAM_APDU [13:39:15]CAPDU: 80 0D 02 02 05 2C 63 38 88 76 [13:39:15]Write to MH i2c: E2 0D 00 3B 16 80 0D 02 02 05 00 2C 63 38 88 76 00 00 9A [13:39:15]Write i2c OK [13:39:15]MH_I2C_Read... [13:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:15]Read from MH i2c: E2 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 03 00 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 03 00 3B 16 00 90 00 C5 [13:39:15]RAPDU: 90 00 [13:39:15]wFMCommunicate OK [13:39:15]wFMCommunicate request_size=4 [13:39:15]MH_SAM_APDU [13:39:15]CAPDU: 80 0D 03 02 [13:39:15]Write to MH i2c: E2 08 00 3C 16 80 0D 03 02 00 00 00 00 CD [13:39:15]Write i2c OK [13:39:15]MH_I2C_Read... [13:39:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:15]Read from MH i2c: E2 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 0B 00 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 0B 00 3C 16 00 8E B9 9C 31 FC 22 9A 3A 90 00 D4 [13:39:15]RAPDU: 8E B9 9C 31 FC 22 9A 3A 90 00 [13:39:15]wFMCommunicate OK [13:39:15]SAM_PROTO_SignData done [13:39:15]FM_MakeSignedData done [13:39:15]CreateOFDProtocolMessage [13:39:15]wFMCommunicate request_size=4 [13:39:15]MH_SAM_APDU [13:39:15]CAPDU: 80 11 00 00 [13:39:15]Write to MH i2c: E2 08 00 3D 16 80 11 00 00 00 00 00 00 CD [13:39:15]Write i2c OK [13:39:15]MH_I2C_Read... [13:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:15]Read from MH i2c: E2 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 17 00 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 17 00 3D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 20 [13:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:39:15]wFMCommunicate OK [13:39:15]CreateOFDProtocolMessage done [13:39:15]OFDSenderStorePacket 145708 [13:39:15]StoreOFDPacket docnum=145708 [13:39:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 77 EF 07 01 64 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 84 42 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2C 39 02 00 35 04 06 00 AC 2C 63 38 88 76 8E B9 9C 31 FC 22 9A 3A [13:39:15]CheckFolder [13:39:15]dirname=/storage/ofd_packets [13:39:15]CheckFolder done [13:39:15]ProducePacketName [13:39:15]name=ofd_packets/00145708 [13:39:15]NVStorageSaveData ofd_packets/00145708 [13:39:15]File name is /storage/ofd_packets/00145708 [13:39:15]Write 301 bytes [13:39:15]NVStorageSaveData done [13:39:15]OFDSenderStorePacket done [13:39:15]KKMCreateOFDPacket done [13:39:15]NVStorageSaveData kkm_last_timestamp [13:39:15]File name is /storage/kkm_last_timestamp [13:39:15]Write 4 bytes [13:39:15]NVStorageSaveData done [13:39:15]ExternCall_PrintAddStr [13:39:15]wPrintStart [13:39:15]Write to MH i2c: 01 00 00 3E 16 54 [13:39:15]Write i2c OK [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: 01 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: 01 07 00 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: 01 07 00 3E 16 00 00 00 00 00 FF 0F 69 [13:39:15]RasterBufferAndPrint [13:39:15]line Счет N : (1)160463 [13:39:15]line ИНН: 02508201610067 [13:39:15]line Контрольно-Кассовый Чек [13:39:15]line ПРОДАЖА [13:39:15]line ТРК (МРК, ГНК) : 52 [13:39:15]line Товар: 2710124130 [13:39:15]line Аи-92-К-2 [13:39:15]line 7.480 * 66.90 [13:39:15]line = 500.41 [13:39:15]line НДС 12% НСП 1% [13:39:15]line > о реализуемом товаре [13:39:15]line ОКРУГЛЕНИЕ: -0.41 [13:39:15]line ИТОГО: 500.00 [13:39:15]line Внесено: 500.00 [13:39:15]line СДАЧА: 0.00 [13:39:15]line НСП 1% : 4.43 [13:39:15]line НДС 12% : 53.14 [13:39:15]line Наличными: 500.00 [13:39:15]line Безнал.: 0.00 [13:39:15]line Место: АЗС № 126 "Партнер Нефть" [13:39:15]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:39:15]line СНО: Общий режим [13:39:15]line Чек 131 27.10.2024 13:39 [13:39:15]line Смена: 545 ФФД: 1.0 [13:39:15]line ЗНМ: 0300000085 [13:39:15]line РНМ: 0000000000091683 [13:39:15]line Версия ККМ: 001 [13:39:15]line ФМ: 0000000000871745 [13:39:15]line ФД: 145708 [13:39:15]line ФПД: 189306643187830 [13:39:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133916&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145708&fm=189306643187830&tin=02508201610067®Number=0000000000091683&sum=50000 [13:39:16]OFD Sender: Processing packet 145708 [packets to send 206, broken 205] [13:39:16]ProducePacketName [13:39:16]name=ofd_packets/00145708 [13:39:16]OFD Sender: To server: pG, [13:39:16]CommunicateWithHost lk.salyk.kg:30040 [13:39:16]ConnectInit lk.salyk.kg [13:39:16]written 0, free lines is 4095 [13:39:16]Connected sock=10 [13:39:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 77 EF 07 01 64 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 84 42 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2C 39 02 00 35 04 06 00 AC 2C 63 38 88 76 8E B9 9C 31 FC 22 9A 3A [13:39:16]Write to MH i2c: 01 00 00 69 16 7F [13:39:16]Write i2c OK [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: 01 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: 01 07 00 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: 01 07 00 69 16 00 00 00 00 00 C2 0C 54 [13:39:16]RasterBufferAndPrint [13:39:16]line [13:39:16]line [13:39:16]line [13:39:16]line [13:39:16]line [13:39:16]written 0, free lines is 3275 [13:39:16]MH_Cut [13:39:16]Write to MH i2c: D1 01 00 70 16 01 58 [13:39:16]Write i2c OK [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: D1 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: D1 01 00 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: D1 01 00 70 16 00 57 [13:39:16]Write to MH i2c: 01 00 00 71 16 87 [13:39:16]Write i2c OK [13:39:16]MH_I2C_Read... [13:39:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C2 B8 47 00 C6 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2C 39 02 00 F4 03 04 00 B1 E7 1D 67 B6 04 01 00 00 BB 58 AE F8 5A E0 19 FE [13:39:16]CommunicateWithHost err = 0 [13:39:16]CheckOFDResponse [13:39:16]1017 (14) - 77093643461234 [13:39:16]1041 (16) - 0000000000871745 [13:39:16]1040 (4) - 145708 [13:39:16]1012 (4) - 27.10.2024 07:11 [13:39:16]1206 (1) - 0 [13:39:16]OFD Sender: Remove packet 145708 [13:39:16]ProducePacketName [13:39:16]name=ofd_packets/00145708 [13:39:16]NVStorageDeleteData [13:39:17]OFD Sender: No OFD packet to send [13:39:17]*** Cut start [13:39:17]*** Partial cut [13:39:17]*** CUTSNS_PIN = 1 [13:39:17]*** CUTSNS_PIN = 0 [13:39:17]*** Brake cut motor [13:39:18]Read from MH i2c: 01 [13:39:18]MH_I2C_Read... [13:39:18]*** Stop cut motor [13:39:18]*** Cut end [13:39:18]Read from MH i2c: 01 07 00 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: 01 07 00 71 16 00 00 00 00 00 FF 0F 9C [13:39:18]process_action close_receipt done [13:39:18]requested_data is exist [13:39:18]produce_requested_data [13:39:18]requested_item fm.sn is exist - process it [13:39:18]wFMCommunicate request_size=4 [13:39:18]MH_SAM_APDU [13:39:18]CAPDU: 80 11 00 00 [13:39:18]Write to MH i2c: E2 08 00 72 16 80 11 00 00 00 00 00 00 02 [13:39:18]Write i2c OK [13:39:18]MH_I2C_Read... [13:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:18]Read from MH i2c: E2 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: E2 17 00 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: E2 17 00 72 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 55 [13:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:39:18]wFMCommunicate OK [13:39:18]requested_item fd.num is exist - process it [13:39:18]SAM_PROTO_GetFieldsCounters [13:39:18]wFMCommunicate request_size=4 [13:39:18]MH_SAM_APDU [13:39:18]CAPDU: 80 13 00 00 [13:39:18]Write to MH i2c: E2 08 00 73 16 80 13 00 00 00 00 00 00 05 [13:39:18]Write i2c OK [13:39:18]MH_I2C_Read... [13:39:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:18]Read from MH i2c: E2 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: E2 62 00 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: E2 62 00 73 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [13:39:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:18]wFMCommunicate OK [13:39:18]SAM_PROTO_GetFieldsCounters done [13:39:18]requested_item shift.num is exist - process it [13:39:18]requested_item shift.opened is exist - process it [13:39:18]req_shift_opened [13:39:18]FM_GetShiftState [13:39:18]SAM_PROTO_GetShiftState [13:39:18]wFMCommunicate request_size=4 [13:39:18]MH_SAM_APDU [13:39:18]CAPDU: 80 13 01 00 [13:39:18]Write to MH i2c: E2 08 00 74 16 80 13 01 00 00 00 00 00 07 [13:39:18]Write i2c OK [13:39:18]MH_I2C_Read... [13:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:18]Read from MH i2c: E2 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: E2 0E 00 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: E2 0E 00 74 16 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7F [13:39:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:39:18]wFMCommunicate OK [13:39:18]SAM_PROTO_GetShiftState done [13:39:18]FM_GetShiftState done [13:39:18]req_shift_opened done [13:39:18]requested_item shift.open_date is exist - process it [13:39:18]req_shift_open_date [13:39:18]req_shift_open_date done [13:39:18]produce_requested_data done [13:39:18]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145708,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:39:18]process_action_free close_receipt [13:39:18]json_value_free [13:39:18]json_value_free done [13:39:18]process_json_proto returns [13:39:18]Send response to host [13:39:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145708,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:39:18]free response buf [13:39:18]execute_script done [13:39:18]execute_script returns [13:39:18]free content buf [13:39:18]Sock 7.Close socket [13:39:18]Sock 7.Thread stoped [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:28]accept exits with 9 [13:42:28]New connection [13:42:28]New thread 3066596708 created [13:42:28]Thread 3066740068 joined [13:42:28]Waiting for new connection... [13:42:28] Sock 9.Parse request [13:42:28]Sock 9.Check first char [13:42:28]Sock 9.First char is OK [13:42:28]request: POST /json_proto HTTP/1.0 [13:42:28]Method: POST [13:42:28]URL: /json_proto [13:42:28]Method is POST - this is cgi request [13:42:28]url: /json_proto [13:42:28]query_string will be loaded in cgi processing [13:42:28]execute_cgi json_proto POST (null) [13:42:28]execute_cgi path=json_proto method=POST [13:42:28]POST find Content-Length [13:42:28]Host: 172.17.40.195:8080 [13:42:28]Content-Length: 766 [13:42:28]Content-Type: application/json [13:42:28] [13:42:28]POST finish read [13:42:28]Found Content-Length = 766 [13:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:28]execute_script... [13:42:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:28]POST & json_proto [13:42:28]process_json_proto [13:42:28]json parsed OK: [13:42:28]protocol is kg_v1.0 [13:42:28]action value=close_receipt [13:42:28]process_action close_receipt [13:42:28]cmd_close_receipt [13:42:28]MH_GetDate [13:42:28]Write to MH i2c: F0 00 00 75 16 7A [13:42:28]Write i2c OK [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: F0 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: F0 09 00 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: F0 09 00 75 16 00 46 43 1E 67 D5 8D 6C 64 C3 [13:42:28]GetLastDocTimeStamp 1730036356 [13:42:28]current date 1730036550 [13:42:28]FM_GetShiftState [13:42:28]SAM_PROTO_GetShiftState [13:42:28]wFMCommunicate request_size=4 [13:42:28]MH_SAM_APDU [13:42:28]CAPDU: 80 13 01 00 [13:42:28]Write to MH i2c: E2 08 00 76 16 80 13 01 00 00 00 00 00 09 [13:42:28]Write i2c OK [13:42:28]MH_I2C_Read... [13:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:28]Read from MH i2c: E2 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 0E 00 [13:42:28]MH_I2C_Read... [13:42:28]Read from MH i2c: E2 0E 00 76 16 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 81 [13:42:28]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:42:28]wFMCommunicate OK [13:42:28]SAM_PROTO_GetShiftState done [13:42:28]FM_GetShiftState done [13:42:28]opened in 1729988959 [13:42:28]opened+sec_in_day 1730075359 [13:42:28]quantity*price = 30038 [13:42:28]sum+1 = 30039 [13:42:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 132 27.10.2024 13:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145709 ФПД: 54036963597830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134230&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145709&fm=54036963597830&tin=02508201610067®Number=0000000000091683&sum=30038 [13:42:29]StoreToDocumentArchive [13:42:29]shift 545 fd 145709 [13:42:29]save to /storage/0545/doc_00145709 [13:42:29]save last doc name /storage/0545/doc_00145709 to /storage/kkm_last_doc_name [13:42:29]save OK [13:42:29]Clear old archive folders... [13:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:29]tlvbuf is 00428340 [13:42:29]SAM_PROTO_ClearQueue [13:42:29]wFMCommunicate request_size=4 [13:42:29]MH_SAM_APDU [13:42:29]CAPDU: 80 09 00 00 [13:42:29]Write to MH i2c: E2 08 00 83 16 80 09 00 00 00 00 00 00 0B [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:29]Read from MH i2c: E2 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 03 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 03 00 83 16 00 90 00 0D [13:42:29]RAPDU: 90 00 [13:42:29]wFMCommunicate OK [13:42:29]SAM_PROTO_ClearQueue done [13:42:29]KKMCreateOFDPacket [13:42:29]OFDProtocolAddRootSTLVToBuf [13:42:29]FM_MakeSignedData [13:42:29]FM_MakeSignedData [13:42:29]SAM_PROTO_SignData [13:42:29]wFMCommunicate request_size=4 [13:42:29]MH_SAM_APDU [13:42:29]CAPDU: 80 0D 01 02 [13:42:29]Write to MH i2c: E2 08 00 84 16 80 0D 01 02 00 00 00 00 13 [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:29]Read from MH i2c: E2 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 03 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 03 00 84 16 00 90 00 0E [13:42:29]RAPDU: 90 00 [13:42:29]wFMCommunicate OK [13:42:29]wFMCommunicate request_size=255 [13:42:29]MH_SAM_APDU [13:42:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 46 43 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2D 39 02 00 35 04 06 00 31 [13:42:29]Write to MH i2c: E2 02 01 85 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 46 43 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2D 39 02 00 35 04 06 00 31 00 00 2F [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:29]Read from MH i2c: E2 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 03 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 03 00 85 16 00 90 00 0F [13:42:29]RAPDU: 90 00 [13:42:29]wFMCommunicate OK [13:42:29]wFMCommunicate request_size=10 [13:42:29]MH_SAM_APDU [13:42:29]CAPDU: 80 0D 02 02 05 25 76 05 1E 06 [13:42:29]Write to MH i2c: E2 0D 00 86 16 80 0D 02 02 05 00 25 76 05 1E 06 00 00 E4 [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:29]Read from MH i2c: E2 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 03 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 03 00 86 16 00 90 00 10 [13:42:29]RAPDU: 90 00 [13:42:29]wFMCommunicate OK [13:42:29]wFMCommunicate request_size=4 [13:42:29]MH_SAM_APDU [13:42:29]CAPDU: 80 0D 03 02 [13:42:29]Write to MH i2c: E2 08 00 87 16 80 0D 03 02 00 00 00 00 18 [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:29]Read from MH i2c: E2 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 0B 00 [13:42:29]MH_I2C_Read... [13:42:29]Read from MH i2c: E2 0B 00 87 16 00 61 6A 26 CD 49 19 6A E3 90 00 86 [13:42:29]RAPDU: 61 6A 26 CD 49 19 6A E3 90 00 [13:42:29]wFMCommunicate OK [13:42:29]SAM_PROTO_SignData done [13:42:29]FM_MakeSignedData done [13:42:29]CreateOFDProtocolMessage [13:42:29]wFMCommunicate request_size=4 [13:42:29]MH_SAM_APDU [13:42:29]CAPDU: 80 11 00 00 [13:42:29]Write to MH i2c: E2 08 00 88 16 80 11 00 00 00 00 00 00 18 [13:42:29]Write i2c OK [13:42:29]MH_I2C_Read... [13:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:30]Read from MH i2c: E2 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: E2 17 00 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: E2 17 00 88 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6B [13:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:42:30]wFMCommunicate OK [13:42:30]CreateOFDProtocolMessage done [13:42:30]OFDSenderStorePacket 145709 [13:42:30]StoreOFDPacket docnum=145709 [13:42:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 15 5C 07 01 36 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 46 43 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2D 39 02 00 35 04 06 00 31 25 76 05 1E 06 61 6A 26 CD 49 19 6A E3 [13:42:30]CheckFolder [13:42:30]dirname=/storage/ofd_packets [13:42:30]CheckFolder done [13:42:30]ProducePacketName [13:42:30]name=ofd_packets/00145709 [13:42:30]NVStorageSaveData ofd_packets/00145709 [13:42:30]File name is /storage/ofd_packets/00145709 [13:42:30]Write 301 bytes [13:42:30]NVStorageSaveData done [13:42:30]OFDSenderStorePacket done [13:42:30]KKMCreateOFDPacket done [13:42:30]NVStorageSaveData kkm_last_timestamp [13:42:30]File name is /storage/kkm_last_timestamp [13:42:30]Write 4 bytes [13:42:30]NVStorageSaveData done [13:42:30]ExternCall_PrintAddStr [13:42:30]wPrintStart [13:42:30]Write to MH i2c: 01 00 00 89 16 9F [13:42:30]Write i2c OK [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: 01 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: 01 07 00 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: 01 07 00 89 16 00 00 00 00 00 FF 0F B4 [13:42:30]RasterBufferAndPrint [13:42:30]line Счет N : (1)160464 [13:42:30]line ИНН: 02508201610067 [13:42:30]line Контрольно-Кассовый Чек [13:42:30]line ПРОДАЖА [13:42:30]line ТРК (МРК, ГНК) : 52 [13:42:30]line Товар: 2710124130 [13:42:30]line Аи-92-К-2 [13:42:30]line 4.490 * 66.90 [13:42:30]line = 300.38 [13:42:30]line НДС 12% НСП 1% [13:42:30]line > о реализуемом товаре [13:42:30]line ИТОГО: 300.38 [13:42:30]line НСП 1% : 2.66 [13:42:30]line НДС 12% : 31.90 [13:42:30]line Наличными: 0.00 [13:42:30]line Безнал.: 300.38 [13:42:30]line Место: АЗС № 126 "Партнер Нефть" [13:42:30]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:42:30]line СНО: Общий режим [13:42:30]line Чек 132 27.10.2024 13:42 [13:42:30]line Смена: 545 ФФД: 1.0 [13:42:30]line ЗНМ: 0300000085 [13:42:30]line РНМ: 0000000000091683 [13:42:30]line Версия ККМ: 001 [13:42:30]line Платежная система: Mbank [13:42:30]line ФМ: 0000000000871745 [13:42:30]line ФД: 145709 [13:42:30]line ФПД: 54036963597830 [13:42:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134230&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145709&fm=54036963597830&tin=02508201610067®Number=0000000000091683&sum=30038 [13:42:30]written 0, free lines is 4095 [13:42:30]OFD Sender: Processing packet 145709 [packets to send 206, broken 205] [13:42:30]ProducePacketName [13:42:30]name=ofd_packets/00145709 [13:42:30]OFD Sender: To server: pG, [13:42:30]CommunicateWithHost lk.salyk.kg:30040 [13:42:30]ConnectInit lk.salyk.kg [13:42:30]Connected sock=10 [13:42:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 15 5C 07 01 36 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 46 43 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2D 39 02 00 35 04 06 00 31 25 76 05 1E 06 61 6A 26 CD 49 19 6A E3 [13:42:30]Write to MH i2c: 01 00 00 B2 16 C8 [13:42:30]Write i2c OK [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: 01 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: 01 07 00 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: 01 07 00 B2 16 00 00 00 00 00 D7 0C B2 [13:42:30]RasterBufferAndPrint [13:42:30]line [13:42:30]line [13:42:30]line [13:42:30]line [13:42:30]line [13:42:30]written 0, free lines is 3295 [13:42:30]MH_Cut [13:42:30]Write to MH i2c: D1 01 00 B9 16 01 A1 [13:42:30]Write i2c OK [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: D1 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: D1 01 00 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: D1 01 00 B9 16 00 A0 [13:42:30]Write to MH i2c: 01 00 00 BA 16 D0 [13:42:30]Write i2c OK [13:42:30]MH_I2C_Read... [13:42:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 EE 6B 47 00 D8 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2D 39 02 00 F4 03 04 00 73 E8 1D 67 B6 04 01 00 00 A1 73 96 C2 7B 15 46 0F [13:42:30]CommunicateWithHost err = 0 [13:42:30]CheckOFDResponse [13:42:30]1017 (14) - 77093643461234 [13:42:30]1041 (16) - 0000000000871745 [13:42:30]1040 (4) - 145709 [13:42:30]1012 (4) - 27.10.2024 07:14 [13:42:30]1206 (1) - 0 [13:42:30]OFD Sender: Remove packet 145709 [13:42:30]ProducePacketName [13:42:30]name=ofd_packets/00145709 [13:42:30]NVStorageDeleteData [13:42:31]OFD Sender: No OFD packet to send [13:42:31]*** Cut start [13:42:31]*** Partial cut [13:42:31]*** CUTSNS_PIN = 1 [13:42:31]*** CUTSNS_PIN = 0 [13:42:31]*** Brake cut motor [13:42:31]Read from MH i2c: 01 [13:42:31]MH_I2C_Read... [13:42:31]*** Stop cut motor [13:42:31]*** Cut end [13:42:31]Read from MH i2c: 01 07 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: 01 07 00 BA 16 00 00 00 00 00 FF 0F E5 [13:42:31]process_action close_receipt done [13:42:31]requested_data is exist [13:42:31]produce_requested_data [13:42:31]requested_item fm.sn is exist - process it [13:42:31]wFMCommunicate request_size=4 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 11 00 00 [13:42:31]Write to MH i2c: E2 08 00 BB 16 80 11 00 00 00 00 00 00 4B [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 17 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 17 00 BB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9E [13:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:42:31]wFMCommunicate OK [13:42:31]requested_item fd.num is exist - process it [13:42:31]SAM_PROTO_GetFieldsCounters [13:42:31]wFMCommunicate request_size=4 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 13 00 00 [13:42:31]Write to MH i2c: E2 08 00 BC 16 80 13 00 00 00 00 00 00 4E [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:32]Read from MH i2c: E2 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: E2 62 00 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: E2 62 00 BC 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [13:42:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:32]wFMCommunicate OK [13:42:32]SAM_PROTO_GetFieldsCounters done [13:42:32]requested_item shift.num is exist - process it [13:42:32]requested_item shift.opened is exist - process it [13:42:32]req_shift_opened [13:42:32]FM_GetShiftState [13:42:32]SAM_PROTO_GetShiftState [13:42:32]wFMCommunicate request_size=4 [13:42:32]MH_SAM_APDU [13:42:32]CAPDU: 80 13 01 00 [13:42:32]Write to MH i2c: E2 08 00 BD 16 80 13 01 00 00 00 00 00 50 [13:42:32]Write i2c OK [13:42:32]MH_I2C_Read... [13:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:32]Read from MH i2c: E2 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: E2 0E 00 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: E2 0E 00 BD 16 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C8 [13:42:32]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:42:32]wFMCommunicate OK [13:42:32]SAM_PROTO_GetShiftState done [13:42:32]FM_GetShiftState done [13:42:32]req_shift_opened done [13:42:32]requested_item shift.open_date is exist - process it [13:42:32]req_shift_open_date [13:42:32]req_shift_open_date done [13:42:32]produce_requested_data done [13:42:32]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145709,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:42:32]process_action_free close_receipt [13:42:32]json_value_free [13:42:32]json_value_free done [13:42:32]process_json_proto returns [13:42:32]Send response to host [13:42:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145709,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:42:32]free response buf [13:42:32]execute_script done [13:42:32]execute_script returns [13:42:32]free content buf [13:42:32]Sock 9.Close socket [13:42:32]Sock 9.Thread stoped [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:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:40]accept exits with 7 [13:46:40]New connection [13:46:40]New thread 3066740068 created [13:46:40]Thread 3066596708 joined [13:46:40]Waiting for new connection... [13:46:40] Sock 7.Parse request [13:46:40]Sock 7.Check first char [13:46:40]Sock 7.First char is OK [13:46:40]request: POST /json_proto HTTP/1.0 [13:46:40]Method: POST [13:46:40]URL: /json_proto [13:46:40]Method is POST - this is cgi request [13:46:40]url: /json_proto [13:46:40]query_string will be loaded in cgi processing [13:46:40]execute_cgi json_proto POST (null) [13:46:40]execute_cgi path=json_proto method=POST [13:46:40]POST find Content-Length [13:46:40]Host: 172.17.40.195:8080 [13:46:40]Content-Length: 677 [13:46:40]Content-Type: application/json [13:46:40] [13:46:40]POST finish read [13:46:40]Found Content-Length = 677 [13:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:40]execute_script... [13:46: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)160465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:40]POST & json_proto [13:46:40]process_json_proto [13:46:40]json parsed OK: [13:46:40]protocol is kg_v1.0 [13:46:40]action value=close_receipt [13:46:40]process_action close_receipt [13:46:40]cmd_close_receipt [13:46:40]MH_GetDate [13:46:40]Write to MH i2c: F0 00 00 BE 16 C3 [13:46:40]Write i2c OK [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: F0 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: F0 09 00 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: F0 09 00 BE 16 00 42 44 1E 67 D5 8D 6C 64 09 [13:46:40]GetLastDocTimeStamp 1730036550 [13:46:40]current date 1730036802 [13:46:40]FM_GetShiftState [13:46:40]SAM_PROTO_GetShiftState [13:46:40]wFMCommunicate request_size=4 [13:46:40]MH_SAM_APDU [13:46:40]CAPDU: 80 13 01 00 [13:46:40]Write to MH i2c: E2 08 00 BF 16 80 13 01 00 00 00 00 00 52 [13:46:40]Write i2c OK [13:46:40]MH_I2C_Read... [13:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:40]Read from MH i2c: E2 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: E2 0E 00 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: E2 0E 00 BF 16 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CA [13:46:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:46:40]wFMCommunicate OK [13:46:40]SAM_PROTO_GetShiftState done [13:46:40]FM_GetShiftState done [13:46:40]opened in 1729988959 [13:46:40]opened+sec_in_day 1730075359 [13:46:40]quantity*price = 50041 [13:46:40]sum+1 = 50042 [13:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 133 27.10.2024 13:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145710 ФПД: 278899808492080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134642&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145710&fm=278899808492080&tin=02508201610067®Number=0000000000091683&sum=50000 [13:46:41]StoreToDocumentArchive [13:46:41]shift 545 fd 145710 [13:46:41]save to /storage/0545/doc_00145710 [13:46:41]save last doc name /storage/0545/doc_00145710 to /storage/kkm_last_doc_name [13:46:41]save OK [13:46:41]Clear old archive folders... [13:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:41]tlvbuf is B6E8D0E0 [13:46:41]SAM_PROTO_ClearQueue [13:46:41]wFMCommunicate request_size=4 [13:46:41]MH_SAM_APDU [13:46:41]CAPDU: 80 09 00 00 [13:46:41]Write to MH i2c: E2 08 00 CC 16 80 09 00 00 00 00 00 00 54 [13:46:41]Write i2c OK [13:46:41]MH_I2C_Read... [13:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:41]Read from MH i2c: E2 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 03 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [13:46:41]RAPDU: 90 00 [13:46:41]wFMCommunicate OK [13:46:41]SAM_PROTO_ClearQueue done [13:46:41]KKMCreateOFDPacket [13:46:41]OFDProtocolAddRootSTLVToBuf [13:46:41]FM_MakeSignedData [13:46:41]FM_MakeSignedData [13:46:41]SAM_PROTO_SignData [13:46:41]wFMCommunicate request_size=4 [13:46:41]MH_SAM_APDU [13:46:41]CAPDU: 80 0D 01 02 [13:46:41]Write to MH i2c: E2 08 00 CD 16 80 0D 01 02 00 00 00 00 5C [13:46:41]Write i2c OK [13:46:41]MH_I2C_Read... [13:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:41]OFD Sender: No OFD packet to send [13:46:41]Read from MH i2c: E2 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 03 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 03 00 CD 16 00 90 00 57 [13:46:41]RAPDU: 90 00 [13:46:41]wFMCommunicate OK [13:46:41]wFMCommunicate request_size=255 [13:46:41]MH_SAM_APDU [13:46: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 42 44 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2E 39 02 00 35 04 06 00 FD [13:46:41]Write to MH i2c: E2 02 01 CE 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 42 44 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2E 39 02 00 35 04 06 00 FD 00 00 03 [13:46:41]Write i2c OK [13:46:41]MH_I2C_Read... [13:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:41]Read from MH i2c: E2 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 03 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 03 00 CE 16 00 90 00 58 [13:46:41]RAPDU: 90 00 [13:46:41]wFMCommunicate OK [13:46:41]wFMCommunicate request_size=10 [13:46:41]MH_SAM_APDU [13:46:41]CAPDU: 80 0D 02 02 05 A8 6C 03 5A 30 [13:46:41]Write to MH i2c: E2 0D 00 CF 16 80 0D 02 02 05 00 A8 6C 03 5A 30 00 00 0A [13:46:41]Write i2c OK [13:46:41]MH_I2C_Read... [13:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:41]Read from MH i2c: E2 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 03 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 03 00 CF 16 00 90 00 59 [13:46:41]RAPDU: 90 00 [13:46:41]wFMCommunicate OK [13:46:41]wFMCommunicate request_size=4 [13:46:41]MH_SAM_APDU [13:46:41]CAPDU: 80 0D 03 02 [13:46:41]Write to MH i2c: E2 08 00 D0 16 80 0D 03 02 00 00 00 00 61 [13:46:41]Write i2c OK [13:46:41]MH_I2C_Read... [13:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:41]Read from MH i2c: E2 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 0B 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 0B 00 D0 16 00 F6 51 20 1B DF 19 3D 5B 90 00 74 [13:46:41]RAPDU: F6 51 20 1B DF 19 3D 5B 90 00 [13:46:41]wFMCommunicate OK [13:46:41]SAM_PROTO_SignData done [13:46:41]FM_MakeSignedData done [13:46:41]CreateOFDProtocolMessage [13:46:41]wFMCommunicate request_size=4 [13:46:41]MH_SAM_APDU [13:46:41]CAPDU: 80 11 00 00 [13:46:41]Write to MH i2c: E2 08 00 D1 16 80 11 00 00 00 00 00 00 61 [13:46:41]Write i2c OK [13:46:41]MH_I2C_Read... [13:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:41]Read from MH i2c: E2 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 17 00 [13:46:41]MH_I2C_Read... [13:46:41]Read from MH i2c: E2 17 00 D1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B4 [13:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:46:42]wFMCommunicate OK [13:46:42]CreateOFDProtocolMessage done [13:46:42]OFDSenderStorePacket 145710 [13:46:42]StoreOFDPacket docnum=145710 [13:46:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 53 6D 07 01 E1 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 42 44 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2E 39 02 00 35 04 06 00 FD A8 6C 03 5A 30 F6 51 20 1B DF 19 3D 5B [13:46:42]CheckFolder [13:46:42]dirname=/storage/ofd_packets [13:46:42]CheckFolder done [13:46:42]ProducePacketName [13:46:42]name=ofd_packets/00145710 [13:46:42]NVStorageSaveData ofd_packets/00145710 [13:46:42]File name is /storage/ofd_packets/00145710 [13:46:42]Write 301 bytes [13:46:42]NVStorageSaveData done [13:46:42]OFDSenderStorePacket done [13:46:42]KKMCreateOFDPacket done [13:46:42]NVStorageSaveData kkm_last_timestamp [13:46:42]File name is /storage/kkm_last_timestamp [13:46:42]Write 4 bytes [13:46:42]NVStorageSaveData done [13:46:42]ExternCall_PrintAddStr [13:46:42]wPrintStart [13:46:42]Write to MH i2c: 01 00 00 D2 16 E8 [13:46:42]Write i2c OK [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: 01 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: 01 07 00 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: 01 07 00 D2 16 00 00 00 00 00 FF 0F FD [13:46:42]RasterBufferAndPrint [13:46:42]line Счет N : (1)160465 [13:46:42]line ИНН: 02508201610067 [13:46:42]line Контрольно-Кассовый Чек [13:46:42]line ПРОДАЖА [13:46:42]line ТРК (МРК, ГНК) : 42 [13:46:42]line Товар: 2710124130 [13:46:42]line Аи-92-К-2 [13:46:42]line 7.480 * 66.90 [13:46:42]line = 500.41 [13:46:42]line НДС 12% НСП 1% [13:46:42]line > о реализуемом товаре [13:46:42]line ОКРУГЛЕНИЕ: -0.41 [13:46:42]line ИТОГО: 500.00 [13:46:42]line Внесено: 500.00 [13:46:42]line СДАЧА: 0.00 [13:46:42]line НСП 1% : 4.43 [13:46:42]line НДС 12% : 53.14 [13:46:42]line Наличными: 500.00 [13:46:42]line Безнал.: 0.00 [13:46:42]line Место: АЗС № 126 "Партнер Нефть" [13:46:42]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:46:42]line СНО: Общий режим [13:46:42]line Чек 133 27.10.2024 13:46 [13:46:42]line Смена: 545 ФФД: 1.0 [13:46:42]line ЗНМ: 0300000085 [13:46:42]line РНМ: 0000000000091683 [13:46:42]line Версия ККМ: 001 [13:46:42]line ФМ: 0000000000871745 [13:46:42]line ФД: 145710 [13:46:42]line ФПД: 278899808492080 [13:46:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134642&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145710&fm=278899808492080&tin=02508201610067®Number=0000000000091683&sum=50000 [13:46:42]OFD Sender: Processing packet 145710 [packets to send 206, broken 205] [13:46:42]ProducePacketName [13:46:42]name=ofd_packets/00145710 [13:46:42]OFD Sender: To server: pG, [13:46:42]CommunicateWithHost lk.salyk.kg:30040 [13:46:42]ConnectInit lk.salyk.kg [13:46:42]written 0, free lines is 4095 [13:46:42]Connected sock=10 [13:46:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 53 6D 07 01 E1 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 42 44 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2E 39 02 00 35 04 06 00 FD A8 6C 03 5A 30 F6 51 20 1B DF 19 3D 5B [13:46:42]Write to MH i2c: 01 00 00 FD 16 13 [13:46:42]Write i2c OK [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: 01 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: 01 07 00 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: 01 07 00 FD 16 00 00 00 00 00 BE 0C E4 [13:46:42]RasterBufferAndPrint [13:46:42]line [13:46:42]line [13:46:42]line [13:46:42]line [13:46:42]line [13:46:42]written 0, free lines is 3268 [13:46:42]MH_Cut [13:46:42]Write to MH i2c: D1 01 00 04 17 01 ED [13:46:42]Write i2c OK [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: D1 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: D1 01 00 [13:46:42]MH_I2C_Read... [13:46:42]Read from MH i2c: D1 01 00 04 17 00 EC [13:46:42]Write to MH i2c: 01 00 00 05 17 1C [13:46:42]Write i2c OK [13:46:42]MH_I2C_Read... [13:46:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 DF A9 47 00 F2 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2E 39 02 00 F4 03 04 00 6F E9 1D 67 B6 04 01 00 00 E4 AB 25 6C 82 58 99 9F [13:46:42]CommunicateWithHost err = 0 [13:46:42]CheckOFDResponse [13:46:42]1017 (14) - 77093643461234 [13:46:42]1041 (16) - 0000000000871745 [13:46:42]1040 (4) - 145710 [13:46:42]1012 (4) - 27.10.2024 07:19 [13:46:42]1206 (1) - 0 [13:46:42]OFD Sender: Remove packet 145710 [13:46:42]ProducePacketName [13:46:42]name=ofd_packets/00145710 [13:46:42]NVStorageDeleteData [13:46:43]OFD Sender: No OFD packet to send [13:46:43]*** Cut start [13:46:43]*** Partial cut [13:46:43]*** CUTSNS_PIN = 1 [13:46:43]*** CUTSNS_PIN = 0 [13:46:43]*** Brake cut motor [13:46:44]Read from MH i2c: 01 [13:46:44]MH_I2C_Read... [13:46:44]*** Stop cut motor [13:46:44]*** Cut end [13:46:44]Read from MH i2c: 01 07 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: 01 07 00 05 17 00 00 00 00 00 FF 0F 31 [13:46:44]process_action close_receipt done [13:46:44]requested_data is exist [13:46:44]produce_requested_data [13:46:44]requested_item fm.sn is exist - process it [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 11 00 00 [13:46:44]Write to MH i2c: E2 08 00 06 17 80 11 00 00 00 00 00 00 97 [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 17 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 17 00 06 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EA [13:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:46:44]wFMCommunicate OK [13:46:44]requested_item fd.num is exist - process it [13:46:44]SAM_PROTO_GetFieldsCounters [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 13 00 00 [13:46:44]Write to MH i2c: E2 08 00 07 17 80 13 00 00 00 00 00 00 9A [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 62 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 62 00 07 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [13:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:44]wFMCommunicate OK [13:46:44]SAM_PROTO_GetFieldsCounters done [13:46:44]requested_item shift.num is exist - process it [13:46:44]requested_item shift.opened is exist - process it [13:46:44]req_shift_opened [13:46:44]FM_GetShiftState [13:46:44]SAM_PROTO_GetShiftState [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 13 01 00 [13:46:44]Write to MH i2c: E2 08 00 08 17 80 13 01 00 00 00 00 00 9C [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 0E 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 0E 00 08 17 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 14 [13:46:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:46:44]wFMCommunicate OK [13:46:44]SAM_PROTO_GetShiftState done [13:46:44]FM_GetShiftState done [13:46:44]req_shift_opened done [13:46:44]requested_item shift.open_date is exist - process it [13:46:44]req_shift_open_date [13:46:44]req_shift_open_date done [13:46:44]produce_requested_data done [13:46:44]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145710,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:46:44]process_action_free close_receipt [13:46:44]json_value_free [13:46:44]json_value_free done [13:46:44]process_json_proto returns [13:46:44]Send response to host [13:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145710,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:46:44]free response buf [13:46:44]execute_script done [13:46:44]execute_script returns [13:46:44]free content buf [13:46:44]Sock 7.Close socket [13:46:44]Sock 7.Thread stoped [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:00]accept exits with 9 [13:48:00]New connection [13:48:00]New thread 3066596708 created [13:48:00]Thread 3066740068 joined [13:48:00]Waiting for new connection... [13:48:00] Sock 9.Parse request [13:48:00]Sock 9.Check first char [13:48:00]Sock 9.First char is OK [13:48:00]request: POST /json_proto HTTP/1.0 [13:48:00]Method: POST [13:48:00]URL: /json_proto [13:48:00]Method is POST - this is cgi request [13:48:00]url: /json_proto [13:48:00]query_string will be loaded in cgi processing [13:48:00]execute_cgi json_proto POST (null) [13:48:00]execute_cgi path=json_proto method=POST [13:48:00]POST find Content-Length [13:48:00]Host: 172.17.40.195:8080 [13:48:00]Content-Length: 688 [13:48:00]Content-Type: application/json [13:48:00] [13:48:00]POST finish read [13:48:00]Found Content-Length = 688 [13:48:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:00]execute_script... [13:48: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)160466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:00]POST & json_proto [13:48:00]process_json_proto [13:48:00]json parsed OK: [13:48:00]protocol is kg_v1.0 [13:48:00]action value=close_receipt [13:48:00]process_action close_receipt [13:48:00]cmd_close_receipt [13:48:00]MH_GetDate [13:48:00]Write to MH i2c: F0 00 00 09 17 0F [13:48:00]Write i2c OK [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: F0 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: F0 09 00 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: F0 09 00 09 17 00 92 44 1E 67 D5 8D 6C 64 A5 [13:48:00]GetLastDocTimeStamp 1730036802 [13:48:00]current date 1730036882 [13:48:00]FM_GetShiftState [13:48:00]SAM_PROTO_GetShiftState [13:48:00]wFMCommunicate request_size=4 [13:48:00]MH_SAM_APDU [13:48:00]CAPDU: 80 13 01 00 [13:48:00]Write to MH i2c: E2 08 00 0A 17 80 13 01 00 00 00 00 00 9E [13:48:00]Write i2c OK [13:48:00]MH_I2C_Read... [13:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:00]Read from MH i2c: E2 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 0E 00 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 0E 00 0A 17 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 16 [13:48:00]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:48:00]wFMCommunicate OK [13:48:00]SAM_PROTO_GetShiftState done [13:48:00]FM_GetShiftState done [13:48:00]opened in 1729988959 [13:48:00]opened+sec_in_day 1730075359 [13:48:00]quantity*price = 200025 [13:48:00]sum+1 = 200026 [13:48:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 134 27.10.2024 13:48 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145711 ФПД: 54194442453979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134802&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145711&fm=54194442453979&tin=02508201610067®Number=0000000000091683&sum=200000 [13:48:01]StoreToDocumentArchive [13:48:01]shift 545 fd 145711 [13:48:01]save to /storage/0545/doc_00145711 [13:48:01]save last doc name /storage/0545/doc_00145711 to /storage/kkm_last_doc_name [13:48:01]save OK [13:48:01]Clear old archive folders... [13:48:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:48:01]tlvbuf is B6F24AF0 [13:48:01]SAM_PROTO_ClearQueue [13:48:01]wFMCommunicate request_size=4 [13:48:01]MH_SAM_APDU [13:48:01]CAPDU: 80 09 00 00 [13:48:01]Write to MH i2c: E2 08 00 17 17 80 09 00 00 00 00 00 00 A0 [13:48:01]Write i2c OK [13:48:01]MH_I2C_Read... [13:48:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:01]Read from MH i2c: E2 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 03 00 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 03 00 17 17 00 90 00 A2 [13:48:01]RAPDU: 90 00 [13:48:01]wFMCommunicate OK [13:48:01]SAM_PROTO_ClearQueue done [13:48:01]KKMCreateOFDPacket [13:48:01]OFDProtocolAddRootSTLVToBuf [13:48:01]FM_MakeSignedData [13:48:01]FM_MakeSignedData [13:48:01]SAM_PROTO_SignData [13:48:01]wFMCommunicate request_size=4 [13:48:01]MH_SAM_APDU [13:48:01]CAPDU: 80 0D 01 02 [13:48:01]Write to MH i2c: E2 08 00 18 17 80 0D 01 02 00 00 00 00 A8 [13:48:01]Write i2c OK [13:48:01]MH_I2C_Read... [13:48:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:02]Read from MH i2c: E2 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 03 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 03 00 18 17 00 90 00 A3 [13:48:02]RAPDU: 90 00 [13:48:02]wFMCommunicate OK [13:48:02]wFMCommunicate request_size=255 [13:48:02]MH_SAM_APDU [13:48:02]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 92 44 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2F 39 02 [13:48:02]Write to MH i2c: E2 02 01 19 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 92 44 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2F 39 02 00 00 54 [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:02]Read from MH i2c: E2 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 03 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 03 00 19 17 00 90 00 A4 [13:48:02]RAPDU: 90 00 [13:48:02]wFMCommunicate OK [13:48:02]wFMCommunicate request_size=16 [13:48:02]MH_SAM_APDU [13:48:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 31 4A 20 7D C3 DB [13:48:02]Write to MH i2c: E2 13 00 1A 17 80 0D 02 02 0B 00 00 35 04 06 00 31 4A 20 7D C3 DB 00 00 B6 [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:02]Read from MH i2c: E2 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 03 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 03 00 1A 17 00 90 00 A5 [13:48:02]RAPDU: 90 00 [13:48:02]wFMCommunicate OK [13:48:02]wFMCommunicate request_size=4 [13:48:02]MH_SAM_APDU [13:48:02]CAPDU: 80 0D 03 02 [13:48:02]Write to MH i2c: E2 08 00 1B 17 80 0D 03 02 00 00 00 00 AD [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:02]Read from MH i2c: E2 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 0B 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 0B 00 1B 17 00 E4 BD 9A 91 82 14 ED 32 90 00 2F [13:48:02]RAPDU: E4 BD 9A 91 82 14 ED 32 90 00 [13:48:02]wFMCommunicate OK [13:48:02]SAM_PROTO_SignData done [13:48:02]FM_MakeSignedData done [13:48:02]CreateOFDProtocolMessage [13:48:02]wFMCommunicate request_size=4 [13:48:02]MH_SAM_APDU [13:48:02]CAPDU: 80 11 00 00 [13:48:02]Write to MH i2c: E2 08 00 1C 17 80 11 00 00 00 00 00 00 AD [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:02]Read from MH i2c: E2 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 17 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 17 00 1C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 00 [13:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:48:02]wFMCommunicate OK [13:48:02]CreateOFDProtocolMessage done [13:48:02]OFDSenderStorePacket 145711 [13:48:02]StoreOFDPacket docnum=145711 [13:48:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 8E 9A 0D 01 B6 77 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 92 44 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2F 39 02 00 35 04 06 00 31 4A 20 7D C3 DB E4 BD 9A 91 82 14 ED 32 [13:48:02]CheckFolder [13:48:02]dirname=/storage/ofd_packets [13:48:02]CheckFolder done [13:48:02]ProducePacketName [13:48:02]name=ofd_packets/00145711 [13:48:02]NVStorageSaveData ofd_packets/00145711 [13:48:02]File name is /storage/ofd_packets/00145711 [13:48:02]Write 307 bytes [13:48:02]NVStorageSaveData done [13:48:02]OFDSenderStorePacket done [13:48:02]KKMCreateOFDPacket done [13:48:02]NVStorageSaveData kkm_last_timestamp [13:48:02]File name is /storage/kkm_last_timestamp [13:48:02]Write 4 bytes [13:48:02]NVStorageSaveData done [13:48:02]ExternCall_PrintAddStr [13:48:02]wPrintStart [13:48:02]Write to MH i2c: 01 00 00 1D 17 34 [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: 01 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: 01 07 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: 01 07 00 1D 17 00 00 00 00 00 FF 0F 49 [13:48:02]RasterBufferAndPrint [13:48:02]line Счет N : (1)160466 [13:48:02]line ИНН: 02508201610067 [13:48:02]line Контрольно-Кассовый Чек [13:48:02]line ПРОДАЖА [13:48:02]line ТРК (МРК, ГНК) : 31 [13:48:02]line Товар: 2710194240 [13:48:02]line D-Energy Дт-К-2 [13:48:02]line 25.910 * 77.20 [13:48:02]line = 2000.25 [13:48:02]line НДС 12% НСП 1% [13:48:02]line > о реализуемом товаре [13:48:02]line ОКРУГЛЕНИЕ: -0.25 [13:48:02]line ИТОГО: 2000.00 [13:48:02]line Внесено: 2000.00 [13:48:02]line СДАЧА: 0.00 [13:48:02]line НСП 1% : 17.70 [13:48:02]line НДС 12% : 212.42 [13:48:02]line Наличными: 2000.00 [13:48:02]line Безнал.: 0.00 [13:48:02]line Место: АЗС № 126 "Партнер Нефть" [13:48:02]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:48:02]line СНО: Общий режим [13:48:02]line Чек 134 27.10.2024 13:48 [13:48:02]line Смена: 545 ФФД: 1.0 [13:48:02]line ЗНМ: 0300000085 [13:48:02]line РНМ: 0000000000091683 [13:48:02]line Версия ККМ: 001 [13:48:02]line ФМ: 0000000000871745 [13:48:02]line ФД: 145711 [13:48:02]line ФПД: 54194442453979 [13:48:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134802&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145711&fm=54194442453979&tin=02508201610067®Number=0000000000091683&sum=200000 [13:48:02]OFD Sender: Processing packet 145711 [packets to send 206, broken 205] [13:48:02]ProducePacketName [13:48:02]name=ofd_packets/00145711 [13:48:02]OFD Sender: To server: pG, [13:48:02]CommunicateWithHost lk.salyk.kg:30040 [13:48:02]ConnectInit lk.salyk.kg [13:48:02]written 0, free lines is 4095 [13:48:02]Connected sock=10 [13:48:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 8E 9A 0D 01 B6 77 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 92 44 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2F 39 02 00 35 04 06 00 31 4A 20 7D C3 DB E4 BD 9A 91 82 14 ED 32 [13:48:03]Write to MH i2c: 01 00 00 48 17 5F [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: 01 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: 01 07 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: 01 07 00 48 17 00 00 00 00 00 AF 0C 21 [13:48:03]RasterBufferAndPrint [13:48:03]line [13:48:03]line [13:48:03]line [13:48:03]line [13:48:03]line [13:48:03]written 0, free lines is 3253 [13:48:03]MH_Cut [13:48:03]Write to MH i2c: D1 01 00 4F 17 01 38 [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: D1 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: D1 01 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: D1 01 00 4F 17 00 37 [13:48:03]Write to MH i2c: 01 00 00 50 17 67 [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 4C AA 47 00 5F 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 2F 39 02 00 F4 03 04 00 BF E9 1D 67 B6 04 01 00 00 E7 3B A7 40 19 22 71 19 [13:48:03]CommunicateWithHost err = 0 [13:48:03]CheckOFDResponse [13:48:03]1017 (14) - 77093643461234 [13:48:03]1041 (16) - 0000000000871745 [13:48:03]1040 (4) - 145711 [13:48:03]1012 (4) - 27.10.2024 07:20 [13:48:03]1206 (1) - 0 [13:48:03]OFD Sender: Remove packet 145711 [13:48:03]ProducePacketName [13:48:03]name=ofd_packets/00145711 [13:48:03]NVStorageDeleteData [13:48:03]OFD Sender: No OFD packet to send [13:48:04]*** Cut start [13:48:04]*** Partial cut [13:48:04]*** CUTSNS_PIN = 1 [13:48:04]*** CUTSNS_PIN = 0 [13:48:04]*** Brake cut motor [13:48:04]Read from MH i2c: 01 [13:48:04]MH_I2C_Read... [13:48:04]*** Stop cut motor [13:48:04]*** Cut end [13:48:04]Read from MH i2c: 01 07 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 FF 0F 7C [13:48:04]process_action close_receipt done [13:48:04]requested_data is exist [13:48:04]produce_requested_data [13:48:04]requested_item fm.sn is exist - process it [13:48:04]wFMCommunicate request_size=4 [13:48:04]MH_SAM_APDU [13:48:04]CAPDU: 80 11 00 00 [13:48:04]Write to MH i2c: E2 08 00 51 17 80 11 00 00 00 00 00 00 E2 [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:04]Read from MH i2c: E2 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 17 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 17 00 51 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 35 [13:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:48:04]wFMCommunicate OK [13:48:04]requested_item fd.num is exist - process it [13:48:04]SAM_PROTO_GetFieldsCounters [13:48:04]wFMCommunicate request_size=4 [13:48:04]MH_SAM_APDU [13:48:04]CAPDU: 80 13 00 00 [13:48:04]Write to MH i2c: E2 08 00 52 17 80 13 00 00 00 00 00 00 E5 [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:04]Read from MH i2c: E2 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 62 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 62 00 52 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [13:48:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 2F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:48:04]wFMCommunicate OK [13:48:04]SAM_PROTO_GetFieldsCounters done [13:48:04]requested_item shift.num is exist - process it [13:48:04]requested_item shift.opened is exist - process it [13:48:04]req_shift_opened [13:48:04]FM_GetShiftState [13:48:04]SAM_PROTO_GetShiftState [13:48:04]wFMCommunicate request_size=4 [13:48:04]MH_SAM_APDU [13:48:04]CAPDU: 80 13 01 00 [13:48:04]Write to MH i2c: E2 08 00 53 17 80 13 01 00 00 00 00 00 E7 [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:04]Read from MH i2c: E2 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 0E 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 0E 00 53 17 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5F [13:48:04]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:48:04]wFMCommunicate OK [13:48:04]SAM_PROTO_GetShiftState done [13:48:04]FM_GetShiftState done [13:48:04]req_shift_opened done [13:48:04]requested_item shift.open_date is exist - process it [13:48:04]req_shift_open_date [13:48:04]req_shift_open_date done [13:48:04]produce_requested_data done [13:48:04]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145711,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:48:04]process_action_free close_receipt [13:48:04]json_value_free [13:48:04]json_value_free done [13:48:04]process_json_proto returns [13:48:04]Send response to host [13:48:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145711,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:48:04]free response buf [13:48:04]execute_script done [13:48:04]execute_script returns [13:48:04]free content buf [13:48:04]Sock 9.Close socket [13:48:04]Sock 9.Thread stoped [13:48:08]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]accept exits with 7 [13:51:54]New connection [13:51:54]New thread 3066740068 created [13:51:54]Thread 3066596708 joined [13:51:54]Waiting for new connection... [13:51:54] Sock 7.Parse request [13:51:54]Sock 7.Check first char [13:51:54]Sock 7.First char is OK [13:51:54]request: POST /json_proto HTTP/1.0 [13:51:54]Method: POST [13:51:54]URL: /json_proto [13:51:54]Method is POST - this is cgi request [13:51:54]url: /json_proto [13:51:54]query_string will be loaded in cgi processing [13:51:54]execute_cgi json_proto POST (null) [13:51:54]execute_cgi path=json_proto method=POST [13:51:54]POST find Content-Length [13:51:54]Host: 172.17.40.195:8080 [13:51:54]Content-Length: 677 [13:51:54]Content-Type: application/json [13:51:54] [13:51:54]POST finish read [13:51:54]Found Content-Length = 677 [13:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:54]execute_script... [13:51: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)160468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:54]POST & json_proto [13:51:54]process_json_proto [13:51:54]json parsed OK: [13:51:54]protocol is kg_v1.0 [13:51:54]action value=close_receipt [13:51:54]process_action close_receipt [13:51:54]cmd_close_receipt [13:51:54]MH_GetDate [13:51:54]Write to MH i2c: F0 00 00 54 17 5A [13:51:54]Write i2c OK [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: F0 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: F0 09 00 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: F0 09 00 54 17 00 7B 45 1E 67 D5 8D 6C 64 DA [13:51:54]GetLastDocTimeStamp 1730036882 [13:51:54]current date 1730037115 [13:51:54]FM_GetShiftState [13:51:54]SAM_PROTO_GetShiftState [13:51:54]wFMCommunicate request_size=4 [13:51:54]MH_SAM_APDU [13:51:54]CAPDU: 80 13 01 00 [13:51:54]Write to MH i2c: E2 08 00 55 17 80 13 01 00 00 00 00 00 E9 [13:51:54]Write i2c OK [13:51:54]MH_I2C_Read... [13:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:54]Read from MH i2c: E2 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: E2 0E 00 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: E2 0E 00 55 17 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 61 [13:51:54]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:51:54]wFMCommunicate OK [13:51:54]SAM_PROTO_GetShiftState done [13:51:54]FM_GetShiftState done [13:51:54]opened in 1729988959 [13:51:54]opened+sec_in_day 1730075359 [13:51:54]quantity*price = 50041 [13:51:54]sum+1 = 50042 [13:51:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 135 27.10.2024 13:51 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145712 ФПД: 63253782958728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135155&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145712&fm=63253782958728&tin=02508201610067®Number=0000000000091683&sum=50000 [13:51:55]StoreToDocumentArchive [13:51:55]shift 545 fd 145712 [13:51:55]save to /storage/0545/doc_00145712 [13:51:55]save last doc name /storage/0545/doc_00145712 to /storage/kkm_last_doc_name [13:51:55]save OK [13:51:55]Clear old archive folders... [13:51:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:55]tlvbuf is 00407E10 [13:51:55]SAM_PROTO_ClearQueue [13:51:55]wFMCommunicate request_size=4 [13:51:55]MH_SAM_APDU [13:51:55]CAPDU: 80 09 00 00 [13:51:55]Write to MH i2c: E2 08 00 62 17 80 09 00 00 00 00 00 00 EB [13:51:55]Write i2c OK [13:51:55]MH_I2C_Read... [13:51:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:55]Read from MH i2c: E2 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 03 00 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 03 00 62 17 00 90 00 ED [13:51:55]RAPDU: 90 00 [13:51:55]wFMCommunicate OK [13:51:55]SAM_PROTO_ClearQueue done [13:51:55]KKMCreateOFDPacket [13:51:55]OFDProtocolAddRootSTLVToBuf [13:51:55]FM_MakeSignedData [13:51:55]FM_MakeSignedData [13:51:55]SAM_PROTO_SignData [13:51:55]wFMCommunicate request_size=4 [13:51:55]MH_SAM_APDU [13:51:55]CAPDU: 80 0D 01 02 [13:51:55]Write to MH i2c: E2 08 00 63 17 80 0D 01 02 00 00 00 00 F3 [13:51:55]Write i2c OK [13:51:55]MH_I2C_Read... [13:51:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:55]Read from MH i2c: E2 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 03 00 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 03 00 63 17 00 90 00 EE [13:51:55]RAPDU: 90 00 [13:51:55]wFMCommunicate OK [13:51:55]wFMCommunicate request_size=255 [13:51:55]MH_SAM_APDU [13:51: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7B 45 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 30 39 02 00 35 04 06 00 39 [13:51:55]Write to MH i2c: E2 02 01 64 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7B 45 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 30 39 02 00 35 04 06 00 39 00 00 14 [13:51:55]Write i2c OK [13:51:55]MH_I2C_Read... [13:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:55]Read from MH i2c: E2 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 03 00 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 03 00 64 17 00 90 00 EF [13:51:55]RAPDU: 90 00 [13:51:55]wFMCommunicate OK [13:51:55]wFMCommunicate request_size=10 [13:51:55]MH_SAM_APDU [13:51:55]CAPDU: 80 0D 02 02 05 87 6B 43 92 88 [13:51:55]Write to MH i2c: E2 0D 00 65 17 80 0D 02 02 05 00 87 6B 43 92 88 00 00 4F [13:51:55]Write i2c OK [13:51:55]MH_I2C_Read... [13:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:55]Read from MH i2c: E2 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 03 00 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 03 00 65 17 00 90 00 F0 [13:51:55]RAPDU: 90 00 [13:51:55]wFMCommunicate OK [13:51:55]wFMCommunicate request_size=4 [13:51:55]MH_SAM_APDU [13:51:55]CAPDU: 80 0D 03 02 [13:51:55]Write to MH i2c: E2 08 00 66 17 80 0D 03 02 00 00 00 00 F8 [13:51:55]Write i2c OK [13:51:55]MH_I2C_Read... [13:51:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:55]Read from MH i2c: E2 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 0B 00 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 0B 00 66 17 00 FF F9 31 42 ED 2D 39 5F 90 00 16 [13:51:55]RAPDU: FF F9 31 42 ED 2D 39 5F 90 00 [13:51:55]wFMCommunicate OK [13:51:55]SAM_PROTO_SignData done [13:51:55]FM_MakeSignedData done [13:51:55]CreateOFDProtocolMessage [13:51:55]wFMCommunicate request_size=4 [13:51:55]MH_SAM_APDU [13:51:55]CAPDU: 80 11 00 00 [13:51:55]Write to MH i2c: E2 08 00 67 17 80 11 00 00 00 00 00 00 F8 [13:51:55]Write i2c OK [13:51:55]MH_I2C_Read... [13:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:55]Read from MH i2c: E2 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 17 00 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: E2 17 00 67 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 4B [13:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:51:55]wFMCommunicate OK [13:51:55]CreateOFDProtocolMessage done [13:51:55]OFDSenderStorePacket 145712 [13:51:55]StoreOFDPacket docnum=145712 [13:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BB BC 07 01 EB 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7B 45 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 30 39 02 00 35 04 06 00 39 87 6B 43 92 88 FF F9 31 42 ED 2D 39 5F [13:51:55]CheckFolder [13:51:55]dirname=/storage/ofd_packets [13:51:55]CheckFolder done [13:51:55]ProducePacketName [13:51:55]name=ofd_packets/00145712 [13:51:55]NVStorageSaveData ofd_packets/00145712 [13:51:55]File name is /storage/ofd_packets/00145712 [13:51:55]Write 301 bytes [13:51:55]NVStorageSaveData done [13:51:55]OFDSenderStorePacket done [13:51:55]KKMCreateOFDPacket done [13:51:55]NVStorageSaveData kkm_last_timestamp [13:51:55]File name is /storage/kkm_last_timestamp [13:51:55]Write 4 bytes [13:51:55]NVStorageSaveData done [13:51:55]ExternCall_PrintAddStr [13:51:55]wPrintStart [13:51:55]Write to MH i2c: 01 00 00 68 17 7F [13:51:55]Write i2c OK [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: 01 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: 01 07 00 [13:51:55]MH_I2C_Read... [13:51:55]Read from MH i2c: 01 07 00 68 17 00 00 00 00 00 FF 0F 94 [13:51:55]RasterBufferAndPrint [13:51:55]line Счет N : (1)160468 [13:51:55]line ИНН: 02508201610067 [13:51:55]line Контрольно-Кассовый Чек [13:51:55]line ПРОДАЖА [13:51:55]line ТРК (МРК, ГНК) : 42 [13:51:55]line Товар: 2710124130 [13:51:55]line Аи-92-К-2 [13:51:55]line 7.480 * 66.90 [13:51:55]line = 500.41 [13:51:55]line НДС 12% НСП 1% [13:51:55]line > о реализуемом товаре [13:51:55]line ОКРУГЛЕНИЕ: -0.41 [13:51:55]line ИТОГО: 500.00 [13:51:55]line Внесено: 500.00 [13:51:55]line СДАЧА: 0.00 [13:51:55]line НСП 1% : 4.43 [13:51:55]line НДС 12% : 53.14 [13:51:55]line Наличными: 500.00 [13:51:55]line Безнал.: 0.00 [13:51:55]line Место: АЗС № 126 "Партнер Нефть" [13:51:55]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:51:55]line СНО: Общий режим [13:51:55]line Чек 135 27.10.2024 13:51 [13:51:55]line Смена: 545 ФФД: 1.0 [13:51:55]line ЗНМ: 0300000085 [13:51:55]line РНМ: 0000000000091683 [13:51:55]line Версия ККМ: 001 [13:51:55]line ФМ: 0000000000871745 [13:51:55]line ФД: 145712 [13:51:55]line ФПД: 63253782958728 [13:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135155&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145712&fm=63253782958728&tin=02508201610067®Number=0000000000091683&sum=50000 [13:51:55]OFD Sender: Processing packet 145712 [packets to send 206, broken 205] [13:51:55]ProducePacketName [13:51:55]name=ofd_packets/00145712 [13:51:56]OFD Sender: To server: pG, [13:51:56]CommunicateWithHost lk.salyk.kg:30040 [13:51:56]ConnectInit lk.salyk.kg [13:51:56]written 0, free lines is 4095 [13:51:56]Connected sock=11 [13:51:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BB BC 07 01 EB 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7B 45 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 30 39 02 00 35 04 06 00 39 87 6B 43 92 88 FF F9 31 42 ED 2D 39 5F [13:51:56]Write to MH i2c: 01 00 00 93 17 AA [13:51:56]Write i2c OK [13:51:56]MH_I2C_Read... [13:51:56]Read from MH i2c: 01 [13:51:56]MH_I2C_Read... [13:51:56]Read from MH i2c: 01 07 00 [13:51:56]MH_I2C_Read... [13:51:56]Read from MH i2c: 01 07 00 93 17 00 00 00 00 00 AF 0C 6C [13:51:56]RasterBufferAndPrint [13:51:56]line [13:51:56]line [13:51:56]line [13:51:56]line [13:51:56]line [13:51:56]written 0, free lines is 3254 [13:51:56]MH_Cut [13:51:56]Write to MH i2c: D1 01 00 9A 17 01 83 [13:51:56]Write i2c OK [13:51:56]MH_I2C_Read... [13:51:56]Read from MH i2c: D1 [13:51:56]MH_I2C_Read... [13:51:56]Read from MH i2c: D1 01 00 [13:51:56]MH_I2C_Read... [13:51:56]Read from MH i2c: D1 01 00 9A 17 00 82 [13:51:56]Write to MH i2c: 01 00 00 9B 17 B2 [13:51:56]Write i2c OK [13:51:56]MH_I2C_Read... [13:51:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 14 A7 47 00 AC C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 30 39 02 00 F4 03 04 00 A9 EA 1D 67 B6 04 01 00 00 32 4E E0 80 71 70 1F C2 [13:51:56]CommunicateWithHost err = 0 [13:51:56]CheckOFDResponse [13:51:56]1017 (14) - 77093643461234 [13:51:56]1041 (16) - 0000000000871745 [13:51:56]1040 (4) - 145712 [13:51:56]1012 (4) - 27.10.2024 07:24 [13:51:56]1206 (1) - 0 [13:51:56]OFD Sender: Remove packet 145712 [13:51:56]ProducePacketName [13:51:56]name=ofd_packets/00145712 [13:51:56]NVStorageDeleteData [13:51:57]OFD Sender: No OFD packet to send [13:51:57]*** Cut start [13:51:57]*** Partial cut [13:51:57]*** CUTSNS_PIN = 1 [13:51:57]*** CUTSNS_PIN = 0 [13:51:57]*** Brake cut motor [13:51:57]Read from MH i2c: 01 [13:51:57]MH_I2C_Read... [13:51:57]*** Stop cut motor [13:51:57]*** Cut end [13:51:57]Read from MH i2c: 01 07 00 [13:51:57]MH_I2C_Read... [13:51:57]Read from MH i2c: 01 07 00 9B 17 00 00 00 00 00 FF 0F C7 [13:51:57]process_action close_receipt done [13:51:57]requested_data is exist [13:51:57]produce_requested_data [13:51:57]requested_item fm.sn is exist - process it [13:51:57]wFMCommunicate request_size=4 [13:51:57]MH_SAM_APDU [13:51:57]CAPDU: 80 11 00 00 [13:51:57]Write to MH i2c: E2 08 00 9C 17 80 11 00 00 00 00 00 00 2D [13:51:57]Write i2c OK [13:51:57]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 [13:51:58]MH_I2C_Read... [13:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:58]Read from MH i2c: E2 17 00 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 17 00 9C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 80 [13:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:51:58]wFMCommunicate OK [13:51:58]requested_item fd.num is exist - process it [13:51:58]SAM_PROTO_GetFieldsCounters [13:51:58]wFMCommunicate request_size=4 [13:51:58]MH_SAM_APDU [13:51:58]CAPDU: 80 13 00 00 [13:51:58]Write to MH i2c: E2 08 00 9D 17 80 13 00 00 00 00 00 00 30 [13:51:58]Write i2c OK [13:51:58]MH_I2C_Read... [13:51:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:58]Read from MH i2c: E2 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 62 00 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 62 00 9D 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 30 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [13:51:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 30 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:58]wFMCommunicate OK [13:51:58]SAM_PROTO_GetFieldsCounters done [13:51:58]requested_item shift.num is exist - process it [13:51:58]requested_item shift.opened is exist - process it [13:51:58]req_shift_opened [13:51:58]FM_GetShiftState [13:51:58]SAM_PROTO_GetShiftState [13:51:58]wFMCommunicate request_size=4 [13:51:58]MH_SAM_APDU [13:51:58]CAPDU: 80 13 01 00 [13:51:58]Write to MH i2c: E2 08 00 9E 17 80 13 01 00 00 00 00 00 32 [13:51:58]Write i2c OK [13:51:58]MH_I2C_Read... [13:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:58]Read from MH i2c: E2 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 0E 00 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 0E 00 9E 17 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AA [13:51:58]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:51:58]wFMCommunicate OK [13:51:58]SAM_PROTO_GetShiftState done [13:51:58]FM_GetShiftState done [13:51:58]req_shift_opened done [13:51:58]requested_item shift.open_date is exist - process it [13:51:58]req_shift_open_date [13:51:58]req_shift_open_date done [13:51:58]produce_requested_data done [13:51:58]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145712,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:51:58]process_action_free close_receipt [13:51:58]json_value_free [13:51:58]json_value_free done [13:51:58]process_json_proto returns [13:51:58]Send response to host [13:51:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145712,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:51:58]free response buf [13:51:58]execute_script done [13:51:58]execute_script returns [13:51:58]free content buf [13:51:58]Sock 7.Close socket [13:51:58]Sock 7.Thread stoped [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:09]accept exits with 9 [13:53:09]New connection [13:53:09]New thread 3066596708 created [13:53:09]Thread 3066740068 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.40.195:8080 [13:53:09]Content-Length: 978 [13:53:09]Content-Type: application/json [13:53:09] [13:53:09]POST finish read [13:53:09]Found Content-Length = 978 [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)160467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.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)160467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 79.790, "sum" : 6000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 79.79 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.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 9F 17 A5 [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 9F 17 00 C7 45 1E 67 D5 8D 6C 64 71 [13:53:09]GetLastDocTimeStamp 1730037115 [13:53:09]current date 1730037191 [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 A0 17 80 13 01 00 00 00 00 00 34 [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 A0 17 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AC [13:53:09]RAPDU: 09 00 01 5F 89 1D 67 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 1729988959 [13:53:09]opened+sec_in_day 1730075359 [13:53:09]quantity*price = 600020 [13:53:09]sum+1 = 600022 [13:53:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.19 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 136 27.10.2024 13:53 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа ДТ номер 126 сэкономлено 79.79 сом ФМ: 0000000000871745 ФД: 145713 ФПД: 83916895895781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135311&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145713&fm=83916895895781&tin=02508201610067®Number=0000000000091683&sum=600000 [13:53:10]StoreToDocumentArchive [13:53:10]shift 545 fd 145713 [13:53:10]save to /storage/0545/doc_00145713 [13:53:10]save last doc name /storage/0545/doc_00145713 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=248 [13:53:10]tlvbuf is 0041FCD0 [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 AD 17 80 09 00 00 00 00 00 00 36 [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 AD 17 00 90 00 38 [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 AE 17 80 0D 01 02 00 00 00 00 3E [13:53:10]Write i2c OK [13:53:10]MH_I2C_Read... [13:53:10]*** iso7816_exchange 80 0D 01 02... 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 AE 17 00 90 00 39 [13:53:10]RAPDU: 90 00 [13:53:10]wFMCommunicate OK [13:53:10]wFMCommunicate request_size=255 [13:53:10]MH_SAM_APDU [13:53:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 C7 45 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 31 39 02 00 35 04 06 00 4C 52 6C C5 [13:53:10]Write to MH i2c: E2 02 01 AF 17 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 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 C7 45 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 31 39 02 00 35 04 06 00 4C 52 6C C5 00 00 0A [13:53:10]Write i2c OK [13:53:10]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 AF 17 00 90 00 3A [13:53:11]RAPDU: 90 00 [13:53:11]wFMCommunicate OK [13:53:11]wFMCommunicate request_size=7 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 0D 02 02 02 40 E5 [13:53:11]Write to MH i2c: E2 0A 00 B0 17 80 0D 02 02 02 00 40 E5 00 00 6A [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 B0 17 00 90 00 3B [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 B1 17 80 0D 03 02 00 00 00 00 43 [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 B1 17 00 CD E1 4F 74 31 44 20 09 90 00 53 [13:53:11]RAPDU: CD E1 4F 74 31 44 20 09 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 B2 17 80 11 00 00 00 00 00 00 43 [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 B2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 96 [13:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:53:11]wFMCommunicate OK [13:53:11]CreateOFDProtocolMessage done [13:53:11]OFDSenderStorePacket 145713 [13:53:11]StoreOFDPacket docnum=145713 [13:53:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 FF FD 04 01 D7 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 C7 45 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 31 39 02 00 35 04 06 00 4C 52 6C C5 40 E5 CD E1 4F 74 31 44 20 09 [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/00145713 [13:53:11]NVStorageSaveData ofd_packets/00145713 [13:53:11]File name is /storage/ofd_packets/00145713 [13:53:11]Write 298 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 B3 17 CA [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 B3 17 00 00 00 00 00 FF 0F DF [13:53:11]RasterBufferAndPrint [13:53:11]line Счет N : (1)160467 [13:53:11]line ИНН: 02508201610067 [13:53:11]line Контрольно-Кассовый Чек [13:53:11]line ПРОДАЖА [13:53:11]line ТРК (МРК, ГНК) : 11 [13:53:11]line Товар: 2710194210 [13:53:11]line ДТ-К-2 [13:53:11]line 79.790 * 75.20 [13:53:11]line = 6000.21 [13:53:11]line НДС 12% НСП 1% [13:53:11]line > о реализуемом товаре [13:53:11]line ОКРУГЛЕНИЕ: -0.21 [13:53:11]line ИТОГО: 6000.00 [13:53:11]line Внесено: 6000.00 [13:53:11]line СДАЧА: 0.00 [13:53:11]line НСП 1% : 53.10 [13:53:11]line НДС 12% : 637.19 [13:53:11]line Наличными: 6000.00 [13:53:11]line Безнал.: 0.00 [13:53:11]line Место: АЗС № 126 "Партнер Нефть" [13:53:11]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:53:11]line СНО: Общий режим [13:53:11]line Чек 136 27.10.2024 13:53 [13:53:11]line Смена: 545 ФФД: 1.0 [13:53:11]line ЗНМ: 0300000085 [13:53:11]line РНМ: 0000000000091683 [13:53:11]line Версия ККМ: 001 [13:53:11]line [13:53:11]line Дисконтная программа [13:53:11]line ДТ [13:53:11]line номер 126 [13:53:11]line сэкономлено 79.79 сом [13:53:11]line ФМ: 0000000000871745 [13:53:11]line ФД: 145713 [13:53:11]line ФПД: 83916895895781 [13:53:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135311&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145713&fm=83916895895781&tin=02508201610067®Number=0000000000091683&sum=600000 [13:53:11]OFD Sender: Processing packet 145713 [packets to send 206, broken 205] [13:53:11]ProducePacketName [13:53:11]name=ofd_packets/00145713 [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=11 [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 31 37 34 35 0C 01 00 00 FF FD 04 01 D7 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 37 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D5 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 F8 00 00 00 00 07 04 06 00 C0 27 09 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 C7 45 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 31 39 02 00 35 04 06 00 4C 52 6C C5 40 E5 CD E1 4F 74 31 44 20 09 [13:53:12]Write to MH i2c: 01 00 00 E3 17 FA [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 E3 17 00 00 00 00 00 5C 0C 69 [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 3171 [13:53:12]MH_Cut [13:53:12]Write to MH i2c: D1 01 00 EA 17 01 D3 [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 EA 17 00 D2 [13:53:12]Write to MH i2c: 01 00 00 EB 17 02 [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [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 31 37 34 35 4F 00 00 00 B8 97 47 00 B4 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 31 39 02 00 F4 03 04 00 F4 EA 1D 67 B6 04 01 00 00 C3 AE 47 74 74 DD 4F A4 [13:53:12]CommunicateWithHost err = 0 [13:53:12]CheckOFDResponse [13:53:12]1017 (14) - 77093643461234 [13:53:12]1041 (16) - 0000000000871745 [13:53:12]1040 (4) - 145713 [13:53:12]1012 (4) - 27.10.2024 07:25 [13:53:12]1206 (1) - 0 [13:53:12]OFD Sender: Remove packet 145713 [13:53:12]ProducePacketName [13:53:12]name=ofd_packets/00145713 [13:53:12]NVStorageDeleteData [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 EB 17 00 00 00 00 00 FF 0F 17 [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 EC 17 80 11 00 00 00 00 00 00 7D [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 EC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D0 [13:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 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 ED 17 80 13 00 00 00 00 00 00 80 [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 ED 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 31 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 31 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 EE 17 80 13 01 00 00 00 00 00 82 [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 EE 17 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FA [13:53:13]RAPDU: 09 00 01 5F 89 1D 67 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":"0000000000871745","fd.num":145713,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [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":"0000000000871745","fd.num":145713,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [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:46]ConnectInit Can't connect to host [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:29]accept exits with 10 [13:55:29]New connection [13:55:29]New thread 3066740068 created [13:55:29]Thread 3066596708 joined [13:55:29]Waiting for new connection... [13:55:29] Sock 10.Parse request [13:55:29]Sock 10.Check first char [13:55:29]Sock 10.First char is OK [13:55:29]request: POST /json_proto HTTP/1.0 [13:55:29]Method: POST [13:55:29]URL: /json_proto [13:55:29]Method is POST - this is cgi request [13:55:29]url: /json_proto [13:55:29]query_string will be loaded in cgi processing [13:55:29]execute_cgi json_proto POST (null) [13:55:29]execute_cgi path=json_proto method=POST [13:55:29]POST find Content-Length [13:55:29]Host: 172.17.40.195:8080 [13:55:29]Content-Length: 984 [13:55:29]Content-Type: application/json [13:55:29] [13:55:29]POST finish read [13:55:29]Found Content-Length = 984 [13:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 37.940, "sum" : 2500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.94 \u0441\u043E\u043C", "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" ] } } [13:55:29]execute_script... [13:55:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 37.940, "sum" : 2500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.94 \u0441\u043E\u043C", "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" ] } } [13:55:29]POST & json_proto [13:55:29]process_json_proto [13:55:29]json parsed OK: [13:55:29]protocol is kg_v1.0 [13:55:29]action value=close_receipt [13:55:29]process_action close_receipt [13:55:29]cmd_close_receipt [13:55:29]MH_GetDate [13:55:29]Write to MH i2c: F0 00 00 EF 17 F5 [13:55:29]Write i2c OK [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: F0 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: F0 09 00 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: F0 09 00 EF 17 00 53 46 1E 67 D5 8D 6C 64 4E [13:55:29]GetLastDocTimeStamp 1730037191 [13:55:29]current date 1730037331 [13:55:29]FM_GetShiftState [13:55:29]SAM_PROTO_GetShiftState [13:55:29]wFMCommunicate request_size=4 [13:55:29]MH_SAM_APDU [13:55:29]CAPDU: 80 13 01 00 [13:55:29]Write to MH i2c: E2 08 00 F0 17 80 13 01 00 00 00 00 00 84 [13:55:29]Write i2c OK [13:55:29]MH_I2C_Read... [13:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:29]Read from MH i2c: E2 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: E2 0E 00 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: E2 0E 00 F0 17 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FC [13:55:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:55:29]wFMCommunicate OK [13:55:29]SAM_PROTO_GetShiftState done [13:55:29]FM_GetShiftState done [13:55:29]opened in 1729988959 [13:55:29]opened+sec_in_day 1730075359 [13:55:29]quantity*price = 250024 [13:55:29]sum+1 = 250026 [13:55:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 137 27.10.2024 13:55 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-92 номер 126 сэкономлено 37.94 сом ФМ: 0000000000871745 ФД: 145714 ФПД: 40753907549990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135531&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145714&fm=40753907549990&tin=02508201610067®Number=0000000000091683&sum=250000 [13:55:31]StoreToDocumentArchive [13:55:31]shift 545 fd 145714 [13:55:31]save to /storage/0545/doc_00145714 [13:55:31]save last doc name /storage/0545/doc_00145714 to /storage/kkm_last_doc_name [13:55:31]save OK [13:55:31]Clear old archive folders... [13:55:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:31]tlvbuf is B6E8DDE0 [13:55:31]SAM_PROTO_ClearQueue [13:55:31]wFMCommunicate request_size=4 [13:55:31]MH_SAM_APDU [13:55:31]CAPDU: 80 09 00 00 [13:55:31]Write to MH i2c: E2 08 00 FD 17 80 09 00 00 00 00 00 00 86 [13:55:31]Write i2c OK [13:55:31]MH_I2C_Read... [13:55:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:31]Read from MH i2c: E2 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 03 00 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 03 00 FD 17 00 90 00 88 [13:55:31]RAPDU: 90 00 [13:55:31]wFMCommunicate OK [13:55:31]SAM_PROTO_ClearQueue done [13:55:31]KKMCreateOFDPacket [13:55:31]OFDProtocolAddRootSTLVToBuf [13:55:31]FM_MakeSignedData [13:55:31]FM_MakeSignedData [13:55:31]SAM_PROTO_SignData [13:55:31]wFMCommunicate request_size=4 [13:55:31]MH_SAM_APDU [13:55:31]CAPDU: 80 0D 01 02 [13:55:31]Write to MH i2c: E2 08 00 FE 17 80 0D 01 02 00 00 00 00 8E [13:55:31]Write i2c OK [13:55:31]MH_I2C_Read... [13:55:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:31]Read from MH i2c: E2 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 03 00 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 03 00 FE 17 00 90 00 89 [13:55:31]RAPDU: 90 00 [13:55:31]wFMCommunicate OK [13:55:31]wFMCommunicate request_size=255 [13:55:31]MH_SAM_APDU [13:55:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 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 B7 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 89 00 00 00 F4 03 04 00 53 46 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 32 39 02 00 35 04 06 00 25 [13:55:31]Write to MH i2c: E2 02 01 FF 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 32 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 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 B7 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 89 00 00 00 F4 03 04 00 53 46 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 32 39 02 00 35 04 06 00 25 00 00 9F [13:55:31]Write i2c OK [13:55:31]MH_I2C_Read... [13:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:31]Read from MH i2c: E2 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 03 00 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 03 00 FF 17 00 90 00 8A [13:55:31]RAPDU: 90 00 [13:55:31]wFMCommunicate OK [13:55:31]wFMCommunicate request_size=10 [13:55:31]MH_SAM_APDU [13:55:31]CAPDU: 80 0D 02 02 05 10 C2 2E C7 26 [13:55:31]Write to MH i2c: E2 0D 00 00 18 80 0D 02 02 05 00 10 C2 2E C7 26 00 00 89 [13:55:31]Write i2c OK [13:55:31]MH_I2C_Read... [13:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:31]Read from MH i2c: E2 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 03 00 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 03 00 00 18 00 90 00 8C [13:55:31]RAPDU: 90 00 [13:55:31]wFMCommunicate OK [13:55:31]wFMCommunicate request_size=4 [13:55:31]MH_SAM_APDU [13:55:31]CAPDU: 80 0D 03 02 [13:55:31]Write to MH i2c: E2 08 00 01 18 80 0D 03 02 00 00 00 00 94 [13:55:31]Write i2c OK [13:55:31]MH_I2C_Read... [13:55:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:31]Read from MH i2c: E2 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 0B 00 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 0B 00 01 18 00 ED 0F D1 D3 C0 18 9F 79 90 00 25 [13:55:31]RAPDU: ED 0F D1 D3 C0 18 9F 79 90 00 [13:55:31]wFMCommunicate OK [13:55:31]SAM_PROTO_SignData done [13:55:31]FM_MakeSignedData done [13:55:31]CreateOFDProtocolMessage [13:55:31]wFMCommunicate request_size=4 [13:55:31]MH_SAM_APDU [13:55:31]CAPDU: 80 11 00 00 [13:55:31]Write to MH i2c: E2 08 00 02 18 80 11 00 00 00 00 00 00 94 [13:55:31]Write i2c OK [13:55:31]MH_I2C_Read... [13:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:31]Read from MH i2c: E2 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 17 00 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 17 00 02 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E7 [13:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:55:31]wFMCommunicate OK [13:55:31]CreateOFDProtocolMessage done [13:55:31]OFDSenderStorePacket 145714 [13:55:31]StoreOFDPacket docnum=145714 [13:55:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BC 7B 07 01 20 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 32 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 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 B7 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 89 00 00 00 F4 03 04 00 53 46 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 32 39 02 00 35 04 06 00 25 10 C2 2E C7 26 ED 0F D1 D3 C0 18 9F 79 [13:55:31]CheckFolder [13:55:31]dirname=/storage/ofd_packets [13:55:31]CheckFolder done [13:55:31]ProducePacketName [13:55:31]name=ofd_packets/00145714 [13:55:31]NVStorageSaveData ofd_packets/00145714 [13:55:31]File name is /storage/ofd_packets/00145714 [13:55:31]Write 301 bytes [13:55:31]NVStorageSaveData done [13:55:31]OFDSenderStorePacket done [13:55:31]KKMCreateOFDPacket done [13:55:31]NVStorageSaveData kkm_last_timestamp [13:55:31]File name is /storage/kkm_last_timestamp [13:55:31]Write 4 bytes [13:55:31]NVStorageSaveData done [13:55:31]ExternCall_PrintAddStr [13:55:31]wPrintStart [13:55:31]Write to MH i2c: 01 00 00 03 18 1B [13:55:31]Write i2c OK [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: 01 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: 01 07 00 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: 01 07 00 03 18 00 00 00 00 00 FF 0F 30 [13:55:31]RasterBufferAndPrint [13:55:31]line Счет N : (1)160469 [13:55:31]line ИНН: 02508201610067 [13:55:31]line Контрольно-Кассовый Чек [13:55:31]line ПРОДАЖА [13:55:31]line ТРК (МРК, ГНК) : 52 [13:55:31]line Товар: 2710124130 [13:55:31]line Аи-92-К-2 [13:55:31]line 37.940 * 65.90 [13:55:31]line = 2500.25 [13:55:31]line НДС 12% НСП 1% [13:55:31]line > о реализуемом товаре [13:55:31]line ОКРУГЛЕНИЕ: -0.25 [13:55:31]line ИТОГО: 2500.00 [13:55:31]line Внесено: 2500.00 [13:55:31]line СДАЧА: 0.00 [13:55:31]line НСП 1% : 22.13 [13:55:31]line НДС 12% : 265.51 [13:55:31]line Наличными: 2500.00 [13:55:31]line Безнал.: 0.00 [13:55:31]line Место: АЗС № 126 "Партнер Нефть" [13:55:31]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [13:55:31]line СНО: Общий режим [13:55:31]line Чек 137 27.10.2024 13:55 [13:55:31]line Смена: 545 ФФД: 1.0 [13:55:31]line ЗНМ: 0300000085 [13:55:31]line РНМ: 0000000000091683 [13:55:31]line Версия ККМ: 001 [13:55:31]line [13:55:31]line Дисконтная программа [13:55:31]line АИ-92 [13:55:31]line номер 126 [13:55:31]line сэкономлено 37.94 сом [13:55:31]line ФМ: 0000000000871745 [13:55:31]line ФД: 145714 [13:55:31]line ФПД: 40753907549990 [13:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135531&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145714&fm=40753907549990&tin=02508201610067®Number=0000000000091683&sum=250000 [13:55:31]written 0, free lines is 4095 [13:55:31]OFD Sender: Processing packet 145714 [packets to send 206, broken 205] [13:55:31]ProducePacketName [13:55:31]name=ofd_packets/00145714 [13:55:31]OFD Sender: To server: pG, [13:55:31]CommunicateWithHost lk.salyk.kg:30040 [13:55:31]ConnectInit lk.salyk.kg [13:55:31]Connected sock=7 [13:55:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BC 7B 07 01 20 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 32 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 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 B7 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 89 00 00 00 F4 03 04 00 53 46 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 32 39 02 00 35 04 06 00 25 10 C2 2E C7 26 ED 0F D1 D3 C0 18 9F 79 [13:55:32]Write to MH i2c: 01 00 00 33 18 4B [13:55:32]Write i2c OK [13:55:32]MH_I2C_Read... [13:55:32]Read from MH i2c: 01 [13:55:32]MH_I2C_Read... [13:55:32]Read from MH i2c: 01 07 00 [13:55:32]MH_I2C_Read... [13:55:32]Read from MH i2c: 01 07 00 33 18 00 00 00 00 00 64 0C C2 [13:55:32]RasterBufferAndPrint [13:55:32]line [13:55:32]line [13:55:32]line [13:55:32]line [13:55:32]line [13:55:32]written 0, free lines is 3182 [13:55:32]MH_Cut [13:55:32]Write to MH i2c: D1 01 00 3A 18 01 24 [13:55:32]Write i2c OK [13:55:32]MH_I2C_Read... [13:55:32]Read from MH i2c: D1 [13:55:32]MH_I2C_Read... [13:55:32]Read from MH i2c: D1 01 00 [13:55:32]MH_I2C_Read... [13:55:32]Read from MH i2c: D1 01 00 3A 18 00 23 [13:55:32]Write to MH i2c: 01 00 00 3B 18 53 [13:55:32]Write i2c OK [13:55:32]MH_I2C_Read... [13:55:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 FC 85 47 00 8F B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 32 39 02 00 F4 03 04 00 80 EB 1D 67 B6 04 01 00 00 5D 9C 90 FD 87 E0 FD 5E [13:55:32]CommunicateWithHost err = 0 [13:55:32]CheckOFDResponse [13:55:32]1017 (14) - 77093643461234 [13:55:32]1041 (16) - 0000000000871745 [13:55:32]1040 (4) - 145714 [13:55:32]1012 (4) - 27.10.2024 07:28 [13:55:32]1206 (1) - 0 [13:55:32]OFD Sender: Remove packet 145714 [13:55:32]ProducePacketName [13:55:32]name=ofd_packets/00145714 [13:55:32]NVStorageDeleteData [13:55:32]OFD Sender: No OFD packet to send [13:55:33]*** Cut start [13:55:33]*** Partial cut [13:55:33]*** CUTSNS_PIN = 1 [13:55:33]*** CUTSNS_PIN = 0 [13:55:33]*** Brake cut motor [13:55:33]Read from MH i2c: 01 [13:55:33]MH_I2C_Read... [13:55:33]*** Stop cut motor [13:55:33]*** Cut end [13:55:33]Read from MH i2c: 01 07 00 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: 01 07 00 3B 18 00 00 00 00 00 FF 0F 68 [13:55:33]process_action close_receipt done [13:55:33]requested_data is exist [13:55:33]produce_requested_data [13:55:33]requested_item fm.sn is exist - process it [13:55:33]wFMCommunicate request_size=4 [13:55:33]MH_SAM_APDU [13:55:33]CAPDU: 80 11 00 00 [13:55:33]Write to MH i2c: E2 08 00 3C 18 80 11 00 00 00 00 00 00 CE [13:55:33]Write i2c OK [13:55:33]MH_I2C_Read... [13:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:33]Read from MH i2c: E2 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: E2 17 00 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: E2 17 00 3C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 21 [13:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [13:55:33]wFMCommunicate OK [13:55:33]requested_item fd.num is exist - process it [13:55:33]SAM_PROTO_GetFieldsCounters [13:55:33]wFMCommunicate request_size=4 [13:55:33]MH_SAM_APDU [13:55:33]CAPDU: 80 13 00 00 [13:55:33]Write to MH i2c: E2 08 00 3D 18 80 13 00 00 00 00 00 00 D1 [13:55:33]Write i2c OK [13:55:33]MH_I2C_Read... [13:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:33]Read from MH i2c: E2 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: E2 62 00 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: E2 62 00 3D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 32 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [13:55:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 32 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:33]wFMCommunicate OK [13:55:33]SAM_PROTO_GetFieldsCounters done [13:55:33]requested_item shift.num is exist - process it [13:55:33]requested_item shift.opened is exist - process it [13:55:33]req_shift_opened [13:55:33]FM_GetShiftState [13:55:33]SAM_PROTO_GetShiftState [13:55:33]wFMCommunicate request_size=4 [13:55:33]MH_SAM_APDU [13:55:33]CAPDU: 80 13 01 00 [13:55:33]Write to MH i2c: E2 08 00 3E 18 80 13 01 00 00 00 00 00 D3 [13:55:33]Write i2c OK [13:55:33]MH_I2C_Read... [13:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:33]Read from MH i2c: E2 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: E2 0E 00 [13:55:33]MH_I2C_Read... [13:55:33]Read from MH i2c: E2 0E 00 3E 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4B [13:55:33]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [13:55:33]wFMCommunicate OK [13:55:33]SAM_PROTO_GetShiftState done [13:55:33]FM_GetShiftState done [13:55:33]req_shift_opened done [13:55:33]requested_item shift.open_date is exist - process it [13:55:33]req_shift_open_date [13:55:33]req_shift_open_date done [13:55:33]produce_requested_data done [13:55:33]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145714,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [13:55:33]process_action_free close_receipt [13:55:33]json_value_free [13:55:33]json_value_free done [13:55:33]process_json_proto returns [13:55:33]Send response to host [13:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145714,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [13:55:33]free response buf [13:55:33]execute_script done [13:55:33]execute_script returns [13:55:33]free content buf [13:55:33]Sock 10.Close socket [13:55:33]Sock 10.Thread stoped [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58: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:36]accept exits with 9 [14:02:36]New connection [14:02:36]New thread 3066596708 created [14:02:36]Thread 3066740068 joined [14:02:36]Waiting for new connection... [14:02:36] Sock 9.Parse request [14:02:36]Sock 9.Check first char [14:02:36]Sock 9.First char is OK [14:02:36]request: POST /json_proto HTTP/1.0 [14:02:36]Method: POST [14:02:36]URL: /json_proto [14:02:36]Method is POST - this is cgi request [14:02:36]url: /json_proto [14:02:36]query_string will be loaded in cgi processing [14:02:36]execute_cgi json_proto POST (null) [14:02:36]execute_cgi path=json_proto method=POST [14:02:36]POST find Content-Length [14:02:36]Host: 172.17.40.195:8080 [14:02:36]Content-Length: 679 [14:02:36]Content-Type: application/json [14:02:36] [14:02:36]POST finish read [14:02:36]Found Content-Length = 679 [14:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:36]execute_script... [14:02: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)160470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:36]POST & json_proto [14:02:36]process_json_proto [14:02:36]json parsed OK: [14:02:36]protocol is kg_v1.0 [14:02:36]action value=close_receipt [14:02:36]process_action close_receipt [14:02:36]cmd_close_receipt [14:02:36]MH_GetDate [14:02:36]Write to MH i2c: F0 00 00 3F 18 46 [14:02:36]Write i2c OK [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: F0 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: F0 09 00 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: F0 09 00 3F 18 00 FE 47 1E 67 D5 8D 6C 64 4B [14:02:36]GetLastDocTimeStamp 1730037331 [14:02:36]current date 1730037758 [14:02:36]FM_GetShiftState [14:02:36]SAM_PROTO_GetShiftState [14:02:36]wFMCommunicate request_size=4 [14:02:36]MH_SAM_APDU [14:02:36]CAPDU: 80 13 01 00 [14:02:36]Write to MH i2c: E2 08 00 40 18 80 13 01 00 00 00 00 00 D5 [14:02:36]Write i2c OK [14:02:36]MH_I2C_Read... [14:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:36]Read from MH i2c: E2 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: E2 0E 00 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: E2 0E 00 40 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4D [14:02:36]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:02:36]wFMCommunicate OK [14:02:36]SAM_PROTO_GetShiftState done [14:02:36]FM_GetShiftState done [14:02:36]opened in 1729988959 [14:02:36]opened+sec_in_day 1730075359 [14:02:36]quantity*price = 300075 [14:02:36]sum+1 = 300077 [14:02:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 138 27.10.2024 14:02 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145715 ФПД: 154003646166343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140238&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145715&fm=154003646166343&tin=02508201610067®Number=0000000000091683&sum=300000 [14:02:37]StoreToDocumentArchive [14:02:37]shift 545 fd 145715 [14:02:37]save to /storage/0545/doc_00145715 [14:02:37]save last doc name /storage/0545/doc_00145715 to /storage/kkm_last_doc_name [14:02:37]save OK [14:02:37]Clear old archive folders... [14:02:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:02:37]tlvbuf is 0044CBA0 [14:02:37]SAM_PROTO_ClearQueue [14:02:37]wFMCommunicate request_size=4 [14:02:37]MH_SAM_APDU [14:02:37]CAPDU: 80 09 00 00 [14:02:37]Write to MH i2c: E2 08 00 4D 18 80 09 00 00 00 00 00 00 D7 [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [14:02:38]RAPDU: 90 00 [14:02:38]wFMCommunicate OK [14:02:38]SAM_PROTO_ClearQueue done [14:02:38]KKMCreateOFDPacket [14:02:38]OFDProtocolAddRootSTLVToBuf [14:02:38]FM_MakeSignedData [14:02:38]FM_MakeSignedData [14:02:38]SAM_PROTO_SignData [14:02:38]wFMCommunicate request_size=4 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 0D 01 02 [14:02:38]Write to MH i2c: E2 08 00 4E 18 80 0D 01 02 00 00 00 00 DF [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [14:02:38]RAPDU: 90 00 [14:02:38]wFMCommunicate OK [14:02:38]wFMCommunicate request_size=255 [14:02:38]MH_SAM_APDU [14:02: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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 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 7A 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 8A 00 00 00 F4 03 04 00 FE 47 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 33 39 02 00 35 04 06 00 8C 10 C4 9F [14:02:38]Write to MH i2c: E2 02 01 4F 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 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 7A 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 8A 00 00 00 F4 03 04 00 FE 47 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 33 39 02 00 35 04 06 00 8C 10 C4 9F 00 00 7E [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [14:02:38]RAPDU: 90 00 [14:02:38]wFMCommunicate OK [14:02:38]wFMCommunicate request_size=7 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 0D 02 02 02 B5 47 [14:02:38]Write to MH i2c: E2 0A 00 50 18 80 0D 02 02 02 00 B5 47 00 00 E2 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]OFD Sender: No OFD packet to send [14:02:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 50 18 00 90 00 DC [14:02:38]RAPDU: 90 00 [14:02:38]wFMCommunicate OK [14:02:38]wFMCommunicate request_size=4 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 0D 03 02 [14:02:38]Write to MH i2c: E2 08 00 51 18 80 0D 03 02 00 00 00 00 E4 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 0B 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 0B 00 51 18 00 5F 3E 29 5C B9 A5 69 2B 90 00 F9 [14:02:38]RAPDU: 5F 3E 29 5C B9 A5 69 2B 90 00 [14:02:38]wFMCommunicate OK [14:02:38]SAM_PROTO_SignData done [14:02:38]FM_MakeSignedData done [14:02:38]CreateOFDProtocolMessage [14:02:38]wFMCommunicate request_size=4 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 11 00 00 [14:02:38]Write to MH i2c: E2 08 00 52 18 80 11 00 00 00 00 00 00 E4 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 17 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 17 00 52 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 37 [14:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:02:38]wFMCommunicate OK [14:02:38]CreateOFDProtocolMessage done [14:02:38]OFDSenderStorePacket 145715 [14:02:38]StoreOFDPacket docnum=145715 [14:02:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 88 0E 04 01 70 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 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 7A 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 8A 00 00 00 F4 03 04 00 FE 47 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 33 39 02 00 35 04 06 00 8C 10 C4 9F B5 47 5F 3E 29 5C B9 A5 69 2B [14:02:38]CheckFolder [14:02:38]dirname=/storage/ofd_packets [14:02:38]CheckFolder done [14:02:38]ProducePacketName [14:02:38]name=ofd_packets/00145715 [14:02:38]NVStorageSaveData ofd_packets/00145715 [14:02:38]File name is /storage/ofd_packets/00145715 [14:02:38]Write 298 bytes [14:02:38]NVStorageSaveData done [14:02:38]OFDSenderStorePacket done [14:02:38]KKMCreateOFDPacket done [14:02:38]NVStorageSaveData kkm_last_timestamp [14:02:38]File name is /storage/kkm_last_timestamp [14:02:38]Write 4 bytes [14:02:38]NVStorageSaveData done [14:02:38]ExternCall_PrintAddStr [14:02:38]wPrintStart [14:02:38]Write to MH i2c: 01 00 00 53 18 6B [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: 01 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: 01 07 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: 01 07 00 53 18 00 00 00 00 00 FF 0F 80 [14:02:38]RasterBufferAndPrint [14:02:38]line Счет N : (1)160470 [14:02:38]line ИНН: 02508201610067 [14:02:38]line Контрольно-Кассовый Чек [14:02:38]line ПРОДАЖА [14:02:38]line ТРК (МРК, ГНК) : 11 [14:02:38]line Товар: 2710194210 [14:02:38]line ДТ-К-2 [14:02:38]line 39.380 * 76.20 [14:02:38]line = 3000.76 [14:02:38]line НДС 12% НСП 1% [14:02:38]line > о реализуемом товаре [14:02:38]line ОКРУГЛЕНИЕ: -0.76 [14:02:38]line ИТОГО: 3000.00 [14:02:38]line Внесено: 3000.00 [14:02:38]line СДАЧА: 0.00 [14:02:38]line НСП 1% : 26.55 [14:02:38]line НДС 12% : 318.66 [14:02:38]line Наличными: 3000.00 [14:02:38]line Безнал.: 0.00 [14:02:38]line Место: АЗС № 126 "Партнер Нефть" [14:02:38]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:02:38]line СНО: Общий режим [14:02:38]line Чек 138 27.10.2024 14:02 [14:02:38]line Смена: 545 ФФД: 1.0 [14:02:38]line ЗНМ: 0300000085 [14:02:38]line РНМ: 0000000000091683 [14:02:38]line Версия ККМ: 001 [14:02:38]line ФМ: 0000000000871745 [14:02:38]line ФД: 145715 [14:02:38]line ФПД: 154003646166343 [14:02:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140238&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145715&fm=154003646166343&tin=02508201610067®Number=0000000000091683&sum=300000 [14:02:38]OFD Sender: Processing packet 145715 [packets to send 206, broken 205] [14:02:38]ProducePacketName [14:02:38]name=ofd_packets/00145715 [14:02:38]OFD Sender: To server: pG, [14:02:38]CommunicateWithHost lk.salyk.kg:30040 [14:02:38]ConnectInit lk.salyk.kg [14:02:38]written 0, free lines is 4095 [14:02:39]Connected sock=10 [14:02:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 88 0E 04 01 70 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 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 7A 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 8A 00 00 00 F4 03 04 00 FE 47 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 33 39 02 00 35 04 06 00 8C 10 C4 9F B5 47 5F 3E 29 5C B9 A5 69 2B [14:02:39]Write to MH i2c: 01 00 00 7E 18 96 [14:02:39]Write i2c OK [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 7E 18 00 00 00 00 00 A4 0C 4D [14:02:39]RasterBufferAndPrint [14:02:39]line [14:02:39]line [14:02:39]line [14:02:39]line [14:02:39]line [14:02:39]written 0, free lines is 3242 [14:02:39]MH_Cut [14:02:39]Write to MH i2c: D1 01 00 85 18 01 6F [14:02:39]Write i2c OK [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: D1 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: D1 01 00 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: D1 01 00 85 18 00 6E [14:02:39]Write to MH i2c: 01 00 00 86 18 9E [14:02:39]Write i2c OK [14:02:39]MH_I2C_Read... [14:02:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 B8 79 47 00 B6 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 33 39 02 00 F4 03 04 00 2C ED 1D 67 B6 04 01 00 00 C0 51 7F 9B 8B 18 D1 D4 [14:02:39]CommunicateWithHost err = 0 [14:02:39]CheckOFDResponse [14:02:39]1017 (14) - 77093643461234 [14:02:39]1041 (16) - 0000000000871745 [14:02:39]1040 (4) - 145715 [14:02:39]1012 (4) - 27.10.2024 07:35 [14:02:39]1206 (1) - 0 [14:02:39]OFD Sender: Remove packet 145715 [14:02:39]ProducePacketName [14:02:39]name=ofd_packets/00145715 [14:02:39]NVStorageDeleteData [14:02:39]OFD Sender: No OFD packet to send [14:02:40]*** Cut start [14:02:40]*** Partial cut [14:02:40]*** CUTSNS_PIN = 1 [14:02:40]*** CUTSNS_PIN = 0 [14:02:40]*** Brake cut motor [14:02:40]Read from MH i2c: 01 [14:02:40]MH_I2C_Read... [14:02:40]*** Stop cut motor [14:02:40]*** Cut end [14:02:40]Read from MH i2c: 01 07 00 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: 01 07 00 86 18 00 00 00 00 00 FF 0F B3 [14:02:40]process_action close_receipt done [14:02:40]requested_data is exist [14:02:40]produce_requested_data [14:02:40]requested_item fm.sn is exist - process it [14:02:40]wFMCommunicate request_size=4 [14:02:40]MH_SAM_APDU [14:02:40]CAPDU: 80 11 00 00 [14:02:40]Write to MH i2c: E2 08 00 87 18 80 11 00 00 00 00 00 00 19 [14:02:40]Write i2c OK [14:02:40]MH_I2C_Read... [14:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:40]Read from MH i2c: E2 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 17 00 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 17 00 87 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6C [14:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:02:40]wFMCommunicate OK [14:02:40]requested_item fd.num is exist - process it [14:02:40]SAM_PROTO_GetFieldsCounters [14:02:40]wFMCommunicate request_size=4 [14:02:40]MH_SAM_APDU [14:02:40]CAPDU: 80 13 00 00 [14:02:40]Write to MH i2c: E2 08 00 88 18 80 13 00 00 00 00 00 00 1C [14:02:40]Write i2c OK [14:02:40]MH_I2C_Read... [14:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:40]Read from MH i2c: E2 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 62 00 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 62 00 88 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 33 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [14:02:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 33 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:40]wFMCommunicate OK [14:02:40]SAM_PROTO_GetFieldsCounters done [14:02:40]requested_item shift.num is exist - process it [14:02:40]requested_item shift.opened is exist - process it [14:02:40]req_shift_opened [14:02:40]FM_GetShiftState [14:02:40]SAM_PROTO_GetShiftState [14:02:40]wFMCommunicate request_size=4 [14:02:40]MH_SAM_APDU [14:02:40]CAPDU: 80 13 01 00 [14:02:40]Write to MH i2c: E2 08 00 89 18 80 13 01 00 00 00 00 00 1E [14:02:40]Write i2c OK [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 [14:02:40]MH_I2C_Read... [14:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:40]Read from MH i2c: E2 0E 00 [14:02:40]MH_I2C_Read... [14:02:40]Read from MH i2c: E2 0E 00 89 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 96 [14:02:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:02:40]wFMCommunicate OK [14:02:40]SAM_PROTO_GetShiftState done [14:02:40]FM_GetShiftState done [14:02:40]req_shift_opened done [14:02:40]requested_item shift.open_date is exist - process it [14:02:40]req_shift_open_date [14:02:40]req_shift_open_date done [14:02:40]produce_requested_data done [14:02:40]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145715,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:02:40]process_action_free close_receipt [14:02:40]json_value_free [14:02:40]json_value_free done [14:02:40]process_json_proto returns [14:02:40]Send response to host [14:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145715,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:02:40]free response buf [14:02:40]execute_script done [14:02:40]execute_script returns [14:02:40]free content buf [14:02:40]Sock 9.Close socket [14:02:40]Sock 9.Thread stoped [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]accept exits with 7 [14:14:00]New connection [14:14:00]New thread 3066740068 created [14:14:00]Thread 3066596708 joined [14:14:00]Waiting for new connection... [14:14:00] Sock 7.Parse request [14:14:00]Sock 7.Check first char [14:14:00]Sock 7.First char is OK [14:14:00]request: POST /json_proto HTTP/1.0 [14:14:00]Method: POST [14:14:00]URL: /json_proto [14:14:00]Method is POST - this is cgi request [14:14:00]url: /json_proto [14:14:00]query_string will be loaded in cgi processing [14:14:00]execute_cgi json_proto POST (null) [14:14:00]execute_cgi path=json_proto method=POST [14:14:00]POST find Content-Length [14:14:00]Host: 172.17.40.195:8080 [14:14:00]Content-Length: 677 [14:14:00]Content-Type: application/json [14:14:00] [14:14:00]POST finish read [14:14:00]Found Content-Length = 677 [14:14:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:00]execute_script... [14:14:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:00]POST & json_proto [14:14:00]process_json_proto [14:14:00]json parsed OK: [14:14:00]protocol is kg_v1.0 [14:14:00]action value=close_receipt [14:14:00]process_action close_receipt [14:14:00]cmd_close_receipt [14:14:00]MH_GetDate [14:14:00]Write to MH i2c: F0 00 00 8A 18 91 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: F0 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: F0 09 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: F0 09 00 8A 18 00 AA 4A 1E 67 D5 8D 6C 64 45 [14:14:00]GetLastDocTimeStamp 1730037758 [14:14:00]current date 1730038442 [14:14:00]FM_GetShiftState [14:14:00]SAM_PROTO_GetShiftState [14:14:00]wFMCommunicate request_size=4 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 13 01 00 [14:14:00]Write to MH i2c: E2 08 00 8B 18 80 13 01 00 00 00 00 00 20 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 0E 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 0E 00 8B 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 98 [14:14:00]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:14:00]wFMCommunicate OK [14:14:00]SAM_PROTO_GetShiftState done [14:14:00]FM_GetShiftState done [14:14:00]opened in 1729988959 [14:14:00]opened+sec_in_day 1730075359 [14:14:00]quantity*price = 60009 [14:14:00]sum+1 = 60010 [14:14:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 139 27.10.2024 14:14 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145716 ФПД: 86563512766774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141402&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145716&fm=86563512766774&tin=02508201610067®Number=0000000000091683&sum=60000 [14:14:01]StoreToDocumentArchive [14:14:01]shift 545 fd 145716 [14:14:01]save to /storage/0545/doc_00145716 [14:14:01]save last doc name /storage/0545/doc_00145716 to /storage/kkm_last_doc_name [14:14:01]save OK [14:14:01]Clear old archive folders... [14:14:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:01]tlvbuf is 004371F0 [14:14:01]SAM_PROTO_ClearQueue [14:14:01]wFMCommunicate request_size=4 [14:14:01]MH_SAM_APDU [14:14:01]CAPDU: 80 09 00 00 [14:14:01]Write to MH i2c: E2 08 00 98 18 80 09 00 00 00 00 00 00 22 [14:14:01]Write i2c OK [14:14:01]MH_I2C_Read... [14:14:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:01]Read from MH i2c: E2 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: E2 03 00 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: E2 03 00 98 18 00 90 00 24 [14:14:01]RAPDU: 90 00 [14:14:01]wFMCommunicate OK [14:14:01]SAM_PROTO_ClearQueue done [14:14:01]KKMCreateOFDPacket [14:14:01]OFDProtocolAddRootSTLVToBuf [14:14:01]FM_MakeSignedData [14:14:01]FM_MakeSignedData [14:14:01]SAM_PROTO_SignData [14:14:01]wFMCommunicate request_size=4 [14:14:01]MH_SAM_APDU [14:14:01]CAPDU: 80 0D 01 02 [14:14:01]Write to MH i2c: E2 08 00 99 18 80 0D 01 02 00 00 00 00 2A [14:14:01]Write i2c OK [14:14:01]MH_I2C_Read... [14:14:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:01]Read from MH i2c: E2 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: E2 03 00 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: E2 03 00 99 18 00 90 00 25 [14:14:02]RAPDU: 90 00 [14:14:02]wFMCommunicate OK [14:14:02]wFMCommunicate request_size=255 [14:14:02]MH_SAM_APDU [14: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 AA 4A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 34 39 02 00 35 04 06 00 4E [14:14:02]Write to MH i2c: E2 02 01 9A 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 AA 4A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 34 39 02 00 35 04 06 00 4E 00 00 79 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 9A 18 00 90 00 26 [14:14:02]RAPDU: 90 00 [14:14:02]wFMCommunicate OK [14:14:02]wFMCommunicate request_size=10 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 0D 02 02 05 BA A3 6D D1 36 [14:14:02]Write to MH i2c: E2 0D 00 9B 18 80 0D 02 02 05 00 BA A3 6D D1 36 00 00 08 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 9B 18 00 90 00 27 [14:14:02]RAPDU: 90 00 [14:14:02]wFMCommunicate OK [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 0D 03 02 [14:14:02]Write to MH i2c: E2 08 00 9C 18 80 0D 03 02 00 00 00 00 2F [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 0B 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 0B 00 9C 18 00 C6 7D A0 A8 4C 6B F0 50 90 00 B2 [14:14:02]RAPDU: C6 7D A0 A8 4C 6B F0 50 90 00 [14:14:02]wFMCommunicate OK [14:14:02]SAM_PROTO_SignData done [14:14:02]FM_MakeSignedData done [14:14:02]CreateOFDProtocolMessage [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 11 00 00 [14:14:02]Write to MH i2c: E2 08 00 9D 18 80 11 00 00 00 00 00 00 2F [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 17 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 17 00 9D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 82 [14:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:14:02]wFMCommunicate OK [14:14:02]CreateOFDProtocolMessage done [14:14:02]OFDSenderStorePacket 145716 [14:14:02]StoreOFDPacket docnum=145716 [14:14:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 B7 F1 07 01 25 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 AA 4A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 34 39 02 00 35 04 06 00 4E BA A3 6D D1 36 C6 7D A0 A8 4C 6B F0 50 [14:14:02]CheckFolder [14:14:02]dirname=/storage/ofd_packets [14:14:02]CheckFolder done [14:14:02]ProducePacketName [14:14:02]name=ofd_packets/00145716 [14:14:02]NVStorageSaveData ofd_packets/00145716 [14:14:02]File name is /storage/ofd_packets/00145716 [14:14:02]Write 301 bytes [14:14:02]NVStorageSaveData done [14:14:02]OFDSenderStorePacket done [14:14:02]KKMCreateOFDPacket done [14:14:02]NVStorageSaveData kkm_last_timestamp [14:14:02]File name is /storage/kkm_last_timestamp [14:14:02]Write 4 bytes [14:14:02]NVStorageSaveData done [14:14:02]ExternCall_PrintAddStr [14:14:02]wPrintStart [14:14:02]Write to MH i2c: 01 00 00 9E 18 B6 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 07 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 FF 0F CB [14:14:02]RasterBufferAndPrint [14:14:02]line Счет N : (1)160471 [14:14:02]line ИНН: 02508201610067 [14:14:02]line Контрольно-Кассовый Чек [14:14:02]line ПРОДАЖА [14:14:02]line ТРК (МРК, ГНК) : 42 [14:14:02]line Товар: 2710124130 [14:14:02]line Аи-92-К-2 [14:14:02]line 8.970 * 66.90 [14:14:02]line = 600.09 [14:14:02]line НДС 12% НСП 1% [14:14:02]line > о реализуемом товаре [14:14:02]line ОКРУГЛЕНИЕ: -0.09 [14:14:02]line ИТОГО: 600.00 [14:14:02]line Внесено: 600.00 [14:14:02]line СДАЧА: 0.00 [14:14:02]line НСП 1% : 5.31 [14:14:02]line НДС 12% : 63.73 [14:14:02]line Наличными: 600.00 [14:14:02]line Безнал.: 0.00 [14:14:02]line Место: АЗС № 126 "Партнер Нефть" [14:14:02]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:14:02]line СНО: Общий режим [14:14:02]line Чек 139 27.10.2024 14:14 [14:14:02]line Смена: 545 ФФД: 1.0 [14:14:02]line ЗНМ: 0300000085 [14:14:02]line РНМ: 0000000000091683 [14:14:02]line Версия ККМ: 001 [14:14:02]line ФМ: 0000000000871745 [14:14:02]line ФД: 145716 [14:14:02]line ФПД: 86563512766774 [14:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141402&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145716&fm=86563512766774&tin=02508201610067®Number=0000000000091683&sum=60000 [14:14:02]written 0, free lines is 4095 [14:14:02]OFD Sender: Processing packet 145716 [packets to send 206, broken 205] [14:14:02]ProducePacketName [14:14:02]name=ofd_packets/00145716 [14:14:02]OFD Sender: To server: pG, [14:14:02]CommunicateWithHost lk.salyk.kg:30040 [14:14:02]ConnectInit lk.salyk.kg [14:14:02]Connected sock=10 [14:14:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 B7 F1 07 01 25 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 AA 4A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 34 39 02 00 35 04 06 00 4E BA A3 6D D1 36 C6 7D A0 A8 4C 6B F0 50 [14:14:03]Write to MH i2c: 01 00 00 C9 18 E1 [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: 01 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: 01 07 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: 01 07 00 C9 18 00 00 00 00 00 A4 0C 98 [14:14:03]RasterBufferAndPrint [14:14:03]line [14:14:03]line [14:14:03]line [14:14:03]line [14:14:03]line [14:14:03]written 0, free lines is 3242 [14:14:03]MH_Cut [14:14:03]Write to MH i2c: D1 01 00 D0 18 01 BA [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: D1 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: D1 01 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: D1 01 00 D0 18 00 B9 [14:14:03]Write to MH i2c: 01 00 00 D1 18 E9 [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 CA 91 47 00 F2 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 34 39 02 00 F4 03 04 00 D8 EF 1D 67 B6 04 01 00 00 6B A8 E9 4A 46 C8 6B A0 [14:14:03]CommunicateWithHost err = 0 [14:14:03]CheckOFDResponse [14:14:03]1017 (14) - 77093643461234 [14:14:03]1041 (16) - 0000000000871745 [14:14:03]1040 (4) - 145716 [14:14:03]1012 (4) - 27.10.2024 07:46 [14:14:03]1206 (1) - 0 [14:14:03]OFD Sender: Remove packet 145716 [14:14:03]ProducePacketName [14:14:03]name=ofd_packets/00145716 [14:14:03]NVStorageDeleteData [14:14:03]OFD Sender: No OFD packet to send [14:14:04]*** Cut start [14:14:04]*** Partial cut [14:14:04]*** CUTSNS_PIN = 1 [14:14:04]*** CUTSNS_PIN = 0 [14:14:04]*** Brake cut motor [14:14:04]Read from MH i2c: 01 [14:14:04]MH_I2C_Read... [14:14:04]*** Stop cut motor [14:14:04]*** Cut end [14:14:04]Read from MH i2c: 01 07 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: 01 07 00 D1 18 00 00 00 00 00 FF 0F FE [14:14:04]process_action close_receipt done [14:14:04]requested_data is exist [14:14:04]produce_requested_data [14:14:04]requested_item fm.sn is exist - process it [14:14:04]wFMCommunicate request_size=4 [14:14:04]MH_SAM_APDU [14:14:04]CAPDU: 80 11 00 00 [14:14:04]Write to MH i2c: E2 08 00 D2 18 80 11 00 00 00 00 00 00 64 [14:14:04]Write i2c OK [14:14:04]MH_I2C_Read... [14:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:04]Read from MH i2c: E2 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 17 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 17 00 D2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B7 [14:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:14:04]wFMCommunicate OK [14:14:04]requested_item fd.num is exist - process it [14:14:04]SAM_PROTO_GetFieldsCounters [14:14:04]wFMCommunicate request_size=4 [14:14:04]MH_SAM_APDU [14:14:04]CAPDU: 80 13 00 00 [14:14:04]Write to MH i2c: E2 08 00 D3 18 80 13 00 00 00 00 00 00 67 [14:14:04]Write i2c OK [14:14:04]MH_I2C_Read... [14:14:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:04]Read from MH i2c: E2 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 62 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 62 00 D3 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 34 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [14:14:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 34 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:04]wFMCommunicate OK [14:14:04]SAM_PROTO_GetFieldsCounters done [14:14:04]requested_item shift.num is exist - process it [14:14:04]requested_item shift.opened is exist - process it [14:14:04]req_shift_opened [14:14:04]FM_GetShiftState [14:14:04]SAM_PROTO_GetShiftState [14:14:04]wFMCommunicate request_size=4 [14:14:04]MH_SAM_APDU [14:14:04]CAPDU: 80 13 01 00 [14:14:04]Write to MH i2c: E2 08 00 D4 18 80 13 01 00 00 00 00 00 69 [14:14:04]Write i2c OK [14:14:04]MH_I2C_Read... [14:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:04]Read from MH i2c: E2 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 0E 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 0E 00 D4 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E1 [14:14:04]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:14:04]wFMCommunicate OK [14:14:04]SAM_PROTO_GetShiftState done [14:14:04]FM_GetShiftState done [14:14:04]req_shift_opened done [14:14:04]requested_item shift.open_date is exist - process it [14:14:04]req_shift_open_date [14:14:04]req_shift_open_date done [14:14:04]produce_requested_data done [14:14:04]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145716,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:14:04]process_action_free close_receipt [14:14:04]json_value_free [14:14:04]json_value_free done [14:14:04]process_json_proto returns [14:14:04]Send response to host [14:14:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145716,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:14:04]free response buf [14:14:04]execute_script done [14:14:04]execute_script returns [14:14:04]free content buf [14:14:04]Sock 7.Close socket [14:14:04]Sock 7.Thread stoped [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:48]int [14:16:48]Write to MH i2c: 01 00 00 D5 18 ED [14:16:48]*** FLAG_PRN_KEY set [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: 01 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: 01 07 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: 01 07 00 D5 18 00 08 00 00 00 FF 0F 0A [14:16:48]state=0 [14:16:48]Key pressed [14:16:48]Feed [14:16:48]Write to MH i2c: D8 00 00 D6 18 C5 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: D8 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: D8 01 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: D8 01 00 D6 18 00 C6 [14:16:48]int [14:16:48]Write to MH i2c: 01 00 00 D7 18 EF [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 D7 18 00 48 00 00 00 3C 00 7A [14:16:49]state=2 [14:16:49]Key pressed [14:16:49]OFD Sender: No OFD packet to send [14:16:49]int [14:16:49]Write to MH i2c: 01 00 00 D8 18 F0 [14:16:49]*** FLAG_PRN_KEY reset [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 D8 18 00 00 00 00 00 FF 0F 05 [14:16:49]state=2 [14:16:49]Stop feed [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:51]accept exits with 9 [14:17:51]New connection [14:17:51]New thread 3066596708 created [14:17:51]Thread 3066740068 joined [14:17:51]Waiting for new connection... [14:17:51] Sock 9.Parse request [14:17:51]Sock 9.Check first char [14:17:51]Sock 9.First char is OK [14:17:51]request: POST /json_proto HTTP/1.0 [14:17:51]Method: POST [14:17:51]URL: /json_proto [14:17:51]Method is POST - this is cgi request [14:17:51]url: /json_proto [14:17:51]query_string will be loaded in cgi processing [14:17:51]execute_cgi json_proto POST (null) [14:17:51]execute_cgi path=json_proto method=POST [14:17:51]POST find Content-Length [14:17:51]Host: 172.17.40.195:8080 [14:17:51]Content-Length: 677 [14:17:51]Content-Type: application/json [14:17:51] [14:17:51]POST finish read [14:17:51]Found Content-Length = 677 [14:17:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:51]execute_script... [14:17: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)160472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:51]POST & json_proto [14:17:51]process_json_proto [14:17:51]json parsed OK: [14:17:51]protocol is kg_v1.0 [14:17:51]action value=close_receipt [14:17:51]process_action close_receipt [14:17:51]cmd_close_receipt [14:17:51]MH_GetDate [14:17:51]Write to MH i2c: F0 00 00 D9 18 E0 [14:17:51]Write i2c OK [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: F0 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: F0 09 00 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: F0 09 00 D9 18 00 91 4B 1E 67 D5 8D 6C 64 7C [14:17:51]GetLastDocTimeStamp 1730038442 [14:17:51]current date 1730038673 [14:17:51]FM_GetShiftState [14:17:51]SAM_PROTO_GetShiftState [14:17:51]wFMCommunicate request_size=4 [14:17:51]MH_SAM_APDU [14:17:51]CAPDU: 80 13 01 00 [14:17:51]Write to MH i2c: E2 08 00 DA 18 80 13 01 00 00 00 00 00 6F [14:17:51]Write i2c OK [14:17:51]MH_I2C_Read... [14:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:51]Read from MH i2c: E2 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: E2 0E 00 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: E2 0E 00 DA 18 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E7 [14:17:51]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:17:51]wFMCommunicate OK [14:17:51]SAM_PROTO_GetShiftState done [14:17:51]FM_GetShiftState done [14:17:51]opened in 1729988959 [14:17:51]opened+sec_in_day 1730075359 [14:17:51]quantity*price = 50041 [14:17:51]sum+1 = 50042 [14:17:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 140 27.10.2024 14:17 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145717 ФПД: 197339791431302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141753&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145717&fm=197339791431302&tin=02508201610067®Number=0000000000091683&sum=50000 [14:17:52]StoreToDocumentArchive [14:17:52]shift 545 fd 145717 [14:17:52]save to /storage/0545/doc_00145717 [14:17:52]save last doc name /storage/0545/doc_00145717 to /storage/kkm_last_doc_name [14:17:52]save OK [14:17:52]Clear old archive folders... [14:17:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:52]tlvbuf is 0045D470 [14:17:52]SAM_PROTO_ClearQueue [14:17:52]wFMCommunicate request_size=4 [14:17:52]MH_SAM_APDU [14:17:52]CAPDU: 80 09 00 00 [14:17:52]Write to MH i2c: E2 08 00 E7 18 80 09 00 00 00 00 00 00 71 [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:52]Read from MH i2c: E2 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 E7 18 00 90 00 73 [14:17:52]RAPDU: 90 00 [14:17:52]wFMCommunicate OK [14:17:52]SAM_PROTO_ClearQueue done [14:17:52]KKMCreateOFDPacket [14:17:52]OFDProtocolAddRootSTLVToBuf [14:17:52]FM_MakeSignedData [14:17:52]FM_MakeSignedData [14:17:52]SAM_PROTO_SignData [14:17:52]wFMCommunicate request_size=4 [14:17:52]MH_SAM_APDU [14:17:52]CAPDU: 80 0D 01 02 [14:17:52]Write to MH i2c: E2 08 00 E8 18 80 0D 01 02 00 00 00 00 79 [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:52]Read from MH i2c: E2 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 E8 18 00 90 00 74 [14:17:52]RAPDU: 90 00 [14:17:52]wFMCommunicate OK [14:17:52]wFMCommunicate request_size=255 [14:17:52]MH_SAM_APDU [14:17: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 91 4B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 35 39 02 00 35 04 06 00 B3 [14:17:52]Write to MH i2c: E2 02 01 E9 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 91 4B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 35 39 02 00 35 04 06 00 B3 00 00 3A [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:53]Read from MH i2c: E2 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 03 00 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 03 00 E9 18 00 90 00 75 [14:17:53]RAPDU: 90 00 [14:17:53]wFMCommunicate OK [14:17:53]wFMCommunicate request_size=10 [14:17:53]MH_SAM_APDU [14:17:53]CAPDU: 80 0D 02 02 05 7A C0 2B 16 86 [14:17:53]Write to MH i2c: E2 0D 00 EA 18 80 0D 02 02 05 00 7A C0 2B 16 86 00 00 87 [14:17:53]Write i2c OK [14:17:53]MH_I2C_Read... [14:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:53]Read from MH i2c: E2 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 03 00 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 03 00 EA 18 00 90 00 76 [14:17:53]RAPDU: 90 00 [14:17:53]wFMCommunicate OK [14:17:53]wFMCommunicate request_size=4 [14:17:53]MH_SAM_APDU [14:17:53]CAPDU: 80 0D 03 02 [14:17:53]Write to MH i2c: E2 08 00 EB 18 80 0D 03 02 00 00 00 00 7E [14:17:53]Write i2c OK [14:17:53]MH_I2C_Read... [14:17:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:53]Read from MH i2c: E2 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 0B 00 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 0B 00 EB 18 00 17 1F C1 23 C9 43 F2 9D 90 00 34 [14:17:53]RAPDU: 17 1F C1 23 C9 43 F2 9D 90 00 [14:17:53]wFMCommunicate OK [14:17:53]SAM_PROTO_SignData done [14:17:53]FM_MakeSignedData done [14:17:53]CreateOFDProtocolMessage [14:17:53]wFMCommunicate request_size=4 [14:17:53]MH_SAM_APDU [14:17:53]CAPDU: 80 11 00 00 [14:17:53]Write to MH i2c: E2 08 00 EC 18 80 11 00 00 00 00 00 00 7E [14:17:53]Write i2c OK [14:17:53]MH_I2C_Read... [14:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:53]Read from MH i2c: E2 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 17 00 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 17 00 EC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D1 [14:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:17:53]wFMCommunicate OK [14:17:53]CreateOFDProtocolMessage done [14:17:53]OFDSenderStorePacket 145717 [14:17:53]StoreOFDPacket docnum=145717 [14:17:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F6 C1 07 01 B7 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 91 4B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 35 39 02 00 35 04 06 00 B3 7A C0 2B 16 86 17 1F C1 23 C9 43 F2 9D [14:17:53]CheckFolder [14:17:53]dirname=/storage/ofd_packets [14:17:53]CheckFolder done [14:17:53]ProducePacketName [14:17:53]name=ofd_packets/00145717 [14:17:53]NVStorageSaveData ofd_packets/00145717 [14:17:53]File name is /storage/ofd_packets/00145717 [14:17:53]Write 301 bytes [14:17:53]NVStorageSaveData done [14:17:53]OFDSenderStorePacket done [14:17:53]KKMCreateOFDPacket done [14:17:53]NVStorageSaveData kkm_last_timestamp [14:17:53]File name is /storage/kkm_last_timestamp [14:17:53]Write 4 bytes [14:17:53]NVStorageSaveData done [14:17:53]ExternCall_PrintAddStr [14:17:53]wPrintStart [14:17:53]Write to MH i2c: 01 00 00 ED 18 05 [14:17:53]Write i2c OK [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: 01 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: 01 07 00 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: 01 07 00 ED 18 00 00 00 00 00 FF 0F 1A [14:17:53]RasterBufferAndPrint [14:17:53]line Счет N : (1)160472 [14:17:53]line ИНН: 02508201610067 [14:17:53]line Контрольно-Кассовый Чек [14:17:53]line ПРОДАЖА [14:17:53]line ТРК (МРК, ГНК) : 62 [14:17:53]line Товар: 2710124130 [14:17:53]line Аи-92-К-2 [14:17:53]line 7.480 * 66.90 [14:17:53]line = 500.41 [14:17:53]line НДС 12% НСП 1% [14:17:53]line > о реализуемом товаре [14:17:53]line ОКРУГЛЕНИЕ: -0.41 [14:17:53]line ИТОГО: 500.00 [14:17:53]line Внесено: 500.00 [14:17:53]line СДАЧА: 0.00 [14:17:53]line НСП 1% : 4.43 [14:17:53]line НДС 12% : 53.14 [14:17:53]line Наличными: 500.00 [14:17:53]line Безнал.: 0.00 [14:17:53]line Место: АЗС № 126 "Партнер Нефть" [14:17:53]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:17:53]line СНО: Общий режим [14:17:53]line Чек 140 27.10.2024 14:17 [14:17:53]line Смена: 545 ФФД: 1.0 [14:17:53]line ЗНМ: 0300000085 [14:17:53]line РНМ: 0000000000091683 [14:17:53]line Версия ККМ: 001 [14:17:53]line ФМ: 0000000000871745 [14:17:53]line ФД: 145717 [14:17:53]line ФПД: 197339791431302 [14:17:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141753&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145717&fm=197339791431302&tin=02508201610067®Number=0000000000091683&sum=50000 [14:17:53]written 0, free lines is 4095 [14:17:53]OFD Sender: Processing packet 145717 [packets to send 206, broken 205] [14:17:53]ProducePacketName [14:17:53]name=ofd_packets/00145717 [14:17:53]OFD Sender: To server: pG, [14:17:53]CommunicateWithHost lk.salyk.kg:30040 [14:17:53]ConnectInit lk.salyk.kg [14:17:53]Connected sock=10 [14:17:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F6 C1 07 01 B7 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 91 4B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 35 39 02 00 35 04 06 00 B3 7A C0 2B 16 86 17 1F C1 23 C9 43 F2 9D [14:17:54]Write to MH i2c: 01 00 00 18 19 31 [14:17:54]Write i2c OK [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: 01 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: 01 07 00 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: 01 07 00 18 19 00 00 00 00 00 B9 0C FD [14:17:54]RasterBufferAndPrint [14:17:54]line [14:17:54]line [14:17:54]line [14:17:54]line [14:17:54]line [14:17:54]written 0, free lines is 3264 [14:17:54]MH_Cut [14:17:54]Write to MH i2c: D1 01 00 1F 19 01 0A [14:17:54]Write i2c OK [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: D1 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: D1 01 00 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: D1 01 00 1F 19 00 09 [14:17:54]Write to MH i2c: 01 00 00 20 19 39 [14:17:54]Write i2c OK [14:17:54]MH_I2C_Read... [14:17:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 09 37 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 31 37 34 35 10 04 04 00 35 39 02 00 F4 03 04 00 BE F0 1D 67 B6 04 01 00 00 91 32 52 2A 82 C2 CC E7 [14:17:54]CommunicateWithHost err = 0 [14:17:54]CheckOFDResponse [14:17:54]1017 (14) - 77093643461234 [14:17:54]1041 (16) - 0000000000871745 [14:17:54]1040 (4) - 145717 [14:17:54]1012 (4) - 27.10.2024 07:50 [14:17:54]1206 (1) - 0 [14:17:54]OFD Sender: Remove packet 145717 [14:17:54]ProducePacketName [14:17:54]name=ofd_packets/00145717 [14:17:54]NVStorageDeleteData [14:17:54]OFD Sender: No OFD packet to send [14:17:54]*** Cut start [14:17:54]*** Partial cut [14:17:54]*** CUTSNS_PIN = 1 [14:17:54]*** CUTSNS_PIN = 0 [14:17:55]*** Brake cut motor [14:17:55]Read from MH i2c: 01 [14:17:55]MH_I2C_Read... [14:17:55]*** Stop cut motor [14:17:55]*** Cut end [14:17:55]Read from MH i2c: 01 07 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 20 19 00 00 00 00 00 FF 0F 4E [14:17:55]process_action close_receipt done [14:17:55]requested_data is exist [14:17:55]produce_requested_data [14:17:55]requested_item fm.sn is exist - process it [14:17:55]wFMCommunicate request_size=4 [14:17:55]MH_SAM_APDU [14:17:55]CAPDU: 80 11 00 00 [14:17:55]Write to MH i2c: E2 08 00 21 19 80 11 00 00 00 00 00 00 B4 [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:55]Read from MH i2c: E2 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: E2 17 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: E2 17 00 21 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 07 [14:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:17:55]wFMCommunicate OK [14:17:55]requested_item fd.num is exist - process it [14:17:55]SAM_PROTO_GetFieldsCounters [14:17:55]wFMCommunicate request_size=4 [14:17:55]MH_SAM_APDU [14:17:55]CAPDU: 80 13 00 00 [14:17:55]Write to MH i2c: E2 08 00 22 19 80 13 00 00 00 00 00 00 B7 [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:55]Read from MH i2c: E2 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: E2 62 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: E2 62 00 22 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 35 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [14:17:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 35 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:55]wFMCommunicate OK [14:17:55]SAM_PROTO_GetFieldsCounters done [14:17:55]requested_item shift.num is exist - process it [14:17:55]requested_item shift.opened is exist - process it [14:17:55]req_shift_opened [14:17:55]FM_GetShiftState [14:17:55]SAM_PROTO_GetShiftState [14:17:55]wFMCommunicate request_size=4 [14:17:55]MH_SAM_APDU [14:17:55]CAPDU: 80 13 01 00 [14:17:55]Write to MH i2c: E2 08 00 23 19 80 13 01 00 00 00 00 00 B9 [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:55]Read from MH i2c: E2 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: E2 0E 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: E2 0E 00 23 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 31 [14:17:55]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:17:55]wFMCommunicate OK [14:17:55]SAM_PROTO_GetShiftState done [14:17:55]FM_GetShiftState done [14:17:55]req_shift_opened done [14:17:55]requested_item shift.open_date is exist - process it [14:17:55]req_shift_open_date [14:17:55]req_shift_open_date done [14:17:55]produce_requested_data done [14:17:55]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145717,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:17:55]process_action_free close_receipt [14:17:55]json_value_free [14:17:55]json_value_free done [14:17:55]process_json_proto returns [14:17:55]Send response to host [14:17:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145717,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:17:55]free response buf [14:17:55]execute_script done [14:17:55]execute_script returns [14:17:55]free content buf [14:17:55]Sock 9.Close socket [14:17:55]Sock 9.Thread stoped [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [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:55]accept exits with 7 [14:20:55]New connection [14:20:55]New thread 3066740068 created [14:20:55]Thread 3066596708 joined [14:20:55]Waiting for new connection... [14:20:55] Sock 7.Parse request [14:20:55]Sock 7.Check first char [14:20:55]Sock 7.First char is OK [14:20:55]request: POST /json_proto HTTP/1.0 [14:20:55]Method: POST [14:20:55]URL: /json_proto [14:20:55]Method is POST - this is cgi request [14:20:55]url: /json_proto [14:20:55]query_string will be loaded in cgi processing [14:20:55]execute_cgi json_proto POST (null) [14:20:55]execute_cgi path=json_proto method=POST [14:20:55]POST find Content-Length [14:20:55]Host: 172.17.40.195:8080 [14:20:55]Content-Length: 682 [14:20:55]Content-Type: application/json [14:20:55] [14:20:55]POST finish read [14:20:55]Found Content-Length = 682 [14:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:55]execute_script... [14:20:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:55]POST & json_proto [14:20:55]process_json_proto [14:20:55]json parsed OK: [14:20:55]protocol is kg_v1.0 [14:20:55]action value=close_receipt [14:20:55]process_action close_receipt [14:20:55]cmd_close_receipt [14:20:55]MH_GetDate [14:20:55]Write to MH i2c: F0 00 00 24 19 2C [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: F0 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: F0 09 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: F0 09 00 24 19 00 49 4C 1E 67 D5 8D 6C 64 81 [14:20:55]GetLastDocTimeStamp 1730038673 [14:20:55]current date 1730038857 [14:20:55]FM_GetShiftState [14:20:55]SAM_PROTO_GetShiftState [14:20:55]wFMCommunicate request_size=4 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 13 01 00 [14:20:55]Write to MH i2c: E2 08 00 25 19 80 13 01 00 00 00 00 00 BB [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:55]Read from MH i2c: E2 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 0E 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 0E 00 25 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 33 [14:20:55]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:20:55]wFMCommunicate OK [14:20:55]SAM_PROTO_GetShiftState done [14:20:55]FM_GetShiftState done [14:20:55]opened in 1729988959 [14:20:55]opened+sec_in_day 1730075359 [14:20:55]quantity*price = 120018 [14:20:55]sum+1 = 120020 [14:20:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 141 27.10.2024 14:20 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145718 ФПД: 190629916252020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142057&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145718&fm=190629916252020&tin=02508201610067®Number=0000000000091683&sum=120000 [14:20:56]StoreToDocumentArchive [14:20:56]shift 545 fd 145718 [14:20:56]save to /storage/0545/doc_00145718 [14:20:56]save last doc name /storage/0545/doc_00145718 to /storage/kkm_last_doc_name [14:20:56]save OK [14:20:56]Clear old archive folders... [14:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:56]tlvbuf is 00437330 [14:20:56]SAM_PROTO_ClearQueue [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 09 00 00 [14:20:56]Write to MH i2c: E2 08 00 32 19 80 09 00 00 00 00 00 00 BD [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 03 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 03 00 32 19 00 90 00 BF [14:20:56]RAPDU: 90 00 [14:20:56]wFMCommunicate OK [14:20:56]SAM_PROTO_ClearQueue done [14:20:56]KKMCreateOFDPacket [14:20:56]OFDProtocolAddRootSTLVToBuf [14:20:56]FM_MakeSignedData [14:20:56]FM_MakeSignedData [14:20:56]SAM_PROTO_SignData [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 0D 01 02 [14:20:56]Write to MH i2c: E2 08 00 33 19 80 0D 01 02 00 00 00 00 C5 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 03 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 03 00 33 19 00 90 00 C0 [14:20:56]RAPDU: 90 00 [14:20:56]wFMCommunicate OK [14:20:56]wFMCommunicate request_size=255 [14:20:56]MH_SAM_APDU [14:20: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 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 49 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 36 39 02 00 35 04 06 00 AD [14:20:57]Write to MH i2c: E2 02 01 34 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 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 49 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 36 39 02 00 35 04 06 00 AD 00 00 42 [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 34 19 00 90 00 C1 [14:20:57]RAPDU: 90 00 [14:20:57]wFMCommunicate OK [14:20:57]wFMCommunicate request_size=10 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 0D 02 02 05 60 7C 71 17 74 [14:20:57]Write to MH i2c: E2 0D 00 35 19 80 0D 02 02 05 00 60 7C 71 17 74 00 00 AA [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 35 19 00 90 00 C2 [14:20:57]RAPDU: 90 00 [14:20:57]wFMCommunicate OK [14:20:57]wFMCommunicate request_size=4 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 0D 03 02 [14:20:57]Write to MH i2c: E2 08 00 36 19 80 0D 03 02 00 00 00 00 CA [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 0B 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 0B 00 36 19 00 25 90 61 42 7C 4D 03 52 90 00 41 [14:20:57]RAPDU: 25 90 61 42 7C 4D 03 52 90 00 [14:20:57]wFMCommunicate OK [14:20:57]SAM_PROTO_SignData done [14:20:57]FM_MakeSignedData done [14:20:57]CreateOFDProtocolMessage [14:20:57]wFMCommunicate request_size=4 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 11 00 00 [14:20:57]Write to MH i2c: E2 08 00 37 19 80 11 00 00 00 00 00 00 CA [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 17 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 17 00 37 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1D [14:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:20:57]wFMCommunicate OK [14:20:57]CreateOFDProtocolMessage done [14:20:57]OFDSenderStorePacket 145718 [14:20:57]StoreOFDPacket docnum=145718 [14:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 69 73 07 01 B5 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 49 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 36 39 02 00 35 04 06 00 AD 60 7C 71 17 74 25 90 61 42 7C 4D 03 52 [14:20:57]CheckFolder [14:20:57]dirname=/storage/ofd_packets [14:20:57]CheckFolder done [14:20:57]ProducePacketName [14:20:57]name=ofd_packets/00145718 [14:20:57]NVStorageSaveData ofd_packets/00145718 [14:20:57]File name is /storage/ofd_packets/00145718 [14:20:57]Write 301 bytes [14:20:57]NVStorageSaveData done [14:20:57]OFDSenderStorePacket done [14:20:57]KKMCreateOFDPacket done [14:20:57]NVStorageSaveData kkm_last_timestamp [14:20:57]File name is /storage/kkm_last_timestamp [14:20:57]Write 4 bytes [14:20:57]NVStorageSaveData done [14:20:57]ExternCall_PrintAddStr [14:20:57]wPrintStart [14:20:57]Write to MH i2c: 01 00 00 38 19 51 [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: 01 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: 01 07 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: 01 07 00 38 19 00 00 00 00 00 FF 0F 66 [14:20:57]RasterBufferAndPrint [14:20:57]line Счет N : (1)160473 [14:20:57]line ИНН: 02508201610067 [14:20:57]line Контрольно-Кассовый Чек [14:20:57]line ПРОДАЖА [14:20:57]line ТРК (МРК, ГНК) : 52 [14:20:57]line Товар: 2710124130 [14:20:57]line Аи-92-К-2 [14:20:57]line 17.940 * 66.90 [14:20:57]line = 1200.19 [14:20:57]line НДС 12% НСП 1% [14:20:57]line > о реализуемом товаре [14:20:57]line ОКРУГЛЕНИЕ: -0.19 [14:20:57]line ИТОГО: 1200.00 [14:20:57]line Внесено: 1200.00 [14:20:57]line СДАЧА: 0.00 [14:20:57]line НСП 1% : 10.62 [14:20:57]line НДС 12% : 127.45 [14:20:57]line Наличными: 1200.00 [14:20:57]line Безнал.: 0.00 [14:20:57]line Место: АЗС № 126 "Партнер Нефть" [14:20:57]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:20:57]line СНО: Общий режим [14:20:57]line Чек 141 27.10.2024 14:20 [14:20:57]line Смена: 545 ФФД: 1.0 [14:20:57]line ЗНМ: 0300000085 [14:20:57]line РНМ: 0000000000091683 [14:20:57]line Версия ККМ: 001 [14:20:57]line ФМ: 0000000000871745 [14:20:57]line ФД: 145718 [14:20:57]line ФПД: 190629916252020 [14:20:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142057&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145718&fm=190629916252020&tin=02508201610067®Number=0000000000091683&sum=120000 [14:20:57]OFD Sender: Processing packet 145718 [packets to send 206, broken 205] [14:20:57]ProducePacketName [14:20:57]name=ofd_packets/00145718 [14:20:57]OFD Sender: To server: pG, [14:20:57]CommunicateWithHost lk.salyk.kg:30040 [14:20:57]ConnectInit lk.salyk.kg [14:20:57]written 0, free lines is 4095 [14:20:57]Connected sock=10 [14:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 69 73 07 01 B5 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 49 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 36 39 02 00 35 04 06 00 AD 60 7C 71 17 74 25 90 61 42 7C 4D 03 52 [14:20:58]Write to MH i2c: 01 00 00 63 19 7C [14:20:58]Write i2c OK [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: 01 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: 01 07 00 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: 01 07 00 63 19 00 00 00 00 00 C2 0C 51 [14:20:58]RasterBufferAndPrint [14:20:58]line [14:20:58]line [14:20:58]line [14:20:58]line [14:20:58]line [14:20:58]written 0, free lines is 3272 [14:20:58]MH_Cut [14:20:58]Write to MH i2c: D1 01 00 6A 19 01 55 [14:20:58]Write i2c OK [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: D1 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: D1 01 00 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: D1 01 00 6A 19 00 54 [14:20:58]Write to MH i2c: 01 00 00 6B 19 84 [14:20:58]Write i2c OK [14:20:58]MH_I2C_Read... [14:20:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E3 A9 47 00 7B 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 31 37 34 35 10 04 04 00 36 39 02 00 F4 03 04 00 77 F1 1D 67 B6 04 01 00 00 B9 D5 42 7F 34 06 36 91 [14:20:58]CommunicateWithHost err = 0 [14:20:58]CheckOFDResponse [14:20:58]1017 (14) - 77093643461234 [14:20:58]1041 (16) - 0000000000871745 [14:20:58]1040 (4) - 145718 [14:20:58]1012 (4) - 27.10.2024 07:53 [14:20:58]1206 (1) - 0 [14:20:58]OFD Sender: Remove packet 145718 [14:20:58]ProducePacketName [14:20:58]name=ofd_packets/00145718 [14:20:58]NVStorageDeleteData [14:20:58]OFD Sender: No OFD packet to send [14:20:59]*** Cut start [14:20:59]*** Partial cut [14:20:59]*** CUTSNS_PIN = 1 [14:20:59]*** CUTSNS_PIN = 0 [14:20:59]*** Brake cut motor [14:20:59]Read from MH i2c: 01 [14:20:59]MH_I2C_Read... [14:20:59]*** Stop cut motor [14:20:59]*** Cut end [14:20:59]Read from MH i2c: 01 07 00 [14:20:59]MH_I2C_Read... [14:20:59]Read from MH i2c: 01 07 00 6B 19 00 00 00 00 00 FF 0F 99 [14:20:59]process_action close_receipt done [14:20:59]requested_data is exist [14:20:59]produce_requested_data [14:20:59]requested_item fm.sn is exist - process it [14:20:59]wFMCommunicate request_size=4 [14:20:59]MH_SAM_APDU [14:20:59]CAPDU: 80 11 00 00 [14:20:59]Write to MH i2c: E2 08 00 6C 19 80 11 00 00 00 00 00 00 FF [14:20:59]Write i2c OK [14:20:59]MH_I2C_Read... [14:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:59]Read from MH i2c: E2 [14:20:59]MH_I2C_Read... [14:20:59]Read from MH i2c: E2 17 00 [14:20:59]MH_I2C_Read... [14:20:59]Read from MH i2c: E2 17 00 6C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 52 [14:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:20:59]wFMCommunicate OK [14:20:59]requested_item fd.num is exist - process it [14:20:59]SAM_PROTO_GetFieldsCounters [14:20:59]wFMCommunicate request_size=4 [14:20:59]MH_SAM_APDU [14:20:59]CAPDU: 80 13 00 00 [14:20:59]Write to MH i2c: E2 08 00 6D 19 80 13 00 00 00 00 00 00 02 [14:20:59]Write i2c OK [14:20:59]MH_I2C_Read... [14:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:59]Read from MH i2c: E2 [14:20:59]MH_I2C_Read... [14:20:59]Read from MH i2c: E2 62 00 [14:20:59]MH_I2C_Read... [14:20:59]Read from MH i2c: E2 62 00 6D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 36 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [14:20:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 36 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:59]wFMCommunicate OK [14:20:59]SAM_PROTO_GetFieldsCounters done [14:20:59]requested_item shift.num is exist - process it [14:20:59]requested_item shift.opened is exist - process it [14:20:59]req_shift_opened [14:20:59]FM_GetShiftState [14:20:59]SAM_PROTO_GetShiftState [14:20:59]wFMCommunicate request_size=4 [14:20:59]MH_SAM_APDU [14:20:59]CAPDU: 80 13 01 00 [14:20:59]Write to MH i2c: E2 08 00 6E 19 80 13 01 00 00 00 00 00 04 [14:20:59]Write i2c OK [14:20:59]MH_I2C_Read... [14:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:59]Read from MH i2c: E2 [14:20:59]MH_I2C_Read... [14:20:59]Read from MH i2c: E2 0E 00 [14:20:59]MH_I2C_Read... [14:20:59]Read from MH i2c: E2 0E 00 6E 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7C [14:20:59]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:20:59]wFMCommunicate OK [14:20:59]SAM_PROTO_GetShiftState done [14:20:59]FM_GetShiftState done [14:20:59]req_shift_opened done [14:20:59]requested_item shift.open_date is exist - process it [14:20:59]req_shift_open_date [14:20:59]req_shift_open_date done [14:20:59]produce_requested_data done [14:20:59]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145718,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:20:59]process_action_free close_receipt [14:20:59]json_value_free [14:20:59]json_value_free done [14:20:59]process_json_proto returns [14:20:59]Send response to host [14:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145718,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:20:59]free response buf [14:20:59]execute_script done [14:20:59]execute_script returns [14:20:59]free content buf [14:20:59]Sock 7.Close socket [14:20:59]Sock 7.Thread stoped [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:21:59]accept exits with 9 [14:21:59]New connection [14:21:59]New thread 3066596708 created [14:21:59]Thread 3066740068 joined [14:21:59]Waiting for new connection... [14:21:59] Sock 9.Parse request [14:21:59]Sock 9.Check first char [14:21:59]Sock 9.First char is OK [14:21:59]request: POST /json_proto HTTP/1.0 [14:21:59]Method: POST [14:21:59]URL: /json_proto [14:21:59]Method is POST - this is cgi request [14:21:59]url: /json_proto [14:21:59]query_string will be loaded in cgi processing [14:21:59]execute_cgi json_proto POST (null) [14:21:59]execute_cgi path=json_proto method=POST [14:21:59]POST find Content-Length [14:21:59]Host: 172.17.40.195:8080 [14:21:59]Content-Length: 677 [14:21:59]Content-Type: application/json [14:21:59] [14:21:59]POST finish read [14:21:59]Found Content-Length = 677 [14:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:59]execute_script... [14:21: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)160475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:59]POST & json_proto [14:21:59]process_json_proto [14:21:59]json parsed OK: [14:21:59]protocol is kg_v1.0 [14:21:59]action value=close_receipt [14:21:59]process_action close_receipt [14:21:59]cmd_close_receipt [14:21:59]MH_GetDate [14:21:59]Write to MH i2c: F0 00 00 6F 19 77 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: F0 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: F0 09 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: F0 09 00 6F 19 00 89 4C 1E 67 D5 8D 6C 64 0C [14:21:59]GetLastDocTimeStamp 1730038857 [14:21:59]current date 1730038921 [14:21:59]FM_GetShiftState [14:21:59]SAM_PROTO_GetShiftState [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 13 01 00 [14:21:59]Write to MH i2c: E2 08 00 70 19 80 13 01 00 00 00 00 00 06 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 0E 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 0E 00 70 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7E [14:21:59]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:21:59]wFMCommunicate OK [14:21:59]SAM_PROTO_GetShiftState done [14:21:59]FM_GetShiftState done [14:21:59]opened in 1729988959 [14:21:59]opened+sec_in_day 1730075359 [14:21:59]quantity*price = 50041 [14:21:59]sum+1 = 50042 [14:21:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 142 27.10.2024 14:22 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145719 ФПД: 82040920677408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142201&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145719&fm=82040920677408&tin=02508201610067®Number=0000000000091683&sum=50000 [14:22:00]StoreToDocumentArchive [14:22:00]shift 545 fd 145719 [14:22:00]save to /storage/0545/doc_00145719 [14:22:00]save last doc name /storage/0545/doc_00145719 to /storage/kkm_last_doc_name [14:22:00]save OK [14:22:00]Clear old archive folders... [14:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:00]tlvbuf is 004283B0 [14:22:00]SAM_PROTO_ClearQueue [14:22:00]wFMCommunicate request_size=4 [14:22:00]MH_SAM_APDU [14:22:00]CAPDU: 80 09 00 00 [14:22:00]Write to MH i2c: E2 08 00 7D 19 80 09 00 00 00 00 00 00 08 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:01]Read from MH i2c: E2 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 03 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 03 00 7D 19 00 90 00 0A [14:22:01]RAPDU: 90 00 [14:22:01]wFMCommunicate OK [14:22:01]SAM_PROTO_ClearQueue done [14:22:01]KKMCreateOFDPacket [14:22:01]OFDProtocolAddRootSTLVToBuf [14:22:01]FM_MakeSignedData [14:22:01]FM_MakeSignedData [14:22:01]SAM_PROTO_SignData [14:22:01]wFMCommunicate request_size=4 [14:22:01]MH_SAM_APDU [14:22:01]CAPDU: 80 0D 01 02 [14:22:01]Write to MH i2c: E2 08 00 7E 19 80 0D 01 02 00 00 00 00 10 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:01]Read from MH i2c: E2 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 03 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [14:22:01]RAPDU: 90 00 [14:22:01]wFMCommunicate OK [14:22:01]wFMCommunicate request_size=255 [14:22:01]MH_SAM_APDU [14:22: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 89 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 37 39 02 00 35 04 06 00 4A [14:22:01]Write to MH i2c: E2 02 01 7F 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 89 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 37 39 02 00 35 04 06 00 4A 00 00 65 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:01]Read from MH i2c: E2 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 03 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 03 00 7F 19 00 90 00 0C [14:22:01]RAPDU: 90 00 [14:22:01]wFMCommunicate OK [14:22:01]wFMCommunicate request_size=10 [14:22:01]MH_SAM_APDU [14:22:01]CAPDU: 80 0D 02 02 05 9D A3 EF 1C 20 [14:22:01]Write to MH i2c: E2 0D 00 80 19 80 0D 02 02 05 00 9D A3 EF 1C 20 00 00 88 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:01]Read from MH i2c: E2 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 03 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 03 00 80 19 00 90 00 0D [14:22:01]RAPDU: 90 00 [14:22:01]wFMCommunicate OK [14:22:01]wFMCommunicate request_size=4 [14:22:01]MH_SAM_APDU [14:22:01]CAPDU: 80 0D 03 02 [14:22:01]Write to MH i2c: E2 08 00 81 19 80 0D 03 02 00 00 00 00 15 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:01]Read from MH i2c: E2 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 0B 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 0B 00 81 19 00 6C 1B DD F5 DC 3C 4E C5 90 00 9A [14:22:01]RAPDU: 6C 1B DD F5 DC 3C 4E C5 90 00 [14:22:01]wFMCommunicate OK [14:22:01]SAM_PROTO_SignData done [14:22:01]FM_MakeSignedData done [14:22:01]CreateOFDProtocolMessage [14:22:01]wFMCommunicate request_size=4 [14:22:01]MH_SAM_APDU [14:22:01]CAPDU: 80 11 00 00 [14:22:01]Write to MH i2c: E2 08 00 82 19 80 11 00 00 00 00 00 00 15 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:01]Read from MH i2c: E2 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 17 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 17 00 82 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 68 [14:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:22:01]wFMCommunicate OK [14:22:01]CreateOFDProtocolMessage done [14:22:01]OFDSenderStorePacket 145719 [14:22:01]StoreOFDPacket docnum=145719 [14:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 08 CC 07 01 48 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 89 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 37 39 02 00 35 04 06 00 4A 9D A3 EF 1C 20 6C 1B DD F5 DC 3C 4E C5 [14:22:01]CheckFolder [14:22:01]dirname=/storage/ofd_packets [14:22:01]CheckFolder done [14:22:01]ProducePacketName [14:22:01]name=ofd_packets/00145719 [14:22:01]NVStorageSaveData ofd_packets/00145719 [14:22:01]File name is /storage/ofd_packets/00145719 [14:22:01]Write 301 bytes [14:22:01]NVStorageSaveData done [14:22:01]OFDSenderStorePacket done [14:22:01]KKMCreateOFDPacket done [14:22:01]NVStorageSaveData kkm_last_timestamp [14:22:01]File name is /storage/kkm_last_timestamp [14:22:01]Write 4 bytes [14:22:01]NVStorageSaveData done [14:22:01]ExternCall_PrintAddStr [14:22:01]wPrintStart [14:22:01]Write to MH i2c: 01 00 00 83 19 9C [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: 01 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: 01 07 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: 01 07 00 83 19 00 00 00 00 00 FF 0F B1 [14:22:01]RasterBufferAndPrint [14:22:01]line Счет N : (1)160475 [14:22:01]line ИНН: 02508201610067 [14:22:01]line Контрольно-Кассовый Чек [14:22:01]line ПРОДАЖА [14:22:01]line ТРК (МРК, ГНК) : 32 [14:22:01]line Товар: 2710124130 [14:22:01]line Аи-92-К-2 [14:22:01]line 7.480 * 66.90 [14:22:01]line = 500.41 [14:22:01]line НДС 12% НСП 1% [14:22:01]line > о реализуемом товаре [14:22:01]line ОКРУГЛЕНИЕ: -0.41 [14:22:01]line ИТОГО: 500.00 [14:22:01]line Внесено: 500.00 [14:22:01]line СДАЧА: 0.00 [14:22:01]line НСП 1% : 4.43 [14:22:01]line НДС 12% : 53.14 [14:22:01]line Наличными: 500.00 [14:22:01]line Безнал.: 0.00 [14:22:01]line Место: АЗС № 126 "Партнер Нефть" [14:22:01]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:22:01]line СНО: Общий режим [14:22:01]line Чек 142 27.10.2024 14:22 [14:22:01]line Смена: 545 ФФД: 1.0 [14:22:01]line ЗНМ: 0300000085 [14:22:01]line РНМ: 0000000000091683 [14:22:01]line Версия ККМ: 001 [14:22:01]line ФМ: 0000000000871745 [14:22:01]line ФД: 145719 [14:22:01]line ФПД: 82040920677408 [14:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142201&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145719&fm=82040920677408&tin=02508201610067®Number=0000000000091683&sum=50000 [14:22:01]written 0, free lines is 4095 [14:22:01]OFD Sender: Processing packet 145719 [packets to send 206, broken 205] [14:22:01]ProducePacketName [14:22:01]name=ofd_packets/00145719 [14:22:01]OFD Sender: To server: pG, [14:22:01]CommunicateWithHost lk.salyk.kg:30040 [14:22:01]ConnectInit lk.salyk.kg [14:22:02]Connected sock=10 [14:22:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 08 CC 07 01 48 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 89 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 37 39 02 00 35 04 06 00 4A 9D A3 EF 1C 20 6C 1B DD F5 DC 3C 4E C5 [14:22:02]Write to MH i2c: 01 00 00 AE 19 C7 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: 01 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: 01 07 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: 01 07 00 AE 19 00 00 00 00 00 B5 0C 8F [14:22:02]RasterBufferAndPrint [14:22:02]line [14:22:02]line [14:22:02]line [14:22:02]line [14:22:02]line [14:22:02]written 0, free lines is 3259 [14:22:02]MH_Cut [14:22:02]Write to MH i2c: D1 01 00 B5 19 01 A0 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: D1 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: D1 01 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: D1 01 00 B5 19 00 9F [14:22:02]Write to MH i2c: 01 00 00 B6 19 CF [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 21 9B 47 00 69 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 31 37 34 35 10 04 04 00 37 39 02 00 F4 03 04 00 B7 F1 1D 67 B6 04 01 00 00 D7 CF F3 8A 19 DC A0 12 [14:22:02]CommunicateWithHost err = 0 [14:22:02]CheckOFDResponse [14:22:02]1017 (14) - 77093643461234 [14:22:02]1041 (16) - 0000000000871745 [14:22:02]1040 (4) - 145719 [14:22:02]1012 (4) - 27.10.2024 07:54 [14:22:02]1206 (1) - 0 [14:22:02]OFD Sender: Remove packet 145719 [14:22:02]ProducePacketName [14:22:02]name=ofd_packets/00145719 [14:22:02]NVStorageDeleteData [14:22:02]OFD Sender: No OFD packet to send [14:22:03]*** Cut start [14:22:03]*** Partial cut [14:22:03]*** CUTSNS_PIN = 1 [14:22:03]*** CUTSNS_PIN = 0 [14:22:03]*** Brake cut motor [14:22:03]Read from MH i2c: 01 [14:22:03]MH_I2C_Read... [14:22:03]*** Stop cut motor [14:22:03]*** Cut end [14:22:03]Read from MH i2c: 01 07 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: 01 07 00 B6 19 00 00 00 00 00 FF 0F E4 [14:22:03]process_action close_receipt done [14:22:03]requested_data is exist [14:22:03]produce_requested_data [14:22:03]requested_item fm.sn is exist - process it [14:22:03]wFMCommunicate request_size=4 [14:22:03]MH_SAM_APDU [14:22:03]CAPDU: 80 11 00 00 [14:22:03]Write to MH i2c: E2 08 00 B7 19 80 11 00 00 00 00 00 00 4A [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:03]Read from MH i2c: E2 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 17 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 17 00 B7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9D [14:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:22:03]wFMCommunicate OK [14:22:03]requested_item fd.num is exist - process it [14:22:03]SAM_PROTO_GetFieldsCounters [14:22:03]wFMCommunicate request_size=4 [14:22:03]MH_SAM_APDU [14:22:03]CAPDU: 80 13 00 00 [14:22:03]Write to MH i2c: E2 08 00 B8 19 80 13 00 00 00 00 00 00 4D [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:03]Read from MH i2c: E2 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 62 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 62 00 B8 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 37 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [14:22:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 37 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:03]wFMCommunicate OK [14:22:03]SAM_PROTO_GetFieldsCounters done [14:22:03]requested_item shift.num is exist - process it [14:22:03]requested_item shift.opened is exist - process it [14:22:03]req_shift_opened [14:22:03]FM_GetShiftState [14:22:03]SAM_PROTO_GetShiftState [14:22:03]wFMCommunicate request_size=4 [14:22:03]MH_SAM_APDU [14:22:03]CAPDU: 80 13 01 00 [14:22:03]Write to MH i2c: E2 08 00 B9 19 80 13 01 00 00 00 00 00 4F [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:03]Read from MH i2c: E2 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 0E 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 0E 00 B9 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C7 [14:22:03]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:22:03]wFMCommunicate OK [14:22:03]SAM_PROTO_GetShiftState done [14:22:03]FM_GetShiftState done [14:22:03]req_shift_opened done [14:22:03]requested_item shift.open_date is exist - process it [14:22:03]req_shift_open_date [14:22:03]req_shift_open_date done [14:22:03]produce_requested_data done [14:22:03]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145719,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:22:03]process_action_free close_receipt [14:22:03]json_value_free [14:22:03]json_value_free done [14:22:03]process_json_proto returns [14:22:03]Send response to host [14:22:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145719,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:22:03]free response buf [14:22:03]execute_script done [14:22:03]execute_script returns [14:22:03]free content buf [14:22:03]Sock 9.Close socket [14:22:03]Sock 9.Thread stoped [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:25]accept exits with 7 [14:22:25]New connection [14:22:25]New thread 3066740068 created [14:22:25]Thread 3066596708 joined [14:22:25]Waiting for new connection... [14:22:25] Sock 7.Parse request [14:22:25]Sock 7.Check first char [14:22:25]Sock 7.First char is OK [14:22:25]request: POST /json_proto HTTP/1.0 [14:22:25]Method: POST [14:22:25]URL: /json_proto [14:22:25]Method is POST - this is cgi request [14:22:25]url: /json_proto [14:22:25]query_string will be loaded in cgi processing [14:22:25]execute_cgi json_proto POST (null) [14:22:25]execute_cgi path=json_proto method=POST [14:22:25]POST find Content-Length [14:22:25]Host: 172.17.40.195:8080 [14:22:25]Content-Length: 679 [14:22:25]Content-Type: application/json [14:22:25] [14:22:25]POST finish read [14:22:25]Found Content-Length = 679 [14:22:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:25]execute_script... [14:22: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)160474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:25]POST & json_proto [14:22:25]process_json_proto [14:22:25]json parsed OK: [14:22:25]protocol is kg_v1.0 [14:22:25]action value=close_receipt [14:22:25]process_action close_receipt [14:22:25]cmd_close_receipt [14:22:25]MH_GetDate [14:22:25]Write to MH i2c: F0 00 00 BA 19 C2 [14:22:25]Write i2c OK [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: F0 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: F0 09 00 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: F0 09 00 BA 19 00 A3 4C 1E 67 D5 8D 6C 64 71 [14:22:25]GetLastDocTimeStamp 1730038921 [14:22:25]current date 1730038947 [14:22:25]FM_GetShiftState [14:22:25]SAM_PROTO_GetShiftState [14:22:25]wFMCommunicate request_size=4 [14:22:25]MH_SAM_APDU [14:22:25]CAPDU: 80 13 01 00 [14:22:25]Write to MH i2c: E2 08 00 BB 19 80 13 01 00 00 00 00 00 51 [14:22:25]Write i2c OK [14:22:25]MH_I2C_Read... [14:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:25]Read from MH i2c: E2 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 0E 00 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 0E 00 BB 19 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C9 [14:22:25]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:22:25]wFMCommunicate OK [14:22:25]SAM_PROTO_GetShiftState done [14:22:25]FM_GetShiftState done [14:22:25]opened in 1729988959 [14:22:25]opened+sec_in_day 1730075359 [14:22:25]quantity*price = 180060 [14:22:25]sum+1 = 180062 [14:22:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 143 27.10.2024 14:22 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145720 ФПД: 279523125222903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142227&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145720&fm=279523125222903&tin=02508201610067®Number=0000000000091683&sum=180000 [14:22:26]StoreToDocumentArchive [14:22:26]shift 545 fd 145720 [14:22:26]save to /storage/0545/doc_00145720 [14:22:26]save last doc name /storage/0545/doc_00145720 to /storage/kkm_last_doc_name [14:22:26]save OK [14:22:26]Clear old archive folders... [14:22:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:22:26]tlvbuf is B6F21260 [14:22:26]SAM_PROTO_ClearQueue [14:22:26]wFMCommunicate request_size=4 [14:22:26]MH_SAM_APDU [14:22:26]CAPDU: 80 09 00 00 [14:22:26]Write to MH i2c: E2 08 00 C8 19 80 09 00 00 00 00 00 00 53 [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:26]Read from MH i2c: E2 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 03 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 03 00 C8 19 00 90 00 55 [14:22:26]RAPDU: 90 00 [14:22:26]wFMCommunicate OK [14:22:26]SAM_PROTO_ClearQueue done [14:22:26]KKMCreateOFDPacket [14:22:26]OFDProtocolAddRootSTLVToBuf [14:22:26]FM_MakeSignedData [14:22:26]FM_MakeSignedData [14:22:26]SAM_PROTO_SignData [14:22:26]wFMCommunicate request_size=4 [14:22:26]MH_SAM_APDU [14:22:26]CAPDU: 80 0D 01 02 [14:22:26]Write to MH i2c: E2 08 00 C9 19 80 0D 01 02 00 00 00 00 5B [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:26]Read from MH i2c: E2 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 03 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 03 00 C9 19 00 90 00 56 [14:22:26]RAPDU: 90 00 [14:22:26]wFMCommunicate OK [14:22:26]wFMCommunicate request_size=255 [14:22:26]MH_SAM_APDU [14:22: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 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A3 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 38 39 02 00 35 04 06 00 FE 39 8C 95 [14:22:26]Write to MH i2c: E2 02 01 CA 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 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A3 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 38 39 02 00 35 04 06 00 FE 39 8C 95 00 00 4D [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:26]Read from MH i2c: E2 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 03 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 03 00 CA 19 00 90 00 57 [14:22:26]RAPDU: 90 00 [14:22:26]wFMCommunicate OK [14:22:26]wFMCommunicate request_size=7 [14:22:26]MH_SAM_APDU [14:22:26]CAPDU: 80 0D 02 02 02 DD F7 [14:22:26]Write to MH i2c: E2 0A 00 CB 19 80 0D 02 02 02 00 DD F7 00 00 36 [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:27]Read from MH i2c: E2 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 03 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 03 00 CB 19 00 90 00 58 [14:22:27]RAPDU: 90 00 [14:22:27]wFMCommunicate OK [14:22:27]wFMCommunicate request_size=4 [14:22:27]MH_SAM_APDU [14:22:27]CAPDU: 80 0D 03 02 [14:22:27]Write to MH i2c: E2 08 00 CC 19 80 0D 03 02 00 00 00 00 60 [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:27]Read from MH i2c: E2 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 0B 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 0B 00 CC 19 00 4E AC 21 FA E0 2B 24 E4 90 00 89 [14:22:27]RAPDU: 4E AC 21 FA E0 2B 24 E4 90 00 [14:22:27]wFMCommunicate OK [14:22:27]SAM_PROTO_SignData done [14:22:27]FM_MakeSignedData done [14:22:27]CreateOFDProtocolMessage [14:22:27]wFMCommunicate request_size=4 [14:22:27]MH_SAM_APDU [14:22:27]CAPDU: 80 11 00 00 [14:22:27]Write to MH i2c: E2 08 00 CD 19 80 11 00 00 00 00 00 00 60 [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:27]Read from MH i2c: E2 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 17 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 17 00 CD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B3 [14:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:22:27]wFMCommunicate OK [14:22:27]CreateOFDProtocolMessage done [14:22:27]OFDSenderStorePacket 145720 [14:22:27]StoreOFDPacket docnum=145720 [14:22:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 4E 4C 04 01 E6 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A3 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 38 39 02 00 35 04 06 00 FE 39 8C 95 DD F7 4E AC 21 FA E0 2B 24 E4 [14:22:27]CheckFolder [14:22:27]dirname=/storage/ofd_packets [14:22:27]CheckFolder done [14:22:27]ProducePacketName [14:22:27]name=ofd_packets/00145720 [14:22:27]NVStorageSaveData ofd_packets/00145720 [14:22:27]File name is /storage/ofd_packets/00145720 [14:22:27]Write 298 bytes [14:22:27]NVStorageSaveData done [14:22:27]OFDSenderStorePacket done [14:22:27]KKMCreateOFDPacket done [14:22:27]NVStorageSaveData kkm_last_timestamp [14:22:27]File name is /storage/kkm_last_timestamp [14:22:27]Write 4 bytes [14:22:27]NVStorageSaveData done [14:22:27]ExternCall_PrintAddStr [14:22:27]wPrintStart [14:22:27]Write to MH i2c: 01 00 00 CE 19 E7 [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: 01 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: 01 07 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: 01 07 00 CE 19 00 00 00 00 00 FF 0F FC [14:22:27]RasterBufferAndPrint [14:22:27]line Счет N : (1)160474 [14:22:27]line ИНН: 02508201610067 [14:22:27]line Контрольно-Кассовый Чек [14:22:27]line ПРОДАЖА [14:22:27]line ТРК (МРК, ГНК) : 21 [14:22:27]line Товар: 2710194210 [14:22:27]line ДТ-К-2 [14:22:27]line 23.630 * 76.20 [14:22:27]line = 1800.61 [14:22:27]line НДС 12% НСП 1% [14:22:27]line > о реализуемом товаре [14:22:27]line ОКРУГЛЕНИЕ: -0.61 [14:22:27]line ИТОГО: 1800.00 [14:22:27]line Внесено: 1800.00 [14:22:27]line СДАЧА: 0.00 [14:22:27]line НСП 1% : 15.93 [14:22:27]line НДС 12% : 191.21 [14:22:27]line Наличными: 1800.00 [14:22:27]line Безнал.: 0.00 [14:22:27]line Место: АЗС № 126 "Партнер Нефть" [14:22:27]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:22:27]line СНО: Общий режим [14:22:27]line Чек 143 27.10.2024 14:22 [14:22:27]line Смена: 545 ФФД: 1.0 [14:22:27]line ЗНМ: 0300000085 [14:22:27]line РНМ: 0000000000091683 [14:22:27]line Версия ККМ: 001 [14:22:27]line ФМ: 0000000000871745 [14:22:27]line ФД: 145720 [14:22:27]line ФПД: 279523125222903 [14:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142227&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145720&fm=279523125222903&tin=02508201610067®Number=0000000000091683&sum=180000 [14:22:27]OFD Sender: Processing packet 145720 [packets to send 206, broken 205] [14:22:27]ProducePacketName [14:22:27]name=ofd_packets/00145720 [14:22:27]OFD Sender: To server: pG, [14:22:27]CommunicateWithHost lk.salyk.kg:30040 [14:22:27]ConnectInit lk.salyk.kg [14:22:27]written 0, free lines is 4095 [14:22:27]Connected sock=10 [14:22:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 4E 4C 04 01 E6 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A3 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 38 39 02 00 35 04 06 00 FE 39 8C 95 DD F7 4E AC 21 FA E0 2B 24 E4 [14:22:27]Write to MH i2c: 01 00 00 F9 19 12 [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: 01 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: 01 07 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: 01 07 00 F9 19 00 00 00 00 00 B8 0C DD [14:22:27]RasterBufferAndPrint [14:22:27]line [14:22:27]line [14:22:27]line [14:22:27]line [14:22:27]line [14:22:27]written 0, free lines is 3263 [14:22:27]MH_Cut [14:22:27]Write to MH i2c: D1 01 00 00 1A 01 EC [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: D1 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: D1 01 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: D1 01 00 00 1A 00 EB [14:22:27]Write to MH i2c: 01 00 00 01 1A 1B [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 29 95 47 00 8D BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 38 39 02 00 F4 03 04 00 D0 F1 1D 67 B6 04 01 00 00 88 FE 11 C1 E4 E2 C2 31 [14:22:27]CommunicateWithHost err = 0 [14:22:27]CheckOFDResponse [14:22:27]1017 (14) - 77093643461234 [14:22:27]1041 (16) - 0000000000871745 [14:22:27]1040 (4) - 145720 [14:22:27]1012 (4) - 27.10.2024 07:54 [14:22:27]1206 (1) - 0 [14:22:27]OFD Sender: Remove packet 145720 [14:22:27]ProducePacketName [14:22:27]name=ofd_packets/00145720 [14:22:27]NVStorageDeleteData [14:22:28]OFD Sender: No OFD packet to send [14:22:28]*** Cut start [14:22:28]*** Partial cut [14:22:28]*** CUTSNS_PIN = 1 [14:22:28]*** CUTSNS_PIN = 0 [14:22:28]*** Brake cut motor [14:22:29]Read from MH i2c: 01 [14:22:29]MH_I2C_Read... [14:22:29]*** Stop cut motor [14:22:29]*** Cut end [14:22:29]Read from MH i2c: 01 07 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: 01 07 00 01 1A 00 00 00 00 00 FF 0F 30 [14:22:29]process_action close_receipt done [14:22:29]requested_data is exist [14:22:29]produce_requested_data [14:22:29]requested_item fm.sn is exist - process it [14:22:29]wFMCommunicate request_size=4 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 11 00 00 [14:22:29]Write to MH i2c: E2 08 00 02 1A 80 11 00 00 00 00 00 00 96 [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 17 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 17 00 02 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E9 [14:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:22:29]wFMCommunicate OK [14:22:29]requested_item fd.num is exist - process it [14:22:29]SAM_PROTO_GetFieldsCounters [14:22:29]wFMCommunicate request_size=4 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 13 00 00 [14:22:29]Write to MH i2c: E2 08 00 03 1A 80 13 00 00 00 00 00 00 99 [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 62 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 62 00 03 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 38 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [14:22:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 38 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:29]wFMCommunicate OK [14:22:29]SAM_PROTO_GetFieldsCounters done [14:22:29]requested_item shift.num is exist - process it [14:22:29]requested_item shift.opened is exist - process it [14:22:29]req_shift_opened [14:22:29]FM_GetShiftState [14:22:29]SAM_PROTO_GetShiftState [14:22:29]wFMCommunicate request_size=4 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 13 01 00 [14:22:29]Write to MH i2c: E2 08 00 04 1A 80 13 01 00 00 00 00 00 9B [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 0E 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 0E 00 04 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 13 [14:22:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:22:29]wFMCommunicate OK [14:22:29]SAM_PROTO_GetShiftState done [14:22:29]FM_GetShiftState done [14:22:29]req_shift_opened done [14:22:29]requested_item shift.open_date is exist - process it [14:22:29]req_shift_open_date [14:22:29]req_shift_open_date done [14:22:29]produce_requested_data done [14:22:29]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145720,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:22:29]process_action_free close_receipt [14:22:29]json_value_free [14:22:29]json_value_free done [14:22:29]process_json_proto returns [14:22:29]Send response to host [14:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145720,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:22:29]free response buf [14:22:29]execute_script done [14:22:29]execute_script returns [14:22:29]free content buf [14:22:29]Sock 7.Close socket [14:22:29]Sock 7.Thread stoped [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:52]accept exits with 9 [14:23:52]New connection [14:23:52]New thread 3066596708 created [14:23:52]Thread 3066740068 joined [14:23:52]Waiting for new connection... [14:23:52] Sock 9.Parse request [14:23:52]Sock 9.Check first char [14:23:52]Sock 9.First char is OK [14:23:52]request: POST /json_proto HTTP/1.0 [14:23:52]Method: POST [14:23:52]URL: /json_proto [14:23:52]Method is POST - this is cgi request [14:23:52]url: /json_proto [14:23:52]query_string will be loaded in cgi processing [14:23:52]execute_cgi json_proto POST (null) [14:23:52]execute_cgi path=json_proto method=POST [14:23:52]POST find Content-Length [14:23:52]Host: 172.17.40.195:8080 [14:23:52]Content-Length: 682 [14:23:52]Content-Type: application/json [14:23:52] [14:23:52]POST finish read [14:23:52]Found Content-Length = 682 [14:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:52]execute_script... [14:23:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:52]POST & json_proto [14:23:52]process_json_proto [14:23:52]json parsed OK: [14:23:52]protocol is kg_v1.0 [14:23:52]action value=close_receipt [14:23:52]process_action close_receipt [14:23:52]cmd_close_receipt [14:23:52]MH_GetDate [14:23:52]Write to MH i2c: F0 00 00 05 1A 0E [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: F0 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: F0 09 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: F0 09 00 05 1A 00 FA 4C 1E 67 D5 8D 6C 64 14 [14:23:52]GetLastDocTimeStamp 1730038947 [14:23:52]current date 1730039034 [14:23:52]FM_GetShiftState [14:23:52]SAM_PROTO_GetShiftState [14:23:52]wFMCommunicate request_size=4 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 13 01 00 [14:23:52]Write to MH i2c: E2 08 00 06 1A 80 13 01 00 00 00 00 00 9D [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 0E 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 0E 00 06 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 15 [14:23:52]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:23:52]wFMCommunicate OK [14:23:52]SAM_PROTO_GetShiftState done [14:23:52]FM_GetShiftState done [14:23:52]opened in 1729988959 [14:23:52]opened+sec_in_day 1730075359 [14:23:52]quantity*price = 100021 [14:23:52]sum+1 = 100023 [14:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 144 27.10.2024 14:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145721 ФПД: 70417697846005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142354&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145721&fm=70417697846005&tin=02508201610067®Number=0000000000091683&sum=100000 [14:23:53]StoreToDocumentArchive [14:23:53]shift 545 fd 145721 [14:23:53]save to /storage/0545/doc_00145721 [14:23:53]save last doc name /storage/0545/doc_00145721 to /storage/kkm_last_doc_name [14:23:53]save OK [14:23:53]Clear old archive folders... [14:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:53]tlvbuf is B6D741F0 [14:23:53]SAM_PROTO_ClearQueue [14:23:53]wFMCommunicate request_size=4 [14:23:53]MH_SAM_APDU [14:23:53]CAPDU: 80 09 00 00 [14:23:53]Write to MH i2c: E2 08 00 13 1A 80 09 00 00 00 00 00 00 9F [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 13 1A 00 90 00 A1 [14:23:54]RAPDU: 90 00 [14:23:54]wFMCommunicate OK [14:23:54]SAM_PROTO_ClearQueue done [14:23:54]KKMCreateOFDPacket [14:23:54]OFDProtocolAddRootSTLVToBuf [14:23:54]FM_MakeSignedData [14:23:54]FM_MakeSignedData [14:23:54]SAM_PROTO_SignData [14:23:54]wFMCommunicate request_size=4 [14:23:54]MH_SAM_APDU [14:23:54]CAPDU: 80 0D 01 02 [14:23:54]Write to MH i2c: E2 08 00 14 1A 80 0D 01 02 00 00 00 00 A7 [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 14 1A 00 90 00 A2 [14:23:54]RAPDU: 90 00 [14:23:54]wFMCommunicate OK [14:23:54]wFMCommunicate request_size=255 [14:23:54]MH_SAM_APDU [14:23: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 FA 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 39 39 02 00 35 04 06 00 40 [14:23:54]Write to MH i2c: E2 02 01 15 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 FA 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 39 39 02 00 35 04 06 00 40 00 00 85 [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 15 1A 00 90 00 A3 [14:23:54]RAPDU: 90 00 [14:23:54]wFMCommunicate OK [14:23:54]wFMCommunicate request_size=10 [14:23:54]MH_SAM_APDU [14:23:54]CAPDU: 80 0D 02 02 05 0B 65 DD B2 F5 [14:23:54]Write to MH i2c: E2 0D 00 16 1A 80 0D 02 02 05 00 0B 65 DD B2 F5 00 00 A8 [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 03 00 16 1A 00 90 00 A4 [14:23:54]RAPDU: 90 00 [14:23:54]wFMCommunicate OK [14:23:54]wFMCommunicate request_size=4 [14:23:54]MH_SAM_APDU [14:23:54]CAPDU: 80 0D 03 02 [14:23:54]Write to MH i2c: E2 08 00 17 1A 80 0D 03 02 00 00 00 00 AC [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 0B 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 0B 00 17 1A 00 FF 99 21 FD 7D B8 7A 34 90 00 46 [14:23:54]RAPDU: FF 99 21 FD 7D B8 7A 34 90 00 [14:23:54]wFMCommunicate OK [14:23:54]SAM_PROTO_SignData done [14:23:54]FM_MakeSignedData done [14:23:54]CreateOFDProtocolMessage [14:23:54]wFMCommunicate request_size=4 [14:23:54]MH_SAM_APDU [14:23:54]CAPDU: 80 11 00 00 [14:23:54]Write to MH i2c: E2 08 00 18 1A 80 11 00 00 00 00 00 00 AC [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 17 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 17 00 18 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 FF [14:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:23:54]wFMCommunicate OK [14:23:54]CreateOFDProtocolMessage done [14:23:54]OFDSenderStorePacket 145721 [14:23:54]StoreOFDPacket docnum=145721 [14:23:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 5D 65 07 01 A8 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 FA 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 39 39 02 00 35 04 06 00 40 0B 65 DD B2 F5 FF 99 21 FD 7D B8 7A 34 [14:23:54]CheckFolder [14:23:54]dirname=/storage/ofd_packets [14:23:54]CheckFolder done [14:23:54]ProducePacketName [14:23:54]name=ofd_packets/00145721 [14:23:54]NVStorageSaveData ofd_packets/00145721 [14:23:54]File name is /storage/ofd_packets/00145721 [14:23:54]Write 301 bytes [14:23:54]NVStorageSaveData done [14:23:54]OFDSenderStorePacket done [14:23:54]KKMCreateOFDPacket done [14:23:54]NVStorageSaveData kkm_last_timestamp [14:23:54]File name is /storage/kkm_last_timestamp [14:23:54]Write 4 bytes [14:23:54]NVStorageSaveData done [14:23:54]ExternCall_PrintAddStr [14:23:54]wPrintStart [14:23:54]Write to MH i2c: 01 00 00 19 1A 33 [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: 01 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: 01 07 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: 01 07 00 19 1A 00 00 00 00 00 FF 0F 48 [14:23:54]RasterBufferAndPrint [14:23:54]line Счет N : (1)160476 [14:23:54]line ИНН: 02508201610067 [14:23:54]line Контрольно-Кассовый Чек [14:23:54]line ПРОДАЖА [14:23:54]line ТРК (МРК, ГНК) : 43 [14:23:54]line Товар: 2710124500 [14:23:54]line Аи-95-К-3 [14:23:54]line 13.480 * 74.20 [14:23:54]line = 1000.22 [14:23:54]line НДС 12% НСП 1% [14:23:54]line > о реализуемом товаре [14:23:54]line ОКРУГЛЕНИЕ: -0.22 [14:23:54]line ИТОГО: 1000.00 [14:23:54]line Внесено: 1000.00 [14:23:54]line СДАЧА: 0.00 [14:23:54]line НСП 1% : 8.85 [14:23:54]line НДС 12% : 106.22 [14:23:54]line Наличными: 1000.00 [14:23:54]line Безнал.: 0.00 [14:23:54]line Место: АЗС № 126 "Партнер Нефть" [14:23:54]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:23:54]line СНО: Общий режим [14:23:54]line Чек 144 27.10.2024 14:23 [14:23:54]line Смена: 545 ФФД: 1.0 [14:23:54]line ЗНМ: 0300000085 [14:23:54]line РНМ: 0000000000091683 [14:23:54]line Версия ККМ: 001 [14:23:54]line ФМ: 0000000000871745 [14:23:54]line ФД: 145721 [14:23:54]line ФПД: 70417697846005 [14:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142354&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145721&fm=70417697846005&tin=02508201610067®Number=0000000000091683&sum=100000 [14:23:54]OFD Sender: Processing packet 145721 [packets to send 206, broken 205] [14:23:54]ProducePacketName [14:23:54]name=ofd_packets/00145721 [14:23:54]OFD Sender: To server: pG, [14:23:54]CommunicateWithHost lk.salyk.kg:30040 [14:23:54]ConnectInit lk.salyk.kg [14:23:54]written 0, free lines is 4095 [14:23:55]Connected sock=10 [14:23:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 5D 65 07 01 A8 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 FA 4C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 39 39 02 00 35 04 06 00 40 0B 65 DD B2 F5 FF 99 21 FD 7D B8 7A 34 [14:23:55]Write to MH i2c: 01 00 00 44 1A 5E [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: 01 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: 01 07 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: 01 07 00 44 1A 00 00 00 00 00 BE 0C 2F [14:23:55]RasterBufferAndPrint [14:23:55]line [14:23:55]line [14:23:55]line [14:23:55]line [14:23:55]line [14:23:55]written 0, free lines is 3268 [14:23:55]MH_Cut [14:23:55]Write to MH i2c: D1 01 00 4B 1A 01 37 [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: D1 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: D1 01 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: D1 01 00 4B 1A 00 36 [14:23:55]Write to MH i2c: 01 00 00 4C 1A 66 [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 B8 32 47 00 86 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 39 39 02 00 F4 03 04 00 28 F2 1D 67 B6 04 01 00 00 3E E6 BD F2 3F 05 E8 B3 [14:23:55]CommunicateWithHost err = 0 [14:23:55]CheckOFDResponse [14:23:55]1017 (14) - 77093643461234 [14:23:55]1041 (16) - 0000000000871745 [14:23:55]1040 (4) - 145721 [14:23:55]1012 (4) - 27.10.2024 07:56 [14:23:55]1206 (1) - 0 [14:23:55]OFD Sender: Remove packet 145721 [14:23:55]ProducePacketName [14:23:55]name=ofd_packets/00145721 [14:23:55]NVStorageDeleteData [14:23:55]OFD Sender: No OFD packet to send [14:23:56]*** Cut start [14:23:56]*** Partial cut [14:23:56]*** CUTSNS_PIN = 1 [14:23:56]*** CUTSNS_PIN = 0 [14:23:56]*** Brake cut motor [14:23:56]Read from MH i2c: 01 [14:23:56]MH_I2C_Read... [14:23:56]*** Stop cut motor [14:23:56]*** Cut end [14:23:56]Read from MH i2c: 01 07 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: 01 07 00 4C 1A 00 00 00 00 00 FF 0F 7B [14:23:56]process_action close_receipt done [14:23:56]requested_data is exist [14:23:56]produce_requested_data [14:23:56]requested_item fm.sn is exist - process it [14:23:56]wFMCommunicate request_size=4 [14:23:56]MH_SAM_APDU [14:23:56]CAPDU: 80 11 00 00 [14:23:56]Write to MH i2c: E2 08 00 4D 1A 80 11 00 00 00 00 00 00 E1 [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:56]Read from MH i2c: E2 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 17 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 17 00 4D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 34 [14:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:23:56]wFMCommunicate OK [14:23:56]requested_item fd.num is exist - process it [14:23:56]SAM_PROTO_GetFieldsCounters [14:23:56]wFMCommunicate request_size=4 [14:23:56]MH_SAM_APDU [14:23:56]CAPDU: 80 13 00 00 [14:23:56]Write to MH i2c: E2 08 00 4E 1A 80 13 00 00 00 00 00 00 E4 [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:56]Read from MH i2c: E2 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 62 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 62 00 4E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 39 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [14:23:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 39 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:56]wFMCommunicate OK [14:23:56]SAM_PROTO_GetFieldsCounters done [14:23:56]requested_item shift.num is exist - process it [14:23:56]requested_item shift.opened is exist - process it [14:23:56]req_shift_opened [14:23:56]FM_GetShiftState [14:23:56]SAM_PROTO_GetShiftState [14:23:56]wFMCommunicate request_size=4 [14:23:56]MH_SAM_APDU [14:23:56]CAPDU: 80 13 01 00 [14:23:56]Write to MH i2c: E2 08 00 4F 1A 80 13 01 00 00 00 00 00 E6 [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:56]Read from MH i2c: E2 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 0E 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 0E 00 4F 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5E [14:23:56]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:23:56]wFMCommunicate OK [14:23:56]SAM_PROTO_GetShiftState done [14:23:56]FM_GetShiftState done [14:23:56]req_shift_opened done [14:23:56]requested_item shift.open_date is exist - process it [14:23:56]req_shift_open_date [14:23:56]req_shift_open_date done [14:23:56]produce_requested_data done [14:23:56]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145721,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:23:56]process_action_free close_receipt [14:23:56]json_value_free [14:23:56]json_value_free done [14:23:56]process_json_proto returns [14:23:56]Send response to host [14:23:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145721,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:23:56]free response buf [14:23:56]execute_script done [14:23:56]execute_script returns [14:23:56]free content buf [14:23:56]Sock 9.Close socket [14:23:56]Sock 9.Thread stoped [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:31]accept exits with 7 [14:24:31]New connection [14:24:31]New thread 3066740068 created [14:24:31]Thread 3066596708 joined [14:24:31]Waiting for new connection... [14:24:31] Sock 7.Parse request [14:24:31]Sock 7.Check first char [14:24:31]Sock 7.First char is OK [14:24:31]request: POST /json_proto HTTP/1.0 [14:24:31]Method: POST [14:24:31]URL: /json_proto [14:24:31]Method is POST - this is cgi request [14:24:31]url: /json_proto [14:24:31]query_string will be loaded in cgi processing [14:24:31]execute_cgi json_proto POST (null) [14:24:31]execute_cgi path=json_proto method=POST [14:24:31]POST find Content-Length [14:24:31]Host: 172.17.40.195:8080 [14:24:31]Content-Length: 677 [14:24:31]Content-Type: application/json [14:24:31] [14:24:31]POST finish read [14:24:31]Found Content-Length = 677 [14:24:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:31]execute_script... [14:24: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)160477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:31]POST & json_proto [14:24:31]process_json_proto [14:24:31]json parsed OK: [14:24:31]protocol is kg_v1.0 [14:24:31]action value=close_receipt [14:24:31]process_action close_receipt [14:24:31]cmd_close_receipt [14:24:31]MH_GetDate [14:24:31]Write to MH i2c: F0 00 00 50 1A 59 [14:24:31]Write i2c OK [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: F0 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: F0 09 00 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: F0 09 00 50 1A 00 21 4D 1E 67 D5 8D 6C 64 87 [14:24:31]GetLastDocTimeStamp 1730039034 [14:24:31]current date 1730039073 [14:24:31]FM_GetShiftState [14:24:31]SAM_PROTO_GetShiftState [14:24:31]wFMCommunicate request_size=4 [14:24:31]MH_SAM_APDU [14:24:31]CAPDU: 80 13 01 00 [14:24:31]Write to MH i2c: E2 08 00 51 1A 80 13 01 00 00 00 00 00 E8 [14:24:31]Write i2c OK [14:24:31]MH_I2C_Read... [14:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:31]Read from MH i2c: E2 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 0E 00 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 0E 00 51 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 60 [14:24:31]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:24:31]wFMCommunicate OK [14:24:31]SAM_PROTO_GetShiftState done [14:24:31]FM_GetShiftState done [14:24:31]opened in 1729988959 [14:24:31]opened+sec_in_day 1730075359 [14:24:31]quantity*price = 32045 [14:24:31]sum+1 = 32046 [14:24:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 145 27.10.2024 14:24 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145722 ФПД: 246388760436821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142433&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145722&fm=246388760436821&tin=02508201610067®Number=0000000000091683&sum=32000 [14:24:32]StoreToDocumentArchive [14:24:32]shift 545 fd 145722 [14:24:32]save to /storage/0545/doc_00145722 [14:24:32]save last doc name /storage/0545/doc_00145722 to /storage/kkm_last_doc_name [14:24:32]save OK [14:24:32]Clear old archive folders... [14:24:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:32]tlvbuf is 0048A910 [14:24:32]SAM_PROTO_ClearQueue [14:24:32]wFMCommunicate request_size=4 [14:24:32]MH_SAM_APDU [14:24:32]CAPDU: 80 09 00 00 [14:24:32]Write to MH i2c: E2 08 00 5E 1A 80 09 00 00 00 00 00 00 EA [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:32]Read from MH i2c: E2 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 03 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 03 00 5E 1A 00 90 00 EC [14:24:32]RAPDU: 90 00 [14:24:32]wFMCommunicate OK [14:24:32]SAM_PROTO_ClearQueue done [14:24:32]KKMCreateOFDPacket [14:24:32]OFDProtocolAddRootSTLVToBuf [14:24:32]FM_MakeSignedData [14:24:32]FM_MakeSignedData [14:24:32]SAM_PROTO_SignData [14:24:32]wFMCommunicate request_size=4 [14:24:32]MH_SAM_APDU [14:24:32]CAPDU: 80 0D 01 02 [14:24:32]Write to MH i2c: E2 08 00 5F 1A 80 0D 01 02 00 00 00 00 F2 [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:32]Read from MH i2c: E2 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 03 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 03 00 5F 1A 00 90 00 ED [14:24:32]RAPDU: 90 00 [14:24:32]wFMCommunicate OK [14:24:32]wFMCommunicate request_size=255 [14:24:32]MH_SAM_APDU [14:24: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 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 21 4D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3A 39 02 00 35 04 06 00 E0 [14:24:32]Write to MH i2c: E2 02 01 60 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 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 21 4D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3A 39 02 00 35 04 06 00 E0 00 00 14 [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:32]Read from MH i2c: E2 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 03 00 [14:24:32]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 03 00 60 1A 00 90 00 EE [14:24:33]RAPDU: 90 00 [14:24:33]wFMCommunicate OK [14:24:33]wFMCommunicate request_size=10 [14:24:33]MH_SAM_APDU [14:24:33]CAPDU: 80 0D 02 02 05 16 DA 8A E0 55 [14:24:33]Write to MH i2c: E2 0D 00 61 1A 80 0D 02 02 05 00 16 DA 8A E0 55 00 00 AE [14:24:33]Write i2c OK [14:24:33]MH_I2C_Read... [14:24:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:33]Read from MH i2c: E2 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 03 00 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 03 00 61 1A 00 90 00 EF [14:24:33]RAPDU: 90 00 [14:24:33]wFMCommunicate OK [14:24:33]wFMCommunicate request_size=4 [14:24:33]MH_SAM_APDU [14:24:33]CAPDU: 80 0D 03 02 [14:24:33]Write to MH i2c: E2 08 00 62 1A 80 0D 03 02 00 00 00 00 F7 [14:24:33]Write i2c OK [14:24:33]MH_I2C_Read... [14:24:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:33]Read from MH i2c: E2 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 0B 00 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 0B 00 62 1A 00 E4 06 8B 37 8D 83 A3 D4 90 00 2B [14:24:33]RAPDU: E4 06 8B 37 8D 83 A3 D4 90 00 [14:24:33]wFMCommunicate OK [14:24:33]SAM_PROTO_SignData done [14:24:33]FM_MakeSignedData done [14:24:33]CreateOFDProtocolMessage [14:24:33]wFMCommunicate request_size=4 [14:24:33]MH_SAM_APDU [14:24:33]CAPDU: 80 11 00 00 [14:24:33]Write to MH i2c: E2 08 00 63 1A 80 11 00 00 00 00 00 00 F7 [14:24:33]Write i2c OK [14:24:33]MH_I2C_Read... [14:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:33]Read from MH i2c: E2 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 17 00 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 17 00 63 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 4A [14:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:24:33]wFMCommunicate OK [14:24:33]CreateOFDProtocolMessage done [14:24:33]OFDSenderStorePacket 145722 [14:24:33]StoreOFDPacket docnum=145722 [14:24:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 97 B4 07 01 90 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 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 21 4D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3A 39 02 00 35 04 06 00 E0 16 DA 8A E0 55 E4 06 8B 37 8D 83 A3 D4 [14:24:33]CheckFolder [14:24:33]dirname=/storage/ofd_packets [14:24:33]CheckFolder done [14:24:33]ProducePacketName [14:24:33]name=ofd_packets/00145722 [14:24:33]NVStorageSaveData ofd_packets/00145722 [14:24:33]File name is /storage/ofd_packets/00145722 [14:24:33]Write 301 bytes [14:24:33]NVStorageSaveData done [14:24:33]OFDSenderStorePacket done [14:24:33]KKMCreateOFDPacket done [14:24:33]NVStorageSaveData kkm_last_timestamp [14:24:33]File name is /storage/kkm_last_timestamp [14:24:33]Write 4 bytes [14:24:33]NVStorageSaveData done [14:24:33]ExternCall_PrintAddStr [14:24:33]wPrintStart [14:24:33]Write to MH i2c: 01 00 00 64 1A 7E [14:24:33]Write i2c OK [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: 01 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: 01 07 00 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: 01 07 00 64 1A 00 00 00 00 00 FF 0F 93 [14:24:33]RasterBufferAndPrint [14:24:33]line Счет N : (1)160477 [14:24:33]line ИНН: 02508201610067 [14:24:33]line Контрольно-Кассовый Чек [14:24:33]line ПРОДАЖА [14:24:33]line ТРК (МРК, ГНК) : 62 [14:24:33]line Товар: 2710124130 [14:24:33]line Аи-92-К-2 [14:24:33]line 4.790 * 66.90 [14:24:33]line = 320.45 [14:24:33]line НДС 12% НСП 1% [14:24:33]line > о реализуемом товаре [14:24:33]line ОКРУГЛЕНИЕ: -0.45 [14:24:33]line ИТОГО: 320.00 [14:24:33]line Внесено: 320.00 [14:24:33]line СДАЧА: 0.00 [14:24:33]line НСП 1% : 2.84 [14:24:33]line НДС 12% : 34.03 [14:24:33]line Наличными: 320.00 [14:24:33]line Безнал.: 0.00 [14:24:33]line Место: АЗС № 126 "Партнер Нефть" [14:24:33]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:24:33]line СНО: Общий режим [14:24:33]line Чек 145 27.10.2024 14:24 [14:24:33]line Смена: 545 ФФД: 1.0 [14:24:33]line ЗНМ: 0300000085 [14:24:33]line РНМ: 0000000000091683 [14:24:33]line Версия ККМ: 001 [14:24:33]line ФМ: 0000000000871745 [14:24:33]line ФД: 145722 [14:24:33]line ФПД: 246388760436821 [14:24:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142433&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145722&fm=246388760436821&tin=02508201610067®Number=0000000000091683&sum=32000 [14:24:33]written 0, free lines is 4095 [14:24:33]OFD Sender: Processing packet 145722 [packets to send 206, broken 205] [14:24:33]ProducePacketName [14:24:33]name=ofd_packets/00145722 [14:24:33]OFD Sender: To server: pG, [14:24:33]CommunicateWithHost lk.salyk.kg:30040 [14:24:33]ConnectInit lk.salyk.kg [14:24:33]Connected sock=10 [14:24:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 97 B4 07 01 90 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 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 21 4D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3A 39 02 00 35 04 06 00 E0 16 DA 8A E0 55 E4 06 8B 37 8D 83 A3 D4 [14:24:33]Write to MH i2c: 01 00 00 8F 1A A9 [14:24:33]Write i2c OK [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: 01 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: 01 07 00 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: 01 07 00 8F 1A 00 00 00 00 00 B7 0C 73 [14:24:33]RasterBufferAndPrint [14:24:33]line [14:24:33]line [14:24:33]line [14:24:33]line [14:24:33]line [14:24:33]written 0, free lines is 3262 [14:24:33]MH_Cut [14:24:33]Write to MH i2c: D1 01 00 96 1A 01 82 [14:24:33]Write i2c OK [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: D1 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: D1 01 00 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: D1 01 00 96 1A 00 81 [14:24:33]Write to MH i2c: 01 00 00 97 1A B1 [14:24:33]Write i2c OK [14:24:33]MH_I2C_Read... [14:24:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 5A 34 47 00 3D 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3A 39 02 00 F4 03 04 00 4E F2 1D 67 B6 04 01 00 00 24 D1 75 AE B6 4E DF 2C [14:24:34]CommunicateWithHost err = 0 [14:24:34]CheckOFDResponse [14:24:34]1017 (14) - 77093643461234 [14:24:34]1041 (16) - 0000000000871745 [14:24:34]1040 (4) - 145722 [14:24:34]1012 (4) - 27.10.2024 07:57 [14:24:34]1206 (1) - 0 [14:24:34]OFD Sender: Remove packet 145722 [14:24:34]ProducePacketName [14:24:34]name=ofd_packets/00145722 [14:24:34]NVStorageDeleteData [14:24:34]OFD Sender: No OFD packet to send [14:24:34]*** Cut start [14:24:34]*** Partial cut [14:24:34]*** CUTSNS_PIN = 1 [14:24:34]*** CUTSNS_PIN = 0 [14:24:34]*** Brake cut motor [14:24:35]Read from MH i2c: 01 [14:24:35]MH_I2C_Read... [14:24:35]*** Stop cut motor [14:24:35]*** Cut end [14:24:35]Read from MH i2c: 01 07 00 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: 01 07 00 97 1A 00 00 00 00 00 FF 0F C6 [14:24:35]process_action close_receipt done [14:24:35]requested_data is exist [14:24:35]produce_requested_data [14:24:35]requested_item fm.sn is exist - process it [14:24:35]wFMCommunicate request_size=4 [14:24:35]MH_SAM_APDU [14:24:35]CAPDU: 80 11 00 00 [14:24:35]Write to MH i2c: E2 08 00 98 1A 80 11 00 00 00 00 00 00 2C [14:24:35]Write i2c OK [14:24:35]MH_I2C_Read... [14:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:35]Read from MH i2c: E2 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 17 00 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 17 00 98 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 7F [14:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:24:35]wFMCommunicate OK [14:24:35]requested_item fd.num is exist - process it [14:24:35]SAM_PROTO_GetFieldsCounters [14:24:35]wFMCommunicate request_size=4 [14:24:35]MH_SAM_APDU [14:24:35]CAPDU: 80 13 00 00 [14:24:35]Write to MH i2c: E2 08 00 99 1A 80 13 00 00 00 00 00 00 2F [14:24:35]Write i2c OK [14:24:35]MH_I2C_Read... [14:24:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:35]Read from MH i2c: E2 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 62 00 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 62 00 99 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [14:24:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:35]wFMCommunicate OK [14:24:35]SAM_PROTO_GetFieldsCounters done [14:24:35]requested_item shift.num is exist - process it [14:24:35]requested_item shift.opened is exist - process it [14:24:35]req_shift_opened [14:24:35]FM_GetShiftState [14:24:35]SAM_PROTO_GetShiftState [14:24:35]wFMCommunicate request_size=4 [14:24:35]MH_SAM_APDU [14:24:35]CAPDU: 80 13 01 00 [14:24:35]Write to MH i2c: E2 08 00 9A 1A 80 13 01 00 00 00 00 00 31 [14:24:35]Write i2c OK [14:24:35]MH_I2C_Read... [14:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:35]Read from MH i2c: E2 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 0E 00 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 0E 00 9A 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A9 [14:24:35]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:24:35]wFMCommunicate OK [14:24:35]SAM_PROTO_GetShiftState done [14:24:35]FM_GetShiftState done [14:24:35]req_shift_opened done [14:24:35]requested_item shift.open_date is exist - process it [14:24:35]req_shift_open_date [14:24:35]req_shift_open_date done [14:24:35]produce_requested_data done [14:24:35]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145722,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:24:35]process_action_free close_receipt [14:24:35]json_value_free [14:24:35]json_value_free done [14:24:35]process_json_proto returns [14:24:35]Send response to host [14:24:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145722,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:24:35]free response buf [14:24:35]execute_script done [14:24:35]execute_script returns [14:24:35]free content buf [14:24:35]Sock 7.Close socket [14:24:35]Sock 7.Thread stoped [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [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:16]int [14:29:16]Write to MH i2c: 01 00 00 9B 1A B5 [14:29:16]*** FLAG_PRN_KEY set [14:29:16]Write i2c OK [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: 01 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: 01 07 00 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: 01 07 00 9B 1A 00 08 00 00 00 FF 0F D2 [14:29:16]state=0 [14:29:16]Key pressed [14:29:16]Feed [14:29:16]Write to MH i2c: D8 00 00 9C 1A 8D [14:29:16]Write i2c OK [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: D8 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: D8 01 00 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: D8 01 00 9C 1A 00 8E [14:29:16]int [14:29:16]Write to MH i2c: 01 00 00 9D 1A B7 [14:29:16]Write i2c OK [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: 01 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: 01 07 00 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: 01 07 00 9D 1A 00 48 00 00 00 3C 00 42 [14:29:16]state=2 [14:29:16]Key pressed [14:29:16]int [14:29:16]Write to MH i2c: 01 00 00 9E 1A B8 [14:29:16]*** FLAG_PRN_KEY reset [14:29:16]Write i2c OK [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: 01 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: 01 07 00 [14:29:16]MH_I2C_Read... [14:29:16]Read from MH i2c: 01 07 00 9E 1A 00 00 00 00 00 F5 0F C3 [14:29:16]state=2 [14:29:16]Stop feed [14:29:17]int [14:29:17]Write to MH i2c: 01 00 00 9F 1A B9 [14:29:17]*** FLAG_PRN_KEY set [14:29:17]Write i2c OK [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: 01 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: 01 07 00 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: 01 07 00 9F 1A 00 08 00 00 00 FF 0F D6 [14:29:17]state=0 [14:29:17]Key pressed [14:29:17]Feed [14:29:17]Write to MH i2c: D8 00 00 A0 1A 91 [14:29:17]Write i2c OK [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: D8 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: D8 01 00 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: D8 01 00 A0 1A 00 92 [14:29:17]int [14:29:17]Write to MH i2c: 01 00 00 A1 1A BB [14:29:17]Write i2c OK [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: 01 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: 01 07 00 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: 01 07 00 A1 1A 00 48 00 00 00 3C 00 46 [14:29:17]state=2 [14:29:17]Key pressed [14:29:17]int [14:29:17]Write to MH i2c: 01 00 00 A2 1A BC [14:29:17]*** FLAG_PRN_KEY reset [14:29:17]Write i2c OK [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: 01 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: 01 07 00 [14:29:17]MH_I2C_Read... [14:29:17]Read from MH i2c: 01 07 00 A2 1A 00 00 00 00 00 F6 0F C8 [14:29:17]state=2 [14:29:17]Stop feed [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:47]accept exits with 9 [14:29:47]New connection [14:29:47]New thread 3066596708 created [14:29:47]Thread 3066740068 joined [14:29:47]Waiting for new connection... [14:29:47] Sock 9.Parse request [14:29:47]Sock 9.Check first char [14:29:47]Sock 9.First char is OK [14:29:47]request: POST /json_proto HTTP/1.0 [14:29:47]Method: POST [14:29:47]URL: /json_proto [14:29:47]Method is POST - this is cgi request [14:29:47]url: /json_proto [14:29:47]query_string will be loaded in cgi processing [14:29:47]execute_cgi json_proto POST (null) [14:29:47]execute_cgi path=json_proto method=POST [14:29:47]POST find Content-Length [14:29:47]Host: 172.17.40.195:8080 [14:29:47]Content-Length: 677 [14:29:47]Content-Type: application/json [14:29:47] [14:29:47]POST finish read [14:29:47]Found Content-Length = 677 [14:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:47]execute_script... [14:29: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)160478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:47]POST & json_proto [14:29:47]process_json_proto [14:29:47]json parsed OK: [14:29:47]protocol is kg_v1.0 [14:29:47]action value=close_receipt [14:29:47]process_action close_receipt [14:29:47]cmd_close_receipt [14:29:47]MH_GetDate [14:29:47]Write to MH i2c: F0 00 00 A3 1A AC [14:29:47]Write i2c OK [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: F0 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: F0 09 00 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: F0 09 00 A3 1A 00 5D 4E 1E 67 D5 8D 6C 64 17 [14:29:47]GetLastDocTimeStamp 1730039073 [14:29:47]current date 1730039389 [14:29:47]FM_GetShiftState [14:29:47]SAM_PROTO_GetShiftState [14:29:47]wFMCommunicate request_size=4 [14:29:47]MH_SAM_APDU [14:29:47]CAPDU: 80 13 01 00 [14:29:47]Write to MH i2c: E2 08 00 A4 1A 80 13 01 00 00 00 00 00 3B [14:29:47]Write i2c OK [14:29:47]MH_I2C_Read... [14:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:47]Read from MH i2c: E2 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 0E 00 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 0E 00 A4 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B3 [14:29:47]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:29:47]wFMCommunicate OK [14:29:47]SAM_PROTO_GetShiftState done [14:29:47]FM_GetShiftState done [14:29:47]opened in 1729988959 [14:29:47]opened+sec_in_day 1730075359 [14:29:47]quantity*price = 50041 [14:29:47]sum+1 = 50042 [14:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 146 27.10.2024 14:29 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145723 ФПД: 152202457617385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142949&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145723&fm=152202457617385&tin=02508201610067®Number=0000000000091683&sum=50000 [14:29:48]StoreToDocumentArchive [14:29:48]shift 545 fd 145723 [14:29:48]save to /storage/0545/doc_00145723 [14:29:48]save last doc name /storage/0545/doc_00145723 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 B6E74770 [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 B1 1A 80 09 00 00 00 00 00 00 3D [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 B1 1A 00 90 00 3F [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 B2 1A 80 0D 01 02 00 00 00 00 45 [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 B2 1A 00 90 00 40 [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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5D 4E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3B 39 02 00 35 04 06 00 8A [14:29:48]Write to MH i2c: E2 02 01 B3 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5D 4E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3B 39 02 00 35 04 06 00 8A 00 00 B8 [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:49]Read from MH i2c: E2 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 B3 1A 00 90 00 41 [14:29:49]RAPDU: 90 00 [14:29:49]wFMCommunicate OK [14:29:49]wFMCommunicate request_size=10 [14:29:49]MH_SAM_APDU [14:29:49]CAPDU: 80 0D 02 02 05 6D 65 6B 93 E9 [14:29:49]Write to MH i2c: E2 0D 00 B4 1A 80 0D 02 02 05 00 6D 65 6B 93 E9 00 00 0B [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:49]Read from MH i2c: E2 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 B4 1A 00 90 00 42 [14:29:49]RAPDU: 90 00 [14:29:49]wFMCommunicate OK [14:29:49]wFMCommunicate request_size=4 [14:29:49]MH_SAM_APDU [14:29:49]CAPDU: 80 0D 03 02 [14:29:49]Write to MH i2c: E2 08 00 B5 1A 80 0D 03 02 00 00 00 00 4A [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:49]Read from MH i2c: E2 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 0B 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 0B 00 B5 1A 00 77 85 87 17 58 0B 5D C6 90 00 6B [14:29:49]RAPDU: 77 85 87 17 58 0B 5D C6 90 00 [14:29:49]wFMCommunicate OK [14:29:49]SAM_PROTO_SignData done [14:29:49]FM_MakeSignedData done [14:29:49]CreateOFDProtocolMessage [14:29:49]wFMCommunicate request_size=4 [14:29:49]MH_SAM_APDU [14:29:49]CAPDU: 80 11 00 00 [14:29:49]Write to MH i2c: E2 08 00 B6 1A 80 11 00 00 00 00 00 00 4A [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:49]Read from MH i2c: E2 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 17 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 17 00 B6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9D [14:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:29:49]wFMCommunicate OK [14:29:49]CreateOFDProtocolMessage done [14:29:49]OFDSenderStorePacket 145723 [14:29:49]StoreOFDPacket docnum=145723 [14:29:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E7 86 07 01 E0 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5D 4E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3B 39 02 00 35 04 06 00 8A 6D 65 6B 93 E9 77 85 87 17 58 0B 5D C6 [14:29:49]CheckFolder [14:29:49]dirname=/storage/ofd_packets [14:29:49]CheckFolder done [14:29:49]ProducePacketName [14:29:49]name=ofd_packets/00145723 [14:29:49]NVStorageSaveData ofd_packets/00145723 [14:29:49]File name is /storage/ofd_packets/00145723 [14:29:49]Write 301 bytes [14:29:49]NVStorageSaveData done [14:29:49]OFDSenderStorePacket done [14:29:49]KKMCreateOFDPacket done [14:29:49]NVStorageSaveData kkm_last_timestamp [14:29:49]File name is /storage/kkm_last_timestamp [14:29:49]Write 4 bytes [14:29:49]NVStorageSaveData done [14:29:49]ExternCall_PrintAddStr [14:29:49]wPrintStart [14:29:49]Write to MH i2c: 01 00 00 B7 1A 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 B7 1A 00 00 00 00 00 FF 0F E6 [14:29:49]RasterBufferAndPrint [14:29:49]line Счет N : (1)160478 [14:29:49]line ИНН: 02508201610067 [14:29:49]line Контрольно-Кассовый Чек [14:29:49]line ПРОДАЖА [14:29:49]line ТРК (МРК, ГНК) : 42 [14:29:49]line Товар: 2710124130 [14:29:49]line Аи-92-К-2 [14:29:49]line 7.480 * 66.90 [14:29:49]line = 500.41 [14:29:49]line НДС 12% НСП 1% [14:29:49]line > о реализуемом товаре [14:29:49]line ОКРУГЛЕНИЕ: -0.41 [14:29:49]line ИТОГО: 500.00 [14:29:49]line Внесено: 500.00 [14:29:49]line СДАЧА: 0.00 [14:29:49]line НСП 1% : 4.43 [14:29:49]line НДС 12% : 53.14 [14:29:49]line Наличными: 500.00 [14:29:49]line Безнал.: 0.00 [14:29:49]line Место: АЗС № 126 "Партнер Нефть" [14:29:49]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:29:49]line СНО: Общий режим [14:29:49]line Чек 146 27.10.2024 14:29 [14:29:49]line Смена: 545 ФФД: 1.0 [14:29:49]line ЗНМ: 0300000085 [14:29:49]line РНМ: 0000000000091683 [14:29:49]line Версия ККМ: 001 [14:29:49]line ФМ: 0000000000871745 [14:29:49]line ФД: 145723 [14:29:49]line ФПД: 152202457617385 [14:29:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142949&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145723&fm=152202457617385&tin=02508201610067®Number=0000000000091683&sum=50000 [14:29:49]written 0, free lines is 4095 [14:29:49]OFD Sender: Processing packet 145723 [packets to send 206, broken 205] [14:29:49]ProducePacketName [14:29:49]name=ofd_packets/00145723 [14:29:49]OFD Sender: To server: pG, [14:29:49]CommunicateWithHost lk.salyk.kg:30040 [14:29:49]ConnectInit lk.salyk.kg [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 31 37 34 35 0F 01 00 00 E7 86 07 01 E0 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5D 4E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3B 39 02 00 35 04 06 00 8A 6D 65 6B 93 E9 77 85 87 17 58 0B 5D C6 [14:29:49]Write to MH i2c: 01 00 00 E2 1A FC [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 E2 1A 00 00 00 00 00 B9 0C C8 [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 3264 [14:29:49]MH_Cut [14:29:49]Write to MH i2c: D1 01 00 E9 1A 01 D5 [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 E9 1A 00 D4 [14:29:49]Write to MH i2c: 01 00 00 EA 1A 04 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 5B 2E 47 00 89 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3B 39 02 00 F4 03 04 00 8A F3 1D 67 B6 04 01 00 00 C1 E3 8B F9 68 41 19 40 [14:29:50]CommunicateWithHost err = 0 [14:29:50]CheckOFDResponse [14:29:50]1017 (14) - 77093643461234 [14:29:50]1041 (16) - 0000000000871745 [14:29:50]1040 (4) - 145723 [14:29:50]1012 (4) - 27.10.2024 08:02 [14:29:50]1206 (1) - 0 [14:29:50]OFD Sender: Remove packet 145723 [14:29:50]ProducePacketName [14:29:50]name=ofd_packets/00145723 [14:29:50]NVStorageDeleteData [14:29:50]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:51]*** Brake cut motor [14:29:51]Read from MH i2c: 01 [14:29:51]MH_I2C_Read... [14:29:51]*** Stop cut motor [14:29:51]*** Cut end [14:29:51]Read from MH i2c: 01 07 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: 01 07 00 EA 1A 00 00 00 00 00 FF 0F 19 [14:29:51]process_action close_receipt done [14:29:51]requested_data is exist [14:29:51]produce_requested_data [14:29:51]requested_item fm.sn is exist - process it [14:29:51]wFMCommunicate request_size=4 [14:29:51]MH_SAM_APDU [14:29:51]CAPDU: 80 11 00 00 [14:29:51]Write to MH i2c: E2 08 00 EB 1A 80 11 00 00 00 00 00 00 7F [14:29:51]Write i2c OK [14:29:51]MH_I2C_Read... [14:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:51]Read from MH i2c: E2 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 17 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 17 00 EB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D2 [14:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:29:51]wFMCommunicate OK [14:29:51]requested_item fd.num is exist - process it [14:29:51]SAM_PROTO_GetFieldsCounters [14:29:51]wFMCommunicate request_size=4 [14:29:51]MH_SAM_APDU [14:29:51]CAPDU: 80 13 00 00 [14:29:51]Write to MH i2c: E2 08 00 EC 1A 80 13 00 00 00 00 00 00 82 [14:29:51]Write i2c OK [14:29:51]MH_I2C_Read... [14:29:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:51]Read from MH i2c: E2 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 62 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 62 00 EC 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [14:29:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:51]wFMCommunicate OK [14:29:51]SAM_PROTO_GetFieldsCounters done [14:29:51]requested_item shift.num is exist - process it [14:29:51]requested_item shift.opened is exist - process it [14:29:51]req_shift_opened [14:29:51]FM_GetShiftState [14:29:51]SAM_PROTO_GetShiftState [14:29:51]wFMCommunicate request_size=4 [14:29:51]MH_SAM_APDU [14:29:51]CAPDU: 80 13 01 00 [14:29:51]Write to MH i2c: E2 08 00 ED 1A 80 13 01 00 00 00 00 00 84 [14:29:51]Write i2c OK [14:29:51]MH_I2C_Read... [14:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:51]Read from MH i2c: E2 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 0E 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 0E 00 ED 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FC [14:29:51]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:29:51]wFMCommunicate OK [14:29:51]SAM_PROTO_GetShiftState done [14:29:51]FM_GetShiftState done [14:29:51]req_shift_opened done [14:29:51]requested_item shift.open_date is exist - process it [14:29:51]req_shift_open_date [14:29:51]req_shift_open_date done [14:29:51]produce_requested_data done [14:29:51]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145723,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:29:51]process_action_free close_receipt [14:29:51]json_value_free [14:29:51]json_value_free done [14:29:51]process_json_proto returns [14:29:51]Send response to host [14:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145723,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:29:51]free response buf [14:29:51]execute_script done [14:29:51]execute_script returns [14:29:51]free content buf [14:29:51]Sock 9.Close socket [14:29:51]Sock 9.Thread stoped [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]accept exits with 7 [14:33:40]New connection [14:33:40]New thread 3066740068 created [14:33:40]Thread 3066596708 joined [14:33:40]Waiting for new connection... [14:33:40] Sock 7.Parse request [14:33:40]Sock 7.Check first char [14:33:40]Sock 7.First char is OK [14:33:40]request: POST /json_proto HTTP/1.0 [14:33:40]Method: POST [14:33:40]URL: /json_proto [14:33:40]Method is POST - this is cgi request [14:33:40]url: /json_proto [14:33:40]query_string will be loaded in cgi processing [14:33:40]execute_cgi json_proto POST (null) [14:33:40]execute_cgi path=json_proto method=POST [14:33:40]POST find Content-Length [14:33:40]Host: 172.17.40.195:8080 [14:33:40]Content-Length: 683 [14:33:40]Content-Type: application/json [14:33:40] [14:33:40]POST finish read [14:33:40]Found Content-Length = 683 [14:33:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:33:40]execute_script... [14:33: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)160479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:33:40]POST & json_proto [14:33:40]process_json_proto [14:33:40]json parsed OK: [14:33:40]protocol is kg_v1.0 [14:33:40]action value=close_receipt [14:33:40]process_action close_receipt [14:33:40]cmd_close_receipt [14:33:40]MH_GetDate [14:33:40]Write to MH i2c: F0 00 00 EE 1A F7 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: F0 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: F0 09 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: F0 09 00 EE 1A 00 46 4F 1E 67 D5 8D 6C 64 4C [14:33:40]GetLastDocTimeStamp 1730039389 [14:33:40]current date 1730039622 [14:33:40]FM_GetShiftState [14:33:40]SAM_PROTO_GetShiftState [14:33:40]wFMCommunicate request_size=4 [14:33:40]MH_SAM_APDU [14:33:40]CAPDU: 80 13 01 00 [14:33:40]Write to MH i2c: E2 08 00 EF 1A 80 13 01 00 00 00 00 00 86 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 0E 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 0E 00 EF 1A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FE [14:33:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:33:40]wFMCommunicate OK [14:33:40]SAM_PROTO_GetShiftState done [14:33:40]FM_GetShiftState done [14:33:40]opened in 1729988959 [14:33:40]opened+sec_in_day 1730075359 [14:33:40]quantity*price = 50025 [14:33:40]sum+1 = 50027 [14:33:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 147 27.10.2024 14:33 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145724 ФПД: 212472567703683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143342&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145724&fm=212472567703683&tin=02508201610067®Number=0000000000091683&sum=50000 [14:33:41]StoreToDocumentArchive [14:33:41]shift 545 fd 145724 [14:33:41]save to /storage/0545/doc_00145724 [14:33:41]save last doc name /storage/0545/doc_00145724 to /storage/kkm_last_doc_name [14:33:41]save OK [14:33:41]Clear old archive folders... [14:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:33:41]tlvbuf is 00405550 [14:33:41]SAM_PROTO_ClearQueue [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 09 00 00 [14:33:41]Write to MH i2c: E2 08 00 FC 1A 80 09 00 00 00 00 00 00 88 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 FC 1A 00 90 00 8A [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]SAM_PROTO_ClearQueue done [14:33:41]KKMCreateOFDPacket [14:33:41]OFDProtocolAddRootSTLVToBuf [14:33:41]FM_MakeSignedData [14:33:41]FM_MakeSignedData [14:33:41]SAM_PROTO_SignData [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 0D 01 02 [14:33:41]Write to MH i2c: E2 08 00 FD 1A 80 0D 01 02 00 00 00 00 90 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 FD 1A 00 90 00 8B [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]wFMCommunicate request_size=255 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 46 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3C 39 02 [14:33:41]Write to MH i2c: E2 02 01 FE 1A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 46 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3C 39 02 00 00 81 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 FE 1A 00 90 00 8C [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]wFMCommunicate request_size=16 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C1 3E 1F EC 28 83 [14:33:41]Write to MH i2c: E2 13 00 FF 1A 80 0D 02 02 0B 00 00 35 04 06 00 C1 3E 1F EC 28 83 00 00 9D [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 FF 1A 00 90 00 8D [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 0D 03 02 [14:33:41]Write to MH i2c: E2 08 00 00 1B 80 0D 03 02 00 00 00 00 96 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 0B 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 0B 00 00 1B 00 1F CE 2C 34 EC 0C AA A6 90 00 2C [14:33:41]RAPDU: 1F CE 2C 34 EC 0C AA A6 90 00 [14:33:41]wFMCommunicate OK [14:33:41]SAM_PROTO_SignData done [14:33:41]FM_MakeSignedData done [14:33:41]CreateOFDProtocolMessage [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 11 00 00 [14:33:41]Write to MH i2c: E2 08 00 01 1B 80 11 00 00 00 00 00 00 96 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 17 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 17 00 01 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E9 [14:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:33:41]wFMCommunicate OK [14:33:41]CreateOFDProtocolMessage done [14:33:41]OFDSenderStorePacket 145724 [14:33:41]StoreOFDPacket docnum=145724 [14:33:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 DB 81 0D 01 F3 B1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 46 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3C 39 02 00 35 04 06 00 C1 3E 1F EC 28 83 1F CE 2C 34 EC 0C AA A6 [14:33:41]CheckFolder [14:33:41]dirname=/storage/ofd_packets [14:33:41]CheckFolder done [14:33:41]ProducePacketName [14:33:41]name=ofd_packets/00145724 [14:33:41]NVStorageSaveData ofd_packets/00145724 [14:33:41]File name is /storage/ofd_packets/00145724 [14:33:41]Write 307 bytes [14:33:41]NVStorageSaveData done [14:33:41]OFDSenderStorePacket done [14:33:41]KKMCreateOFDPacket done [14:33:41]NVStorageSaveData kkm_last_timestamp [14:33:41]File name is /storage/kkm_last_timestamp [14:33:41]Write 4 bytes [14:33:41]NVStorageSaveData done [14:33:41]ExternCall_PrintAddStr [14:33:41]wPrintStart [14:33:41]Write to MH i2c: 01 00 00 02 1B 1D [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 07 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 07 00 02 1B 00 00 00 00 00 FF 0F 32 [14:33:41]RasterBufferAndPrint [14:33:41]line Счет N : (1)160479 [14:33:41]line ИНН: 02508201610067 [14:33:41]line Контрольно-Кассовый Чек [14:33:41]line ПРОДАЖА [14:33:41]line ТРК (МРК, ГНК) : 31 [14:33:41]line Товар: 2710194240 [14:33:41]line D-Energy Дт-К-2 [14:33:41]line 6.480 * 77.20 [14:33:41]line = 500.26 [14:33:41]line НДС 12% НСП 1% [14:33:41]line > о реализуемом товаре [14:33:41]line ОКРУГЛЕНИЕ: -0.26 [14:33:41]line ИТОГО: 500.00 [14:33:41]line Внесено: 500.00 [14:33:41]line СДАЧА: 0.00 [14:33:41]line НСП 1% : 4.43 [14:33:41]line НДС 12% : 53.12 [14:33:41]line Наличными: 500.00 [14:33:41]line Безнал.: 0.00 [14:33:41]line Место: АЗС № 126 "Партнер Нефть" [14:33:41]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:33:41]line СНО: Общий режим [14:33:41]line Чек 147 27.10.2024 14:33 [14:33:41]line Смена: 545 ФФД: 1.0 [14:33:41]line ЗНМ: 0300000085 [14:33:41]line РНМ: 0000000000091683 [14:33:41]line Версия ККМ: 001 [14:33:41]line ФМ: 0000000000871745 [14:33:41]line ФД: 145724 [14:33:41]line ФПД: 212472567703683 [14:33:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143342&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145724&fm=212472567703683&tin=02508201610067®Number=0000000000091683&sum=50000 [14:33:42]OFD Sender: Processing packet 145724 [packets to send 206, broken 205] [14:33:42]ProducePacketName [14:33:42]name=ofd_packets/00145724 [14:33:42]OFD Sender: To server: pG, [14:33:42]CommunicateWithHost lk.salyk.kg:30040 [14:33:42]ConnectInit lk.salyk.kg [14:33:42]written 0, free lines is 4095 [14:33:42]Connected sock=10 [14:33:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 DB 81 0D 01 F3 B1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 46 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3C 39 02 00 35 04 06 00 C1 3E 1F EC 28 83 1F CE 2C 34 EC 0C AA A6 [14:33:42]Write to MH i2c: 01 00 00 2D 1B 48 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: 01 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: 01 07 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: 01 07 00 2D 1B 00 00 00 00 00 C5 0C 20 [14:33:42]RasterBufferAndPrint [14:33:42]line [14:33:42]line [14:33:42]line [14:33:42]line [14:33:42]line [14:33:42]written 0, free lines is 3275 [14:33:42]MH_Cut [14:33:42]Write to MH i2c: D1 01 00 34 1B 01 21 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: D1 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: D1 01 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: D1 01 00 34 1B 00 20 [14:33:42]Write to MH i2c: 01 00 00 35 1B 50 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 19 66 47 00 9E C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3C 39 02 00 F4 03 04 00 73 F4 1D 67 B6 04 01 00 00 36 66 43 73 F7 A4 28 A5 [14:33:42]CommunicateWithHost err = 0 [14:33:42]CheckOFDResponse [14:33:42]1017 (14) - 77093643461234 [14:33:42]1041 (16) - 0000000000871745 [14:33:42]1040 (4) - 145724 [14:33:42]1012 (4) - 27.10.2024 08:06 [14:33:42]1206 (1) - 0 [14:33:42]OFD Sender: Remove packet 145724 [14:33:42]ProducePacketName [14:33:42]name=ofd_packets/00145724 [14:33:42]NVStorageDeleteData [14:33:43]OFD Sender: No OFD packet to send [14:33:43]*** Cut start [14:33:43]*** Partial cut [14:33:43]*** CUTSNS_PIN = 1 [14:33:43]*** CUTSNS_PIN = 0 [14:33:43]*** Brake cut motor [14:33:44]Read from MH i2c: 01 [14:33:44]MH_I2C_Read... [14:33:44]*** Stop cut motor [14:33:44]*** Cut end [14:33:44]Read from MH i2c: 01 07 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 07 00 35 1B 00 00 00 00 00 FF 0F 65 [14:33:44]process_action close_receipt done [14:33:44]requested_data is exist [14:33:44]produce_requested_data [14:33:44]requested_item fm.sn is exist - process it [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 11 00 00 [14:33:44]Write to MH i2c: E2 08 00 36 1B 80 11 00 00 00 00 00 00 CB [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 17 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 17 00 36 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1E [14:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:33:44]wFMCommunicate OK [14:33:44]requested_item fd.num is exist - process it [14:33:44]SAM_PROTO_GetFieldsCounters [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 13 00 00 [14:33:44]Write to MH i2c: E2 08 00 37 1B 80 13 00 00 00 00 00 00 CE [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 62 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 62 00 37 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [14:33:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:44]wFMCommunicate OK [14:33:44]SAM_PROTO_GetFieldsCounters done [14:33:44]requested_item shift.num is exist - process it [14:33:44]requested_item shift.opened is exist - process it [14:33:44]req_shift_opened [14:33:44]FM_GetShiftState [14:33:44]SAM_PROTO_GetShiftState [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 13 01 00 [14:33:44]Write to MH i2c: E2 08 00 38 1B 80 13 01 00 00 00 00 00 D0 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 0E 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 0E 00 38 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 48 [14:33:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:33:44]wFMCommunicate OK [14:33:44]SAM_PROTO_GetShiftState done [14:33:44]FM_GetShiftState done [14:33:44]req_shift_opened done [14:33:44]requested_item shift.open_date is exist - process it [14:33:44]req_shift_open_date [14:33:44]req_shift_open_date done [14:33:44]produce_requested_data done [14:33:44]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145724,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:33:44]process_action_free close_receipt [14:33:44]json_value_free [14:33:44]json_value_free done [14:33:44]process_json_proto returns [14:33:44]Send response to host [14:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145724,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:33:44]free response buf [14:33:44]execute_script done [14:33:44]execute_script returns [14:33:44]free content buf [14:33:44]Sock 7.Close socket [14:33:44]Sock 7.Thread stoped [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:00]accept exits with 9 [14:34:00]New connection [14:34:00]New thread 3066596708 created [14:34:00]Thread 3066740068 joined [14:34:00]Waiting for new connection... [14:34:00] Sock 9.Parse request [14:34:00]Sock 9.Check first char [14:34:00]Sock 9.First char is OK [14:34:00]request: POST /json_proto HTTP/1.0 [14:34:00]Method: POST [14:34:00]URL: /json_proto [14:34:00]Method is POST - this is cgi request [14:34:00]url: /json_proto [14:34:00]query_string will be loaded in cgi processing [14:34:00]execute_cgi json_proto POST (null) [14:34:00]execute_cgi path=json_proto method=POST [14:34:00]POST find Content-Length [14:34:00]Host: 172.17.40.195:8080 [14:34:00]Content-Length: 677 [14:34:00]Content-Type: application/json [14:34:00] [14:34:00]POST finish read [14:34:00]Found Content-Length = 677 [14:34:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:00]execute_script... [14: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)160480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:00]POST & json_proto [14:34:00]process_json_proto [14:34:00]json parsed OK: [14:34:00]protocol is kg_v1.0 [14:34:00]action value=close_receipt [14:34:00]process_action close_receipt [14:34:00]cmd_close_receipt [14:34:00]MH_GetDate [14:34:00]Write to MH i2c: F0 00 00 39 1B 43 [14:34:00]Write i2c OK [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: F0 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: F0 09 00 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: F0 09 00 39 1B 00 5A 4F 1E 67 D5 8D 6C 64 AC [14:34:00]GetLastDocTimeStamp 1730039622 [14:34:00]current date 1730039642 [14:34:00]FM_GetShiftState [14:34:00]SAM_PROTO_GetShiftState [14:34:00]wFMCommunicate request_size=4 [14:34:00]MH_SAM_APDU [14:34:00]CAPDU: 80 13 01 00 [14:34:00]Write to MH i2c: E2 08 00 3A 1B 80 13 01 00 00 00 00 00 D2 [14:34:00]Write i2c OK [14:34:00]MH_I2C_Read... [14:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:00]Read from MH i2c: E2 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: E2 0E 00 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: E2 0E 00 3A 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4A [14:34:00]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:34:00]wFMCommunicate OK [14:34:00]SAM_PROTO_GetShiftState done [14:34:00]FM_GetShiftState done [14:34:00]opened in 1729988959 [14:34:00]opened+sec_in_day 1730075359 [14:34:00]quantity*price = 30038 [14:34:00]sum+1 = 30039 [14:34:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 148 27.10.2024 14:34 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145725 ФПД: 195358803478202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143402&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145725&fm=195358803478202&tin=02508201610067®Number=0000000000091683&sum=30000 [14:34:01]StoreToDocumentArchive [14:34:01]shift 545 fd 145725 [14:34:01]save to /storage/0545/doc_00145725 [14:34:01]save last doc name /storage/0545/doc_00145725 to /storage/kkm_last_doc_name [14:34:01]save OK [14:34:01]Clear old archive folders... [14:34:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:01]tlvbuf is 00437870 [14:34:01]SAM_PROTO_ClearQueue [14:34:01]wFMCommunicate request_size=4 [14:34:01]MH_SAM_APDU [14:34:01]CAPDU: 80 09 00 00 [14:34:01]Write to MH i2c: E2 08 00 47 1B 80 09 00 00 00 00 00 00 D4 [14:34:01]Write i2c OK [14:34:01]MH_I2C_Read... [14:34:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:01]Read from MH i2c: E2 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 03 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 03 00 47 1B 00 90 00 D6 [14:34:01]RAPDU: 90 00 [14:34:01]wFMCommunicate OK [14:34:01]SAM_PROTO_ClearQueue done [14:34:01]KKMCreateOFDPacket [14:34:01]OFDProtocolAddRootSTLVToBuf [14:34:01]FM_MakeSignedData [14:34:01]FM_MakeSignedData [14:34:01]SAM_PROTO_SignData [14:34:01]wFMCommunicate request_size=4 [14:34:01]MH_SAM_APDU [14:34:01]CAPDU: 80 0D 01 02 [14:34:01]Write to MH i2c: E2 08 00 48 1B 80 0D 01 02 00 00 00 00 DC [14:34:01]Write i2c OK [14:34:01]MH_I2C_Read... [14:34:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:01]Read from MH i2c: E2 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 03 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 03 00 48 1B 00 90 00 D7 [14:34:01]RAPDU: 90 00 [14:34:01]wFMCommunicate OK [14:34:01]wFMCommunicate request_size=255 [14:34:01]MH_SAM_APDU [14: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 5A 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3D 39 02 00 35 04 06 00 B1 [14:34:01]Write to MH i2c: E2 02 01 49 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 5A 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3D 39 02 00 35 04 06 00 B1 00 00 6C [14:34:01]Write i2c OK [14:34:01]MH_I2C_Read... [14:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:01]Read from MH i2c: E2 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 03 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 03 00 49 1B 00 90 00 D8 [14:34:01]RAPDU: 90 00 [14:34:01]wFMCommunicate OK [14:34:01]wFMCommunicate request_size=10 [14:34:01]MH_SAM_APDU [14:34:01]CAPDU: 80 0D 02 02 05 AD 84 15 C6 BA [14:34:01]Write to MH i2c: E2 0D 00 4A 1B 80 0D 02 02 05 00 AD 84 15 C6 BA 00 00 AF [14:34:01]Write i2c OK [14:34:01]MH_I2C_Read... [14:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:01]Read from MH i2c: E2 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 03 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 03 00 4A 1B 00 90 00 D9 [14:34:01]RAPDU: 90 00 [14:34:01]wFMCommunicate OK [14:34:01]wFMCommunicate request_size=4 [14:34:01]MH_SAM_APDU [14:34:01]CAPDU: 80 0D 03 02 [14:34:01]Write to MH i2c: E2 08 00 4B 1B 80 0D 03 02 00 00 00 00 E1 [14:34:01]Write i2c OK [14:34:01]MH_I2C_Read... [14:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:01]Read from MH i2c: E2 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 0B 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 0B 00 4B 1B 00 96 81 A9 5D C5 4A 6A 48 90 00 C0 [14:34:01]RAPDU: 96 81 A9 5D C5 4A 6A 48 90 00 [14:34:01]wFMCommunicate OK [14:34:01]SAM_PROTO_SignData done [14:34:01]FM_MakeSignedData done [14:34:01]CreateOFDProtocolMessage [14:34:01]wFMCommunicate request_size=4 [14:34:01]MH_SAM_APDU [14:34:01]CAPDU: 80 11 00 00 [14:34:01]Write to MH i2c: E2 08 00 4C 1B 80 11 00 00 00 00 00 00 E1 [14:34:01]Write i2c OK [14:34:01]MH_I2C_Read... [14:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:01]Read from MH i2c: E2 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 17 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: E2 17 00 4C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 34 [14:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:34:01]wFMCommunicate OK [14:34:01]CreateOFDProtocolMessage done [14:34:01]OFDSenderStorePacket 145725 [14:34:01]StoreOFDPacket docnum=145725 [14:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9B E4 07 01 D4 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 5A 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3D 39 02 00 35 04 06 00 B1 AD 84 15 C6 BA 96 81 A9 5D C5 4A 6A 48 [14:34:01]CheckFolder [14:34:01]dirname=/storage/ofd_packets [14:34:01]CheckFolder done [14:34:01]ProducePacketName [14:34:01]name=ofd_packets/00145725 [14:34:01]NVStorageSaveData ofd_packets/00145725 [14:34:01]File name is /storage/ofd_packets/00145725 [14:34:01]Write 301 bytes [14:34:01]NVStorageSaveData done [14:34:01]OFDSenderStorePacket done [14:34:01]KKMCreateOFDPacket done [14:34:01]NVStorageSaveData kkm_last_timestamp [14:34:01]File name is /storage/kkm_last_timestamp [14:34:01]Write 4 bytes [14:34:01]NVStorageSaveData done [14:34:01]ExternCall_PrintAddStr [14:34:01]wPrintStart [14:34:01]Write to MH i2c: 01 00 00 4D 1B 68 [14:34:01]Write i2c OK [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: 01 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: 01 07 00 [14:34:01]MH_I2C_Read... [14:34:01]Read from MH i2c: 01 07 00 4D 1B 00 00 00 00 00 FF 0F 7D [14:34:01]RasterBufferAndPrint [14:34:01]line Счет N : (1)160480 [14:34:01]line ИНН: 02508201610067 [14:34:01]line Контрольно-Кассовый Чек [14:34:01]line ПРОДАЖА [14:34:01]line ТРК (МРК, ГНК) : 52 [14:34:01]line Товар: 2710124130 [14:34:01]line Аи-92-К-2 [14:34:01]line 4.490 * 66.90 [14:34:01]line = 300.38 [14:34:01]line НДС 12% НСП 1% [14:34:01]line > о реализуемом товаре [14:34:01]line ОКРУГЛЕНИЕ: -0.38 [14:34:01]line ИТОГО: 300.00 [14:34:01]line Внесено: 300.00 [14:34:01]line СДАЧА: 0.00 [14:34:01]line НСП 1% : 2.66 [14:34:01]line НДС 12% : 31.90 [14:34:01]line Наличными: 300.00 [14:34:01]line Безнал.: 0.00 [14:34:01]line Место: АЗС № 126 "Партнер Нефть" [14:34:01]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:34:01]line СНО: Общий режим [14:34:01]line Чек 148 27.10.2024 14:34 [14:34:01]line Смена: 545 ФФД: 1.0 [14:34:01]line ЗНМ: 0300000085 [14:34:01]line РНМ: 0000000000091683 [14:34:01]line Версия ККМ: 001 [14:34:01]line ФМ: 0000000000871745 [14:34:01]line ФД: 145725 [14:34:01]line ФПД: 195358803478202 [14:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143402&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145725&fm=195358803478202&tin=02508201610067®Number=0000000000091683&sum=30000 [14:34:02]written 0, free lines is 4095 [14:34:02]OFD Sender: Processing packet 145725 [packets to send 206, broken 205] [14:34:02]ProducePacketName [14:34:02]name=ofd_packets/00145725 [14:34:02]OFD Sender: To server: pG, [14:34:02]CommunicateWithHost lk.salyk.kg:30040 [14:34:02]ConnectInit lk.salyk.kg [14:34:02]Connected sock=11 [14: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 31 37 34 35 0F 01 00 00 9B E4 07 01 D4 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 5A 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3D 39 02 00 35 04 06 00 B1 AD 84 15 C6 BA 96 81 A9 5D C5 4A 6A 48 [14:34:02]Write to MH i2c: 01 00 00 78 1B 93 [14:34:02]Write i2c OK [14:34:02]MH_I2C_Read... [14:34:02]Read from MH i2c: 01 [14:34:02]MH_I2C_Read... [14:34:02]Read from MH i2c: 01 07 00 [14:34:02]MH_I2C_Read... [14:34:02]Read from MH i2c: 01 07 00 78 1B 00 00 00 00 00 B6 0C 5C [14:34:02]RasterBufferAndPrint [14:34:02]line [14:34:02]line [14:34:02]line [14:34:02]line [14:34:02]line [14:34:02]written 0, free lines is 3260 [14:34:02]MH_Cut [14:34:02]Write to MH i2c: D1 01 00 7F 1B 01 6C [14:34:02]Write i2c OK [14:34:02]MH_I2C_Read... [14:34:02]Read from MH i2c: D1 [14:34:02]MH_I2C_Read... [14:34:02]Read from MH i2c: D1 01 00 [14:34:02]MH_I2C_Read... [14:34:02]Read from MH i2c: D1 01 00 7F 1B 00 6B [14:34:02]Write to MH i2c: 01 00 00 80 1B 9B [14:34:02]Write i2c OK [14:34:02]MH_I2C_Read... [14:34:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 13 3A 47 00 E8 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3D 39 02 00 F4 03 04 00 87 F4 1D 67 B6 04 01 00 00 88 03 85 47 CC 3A E0 DC [14:34:02]CommunicateWithHost err = 0 [14:34:02]CheckOFDResponse [14:34:02]1017 (14) - 77093643461234 [14:34:02]1041 (16) - 0000000000871745 [14:34:02]1040 (4) - 145725 [14:34:02]1012 (4) - 27.10.2024 08:06 [14:34:02]1206 (1) - 0 [14:34:02]OFD Sender: Remove packet 145725 [14:34:02]ProducePacketName [14:34:02]name=ofd_packets/00145725 [14:34:02]NVStorageDeleteData [14:34:03]OFD Sender: No OFD packet to send [14:34:03]*** Cut start [14:34:03]*** Partial cut [14:34:03]*** CUTSNS_PIN = 1 [14:34:03]*** CUTSNS_PIN = 0 [14:34:03]*** Brake cut motor [14:34:03]Read from MH i2c: 01 [14:34:04]MH_I2C_Read... [14:34:04]*** Stop cut motor [14:34:04]*** Cut end [14:34:04]Read from MH i2c: 01 07 00 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: 01 07 00 80 1B 00 00 00 00 00 FF 0F B0 [14:34:04]process_action close_receipt done [14:34:04]requested_data is exist [14:34:04]produce_requested_data [14:34:04]requested_item fm.sn is exist - process it [14:34:04]wFMCommunicate request_size=4 [14:34:04]MH_SAM_APDU [14:34:04]CAPDU: 80 11 00 00 [14:34:04]Write to MH i2c: E2 08 00 81 1B 80 11 00 00 00 00 00 00 16 [14:34:04]Write i2c OK [14:34:04]MH_I2C_Read... [14:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:04]Read from MH i2c: E2 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 17 00 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 17 00 81 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 69 [14:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:34:04]wFMCommunicate OK [14:34:04]requested_item fd.num is exist - process it [14:34:04]SAM_PROTO_GetFieldsCounters [14:34:04]wFMCommunicate request_size=4 [14:34:04]MH_SAM_APDU [14:34:04]CAPDU: 80 13 00 00 [14:34:04]Write to MH i2c: E2 08 00 82 1B 80 13 00 00 00 00 00 00 19 [14:34:04]Write i2c OK [14:34:04]MH_I2C_Read... [14:34:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:04]Read from MH i2c: E2 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 62 00 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 62 00 82 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [14: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:04]wFMCommunicate OK [14:34:04]SAM_PROTO_GetFieldsCounters done [14:34:04]requested_item shift.num is exist - process it [14:34:04]requested_item shift.opened is exist - process it [14:34:04]req_shift_opened [14:34:04]FM_GetShiftState [14:34:04]SAM_PROTO_GetShiftState [14:34:04]wFMCommunicate request_size=4 [14:34:04]MH_SAM_APDU [14:34:04]CAPDU: 80 13 01 00 [14:34:04]Write to MH i2c: E2 08 00 83 1B 80 13 01 00 00 00 00 00 1B [14:34:04]Write i2c OK [14:34:04]MH_I2C_Read... [14:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:04]Read from MH i2c: E2 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 0E 00 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 0E 00 83 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 93 [14:34:04]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:34:04]wFMCommunicate OK [14:34:04]SAM_PROTO_GetShiftState done [14:34:04]FM_GetShiftState done [14:34:04]req_shift_opened done [14:34:04]requested_item shift.open_date is exist - process it [14:34:04]req_shift_open_date [14:34:04]req_shift_open_date done [14:34:04]produce_requested_data done [14:34:04]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145725,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:34:04]process_action_free close_receipt [14:34:04]json_value_free [14:34:04]json_value_free done [14:34:04]process_json_proto returns [14:34:04]Send response to host [14:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145725,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:34:04]free response buf [14:34:04]execute_script done [14:34:04]execute_script returns [14:34:04]free content buf [14:34:04]Sock 9.Close socket [14:34:04]Sock 9.Thread stoped [14:34:08]OFD Sender: No OFD packet to send [14:34:13]accept exits with 7 [14:34:13]New connection [14:34:13]New thread 3066740068 created [14:34:13]Thread 3066596708 joined [14:34:13]Waiting for new connection... [14:34:13] Sock 7.Parse request [14:34:13]Sock 7.Check first char [14:34:13]Sock 7.First char is OK [14:34:13]request: POST /json_proto HTTP/1.0 [14:34:13]Method: POST [14:34:13]URL: /json_proto [14:34:13]Method is POST - this is cgi request [14:34:13]url: /json_proto [14:34:13]query_string will be loaded in cgi processing [14:34:13]execute_cgi json_proto POST (null) [14:34:13]execute_cgi path=json_proto method=POST [14:34:13]POST find Content-Length [14:34:13]Host: 172.17.40.195:8080 [14:34:13]Content-Length: 683 [14:34:13]Content-Type: application/json [14:34:13] [14:34:13]POST finish read [14:34:13]Found Content-Length = 683 [14:34:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:34:13]execute_script... [14:34: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)160481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:34:13]POST & json_proto [14:34:13]process_json_proto [14:34:13]json parsed OK: [14:34:13]protocol is kg_v1.0 [14:34:13]action value=close_receipt [14:34:13]process_action close_receipt [14:34:13]cmd_close_receipt [14:34:13]MH_GetDate [14:34:13]Write to MH i2c: F0 00 00 84 1B 8E [14:34:13]Write i2c OK [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: F0 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: F0 09 00 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: F0 09 00 84 1B 00 67 4F 1E 67 D5 8D 6C 64 04 [14:34:13]GetLastDocTimeStamp 1730039642 [14:34:13]current date 1730039655 [14:34:13]FM_GetShiftState [14:34:13]SAM_PROTO_GetShiftState [14:34:13]wFMCommunicate request_size=4 [14:34:13]MH_SAM_APDU [14:34:13]CAPDU: 80 13 01 00 [14:34:13]Write to MH i2c: E2 08 00 85 1B 80 13 01 00 00 00 00 00 1D [14:34:13]Write i2c OK [14:34:13]MH_I2C_Read... [14:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:13]Read from MH i2c: E2 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 0E 00 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 0E 00 85 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 95 [14:34:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:34:13]wFMCommunicate OK [14:34:13]SAM_PROTO_GetShiftState done [14:34:13]FM_GetShiftState done [14:34:13]opened in 1729988959 [14:34:13]opened+sec_in_day 1730075359 [14:34:13]quantity*price = 50025 [14:34:13]sum+1 = 50027 [14:34:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 149 27.10.2024 14:34 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145726 ФПД: 207796378025227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143415&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145726&fm=207796378025227&tin=02508201610067®Number=0000000000091683&sum=50000 [14:34:14]StoreToDocumentArchive [14:34:14]shift 545 fd 145726 [14:34:14]save to /storage/0545/doc_00145726 [14:34:14]save last doc name /storage/0545/doc_00145726 to /storage/kkm_last_doc_name [14:34:14]save OK [14:34:14]Clear old archive folders... [14:34:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:34:14]tlvbuf is 00408390 [14:34:14]SAM_PROTO_ClearQueue [14:34:14]wFMCommunicate request_size=4 [14:34:14]MH_SAM_APDU [14:34:14]CAPDU: 80 09 00 00 [14:34:14]Write to MH i2c: E2 08 00 92 1B 80 09 00 00 00 00 00 00 1F [14:34:14]Write i2c OK [14:34:14]MH_I2C_Read... [14:34:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:14]Read from MH i2c: E2 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 03 00 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 03 00 92 1B 00 90 00 21 [14:34:14]RAPDU: 90 00 [14:34:14]wFMCommunicate OK [14:34:14]SAM_PROTO_ClearQueue done [14:34:14]KKMCreateOFDPacket [14:34:14]OFDProtocolAddRootSTLVToBuf [14:34:14]FM_MakeSignedData [14:34:14]FM_MakeSignedData [14:34:14]SAM_PROTO_SignData [14:34:14]wFMCommunicate request_size=4 [14:34:14]MH_SAM_APDU [14:34:14]CAPDU: 80 0D 01 02 [14:34:14]Write to MH i2c: E2 08 00 93 1B 80 0D 01 02 00 00 00 00 27 [14:34:14]Write i2c OK [14:34:14]MH_I2C_Read... [14:34:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:14]Read from MH i2c: E2 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 03 00 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 03 00 93 1B 00 90 00 22 [14:34:14]RAPDU: 90 00 [14:34:14]wFMCommunicate OK [14:34:14]wFMCommunicate request_size=255 [14:34:14]MH_SAM_APDU [14:34:14]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 67 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3E 39 02 [14:34:14]Write to MH i2c: E2 02 01 94 1B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 67 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3E 39 02 00 00 3D [14:34:14]Write i2c OK [14:34:14]MH_I2C_Read... [14:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:14]Read from MH i2c: E2 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 03 00 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 03 00 94 1B 00 90 00 23 [14:34:14]RAPDU: 90 00 [14:34:14]wFMCommunicate OK [14:34:14]wFMCommunicate request_size=16 [14:34:14]MH_SAM_APDU [14:34:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BC FD 5D 4C 3D 0B [14:34:14]Write to MH i2c: E2 13 00 95 1B 80 0D 02 02 0B 00 00 35 04 06 00 BC FD 5D 4C 3D 0B 00 00 29 [14:34:14]Write i2c OK [14:34:14]MH_I2C_Read... [14:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:14]Read from MH i2c: E2 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 03 00 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 03 00 95 1B 00 90 00 24 [14:34:14]RAPDU: 90 00 [14:34:14]wFMCommunicate OK [14:34:14]wFMCommunicate request_size=4 [14:34:14]MH_SAM_APDU [14:34:14]CAPDU: 80 0D 03 02 [14:34:14]Write to MH i2c: E2 08 00 96 1B 80 0D 03 02 00 00 00 00 2C [14:34:14]Write i2c OK [14:34:14]MH_I2C_Read... [14:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:14]Read from MH i2c: E2 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 0B 00 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 0B 00 96 1B 00 F1 79 B2 66 DB ED 57 10 90 00 DE [14:34:14]RAPDU: F1 79 B2 66 DB ED 57 10 90 00 [14:34:14]wFMCommunicate OK [14:34:14]SAM_PROTO_SignData done [14:34:14]FM_MakeSignedData done [14:34:14]CreateOFDProtocolMessage [14:34:14]wFMCommunicate request_size=4 [14:34:14]MH_SAM_APDU [14:34:14]CAPDU: 80 11 00 00 [14:34:14]Write to MH i2c: E2 08 00 97 1B 80 11 00 00 00 00 00 00 2C [14:34:14]Write i2c OK [14:34:14]MH_I2C_Read... [14:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:14]Read from MH i2c: E2 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 17 00 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 17 00 97 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 7F [14:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:34:14]wFMCommunicate OK [14:34:14]CreateOFDProtocolMessage done [14:34:14]OFDSenderStorePacket 145726 [14:34:14]StoreOFDPacket docnum=145726 [14:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 0D B5 0D 01 D9 36 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 67 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3E 39 02 00 35 04 06 00 BC FD 5D 4C 3D 0B F1 79 B2 66 DB ED 57 10 [14:34:14]CheckFolder [14:34:14]dirname=/storage/ofd_packets [14:34:14]CheckFolder done [14:34:14]ProducePacketName [14:34:14]name=ofd_packets/00145726 [14:34:14]NVStorageSaveData ofd_packets/00145726 [14:34:14]File name is /storage/ofd_packets/00145726 [14:34:14]Write 307 bytes [14:34:14]NVStorageSaveData done [14:34:14]OFDSenderStorePacket done [14:34:14]KKMCreateOFDPacket done [14:34:14]NVStorageSaveData kkm_last_timestamp [14:34:14]File name is /storage/kkm_last_timestamp [14:34:14]Write 4 bytes [14:34:14]NVStorageSaveData done [14:34:14]ExternCall_PrintAddStr [14:34:14]wPrintStart [14:34:14]Write to MH i2c: 01 00 00 98 1B B3 [14:34:14]Write i2c OK [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: 01 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: 01 07 00 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: 01 07 00 98 1B 00 00 00 00 00 FF 0F C8 [14:34:14]RasterBufferAndPrint [14:34:14]line Счет N : (1)160481 [14:34:14]line ИНН: 02508201610067 [14:34:14]line Контрольно-Кассовый Чек [14:34:14]line ПРОДАЖА [14:34:14]line ТРК (МРК, ГНК) : 31 [14:34:14]line Товар: 2710194240 [14:34:14]line D-Energy Дт-К-2 [14:34:14]line 6.480 * 77.20 [14:34:14]line = 500.26 [14:34:14]line НДС 12% НСП 1% [14:34:14]line > о реализуемом товаре [14:34:14]line ОКРУГЛЕНИЕ: -0.26 [14:34:14]line ИТОГО: 500.00 [14:34:14]line Внесено: 500.00 [14:34:14]line СДАЧА: 0.00 [14:34:14]line НСП 1% : 4.43 [14:34:14]line НДС 12% : 53.12 [14:34:14]line Наличными: 500.00 [14:34:14]line Безнал.: 0.00 [14:34:14]line Место: АЗС № 126 "Партнер Нефть" [14:34:14]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:34:14]line СНО: Общий режим [14:34:14]line Чек 149 27.10.2024 14:34 [14:34:14]line Смена: 545 ФФД: 1.0 [14:34:14]line ЗНМ: 0300000085 [14:34:14]line РНМ: 0000000000091683 [14:34:14]line Версия ККМ: 001 [14:34:14]line ФМ: 0000000000871745 [14:34:14]line ФД: 145726 [14:34:14]line ФПД: 207796378025227 [14:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143415&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145726&fm=207796378025227&tin=02508201610067®Number=0000000000091683&sum=50000 [14:34:15]OFD Sender: Processing packet 145726 [packets to send 206, broken 205] [14:34:15]ProducePacketName [14:34:15]name=ofd_packets/00145726 [14:34:15]OFD Sender: To server: pG, [14:34:15]CommunicateWithHost lk.salyk.kg:30040 [14:34:15]ConnectInit lk.salyk.kg [14:34:15]written 0, free lines is 4095 [14:34:15]Connected sock=9 [14:34:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 0D B5 0D 01 D9 36 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 67 4F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3E 39 02 00 35 04 06 00 BC FD 5D 4C 3D 0B F1 79 B2 66 DB ED 57 10 [14:34:15]Write to MH i2c: 01 00 00 C3 1B DE [14:34:15]Write i2c OK [14:34:15]MH_I2C_Read... [14:34:15]Read from MH i2c: 01 [14:34:15]MH_I2C_Read... [14:34:15]Read from MH i2c: 01 07 00 [14:34:15]MH_I2C_Read... [14:34:15]Read from MH i2c: 01 07 00 C3 1B 00 00 00 00 00 C2 0C B3 [14:34:15]RasterBufferAndPrint [14:34:15]line [14:34:15]line [14:34:15]line [14:34:15]line [14:34:15]line [14:34:15]written 0, free lines is 3272 [14:34:15]MH_Cut [14:34:15]Write to MH i2c: D1 01 00 CA 1B 01 B7 [14:34:15]Write i2c OK [14:34:15]MH_I2C_Read... [14:34:15]Read from MH i2c: D1 [14:34:15]MH_I2C_Read... [14:34:15]Read from MH i2c: D1 01 00 [14:34:15]MH_I2C_Read... [14:34:15]Read from MH i2c: D1 01 00 CA 1B 00 B6 [14:34:15]Write to MH i2c: 01 00 00 CB 1B E6 [14:34:15]Write i2c OK [14:34:15]MH_I2C_Read... [14:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 86 D1 47 00 C4 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3E 39 02 00 F4 03 04 00 94 F4 1D 67 B6 04 01 00 00 6B 1B 1A C2 EE D6 35 3B [14:34:15]CommunicateWithHost err = 0 [14:34:15]CheckOFDResponse [14:34:15]1017 (14) - 77093643461234 [14:34:15]1041 (16) - 0000000000871745 [14:34:15]1040 (4) - 145726 [14:34:15]1012 (4) - 27.10.2024 08:06 [14:34:15]1206 (1) - 0 [14:34:15]OFD Sender: Remove packet 145726 [14:34:15]ProducePacketName [14:34:15]name=ofd_packets/00145726 [14:34:15]NVStorageDeleteData [14:34:16]OFD Sender: No OFD packet to send [14:34:16]*** Cut start [14:34:16]*** Partial cut [14:34:16]*** CUTSNS_PIN = 1 [14:34:16]*** CUTSNS_PIN = 0 [14:34:16]*** Brake cut motor [14:34:17]Read from MH i2c: 01 [14:34:17]MH_I2C_Read... [14:34:17]*** Stop cut motor [14:34:17]*** Cut end [14:34:17]Read from MH i2c: 01 07 00 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: 01 07 00 CB 1B 00 00 00 00 00 FF 0F FB [14:34:17]process_action close_receipt done [14:34:17]requested_data is exist [14:34:17]produce_requested_data [14:34:17]requested_item fm.sn is exist - process it [14:34:17]wFMCommunicate request_size=4 [14:34:17]MH_SAM_APDU [14:34:17]CAPDU: 80 11 00 00 [14:34:17]Write to MH i2c: E2 08 00 CC 1B 80 11 00 00 00 00 00 00 61 [14:34:17]Write i2c OK [14:34:17]MH_I2C_Read... [14:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:17]Read from MH i2c: E2 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 17 00 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 17 00 CC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B4 [14:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:34:17]wFMCommunicate OK [14:34:17]requested_item fd.num is exist - process it [14:34:17]SAM_PROTO_GetFieldsCounters [14:34:17]wFMCommunicate request_size=4 [14:34:17]MH_SAM_APDU [14:34:17]CAPDU: 80 13 00 00 [14:34:17]Write to MH i2c: E2 08 00 CD 1B 80 13 00 00 00 00 00 00 64 [14:34:17]Write i2c OK [14:34:17]MH_I2C_Read... [14:34:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:17]Read from MH i2c: E2 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 62 00 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 62 00 CD 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [14:34:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:17]wFMCommunicate OK [14:34:17]SAM_PROTO_GetFieldsCounters done [14:34:17]requested_item shift.num is exist - process it [14:34:17]requested_item shift.opened is exist - process it [14:34:17]req_shift_opened [14:34:17]FM_GetShiftState [14:34:17]SAM_PROTO_GetShiftState [14:34:17]wFMCommunicate request_size=4 [14:34:17]MH_SAM_APDU [14:34:17]CAPDU: 80 13 01 00 [14:34:17]Write to MH i2c: E2 08 00 CE 1B 80 13 01 00 00 00 00 00 66 [14:34:17]Write i2c OK [14:34:17]MH_I2C_Read... [14:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:17]Read from MH i2c: E2 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 0E 00 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 0E 00 CE 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 DE [14:34:17]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:34:17]wFMCommunicate OK [14:34:17]SAM_PROTO_GetShiftState done [14:34:17]FM_GetShiftState done [14:34:17]req_shift_opened done [14:34:17]requested_item shift.open_date is exist - process it [14:34:17]req_shift_open_date [14:34:17]req_shift_open_date done [14:34:17]produce_requested_data done [14:34:17]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145726,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:34:17]process_action_free close_receipt [14:34:17]json_value_free [14:34:17]json_value_free done [14:34:17]process_json_proto returns [14:34:17]Send response to host [14:34:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145726,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:34:17]free response buf [14:34:17]execute_script done [14:34:17]execute_script returns [14:34:17]free content buf [14:34:17]Sock 7.Close socket [14:34:17]Sock 7.Thread stoped [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:37:57]accept exits with 10 [14:37:57]New connection [14:37:57]New thread 3066596708 created [14:37:57]Thread 3066740068 joined [14:37:57]Waiting for new connection... [14:37:57] Sock 10.Parse request [14:37:57]Sock 10.Check first char [14:37:57]Sock 10.First char is OK [14:37:57]request: POST /json_proto HTTP/1.0 [14:37:57]Method: POST [14:37:57]URL: /json_proto [14:37:57]Method is POST - this is cgi request [14:37:57]url: /json_proto [14:37:57]query_string will be loaded in cgi processing [14:37:57]execute_cgi json_proto POST (null) [14:37:57]execute_cgi path=json_proto method=POST [14:37:57]POST find Content-Length [14:37:57]Host: 172.17.40.195:8080 [14:37:57]Content-Length: 682 [14:37:57]Content-Type: application/json [14:37:57] [14:37:57]POST finish read [14:37:57]Found Content-Length = 682 [14:37:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:37:57]execute_script... [14:37: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)160482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:37:57]POST & json_proto [14:37:57]process_json_proto [14:37:57]json parsed OK: [14:37:57]protocol is kg_v1.0 [14:37:57]action value=close_receipt [14:37:57]process_action close_receipt [14:37:57]cmd_close_receipt [14:37:57]MH_GetDate [14:37:57]Write to MH i2c: F0 00 00 CF 1B D9 [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: F0 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: F0 09 00 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: F0 09 00 CF 1B 00 47 50 1E 67 D5 8D 6C 64 30 [14:37:57]GetLastDocTimeStamp 1730039655 [14:37:57]current date 1730039879 [14:37:57]FM_GetShiftState [14:37:57]SAM_PROTO_GetShiftState [14:37:57]wFMCommunicate request_size=4 [14:37:57]MH_SAM_APDU [14:37:57]CAPDU: 80 13 01 00 [14:37:57]Write to MH i2c: E2 08 00 D0 1B 80 13 01 00 00 00 00 00 68 [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:57]Read from MH i2c: E2 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 0E 00 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: E2 0E 00 D0 1B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E0 [14:37:57]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:37:57]wFMCommunicate OK [14:37:57]SAM_PROTO_GetShiftState done [14:37:57]FM_GetShiftState done [14:37:57]opened in 1729988959 [14:37:57]opened+sec_in_day 1730075359 [14:37:57]quantity*price = 100021 [14:37:57]sum+1 = 100023 [14:37:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 150 27.10.2024 14:37 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145727 ФПД: 129404826096185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143759&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145727&fm=129404826096185&tin=02508201610067®Number=0000000000091683&sum=100000 [14:37:58]StoreToDocumentArchive [14:37:58]shift 545 fd 145727 [14:37:58]save to /storage/0545/doc_00145727 [14:37:58]save last doc name /storage/0545/doc_00145727 to /storage/kkm_last_doc_name [14:37:58]save OK [14:37:58]Clear old archive folders... [14:37:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:58]tlvbuf is B6EA6720 [14:37:58]SAM_PROTO_ClearQueue [14:37:58]wFMCommunicate request_size=4 [14:37:58]MH_SAM_APDU [14:37:58]CAPDU: 80 09 00 00 [14:37:58]Write to MH i2c: E2 08 00 DD 1B 80 09 00 00 00 00 00 00 6A [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:58]Read from MH i2c: E2 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 DD 1B 00 90 00 6C [14:37:58]RAPDU: 90 00 [14:37:58]wFMCommunicate OK [14:37:58]SAM_PROTO_ClearQueue done [14:37:58]KKMCreateOFDPacket [14:37:58]OFDProtocolAddRootSTLVToBuf [14:37:58]FM_MakeSignedData [14:37:58]FM_MakeSignedData [14:37:58]SAM_PROTO_SignData [14:37:58]wFMCommunicate request_size=4 [14:37:58]MH_SAM_APDU [14:37:58]CAPDU: 80 0D 01 02 [14:37:58]Write to MH i2c: E2 08 00 DE 1B 80 0D 01 02 00 00 00 00 72 [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:58]Read from MH i2c: E2 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 DE 1B 00 90 00 6D [14:37:58]RAPDU: 90 00 [14:37:58]wFMCommunicate OK [14:37:58]wFMCommunicate request_size=255 [14:37:58]MH_SAM_APDU [14:37: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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 47 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3F 39 02 00 35 04 06 00 75 [14:37:58]Write to MH i2c: E2 02 01 DF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 47 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3F 39 02 00 35 04 06 00 75 00 00 E2 [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:58]Read from MH i2c: E2 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 DF 1B 00 90 00 6E [14:37:58]RAPDU: 90 00 [14:37:58]wFMCommunicate OK [14:37:58]wFMCommunicate request_size=10 [14:37:58]MH_SAM_APDU [14:37:58]CAPDU: 80 0D 02 02 05 B1 68 B1 12 39 [14:37:58]Write to MH i2c: E2 0D 00 E0 1B 80 0D 02 02 05 00 B1 68 B1 12 39 00 00 94 [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:58]Read from MH i2c: E2 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 03 00 E0 1B 00 90 00 6F [14:37:58]RAPDU: 90 00 [14:37:58]wFMCommunicate OK [14:37:58]wFMCommunicate request_size=4 [14:37:58]MH_SAM_APDU [14:37:58]CAPDU: 80 0D 03 02 [14:37:58]Write to MH i2c: E2 08 00 E1 1B 80 0D 03 02 00 00 00 00 77 [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:58]Read from MH i2c: E2 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 0B 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 0B 00 E1 1B 00 CE A7 1F 99 83 91 9C 38 90 00 8D [14:37:58]RAPDU: CE A7 1F 99 83 91 9C 38 90 00 [14:37:58]wFMCommunicate OK [14:37:58]SAM_PROTO_SignData done [14:37:58]FM_MakeSignedData done [14:37:58]CreateOFDProtocolMessage [14:37:58]wFMCommunicate request_size=4 [14:37:58]MH_SAM_APDU [14:37:58]CAPDU: 80 11 00 00 [14:37:58]Write to MH i2c: E2 08 00 E2 1B 80 11 00 00 00 00 00 00 77 [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:58]Read from MH i2c: E2 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 17 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 17 00 E2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 CA [14:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:37:58]wFMCommunicate OK [14:37:58]CreateOFDProtocolMessage done [14:37:58]OFDSenderStorePacket 145727 [14:37:58]StoreOFDPacket docnum=145727 [14:37:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1B BF 07 01 8E 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 47 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3F 39 02 00 35 04 06 00 75 B1 68 B1 12 39 CE A7 1F 99 83 91 9C 38 [14:37:58]CheckFolder [14:37:58]dirname=/storage/ofd_packets [14:37:58]CheckFolder done [14:37:58]ProducePacketName [14:37:58]name=ofd_packets/00145727 [14:37:58]NVStorageSaveData ofd_packets/00145727 [14:37:58]File name is /storage/ofd_packets/00145727 [14:37:58]Write 301 bytes [14:37:58]NVStorageSaveData done [14:37:58]OFDSenderStorePacket done [14:37:58]KKMCreateOFDPacket done [14:37:58]NVStorageSaveData kkm_last_timestamp [14:37:58]File name is /storage/kkm_last_timestamp [14:37:58]Write 4 bytes [14:37:58]NVStorageSaveData done [14:37:58]ExternCall_PrintAddStr [14:37:58]wPrintStart [14:37:58]Write to MH i2c: 01 00 00 E3 1B FE [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: 01 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: 01 07 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: 01 07 00 E3 1B 00 00 00 00 00 FF 0F 13 [14:37:58]RasterBufferAndPrint [14:37:58]line Счет N : (1)160482 [14:37:58]line ИНН: 02508201610067 [14:37:58]line Контрольно-Кассовый Чек [14:37:58]line ПРОДАЖА [14:37:58]line ТРК (МРК, ГНК) : 33 [14:37:58]line Товар: 2710124500 [14:37:58]line Аи-95-К-3 [14:37:58]line 13.480 * 74.20 [14:37:58]line = 1000.22 [14:37:58]line НДС 12% НСП 1% [14:37:58]line > о реализуемом товаре [14:37:58]line ОКРУГЛЕНИЕ: -0.22 [14:37:58]line ИТОГО: 1000.00 [14:37:58]line Внесено: 1000.00 [14:37:58]line СДАЧА: 0.00 [14:37:58]line НСП 1% : 8.85 [14:37:58]line НДС 12% : 106.22 [14:37:58]line Наличными: 1000.00 [14:37:58]line Безнал.: 0.00 [14:37:58]line Место: АЗС № 126 "Партнер Нефть" [14:37:58]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:37:58]line СНО: Общий режим [14:37:58]line Чек 150 27.10.2024 14:37 [14:37:58]line Смена: 545 ФФД: 1.0 [14:37:58]line ЗНМ: 0300000085 [14:37:58]line РНМ: 0000000000091683 [14:37:58]line Версия ККМ: 001 [14:37:58]line ФМ: 0000000000871745 [14:37:58]line ФД: 145727 [14:37:58]line ФПД: 129404826096185 [14:37:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143759&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145727&fm=129404826096185&tin=02508201610067®Number=0000000000091683&sum=100000 [14:37:59]OFD Sender: Processing packet 145727 [packets to send 206, broken 205] [14:37:59]ProducePacketName [14:37:59]name=ofd_packets/00145727 [14:37:59]OFD Sender: To server: pG, [14:37:59]CommunicateWithHost lk.salyk.kg:30040 [14:37:59]ConnectInit lk.salyk.kg [14:37:59]written 0, free lines is 4095 [14:37:59]Connected sock=7 [14:37:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1B BF 07 01 8E 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 47 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3F 39 02 00 35 04 06 00 75 B1 68 B1 12 39 CE A7 1F 99 83 91 9C 38 [14:37:59]Write to MH i2c: 01 00 00 0E 1C 2A [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: 01 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: 01 07 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: 01 07 00 0E 1C 00 00 00 00 00 BE 0C FB [14:37:59]RasterBufferAndPrint [14:37:59]line [14:37:59]line [14:37:59]line [14:37:59]line [14:37:59]line [14:37:59]written 0, free lines is 3268 [14:37:59]MH_Cut [14:37:59]Write to MH i2c: D1 01 00 15 1C 01 03 [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: D1 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: D1 01 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: D1 01 00 15 1C 00 02 [14:37:59]Write to MH i2c: 01 00 00 16 1C 32 [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 3B D2 47 00 B5 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 3F 39 02 00 F4 03 04 00 74 F5 1D 67 B6 04 01 00 00 A4 82 DD A1 31 7B 53 F6 [14:37:59]CommunicateWithHost err = 0 [14:37:59]CheckOFDResponse [14:37:59]1017 (14) - 77093643461234 [14:37:59]1041 (16) - 0000000000871745 [14:37:59]1040 (4) - 145727 [14:37:59]1012 (4) - 27.10.2024 08:10 [14:37:59]1206 (1) - 0 [14:37:59]OFD Sender: Remove packet 145727 [14:37:59]ProducePacketName [14:37:59]name=ofd_packets/00145727 [14:37:59]NVStorageDeleteData [14:38:00]OFD Sender: No OFD packet to send [14:38:00]*** Cut start [14:38:00]*** Partial cut [14:38:00]*** CUTSNS_PIN = 1 [14:38:00]*** CUTSNS_PIN = 0 [14:38:00]*** Brake cut motor [14:38:01]Read from MH i2c: 01 [14:38:01]MH_I2C_Read... [14:38:01]*** Stop cut motor [14:38:01]*** Cut end [14:38:01]Read from MH i2c: 01 07 00 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: 01 07 00 16 1C 00 00 00 00 00 FF 0F 47 [14:38:01]process_action close_receipt done [14:38:01]requested_data is exist [14:38:01]produce_requested_data [14:38:01]requested_item fm.sn is exist - process it [14:38:01]wFMCommunicate request_size=4 [14:38:01]MH_SAM_APDU [14:38:01]CAPDU: 80 11 00 00 [14:38:01]Write to MH i2c: E2 08 00 17 1C 80 11 00 00 00 00 00 00 AD [14:38:01]Write i2c OK [14:38:01]MH_I2C_Read... [14:38:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:01]Read from MH i2c: E2 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: E2 17 00 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: E2 17 00 17 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 00 [14:38:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:38:01]wFMCommunicate OK [14:38:01]requested_item fd.num is exist - process it [14:38:01]SAM_PROTO_GetFieldsCounters [14:38:01]wFMCommunicate request_size=4 [14:38:01]MH_SAM_APDU [14:38:01]CAPDU: 80 13 00 00 [14:38:01]Write to MH i2c: E2 08 00 18 1C 80 13 00 00 00 00 00 00 B0 [14:38:01]Write i2c OK [14:38:01]MH_I2C_Read... [14:38:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:01]Read from MH i2c: E2 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: E2 62 00 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: E2 62 00 18 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [14:38:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 3F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:01]wFMCommunicate OK [14:38:01]SAM_PROTO_GetFieldsCounters done [14:38:01]requested_item shift.num is exist - process it [14:38:01]requested_item shift.opened is exist - process it [14:38:01]req_shift_opened [14:38:01]FM_GetShiftState [14:38:01]SAM_PROTO_GetShiftState [14:38:01]wFMCommunicate request_size=4 [14:38:01]MH_SAM_APDU [14:38:01]CAPDU: 80 13 01 00 [14:38:01]Write to MH i2c: E2 08 00 19 1C 80 13 01 00 00 00 00 00 B2 [14:38:01]Write i2c OK [14:38:01]MH_I2C_Read... [14:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:01]Read from MH i2c: E2 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: E2 0E 00 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: E2 0E 00 19 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 2A [14:38:01]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:38:01]wFMCommunicate OK [14:38:01]SAM_PROTO_GetShiftState done [14:38:01]FM_GetShiftState done [14:38:01]req_shift_opened done [14:38:01]requested_item shift.open_date is exist - process it [14:38:01]req_shift_open_date [14:38:01]req_shift_open_date done [14:38:01]produce_requested_data done [14:38:01]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145727,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:38:01]process_action_free close_receipt [14:38:01]json_value_free [14:38:01]json_value_free done [14:38:01]process_json_proto returns [14:38:01]Send response to host [14:38:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145727,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:38:01]free response buf [14:38:01]execute_script done [14:38:01]execute_script returns [14:38:01]free content buf [14:38:01]Sock 10.Close socket [14:38:01]Sock 10.Thread stoped [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:22]accept exits with 9 [14:38:22]New connection [14:38:22]New thread 3066740068 created [14:38:22]Thread 3066596708 joined [14:38:22]Waiting for new connection... [14:38:22] Sock 9.Parse request [14:38:22]Sock 9.Check first char [14:38:22]Sock 9.First char is OK [14:38:22]request: POST /json_proto HTTP/1.0 [14:38:22]Method: POST [14:38:22]URL: /json_proto [14:38:22]Method is POST - this is cgi request [14:38:22]url: /json_proto [14:38:22]query_string will be loaded in cgi processing [14:38:22]execute_cgi json_proto POST (null) [14:38:22]execute_cgi path=json_proto method=POST [14:38:22]POST find Content-Length [14:38:22]Host: 172.17.40.195:8080 [14:38:22]Content-Length: 800 [14:38:22]Content-Type: application/json [14:38:22] [14:38:22]POST finish read [14:38:22]Found Content-Length = 800 [14:38:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4195148", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:22]execute_script... [14:38: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)160483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4195148", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:22]POST & json_proto [14:38:22]process_json_proto [14:38:22]json parsed OK: [14:38:22]protocol is kg_v1.0 [14:38:22]action value=close_receipt [14:38:22]process_action close_receipt [14:38:22]cmd_close_receipt [14:38:22]MH_GetDate [14:38:22]Write to MH i2c: F0 00 00 1A 1C 25 [14:38:22]Write i2c OK [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: F0 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: F0 09 00 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: F0 09 00 1A 1C 00 60 50 1E 67 D5 8D 6C 64 95 [14:38:22]GetLastDocTimeStamp 1730039879 [14:38:22]current date 1730039904 [14:38:22]FM_GetShiftState [14:38:22]SAM_PROTO_GetShiftState [14:38:22]wFMCommunicate request_size=4 [14:38:22]MH_SAM_APDU [14:38:22]CAPDU: 80 13 01 00 [14:38:22]Write to MH i2c: E2 08 00 1B 1C 80 13 01 00 00 00 00 00 B4 [14:38:22]Write i2c OK [14:38:22]MH_I2C_Read... [14:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:22]Read from MH i2c: E2 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: E2 0E 00 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: E2 0E 00 1B 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 2C [14:38:22]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:38:22]wFMCommunicate OK [14:38:22]SAM_PROTO_GetShiftState done [14:38:22]FM_GetShiftState done [14:38:22]opened in 1729988959 [14:38:22]opened+sec_in_day 1730075359 [14:38:22]quantity*price = 0 [14:38:22]sum+1 = 1 [14:38:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 151 27.10.2024 14:38 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: Топливные Талоны 4195148 ФМ: 0000000000871745 ФД: 145728 ФПД: 35588600561347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143824&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145728&fm=35588600561347&tin=02508201610067®Number=0000000000091683&sum=0 [14:38:23]StoreToDocumentArchive [14:38:23]shift 545 fd 145728 [14:38:23]save to /storage/0545/doc_00145728 [14:38:23]save last doc name /storage/0545/doc_00145728 to /storage/kkm_last_doc_name [14:38:23]save OK [14:38:23]Clear old archive folders... [14:38:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:23]tlvbuf is B6F24900 [14:38:23]SAM_PROTO_ClearQueue [14:38:23]wFMCommunicate request_size=4 [14:38:23]MH_SAM_APDU [14:38:23]CAPDU: 80 09 00 00 [14:38:23]Write to MH i2c: E2 08 00 28 1C 80 09 00 00 00 00 00 00 B6 [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:23]Read from MH i2c: E2 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 28 1C 00 90 00 B8 [14:38:23]RAPDU: 90 00 [14:38:23]wFMCommunicate OK [14:38:23]SAM_PROTO_ClearQueue done [14:38:23]KKMCreateOFDPacket [14:38:23]OFDProtocolAddRootSTLVToBuf [14:38:23]FM_MakeSignedData [14:38:23]FM_MakeSignedData [14:38:23]SAM_PROTO_SignData [14:38:23]wFMCommunicate request_size=4 [14:38:23]MH_SAM_APDU [14:38:23]CAPDU: 80 0D 01 02 [14:38:23]Write to MH i2c: E2 08 00 29 1C 80 0D 01 02 00 00 00 00 BE [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:23]Read from MH i2c: E2 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 29 1C 00 90 00 B9 [14:38:23]RAPDU: 90 00 [14:38:23]wFMCommunicate OK [14:38:23]wFMCommunicate request_size=255 [14:38:23]MH_SAM_APDU [14:38: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 60 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 40 39 02 00 35 04 06 00 20 [14:38:23]Write to MH i2c: E2 02 01 2A 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 60 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 40 39 02 00 35 04 06 00 20 00 00 88 [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:23]Read from MH i2c: E2 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 2A 1C 00 90 00 BA [14:38:23]RAPDU: 90 00 [14:38:23]wFMCommunicate OK [14:38:23]wFMCommunicate request_size=10 [14:38:23]MH_SAM_APDU [14:38:23]CAPDU: 80 0D 02 02 05 5E 1D E4 FE C3 [14:38:23]Write to MH i2c: E2 0D 00 2B 1C 80 0D 02 02 05 00 5E 1D E4 FE C3 00 00 EB [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:23]Read from MH i2c: E2 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 2B 1C 00 90 00 BB [14:38:23]RAPDU: 90 00 [14:38:23]wFMCommunicate OK [14:38:23]wFMCommunicate request_size=4 [14:38:23]MH_SAM_APDU [14:38:23]CAPDU: 80 0D 03 02 [14:38:23]Write to MH i2c: E2 08 00 2C 1C 80 0D 03 02 00 00 00 00 C3 [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:23]Read from MH i2c: E2 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 0B 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 0B 00 2C 1C 00 C9 E3 ED 9C A6 0B CB 94 90 00 09 [14:38:23]RAPDU: C9 E3 ED 9C A6 0B CB 94 90 00 [14:38:23]wFMCommunicate OK [14:38:23]SAM_PROTO_SignData done [14:38:23]FM_MakeSignedData done [14:38:23]CreateOFDProtocolMessage [14:38:23]wFMCommunicate request_size=4 [14:38:23]MH_SAM_APDU [14:38:23]CAPDU: 80 11 00 00 [14:38:23]Write to MH i2c: E2 08 00 2D 1C 80 11 00 00 00 00 00 00 C3 [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:23]Read from MH i2c: E2 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 17 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 17 00 2D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 16 [14:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:38:23]wFMCommunicate OK [14:38:23]CreateOFDProtocolMessage done [14:38:23]OFDSenderStorePacket 145728 [14:38:23]StoreOFDPacket docnum=145728 [14:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 0E 82 07 01 19 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 60 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 40 39 02 00 35 04 06 00 20 5E 1D E4 FE C3 C9 E3 ED 9C A6 0B CB 94 [14:38:23]CheckFolder [14:38:23]dirname=/storage/ofd_packets [14:38:23]CheckFolder done [14:38:23]ProducePacketName [14:38:23]name=ofd_packets/00145728 [14:38:23]NVStorageSaveData ofd_packets/00145728 [14:38:23]File name is /storage/ofd_packets/00145728 [14:38:23]Write 301 bytes [14:38:23]NVStorageSaveData done [14:38:23]OFDSenderStorePacket done [14:38:23]KKMCreateOFDPacket done [14:38:23]NVStorageSaveData kkm_last_timestamp [14:38:23]File name is /storage/kkm_last_timestamp [14:38:23]Write 4 bytes [14:38:23]NVStorageSaveData done [14:38:23]ExternCall_PrintAddStr [14:38:23]wPrintStart [14:38:23]Write to MH i2c: 01 00 00 2E 1C 4A [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: 01 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: 01 07 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: 01 07 00 2E 1C 00 00 00 00 00 FF 0F 5F [14:38:23]RasterBufferAndPrint [14:38:23]line Счет N : (1)160483 [14:38:23]line ИНН: 02508201610067 [14:38:23]line Контрольно-Кассовый Чек [14:38:23]line ПРОДАЖА [14:38:23]line ТРК (МРК, ГНК) : 52 [14:38:23]line Товар: 2710124130 [14:38:23]line Аи-92-К-2 [14:38:23]line 10.000 * 0.00 [14:38:23]line = 0.00 [14:38:23]line НДС 12% НСП 1% [14:38:23]line > о реализуемом товаре [14:38:23]line ИТОГО: 0.00 [14:38:23]line НСП 1% : 0.00 [14:38:23]line НДС 12% : 0.00 [14:38:23]line Наличными: 0.00 [14:38:23]line Безнал.: 0.00 [14:38:23]line Место: АЗС № 126 "Партнер Нефть" [14:38:23]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:38:23]line СНО: Общий режим [14:38:23]line Чек 151 27.10.2024 14:38 [14:38:23]line Смена: 545 ФФД: 1.0 [14:38:23]line ЗНМ: 0300000085 [14:38:23]line РНМ: 0000000000091683 [14:38:23]line Версия ККМ: 001 [14:38:23]line Талоны: Топливные Талоны [14:38:23]line 4195148 [14:38:23]line ФМ: 0000000000871745 [14:38:23]line ФД: 145728 [14:38:23]line ФПД: 35588600561347 [14:38:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143824&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145728&fm=35588600561347&tin=02508201610067®Number=0000000000091683&sum=0 [14:38:23]written 0, free lines is 4095 [14:38:23]OFD Sender: Processing packet 145728 [packets to send 206, broken 205] [14:38:23]ProducePacketName [14:38:23]name=ofd_packets/00145728 [14:38:23]OFD Sender: To server: pG, [14:38:23]CommunicateWithHost lk.salyk.kg:30040 [14:38:23]ConnectInit lk.salyk.kg [14:38:24]Connected sock=10 [14:38:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 0E 82 07 01 19 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 60 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 40 39 02 00 35 04 06 00 20 5E 1D E4 FE C3 C9 E3 ED 9C A6 0B CB 94 [14:38:24]Write to MH i2c: 01 00 00 58 1C 74 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 58 1C 00 00 00 00 00 C4 0C 4B [14:38:24]RasterBufferAndPrint [14:38:24]line [14:38:24]line [14:38:24]line [14:38:24]line [14:38:24]line [14:38:24]written 0, free lines is 3274 [14:38:24]MH_Cut [14:38:24]Write to MH i2c: D1 01 00 5F 1C 01 4D [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: D1 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: D1 01 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: D1 01 00 5F 1C 00 4C [14:38:24]Write to MH i2c: 01 00 00 60 1C 7C [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 4A D7 47 00 C6 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 40 39 02 00 F4 03 04 00 8D F5 1D 67 B6 04 01 00 00 9D 0E DD 9D 44 16 0A 0B [14:38:24]CommunicateWithHost err = 0 [14:38:24]CheckOFDResponse [14:38:24]1017 (14) - 77093643461234 [14:38:24]1041 (16) - 0000000000871745 [14:38:24]1040 (4) - 145728 [14:38:24]1012 (4) - 27.10.2024 08:10 [14:38:24]1206 (1) - 0 [14:38:24]OFD Sender: Remove packet 145728 [14:38:24]ProducePacketName [14:38:24]name=ofd_packets/00145728 [14:38:24]NVStorageDeleteData [14:38:25]OFD Sender: No OFD packet to send [14:38:25]*** Cut start [14:38:25]*** Partial cut [14:38:25]*** CUTSNS_PIN = 1 [14:38:25]*** CUTSNS_PIN = 0 [14:38:25]*** Brake cut motor [14:38:25]Read from MH i2c: 01 [14:38:25]MH_I2C_Read... [14:38:25]*** Stop cut motor [14:38:25]*** Cut end [14:38:25]Read from MH i2c: 01 07 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 07 00 60 1C 00 00 00 00 00 FF 0F 91 [14:38:25]process_action close_receipt done [14:38:25]requested_data is exist [14:38:25]produce_requested_data [14:38:25]requested_item fm.sn is exist - process it [14:38:25]wFMCommunicate request_size=4 [14:38:25]MH_SAM_APDU [14:38:25]CAPDU: 80 11 00 00 [14:38:25]Write to MH i2c: E2 08 00 61 1C 80 11 00 00 00 00 00 00 F7 [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:25]Read from MH i2c: E2 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 17 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 17 00 61 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 4A [14:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:38:25]wFMCommunicate OK [14:38:25]requested_item fd.num is exist - process it [14:38:25]SAM_PROTO_GetFieldsCounters [14:38:25]wFMCommunicate request_size=4 [14:38:25]MH_SAM_APDU [14:38:25]CAPDU: 80 13 00 00 [14:38:25]Write to MH i2c: E2 08 00 62 1C 80 13 00 00 00 00 00 00 FA [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:25]Read from MH i2c: E2 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 62 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 62 00 62 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 40 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [14:38:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 40 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:25]wFMCommunicate OK [14:38:25]SAM_PROTO_GetFieldsCounters done [14:38:25]requested_item shift.num is exist - process it [14:38:25]requested_item shift.opened is exist - process it [14:38:25]req_shift_opened [14:38:25]FM_GetShiftState [14:38:25]SAM_PROTO_GetShiftState [14:38:25]wFMCommunicate request_size=4 [14:38:25]MH_SAM_APDU [14:38:25]CAPDU: 80 13 01 00 [14:38:25]Write to MH i2c: E2 08 00 63 1C 80 13 01 00 00 00 00 00 FC [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:26]Read from MH i2c: E2 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: E2 0E 00 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: E2 0E 00 63 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 74 [14:38:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:38:26]wFMCommunicate OK [14:38:26]SAM_PROTO_GetShiftState done [14:38:26]FM_GetShiftState done [14:38:26]req_shift_opened done [14:38:26]requested_item shift.open_date is exist - process it [14:38:26]req_shift_open_date [14:38:26]req_shift_open_date done [14:38:26]produce_requested_data done [14:38:26]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145728,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:38:26]process_action_free close_receipt [14:38:26]json_value_free [14:38:26]json_value_free done [14:38:26]process_json_proto returns [14:38:26]Send response to host [14:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145728,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:38:26]free response buf [14:38:26]execute_script done [14:38:26]execute_script returns [14:38:26]free content buf [14:38:26]Sock 9.Close socket [14:38:26]Sock 9.Thread stoped [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:48]accept exits with 7 [14:38:48]New connection [14:38:48]New thread 3066596708 created [14:38:48]Thread 3066740068 joined [14:38:48]Waiting for new connection... [14:38:48] Sock 7.Parse request [14:38:48]Sock 7.Check first char [14:38:48]Sock 7.First char is OK [14:38:48]request: POST /json_proto HTTP/1.0 [14:38:48]Method: POST [14:38:48]URL: /json_proto [14:38:48]Method is POST - this is cgi request [14:38:48]url: /json_proto [14:38:48]query_string will be loaded in cgi processing [14:38:48]execute_cgi json_proto POST (null) [14:38:48]execute_cgi path=json_proto method=POST [14:38:48]POST find Content-Length [14:38:48]Host: 172.17.40.195:8080 [14:38:48]Content-Length: 682 [14:38:48]Content-Type: application/json [14:38:48] [14:38:48]POST finish read [14:38:48]Found Content-Length = 682 [14:38:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:38:48]execute_script... [14:38: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)160484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:38:48]POST & json_proto [14:38:48]process_json_proto [14:38:48]json parsed OK: [14:38:48]protocol is kg_v1.0 [14:38:48]action value=close_receipt [14:38:48]process_action close_receipt [14:38:48]cmd_close_receipt [14:38:48]MH_GetDate [14:38:48]Write to MH i2c: F0 00 00 64 1C 6F [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 09 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 09 00 64 1C 00 7A 50 1E 67 D5 8D 6C 64 F9 [14:38:48]GetLastDocTimeStamp 1730039904 [14:38:48]current date 1730039930 [14:38:48]FM_GetShiftState [14:38:48]SAM_PROTO_GetShiftState [14:38:48]wFMCommunicate request_size=4 [14:38:48]MH_SAM_APDU [14:38:48]CAPDU: 80 13 01 00 [14:38:48]Write to MH i2c: E2 08 00 65 1C 80 13 01 00 00 00 00 00 FE [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:48]Read from MH i2c: E2 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 0E 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 0E 00 65 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 76 [14:38:48]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:38:48]wFMCommunicate OK [14:38:48]SAM_PROTO_GetShiftState done [14:38:48]FM_GetShiftState done [14:38:48]opened in 1729988959 [14:38:48]opened+sec_in_day 1730075359 [14:38:48]quantity*price = 100021 [14:38:48]sum+1 = 100023 [14:38:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 152 27.10.2024 14:38 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145729 ФПД: 187500605084053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143850&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145729&fm=187500605084053&tin=02508201610067®Number=0000000000091683&sum=100000 [14:38:49]StoreToDocumentArchive [14:38:49]shift 545 fd 145729 [14:38:49]save to /storage/0545/doc_00145729 [14:38:49]save last doc name /storage/0545/doc_00145729 to /storage/kkm_last_doc_name [14:38:49]save OK [14:38:49]Clear old archive folders... [14:38:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:49]tlvbuf is B6D74630 [14:38:49]SAM_PROTO_ClearQueue [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 09 00 00 [14:38:49]Write to MH i2c: E2 08 00 72 1C 80 09 00 00 00 00 00 00 00 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 72 1C 00 90 00 02 [14:38:49]RAPDU: 90 00 [14:38:49]wFMCommunicate OK [14:38:49]SAM_PROTO_ClearQueue done [14:38:49]KKMCreateOFDPacket [14:38:49]OFDProtocolAddRootSTLVToBuf [14:38:49]FM_MakeSignedData [14:38:49]FM_MakeSignedData [14:38:49]SAM_PROTO_SignData [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 0D 01 02 [14:38:49]Write to MH i2c: E2 08 00 73 1C 80 0D 01 02 00 00 00 00 08 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 73 1C 00 90 00 03 [14:38:49]RAPDU: 90 00 [14:38:49]wFMCommunicate OK [14:38:49]wFMCommunicate request_size=255 [14:38:49]MH_SAM_APDU [14:38: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 7A 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 41 39 02 00 35 04 06 00 AA [14:38:49]Write to MH i2c: E2 02 01 74 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 7A 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 41 39 02 00 35 04 06 00 AA 00 00 E4 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 74 1C 00 90 00 04 [14:38:50]RAPDU: 90 00 [14:38:50]wFMCommunicate OK [14:38:50]wFMCommunicate request_size=10 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 0D 02 02 05 87 E2 F6 11 95 [14:38:50]Write to MH i2c: E2 0D 00 75 1C 80 0D 02 02 05 00 87 E2 F6 11 95 00 00 1A [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 75 1C 00 90 00 05 [14:38:50]RAPDU: 90 00 [14:38:50]wFMCommunicate OK [14:38:50]wFMCommunicate request_size=4 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 0D 03 02 [14:38:50]Write to MH i2c: E2 08 00 76 1C 80 0D 03 02 00 00 00 00 0D [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]OFD Sender: No OFD packet to send [14:38:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 0B 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 0B 00 76 1C 00 48 F4 8F 7B 1B B2 85 04 90 00 AA [14:38:50]RAPDU: 48 F4 8F 7B 1B B2 85 04 90 00 [14:38:50]wFMCommunicate OK [14:38:50]SAM_PROTO_SignData done [14:38:50]FM_MakeSignedData done [14:38:50]CreateOFDProtocolMessage [14:38:50]wFMCommunicate request_size=4 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 11 00 00 [14:38:50]Write to MH i2c: E2 08 00 77 1C 80 11 00 00 00 00 00 00 0D [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 17 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 17 00 77 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 60 [14:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:38:50]wFMCommunicate OK [14:38:50]CreateOFDProtocolMessage done [14:38:50]OFDSenderStorePacket 145729 [14:38:50]StoreOFDPacket docnum=145729 [14:38:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 72 91 07 01 3B 15 5A 03 01 00 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 7A 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 41 39 02 00 35 04 06 00 AA 87 E2 F6 11 95 48 F4 8F 7B 1B B2 85 04 [14:38:50]CheckFolder [14:38:50]dirname=/storage/ofd_packets [14:38:50]CheckFolder done [14:38:50]ProducePacketName [14:38:50]name=ofd_packets/00145729 [14:38:50]NVStorageSaveData ofd_packets/00145729 [14:38:50]File name is /storage/ofd_packets/00145729 [14:38:50]Write 301 bytes [14:38:50]NVStorageSaveData done [14:38:50]OFDSenderStorePacket done [14:38:50]KKMCreateOFDPacket done [14:38:50]NVStorageSaveData kkm_last_timestamp [14:38:50]File name is /storage/kkm_last_timestamp [14:38:50]Write 4 bytes [14:38:50]NVStorageSaveData done [14:38:50]ExternCall_PrintAddStr [14:38:50]wPrintStart [14:38:50]Write to MH i2c: 01 00 00 78 1C 94 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 78 1C 00 00 00 00 00 FF 0F A9 [14:38:50]RasterBufferAndPrint [14:38:50]line Счет N : (1)160484 [14:38:50]line ИНН: 02508201610067 [14:38:50]line Контрольно-Кассовый Чек [14:38:50]line ПРОДАЖА [14:38:50]line ТРК (МРК, ГНК) : 33 [14:38:50]line Товар: 2710124500 [14:38:50]line Аи-95-К-3 [14:38:50]line 13.480 * 74.20 [14:38:50]line = 1000.22 [14:38:50]line НДС 12% НСП 1% [14:38:50]line > о реализуемом товаре [14:38:50]line ОКРУГЛЕНИЕ: -0.22 [14:38:50]line ИТОГО: 1000.00 [14:38:50]line Внесено: 1000.00 [14:38:50]line СДАЧА: 0.00 [14:38:50]line НСП 1% : 8.85 [14:38:50]line НДС 12% : 106.22 [14:38:50]line Наличными: 1000.00 [14:38:50]line Безнал.: 0.00 [14:38:50]line Место: АЗС № 126 "Партнер Нефть" [14:38:50]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:38:50]line СНО: Общий режим [14:38:50]line Чек 152 27.10.2024 14:38 [14:38:50]line Смена: 545 ФФД: 1.0 [14:38:50]line ЗНМ: 0300000085 [14:38:50]line РНМ: 0000000000091683 [14:38:50]line Версия ККМ: 001 [14:38:50]line ФМ: 0000000000871745 [14:38:50]line ФД: 145729 [14:38:50]line ФПД: 187500605084053 [14:38:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143850&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145729&fm=187500605084053&tin=02508201610067®Number=0000000000091683&sum=100000 [14:38:50]OFD Sender: Processing packet 145729 [packets to send 206, broken 205] [14:38:50]ProducePacketName [14:38:50]name=ofd_packets/00145729 [14:38:50]OFD Sender: To server: pG, [14:38:50]CommunicateWithHost lk.salyk.kg:30040 [14:38:50]ConnectInit lk.salyk.kg [14:38:50]written 0, free lines is 4095 [14:38:50]Connected sock=10 [14:38:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 72 91 07 01 3B 15 5A 03 01 00 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 7A 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 41 39 02 00 35 04 06 00 AA 87 E2 F6 11 95 48 F4 8F 7B 1B B2 85 04 [14:38:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 B4 37 47 00 28 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 41 39 02 00 F4 03 04 00 A7 F5 1D 67 B6 04 01 00 00 66 BA C0 81 B1 79 C2 A4 [14:38:50]CommunicateWithHost err = 0 [14:38:50]CheckOFDResponse [14:38:50]1017 (14) - 77093643461234 [14:38:50]1041 (16) - 0000000000871745 [14:38:50]1040 (4) - 145729 [14:38:50]1012 (4) - 27.10.2024 08:11 [14:38:50]1206 (1) - 0 [14:38:50]OFD Sender: Remove packet 145729 [14:38:50]ProducePacketName [14:38:50]name=ofd_packets/00145729 [14:38:50]NVStorageDeleteData [14:38:51]Write to MH i2c: 01 00 00 A3 1C BF [14:38:51]Write i2c OK [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: 01 [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: 01 07 00 [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: 01 07 00 A3 1C 00 00 00 00 00 B4 0C 86 [14:38:51]RasterBufferAndPrint [14:38:51]line [14:38:51]line [14:38:51]line [14:38:51]line [14:38:51]line [14:38:51]written 0, free lines is 3258 [14:38:51]MH_Cut [14:38:51]Write to MH i2c: D1 01 00 AA 1C 01 98 [14:38:51]Write i2c OK [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: D1 [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: D1 01 00 [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: D1 01 00 AA 1C 00 97 [14:38:51]Write to MH i2c: 01 00 00 AB 1C C7 [14:38:51]Write i2c OK [14:38:51]MH_I2C_Read... [14:38:51]OFD Sender: No OFD packet to send [14:38:51]*** Cut start [14:38:51]*** Partial cut [14:38:51]*** CUTSNS_PIN = 1 [14:38:51]*** CUTSNS_PIN = 0 [14:38:52]*** Brake cut motor [14:38:52]Read from MH i2c: 01 [14:38:52]MH_I2C_Read... [14:38:52]*** Stop cut motor [14:38:52]*** Cut end [14:38:52]Read from MH i2c: 01 07 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: 01 07 00 AB 1C 00 00 00 00 00 FF 0F DC [14:38:52]process_action close_receipt done [14:38:52]requested_data is exist [14:38:52]produce_requested_data [14:38:52]requested_item fm.sn is exist - process it [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 11 00 00 [14:38:52]Write to MH i2c: E2 08 00 AC 1C 80 11 00 00 00 00 00 00 42 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 17 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 17 00 AC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 95 [14:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:38:52]wFMCommunicate OK [14:38:52]requested_item fd.num is exist - process it [14:38:52]SAM_PROTO_GetFieldsCounters [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 00 00 [14:38:52]Write to MH i2c: E2 08 00 AD 1C 80 13 00 00 00 00 00 00 45 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 62 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 62 00 AD 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 41 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [14:38:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 41 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:52]wFMCommunicate OK [14:38:52]SAM_PROTO_GetFieldsCounters done [14:38:52]requested_item shift.num is exist - process it [14:38:52]requested_item shift.opened is exist - process it [14:38:52]req_shift_opened [14:38:52]FM_GetShiftState [14:38:52]SAM_PROTO_GetShiftState [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 01 00 [14:38:52]Write to MH i2c: E2 08 00 AE 1C 80 13 01 00 00 00 00 00 47 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 AE 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 BF [14:38:52]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:38:52]wFMCommunicate OK [14:38:52]SAM_PROTO_GetShiftState done [14:38:52]FM_GetShiftState done [14:38:52]req_shift_opened done [14:38:52]requested_item shift.open_date is exist - process it [14:38:52]req_shift_open_date [14:38:52]req_shift_open_date done [14:38:52]produce_requested_data done [14:38:52]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145729,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:38:52]process_action_free close_receipt [14:38:52]json_value_free [14:38:52]json_value_free done [14:38:52]process_json_proto returns [14:38:52]Send response to host [14:38:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145729,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:38:52]free response buf [14:38:52]execute_script done [14:38:52]execute_script returns [14:38:52]free content buf [14:38:52]Sock 7.Close socket [14:38:52]Sock 7.Thread stoped [14:38:56]OFD Sender: No OFD packet to send [14:38:57]accept exits with 9 [14:38:57]New connection [14:38:57]New thread 3066740068 created [14:38:57]Thread 3066596708 joined [14:38:57]Waiting for new connection... [14:38:57] Sock 9.Parse request [14:38:57]Sock 9.Check first char [14:38:57]Sock 9.First char is OK [14:38:57]request: POST /json_proto HTTP/1.0 [14:38:57]Method: POST [14:38:57]URL: /json_proto [14:38:57]Method is POST - this is cgi request [14:38:57]url: /json_proto [14:38:57]query_string will be loaded in cgi processing [14:38:57]execute_cgi json_proto POST (null) [14:38:57]execute_cgi path=json_proto method=POST [14:38:57]POST find Content-Length [14:38:57]Host: 172.17.40.195:8080 [14:38:57]Content-Length: 677 [14:38:57]Content-Type: application/json [14:38:57] [14:38:57]POST finish read [14:38:57]Found Content-Length = 677 [14:38:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:57]execute_script... [14:38:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:57]POST & json_proto [14:38:57]process_json_proto [14:38:57]json parsed OK: [14:38:57]protocol is kg_v1.0 [14:38:57]action value=close_receipt [14:38:57]process_action close_receipt [14:38:57]cmd_close_receipt [14:38:57]MH_GetDate [14:38:57]Write to MH i2c: F0 00 00 AF 1C BA [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: F0 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: F0 09 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: F0 09 00 AF 1C 00 83 50 1E 67 D5 8D 6C 64 4D [14:38:57]GetLastDocTimeStamp 1730039930 [14:38:57]current date 1730039939 [14:38:57]FM_GetShiftState [14:38:57]SAM_PROTO_GetShiftState [14:38:57]wFMCommunicate request_size=4 [14:38:57]MH_SAM_APDU [14:38:57]CAPDU: 80 13 01 00 [14:38:57]Write to MH i2c: E2 08 00 B0 1C 80 13 01 00 00 00 00 00 49 [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:57]Read from MH i2c: E2 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 0E 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 0E 00 B0 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C1 [14:38:57]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:38:57]wFMCommunicate OK [14:38:57]SAM_PROTO_GetShiftState done [14:38:57]FM_GetShiftState done [14:38:57]opened in 1729988959 [14:38:57]opened+sec_in_day 1730075359 [14:38:57]quantity*price = 50041 [14:38:57]sum+1 = 50042 [14:38:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 153 27.10.2024 14:38 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145730 ФПД: 260890109476000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143859&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145730&fm=260890109476000&tin=02508201610067®Number=0000000000091683&sum=50000 [14:38:58]StoreToDocumentArchive [14:38:58]shift 545 fd 145730 [14:38:58]save to /storage/0545/doc_00145730 [14:38:58]save last doc name /storage/0545/doc_00145730 to /storage/kkm_last_doc_name [14:38:58]save OK [14:38:58]Clear old archive folders... [14:38:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:58]tlvbuf is 00416FE0 [14:38:58]SAM_PROTO_ClearQueue [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 09 00 00 [14:38:58]Write to MH i2c: E2 08 00 BD 1C 80 09 00 00 00 00 00 00 4B [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 03 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 03 00 BD 1C 00 90 00 4D [14:38:58]RAPDU: 90 00 [14:38:58]wFMCommunicate OK [14:38:58]SAM_PROTO_ClearQueue done [14:38:58]KKMCreateOFDPacket [14:38:58]OFDProtocolAddRootSTLVToBuf [14:38:58]FM_MakeSignedData [14:38:58]FM_MakeSignedData [14:38:58]SAM_PROTO_SignData [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 0D 01 02 [14:38:58]Write to MH i2c: E2 08 00 BE 1C 80 0D 01 02 00 00 00 00 53 [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:59]Read from MH i2c: E2 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 03 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 03 00 BE 1C 00 90 00 4E [14:38:59]RAPDU: 90 00 [14:38:59]wFMCommunicate OK [14:38:59]wFMCommunicate request_size=255 [14:38:59]MH_SAM_APDU [14:38:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 83 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 42 39 02 00 35 04 06 00 ED [14:38:59]Write to MH i2c: E2 02 01 BF 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 83 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 42 39 02 00 35 04 06 00 ED 00 00 5F [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:59]Read from MH i2c: E2 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 03 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 03 00 BF 1C 00 90 00 4F [14:38:59]RAPDU: 90 00 [14:38:59]wFMCommunicate OK [14:38:59]wFMCommunicate request_size=10 [14:38:59]MH_SAM_APDU [14:38:59]CAPDU: 80 0D 02 02 05 47 36 4C FC A0 [14:38:59]Write to MH i2c: E2 0D 00 C0 1C 80 0D 02 02 05 00 47 36 4C FC A0 00 00 C5 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:59]Read from MH i2c: E2 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 03 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 03 00 C0 1C 00 90 00 50 [14:38:59]RAPDU: 90 00 [14:38:59]wFMCommunicate OK [14:38:59]wFMCommunicate request_size=4 [14:38:59]MH_SAM_APDU [14:38:59]CAPDU: 80 0D 03 02 [14:38:59]Write to MH i2c: E2 08 00 C1 1C 80 0D 03 02 00 00 00 00 58 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:59]Read from MH i2c: E2 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 0B 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 0B 00 C1 1C 00 16 C8 55 49 42 E4 E7 73 90 00 55 [14:38:59]RAPDU: 16 C8 55 49 42 E4 E7 73 90 00 [14:38:59]wFMCommunicate OK [14:38:59]SAM_PROTO_SignData done [14:38:59]FM_MakeSignedData done [14:38:59]CreateOFDProtocolMessage [14:38:59]wFMCommunicate request_size=4 [14:38:59]MH_SAM_APDU [14:38:59]CAPDU: 80 11 00 00 [14:38:59]Write to MH i2c: E2 08 00 C2 1C 80 11 00 00 00 00 00 00 58 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:59]Read from MH i2c: E2 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 17 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: E2 17 00 C2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AB [14:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:38:59]wFMCommunicate OK [14:38:59]CreateOFDProtocolMessage done [14:38:59]OFDSenderStorePacket 145730 [14:38:59]StoreOFDPacket docnum=145730 [14:38:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 4F 82 07 01 7E 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 83 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 42 39 02 00 35 04 06 00 ED 47 36 4C FC A0 16 C8 55 49 42 E4 E7 73 [14:38:59]CheckFolder [14:38:59]dirname=/storage/ofd_packets [14:38:59]CheckFolder done [14:38:59]ProducePacketName [14:38:59]name=ofd_packets/00145730 [14:38:59]NVStorageSaveData ofd_packets/00145730 [14:38:59]File name is /storage/ofd_packets/00145730 [14:38:59]Write 301 bytes [14:38:59]NVStorageSaveData done [14:38:59]OFDSenderStorePacket done [14:38:59]KKMCreateOFDPacket done [14:38:59]NVStorageSaveData kkm_last_timestamp [14:38:59]File name is /storage/kkm_last_timestamp [14:38:59]Write 4 bytes [14:38:59]NVStorageSaveData done [14:38:59]ExternCall_PrintAddStr [14:38:59]wPrintStart [14:38:59]Write to MH i2c: 01 00 00 C3 1C DF [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 C3 1C 00 00 00 00 00 FF 0F F4 [14:38:59]RasterBufferAndPrint [14:38:59]line Счет N : (1)160485 [14:38:59]line ИНН: 02508201610067 [14:38:59]line Контрольно-Кассовый Чек [14:38:59]line ПРОДАЖА [14:38:59]line ТРК (МРК, ГНК) : 52 [14:38:59]line Товар: 2710124130 [14:38:59]line Аи-92-К-2 [14:38:59]line 7.480 * 66.90 [14:38:59]line = 500.41 [14:38:59]line НДС 12% НСП 1% [14:38:59]line > о реализуемом товаре [14:38:59]line ОКРУГЛЕНИЕ: -0.41 [14:38:59]line ИТОГО: 500.00 [14:38:59]line Внесено: 500.00 [14:38:59]line СДАЧА: 0.00 [14:38:59]line НСП 1% : 4.43 [14:38:59]line НДС 12% : 53.14 [14:38:59]line Наличными: 500.00 [14:38:59]line Безнал.: 0.00 [14:38:59]line Место: АЗС № 126 "Партнер Нефть" [14:38:59]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:38:59]line СНО: Общий режим [14:38:59]line Чек 153 27.10.2024 14:38 [14:38:59]line Смена: 545 ФФД: 1.0 [14:38:59]line ЗНМ: 0300000085 [14:38:59]line РНМ: 0000000000091683 [14:38:59]line Версия ККМ: 001 [14:38:59]line ФМ: 0000000000871745 [14:38:59]line ФД: 145730 [14:38:59]line ФПД: 260890109476000 [14:38:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143859&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145730&fm=260890109476000&tin=02508201610067®Number=0000000000091683&sum=50000 [14:38:59]written 0, free lines is 4095 [14:38:59]OFD Sender: Processing packet 145730 [packets to send 206, broken 205] [14:38:59]ProducePacketName [14:38:59]name=ofd_packets/00145730 [14:38:59]OFD Sender: To server: pG, [14:38:59]CommunicateWithHost lk.salyk.kg:30040 [14:38:59]ConnectInit lk.salyk.kg [14:38:59]Connected sock=7 [14:38:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 4F 82 07 01 7E 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 83 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 42 39 02 00 35 04 06 00 ED 47 36 4C FC A0 16 C8 55 49 42 E4 E7 73 [14:38:59]Write to MH i2c: 01 00 00 EE 1C 0A [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 EE 1C 00 00 00 00 00 C5 0C E2 [14:38:59]RasterBufferAndPrint [14:38:59]line [14:38:59]line [14:38:59]line [14:38:59]line [14:38:59]line [14:38:59]written 0, free lines is 3278 [14:38:59]MH_Cut [14:38:59]Write to MH i2c: D1 01 00 F5 1C 01 E3 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: D1 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: D1 01 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: D1 01 00 F5 1C 00 E2 [14:38:59]Write to MH i2c: 01 00 00 F6 1C 12 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:39:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 AA 3D 47 00 59 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 31 37 34 35 10 04 04 00 42 39 02 00 F4 03 04 00 B0 F5 1D 67 B6 04 01 00 00 97 E2 AE 8E 91 ED 16 D3 [14:39:00]CommunicateWithHost err = 0 [14:39:00]CheckOFDResponse [14:39:00]1017 (14) - 77093643461234 [14:39:00]1041 (16) - 0000000000871745 [14:39:00]1040 (4) - 145730 [14:39:00]1012 (4) - 27.10.2024 08:11 [14:39:00]1206 (1) - 0 [14:39:00]OFD Sender: Remove packet 145730 [14:39:00]ProducePacketName [14:39:00]name=ofd_packets/00145730 [14:39:00]NVStorageDeleteData [14:39:00]OFD Sender: No OFD packet to send [14:39:00]*** Cut start [14:39:00]*** Partial cut [14:39:00]*** CUTSNS_PIN = 1 [14:39:00]*** CUTSNS_PIN = 0 [14:39:00]*** Brake cut motor [14:39:01]Read from MH i2c: 01 [14:39:01]MH_I2C_Read... [14:39:01]*** Stop cut motor [14:39:01]*** Cut end [14:39:01]Read from MH i2c: 01 07 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: 01 07 00 F6 1C 00 00 00 00 00 FF 0F 27 [14:39:01]process_action close_receipt done [14:39:01]requested_data is exist [14:39:01]produce_requested_data [14:39:01]requested_item fm.sn is exist - process it [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 11 00 00 [14:39:01]Write to MH i2c: E2 08 00 F7 1C 80 11 00 00 00 00 00 00 8D [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 17 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 17 00 F7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E0 [14:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:39:01]wFMCommunicate OK [14:39:01]requested_item fd.num is exist - process it [14:39:01]SAM_PROTO_GetFieldsCounters [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 13 00 00 [14:39:01]Write to MH i2c: E2 08 00 F8 1C 80 13 00 00 00 00 00 00 90 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 62 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 62 00 F8 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 42 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [14:39:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 42 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:01]wFMCommunicate OK [14:39:01]SAM_PROTO_GetFieldsCounters done [14:39:01]requested_item shift.num is exist - process it [14:39:01]requested_item shift.opened is exist - process it [14:39:01]req_shift_opened [14:39:01]FM_GetShiftState [14:39:01]SAM_PROTO_GetShiftState [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 13 01 00 [14:39:01]Write to MH i2c: E2 08 00 F9 1C 80 13 01 00 00 00 00 00 92 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 0E 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 0E 00 F9 1C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0A [14:39:01]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:39:01]wFMCommunicate OK [14:39:01]SAM_PROTO_GetShiftState done [14:39:01]FM_GetShiftState done [14:39:01]req_shift_opened done [14:39:01]requested_item shift.open_date is exist - process it [14:39:01]req_shift_open_date [14:39:01]req_shift_open_date done [14:39:01]produce_requested_data done [14:39:01]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145730,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:39:01]process_action_free close_receipt [14:39:01]json_value_free [14:39:01]json_value_free done [14:39:01]process_json_proto returns [14:39:01]Send response to host [14:39:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145730,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:39:01]free response buf [14:39:01]execute_script done [14:39:01]execute_script returns [14:39:01]free content buf [14:39:01]Sock 9.Close socket [14:39:01]Sock 9.Thread stoped [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:24]int [14:39:24]Write to MH i2c: 01 00 00 FA 1C 16 [14:39:24]*** FLAG_PRN_PAP1 set [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 FA 1C 00 01 00 00 00 FF 0F 2C [14:39:24]state=0 [14:39:24]No paper [14:39:24]int [14:39:24]Write to MH i2c: 01 00 00 FB 1C 17 [14:39:24]*** FLAG_PRN_PAP1 reset [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 FB 1C 00 00 00 00 00 FF 0F 2C [14:39:24]state=0 [14:39:24]int [14:39:24]Write to MH i2c: 01 00 00 FC 1C 18 [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 [14:39:24]MH_I2C_Read... [14:39:24]*** FLAG_PRN_PAP1 set [14:39:24]*** FLAG_PRN_PAP1 reset [14:39:24]Read from MH i2c: 01 07 00 FC 1C 00 00 00 00 00 FF 0F 2D [14:39:24]state=0 [14:39:24]int [14:39:24]Write to MH i2c: 01 00 00 FD 1C 19 [14:39:24]*** FLAG_PRN_PAP1 set [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 FD 1C 00 01 00 00 00 FF 0F 2F [14:39:24]state=0 [14:39:24]No paper [14:39:24]int [14:39:24]Write to MH i2c: 01 00 00 FE 1C 1A [14:39:24]*** FLAG_PRN_PAP2 set [14:39:24]Write i2c OK [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 [14:39:24]MH_I2C_Read... [14:39:24]Read from MH i2c: 01 07 00 FE 1C 00 03 00 00 00 FF 0F 32 [14:39:24]state=0 [14:39:24]No paper [14:39:24]Cover opened [14:39:25]OFD Sender: No OFD packet to send [14:39:29]Write to MH i2c: 01 00 00 FF 1C 1B [14:39:29]Write i2c OK [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: 01 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: 01 07 00 [14:39:29]MH_I2C_Read... [14:39:29]Read from MH i2c: 01 07 00 FF 1C 00 03 00 00 00 FF 0F 33 [14:39:29]state=3 [14:39:29]No paper [14:39:29]Cover opened [14:39:30]OFD Sender: No OFD packet to send [14:39:34]Write to MH i2c: 01 00 00 00 1D 1D [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: 01 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: 01 07 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: 01 07 00 00 1D 00 03 00 00 00 FF 0F 35 [14:39:34]state=3 [14:39:34]No paper [14:39:34]Cover opened [14:39:35]OFD Sender: No OFD packet to send [14:39:36]int [14:39:36]Write to MH i2c: 01 00 00 01 1D 1E [14:39:36]Write i2c OK [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: 01 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: 01 07 00 [14:39:36]MH_I2C_Read... [14:39:36]*** FLAG_PRN_PAP1 reset [14:39:36]*** FLAG_PRN_PAP2 reset [14:39:36]Read from MH i2c: 01 07 00 01 1D 00 00 00 00 00 FF 0F 33 [14:39:36]state=3 [14:39:36]Cover closed [14:39:37]int [14:39:37]Write to MH i2c: 01 00 00 02 1D 1F [14:39:37]*** FLAG_PRN_KEY set [14:39:37]Write i2c OK [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 07 00 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 07 00 02 1D 00 08 00 00 00 FF 0F 3C [14:39:37]state=0 [14:39:37]Key pressed [14:39:37]Feed [14:39:37]Write to MH i2c: D8 00 00 03 1D F7 [14:39:37]Write i2c OK [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: D8 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: D8 01 00 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: D8 01 00 03 1D 00 F8 [14:39:37]int [14:39:37]Write to MH i2c: 01 00 00 04 1D 21 [14:39:37]Write i2c OK [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 07 00 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 07 00 04 1D 00 48 00 00 00 3C 00 AC [14:39:37]state=2 [14:39:37]Key pressed [14:39:37]int [14:39:37]Write to MH i2c: 01 00 00 05 1D 22 [14:39:37]*** FLAG_PRN_KEY reset [14:39:37]Write i2c OK [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 07 00 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 07 00 05 1D 00 00 00 00 00 F6 0F 2E [14:39:37]state=2 [14:39:37]Stop feed [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:11]accept exits with 10 [14:40:11]New connection [14:40:11]New thread 3066596708 created [14:40:11]Thread 3066740068 joined [14:40:11]Waiting for new connection... [14:40:11] Sock 10.Parse request [14:40:11]Sock 10.Check first char [14:40:11]Sock 10.First char is OK [14:40:11]request: POST /json_proto HTTP/1.0 [14:40:11]Method: POST [14:40:11]URL: /json_proto [14:40:11]Method is POST - this is cgi request [14:40:11]url: /json_proto [14:40:11]query_string will be loaded in cgi processing [14:40:11]execute_cgi json_proto POST (null) [14:40:11]execute_cgi path=json_proto method=POST [14:40:11]POST find Content-Length [14:40:11]Host: 172.17.40.195:8080 [14:40:11]Content-Length: 682 [14:40:11]Content-Type: application/json [14:40:11] [14:40:11]POST finish read [14:40:11]Found Content-Length = 682 [14:40:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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:40:11]execute_script... [14:40: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)160486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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:40:11]POST & json_proto [14:40:11]process_json_proto [14:40:11]json parsed OK: [14:40:11]protocol is kg_v1.0 [14:40:11]action value=close_receipt [14:40:11]process_action close_receipt [14:40:11]cmd_close_receipt [14:40:11]MH_GetDate [14:40:11]Write to MH i2c: F0 00 00 06 1D 12 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: F0 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: F0 09 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: F0 09 00 06 1D 00 CD 50 1E 67 D5 8D 6C 64 EF [14:40:11]GetLastDocTimeStamp 1730039939 [14:40:11]current date 1730040013 [14:40:11]FM_GetShiftState [14:40:11]SAM_PROTO_GetShiftState [14:40:11]wFMCommunicate request_size=4 [14:40:11]MH_SAM_APDU [14:40:11]CAPDU: 80 13 01 00 [14:40:11]Write to MH i2c: E2 08 00 07 1D 80 13 01 00 00 00 00 00 A1 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:11]Read from MH i2c: E2 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 0E 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 0E 00 07 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 19 [14:40:11]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:40:11]wFMCommunicate OK [14:40:11]SAM_PROTO_GetShiftState done [14:40:11]FM_GetShiftState done [14:40:11]opened in 1729988959 [14:40:11]opened+sec_in_day 1730075359 [14:40:11]quantity*price = 200043 [14:40:11]sum+1 = 200044 [14:40:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 154 27.10.2024 14:40 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145731 ФПД: 232239229616456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144013&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145731&fm=232239229616456&tin=02508201610067®Number=0000000000091683&sum=200000 [14:40:12]StoreToDocumentArchive [14:40:12]shift 545 fd 145731 [14:40:12]save to /storage/0545/doc_00145731 [14:40:12]save last doc name /storage/0545/doc_00145731 to /storage/kkm_last_doc_name [14:40:12]save OK [14:40:12]Clear old archive folders... [14:40:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:12]tlvbuf is 004115B0 [14:40:12]SAM_PROTO_ClearQueue [14:40:12]wFMCommunicate request_size=4 [14:40:12]MH_SAM_APDU [14:40:12]CAPDU: 80 09 00 00 [14:40:12]Write to MH i2c: E2 08 00 14 1D 80 09 00 00 00 00 00 00 A3 [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:12]Read from MH i2c: E2 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 14 1D 00 90 00 A5 [14:40:12]RAPDU: 90 00 [14:40:12]wFMCommunicate OK [14:40:12]SAM_PROTO_ClearQueue done [14:40:12]KKMCreateOFDPacket [14:40:12]OFDProtocolAddRootSTLVToBuf [14:40:12]FM_MakeSignedData [14:40:12]FM_MakeSignedData [14:40:12]SAM_PROTO_SignData [14:40:12]wFMCommunicate request_size=4 [14:40:12]MH_SAM_APDU [14:40:12]CAPDU: 80 0D 01 02 [14:40:12]Write to MH i2c: E2 08 00 15 1D 80 0D 01 02 00 00 00 00 AB [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:12]Read from MH i2c: E2 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 15 1D 00 90 00 A6 [14:40:12]RAPDU: 90 00 [14:40:12]wFMCommunicate OK [14:40:12]wFMCommunicate request_size=255 [14:40:12]MH_SAM_APDU [14:40: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 9A 00 00 00 F4 03 04 00 CD 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 43 39 02 00 35 04 06 00 D3 [14:40:12]Write to MH i2c: E2 02 01 16 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 9A 00 00 00 F4 03 04 00 CD 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 43 39 02 00 35 04 06 00 D3 00 00 92 [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:13]Read from MH i2c: E2 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 03 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 03 00 16 1D 00 90 00 A7 [14:40:13]RAPDU: 90 00 [14:40:13]wFMCommunicate OK [14:40:13]wFMCommunicate request_size=10 [14:40:13]MH_SAM_APDU [14:40:13]CAPDU: 80 0D 02 02 05 38 68 C8 C1 48 [14:40:13]Write to MH i2c: E2 0D 00 17 1D 80 0D 02 02 05 00 38 68 C8 C1 48 00 00 29 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:13]Read from MH i2c: E2 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 03 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 03 00 17 1D 00 90 00 A8 [14:40:13]RAPDU: 90 00 [14:40:13]wFMCommunicate OK [14:40:13]wFMCommunicate request_size=4 [14:40:13]MH_SAM_APDU [14:40:13]CAPDU: 80 0D 03 02 [14:40:13]Write to MH i2c: E2 08 00 18 1D 80 0D 03 02 00 00 00 00 B0 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:13]Read from MH i2c: E2 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 0B 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 0B 00 18 1D 00 12 6E BE 43 6A 50 FA 07 90 00 ED [14:40:13]RAPDU: 12 6E BE 43 6A 50 FA 07 90 00 [14:40:13]wFMCommunicate OK [14:40:13]SAM_PROTO_SignData done [14:40:13]FM_MakeSignedData done [14:40:13]CreateOFDProtocolMessage [14:40:13]wFMCommunicate request_size=4 [14:40:13]MH_SAM_APDU [14:40:13]CAPDU: 80 11 00 00 [14:40:13]Write to MH i2c: E2 08 00 19 1D 80 11 00 00 00 00 00 00 B0 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:13]Read from MH i2c: E2 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 17 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 17 00 19 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 03 [14:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:40:13]wFMCommunicate OK [14:40:13]CreateOFDProtocolMessage done [14:40:13]OFDSenderStorePacket 145731 [14:40:13]StoreOFDPacket docnum=145731 [14:40:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 27 80 07 01 8E 95 5A 03 01 00 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 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 9A 00 00 00 F4 03 04 00 CD 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 43 39 02 00 35 04 06 00 D3 38 68 C8 C1 48 12 6E BE 43 6A 50 FA 07 [14:40:13]CheckFolder [14:40:13]dirname=/storage/ofd_packets [14:40:13]CheckFolder done [14:40:13]ProducePacketName [14:40:13]name=ofd_packets/00145731 [14:40:13]NVStorageSaveData ofd_packets/00145731 [14:40:13]File name is /storage/ofd_packets/00145731 [14:40:13]Write 301 bytes [14:40:13]NVStorageSaveData done [14:40:13]OFDSenderStorePacket done [14:40:13]KKMCreateOFDPacket done [14:40:13]NVStorageSaveData kkm_last_timestamp [14:40:13]File name is /storage/kkm_last_timestamp [14:40:13]Write 4 bytes [14:40:13]NVStorageSaveData done [14:40:13]ExternCall_PrintAddStr [14:40:13]wPrintStart [14:40:13]Write to MH i2c: 01 00 00 1A 1D 37 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 07 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 07 00 1A 1D 00 00 00 00 00 FF 0F 4C [14:40:13]RasterBufferAndPrint [14:40:13]line Счет N : (1)160486 [14:40:13]line ИНН: 02508201610067 [14:40:13]line Контрольно-Кассовый Чек [14:40:13]line ПРОДАЖА [14:40:13]line ТРК (МРК, ГНК) : 43 [14:40:13]line Товар: 2710124500 [14:40:13]line Аи-95-К-3 [14:40:13]line 26.960 * 74.20 [14:40:13]line = 2000.43 [14:40:13]line НДС 12% НСП 1% [14:40:13]line > о реализуемом товаре [14:40:13]line ОКРУГЛЕНИЕ: -0.43 [14:40:13]line ИТОГО: 2000.00 [14:40:13]line Внесено: 2000.00 [14:40:13]line СДАЧА: 0.00 [14:40:13]line НСП 1% : 17.70 [14:40:13]line НДС 12% : 212.43 [14:40:13]line Наличными: 2000.00 [14:40:13]line Безнал.: 0.00 [14:40:13]line Место: АЗС № 126 "Партнер Нефть" [14:40:13]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:40:13]line СНО: Общий режим [14:40:13]line Чек 154 27.10.2024 14:40 [14:40:13]line Смена: 545 ФФД: 1.0 [14:40:13]line ЗНМ: 0300000085 [14:40:13]line РНМ: 0000000000091683 [14:40:13]line Версия ККМ: 001 [14:40:13]line ФМ: 0000000000871745 [14:40:13]line ФД: 145731 [14:40:13]line ФПД: 232239229616456 [14:40:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144013&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145731&fm=232239229616456&tin=02508201610067®Number=0000000000091683&sum=200000 [14:40:13]OFD Sender: Processing packet 145731 [packets to send 206, broken 205] [14:40:13]ProducePacketName [14:40:13]name=ofd_packets/00145731 [14:40:13]OFD Sender: To server: pG, [14:40:13]CommunicateWithHost lk.salyk.kg:30040 [14:40:13]ConnectInit lk.salyk.kg [14:40:13]written 0, free lines is 4095 [14:40:13]Connected sock=9 [14:40:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 27 80 07 01 8E 95 5A 03 01 00 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 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 9A 00 00 00 F4 03 04 00 CD 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 43 39 02 00 35 04 06 00 D3 38 68 C8 C1 48 12 6E BE 43 6A 50 FA 07 [14:40:13]Write to MH i2c: 01 00 00 45 1D 62 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 07 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 07 00 45 1D 00 00 00 00 00 CB 0C 40 [14:40:13]RasterBufferAndPrint [14:40:13]line [14:40:13]line [14:40:13]line [14:40:13]line [14:40:13]line [14:40:13]written 0, free lines is 3281 [14:40:14]MH_Cut [14:40:14]Write to MH i2c: D1 01 00 4C 1D 01 3B [14:40:14]Write i2c OK [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: D1 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: D1 01 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: D1 01 00 4C 1D 00 3A [14:40:14]Write to MH i2c: 01 00 00 4D 1D 6A [14:40:14]Write i2c OK [14:40:14]MH_I2C_Read... [14:40:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 7A C9 47 00 65 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 43 39 02 00 F4 03 04 00 FA F5 1D 67 B6 04 01 00 00 2F 66 EB 16 C0 B7 F4 19 [14:40:14]CommunicateWithHost err = 0 [14:40:14]CheckOFDResponse [14:40:14]1017 (14) - 77093643461234 [14:40:14]1041 (16) - 0000000000871745 [14:40:14]1040 (4) - 145731 [14:40:14]1012 (4) - 27.10.2024 08:12 [14:40:14]1206 (1) - 0 [14:40:14]OFD Sender: Remove packet 145731 [14:40:14]ProducePacketName [14:40:14]name=ofd_packets/00145731 [14:40:14]NVStorageDeleteData [14:40:14]OFD Sender: No OFD packet to send [14:40:14]*** Cut start [14:40:14]*** Partial cut [14:40:14]*** CUTSNS_PIN = 1 [14:40:14]*** CUTSNS_PIN = 0 [14:40:15]*** Brake cut motor [14:40:15]Read from MH i2c: 01 [14:40:15]MH_I2C_Read... [14:40:15]*** Stop cut motor [14:40:15]*** Cut end [14:40:15]Read from MH i2c: 01 07 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: 01 07 00 4D 1D 00 00 00 00 00 FF 0F 7F [14:40:15]process_action close_receipt done [14:40:15]requested_data is exist [14:40:15]produce_requested_data [14:40:15]requested_item fm.sn is exist - process it [14:40:15]wFMCommunicate request_size=4 [14:40:15]MH_SAM_APDU [14:40:15]CAPDU: 80 11 00 00 [14:40:15]Write to MH i2c: E2 08 00 4E 1D 80 11 00 00 00 00 00 00 E5 [14:40:15]Write i2c OK [14:40:15]MH_I2C_Read... [14:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:15]Read from MH i2c: E2 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 17 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 17 00 4E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 38 [14:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:40:15]wFMCommunicate OK [14:40:15]requested_item fd.num is exist - process it [14:40:15]SAM_PROTO_GetFieldsCounters [14:40:15]wFMCommunicate request_size=4 [14:40:15]MH_SAM_APDU [14:40:15]CAPDU: 80 13 00 00 [14:40:15]Write to MH i2c: E2 08 00 4F 1D 80 13 00 00 00 00 00 00 E8 [14:40:15]Write i2c OK [14:40:15]MH_I2C_Read... [14:40:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:15]Read from MH i2c: E2 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 62 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 62 00 4F 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 43 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [14:40:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 43 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:15]wFMCommunicate OK [14:40:15]SAM_PROTO_GetFieldsCounters done [14:40:15]requested_item shift.num is exist - process it [14:40:15]requested_item shift.opened is exist - process it [14:40:15]req_shift_opened [14:40:15]FM_GetShiftState [14:40:15]SAM_PROTO_GetShiftState [14:40:15]wFMCommunicate request_size=4 [14:40:15]MH_SAM_APDU [14:40:15]CAPDU: 80 13 01 00 [14:40:15]Write to MH i2c: E2 08 00 50 1D 80 13 01 00 00 00 00 00 EA [14:40:15]Write i2c OK [14:40:15]MH_I2C_Read... [14:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:15]Read from MH i2c: E2 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 0E 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 0E 00 50 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 62 [14:40:15]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:40:15]wFMCommunicate OK [14:40:15]SAM_PROTO_GetShiftState done [14:40:15]FM_GetShiftState done [14:40:15]req_shift_opened done [14:40:15]requested_item shift.open_date is exist - process it [14:40:15]req_shift_open_date [14:40:15]req_shift_open_date done [14:40:15]produce_requested_data done [14:40:15]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145731,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:40:15]process_action_free close_receipt [14:40:15]json_value_free [14:40:15]json_value_free done [14:40:15]process_json_proto returns [14:40:15]Send response to host [14:40:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145731,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:40:15]free response buf [14:40:15]execute_script done [14:40:15]execute_script returns [14:40:15]free content buf [14:40:15]Sock 10.Close socket [14:40:15]Sock 10.Thread stoped [14:40:19]OFD Sender: No OFD packet to send [14:40:24]accept exits with 7 [14:40:24]New connection [14:40:24]New thread 3066740068 created [14:40:24]Thread 3066596708 joined [14:40:24]Waiting for new connection... [14:40:24] Sock 7.Parse request [14:40:24]Sock 7.Check first char [14:40:24]Sock 7.First char is OK [14:40:24]request: POST /json_proto HTTP/1.0 [14:40:24]Method: POST [14:40:24]URL: /json_proto [14:40:24]Method is POST - this is cgi request [14:40:24]url: /json_proto [14:40:24]query_string will be loaded in cgi processing [14:40:24]execute_cgi json_proto POST (null) [14:40:24]execute_cgi path=json_proto method=POST [14:40:24]POST find Content-Length [14:40:24]Host: 172.17.40.195:8080 [14:40:24]Content-Length: 763 [14:40:24]Content-Type: application/json [14:40:24] [14:40:24]POST finish read [14:40:24]Found Content-Length = 763 [14:40:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:24]execute_script... [14:40: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)160487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:24]POST & json_proto [14:40:24]process_json_proto [14:40:24]json parsed OK: [14:40:24]protocol is kg_v1.0 [14:40:24]action value=close_receipt [14:40:24]process_action close_receipt [14:40:24]cmd_close_receipt [14:40:24]MH_GetDate [14:40:24]Write to MH i2c: F0 00 00 51 1D 5D [14:40:24]Write i2c OK [14:40:24]MH_I2C_Read... [14:40:24]Read from MH i2c: F0 [14:40:24]MH_I2C_Read... [14:40:24]Read from MH i2c: F0 09 00 [14:40:24]MH_I2C_Read... [14:40:24]Read from MH i2c: F0 09 00 51 1D 00 DA 50 1E 67 D5 8D 6C 64 47 [14:40:24]GetLastDocTimeStamp 1730040013 [14:40:24]current date 1730040026 [14:40:24]FM_GetShiftState [14:40:24]SAM_PROTO_GetShiftState [14:40:24]wFMCommunicate request_size=4 [14:40:24]MH_SAM_APDU [14:40:24]CAPDU: 80 13 01 00 [14:40:24]Write to MH i2c: E2 08 00 52 1D 80 13 01 00 00 00 00 00 EC [14:40:24]Write i2c OK [14:40:24]MH_I2C_Read... [14:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:24]Read from MH i2c: E2 [14:40:24]MH_I2C_Read... [14:40:24]Read from MH i2c: E2 0E 00 [14:40:24]MH_I2C_Read... [14:40:24]Read from MH i2c: E2 0E 00 52 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 64 [14:40:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:40:24]wFMCommunicate OK [14:40:24]SAM_PROTO_GetShiftState done [14:40:24]FM_GetShiftState done [14:40:24]opened in 1729988959 [14:40:24]opened+sec_in_day 1730075359 [14:40:24]quantity*price = 50063 [14:40:24]sum+1 = 50064 [14:40:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 155 27.10.2024 14:40 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145732 ФПД: 152695779989137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144026&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145732&fm=152695779989137&tin=02508201610067®Number=0000000000091683&sum=50063 [14:40:25]StoreToDocumentArchive [14:40:25]shift 545 fd 145732 [14:40:25]save to /storage/0545/doc_00145732 [14:40:25]save last doc name /storage/0545/doc_00145732 to /storage/kkm_last_doc_name [14:40:25]save OK [14:40:25]Clear old archive folders... [14:40:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:40:25]tlvbuf is 004438E0 [14:40:25]SAM_PROTO_ClearQueue [14:40:25]wFMCommunicate request_size=4 [14:40:25]MH_SAM_APDU [14:40:25]CAPDU: 80 09 00 00 [14:40:25]Write to MH i2c: E2 08 00 5F 1D 80 09 00 00 00 00 00 00 EE [14:40:25]Write i2c OK [14:40:25]MH_I2C_Read... [14:40:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:25]Read from MH i2c: E2 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 03 00 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 03 00 5F 1D 00 90 00 F0 [14:40:25]RAPDU: 90 00 [14:40:25]wFMCommunicate OK [14:40:25]SAM_PROTO_ClearQueue done [14:40:25]KKMCreateOFDPacket [14:40:25]OFDProtocolAddRootSTLVToBuf [14:40:25]FM_MakeSignedData [14:40:25]FM_MakeSignedData [14:40:25]SAM_PROTO_SignData [14:40:25]wFMCommunicate request_size=4 [14:40:25]MH_SAM_APDU [14:40:25]CAPDU: 80 0D 01 02 [14:40:25]Write to MH i2c: E2 08 00 60 1D 80 0D 01 02 00 00 00 00 F6 [14:40:25]Write i2c OK [14:40:25]MH_I2C_Read... [14:40:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:25]Read from MH i2c: E2 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 03 00 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 03 00 60 1D 00 90 00 F1 [14:40:25]RAPDU: 90 00 [14:40:25]wFMCommunicate OK [14:40:25]wFMCommunicate request_size=255 [14:40:25]MH_SAM_APDU [14:40:25]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 DA 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 44 39 02 00 35 04 06 00 8A E0 41 B9 [14:40:25]Write to MH i2c: E2 02 01 61 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 DA 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 44 39 02 00 35 04 06 00 8A E0 41 B9 00 00 D0 [14:40:25]Write i2c OK [14:40:25]MH_I2C_Read... [14:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:25]Read from MH i2c: E2 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 03 00 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 03 00 61 1D 00 90 00 F2 [14:40:25]RAPDU: 90 00 [14:40:25]wFMCommunicate OK [14:40:25]wFMCommunicate request_size=7 [14:40:25]MH_SAM_APDU [14:40:25]CAPDU: 80 0D 02 02 02 96 91 [14:40:25]Write to MH i2c: E2 0A 00 62 1D 80 0D 02 02 02 00 96 91 00 00 24 [14:40:25]Write i2c OK [14:40:25]MH_I2C_Read... [14:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:25]Read from MH i2c: E2 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 03 00 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 03 00 62 1D 00 90 00 F3 [14:40:25]RAPDU: 90 00 [14:40:25]wFMCommunicate OK [14:40:25]wFMCommunicate request_size=4 [14:40:25]MH_SAM_APDU [14:40:25]CAPDU: 80 0D 03 02 [14:40:25]Write to MH i2c: E2 08 00 63 1D 80 0D 03 02 00 00 00 00 FB [14:40:25]Write i2c OK [14:40:25]MH_I2C_Read... [14:40:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:25]Read from MH i2c: E2 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 0B 00 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 0B 00 63 1D 00 65 CD 9B 09 C1 3E D7 46 90 00 EE [14:40:25]RAPDU: 65 CD 9B 09 C1 3E D7 46 90 00 [14:40:25]wFMCommunicate OK [14:40:25]SAM_PROTO_SignData done [14:40:25]FM_MakeSignedData done [14:40:25]CreateOFDProtocolMessage [14:40:25]wFMCommunicate request_size=4 [14:40:25]MH_SAM_APDU [14:40:25]CAPDU: 80 11 00 00 [14:40:25]Write to MH i2c: E2 08 00 64 1D 80 11 00 00 00 00 00 00 FB [14:40:25]Write i2c OK [14:40:25]MH_I2C_Read... [14:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:25]Read from MH i2c: E2 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 17 00 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 17 00 64 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 4E [14:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:40:25]wFMCommunicate OK [14:40:25]CreateOFDProtocolMessage done [14:40:25]OFDSenderStorePacket 145732 [14:40:25]StoreOFDPacket docnum=145732 [14:40:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 88 E6 04 01 B9 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 DA 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 44 39 02 00 35 04 06 00 8A E0 41 B9 96 91 65 CD 9B 09 C1 3E D7 46 [14:40:25]CheckFolder [14:40:25]dirname=/storage/ofd_packets [14:40:25]CheckFolder done [14:40:25]ProducePacketName [14:40:25]name=ofd_packets/00145732 [14:40:25]NVStorageSaveData ofd_packets/00145732 [14:40:25]File name is /storage/ofd_packets/00145732 [14:40:25]Write 298 bytes [14:40:25]NVStorageSaveData done [14:40:25]OFDSenderStorePacket done [14:40:25]KKMCreateOFDPacket done [14:40:25]NVStorageSaveData kkm_last_timestamp [14:40:25]File name is /storage/kkm_last_timestamp [14:40:25]Write 4 bytes [14:40:25]NVStorageSaveData done [14:40:26]ExternCall_PrintAddStr [14:40:26]wPrintStart [14:40:26]Write to MH i2c: 01 00 00 65 1D 82 [14:40:26]Write i2c OK [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: 01 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: 01 07 00 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: 01 07 00 65 1D 00 00 00 00 00 FF 0F 97 [14:40:26]RasterBufferAndPrint [14:40:26]line Счет N : (1)160487 [14:40:26]line ИНН: 02508201610067 [14:40:26]line Контрольно-Кассовый Чек [14:40:26]line ПРОДАЖА [14:40:26]line ТРК (МРК, ГНК) : 11 [14:40:26]line Товар: 2710194210 [14:40:26]line ДТ-К-2 [14:40:26]line 6.570 * 76.20 [14:40:26]line = 500.63 [14:40:26]line НДС 12% НСП 1% [14:40:26]line > о реализуемом товаре [14:40:26]line ИТОГО: 500.63 [14:40:26]line НСП 1% : 4.43 [14:40:26]line НДС 12% : 53.16 [14:40:26]line Наличными: 0.00 [14:40:26]line Безнал.: 500.63 [14:40:26]line Место: АЗС № 126 "Партнер Нефть" [14:40:26]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:40:26]line СНО: Общий режим [14:40:26]line Чек 155 27.10.2024 14:40 [14:40:26]line Смена: 545 ФФД: 1.0 [14:40:26]line ЗНМ: 0300000085 [14:40:26]line РНМ: 0000000000091683 [14:40:26]line Версия ККМ: 001 [14:40:26]line Платежная система: Mbank [14:40:26]line ФМ: 0000000000871745 [14:40:26]line ФД: 145732 [14:40:26]line ФПД: 152695779989137 [14:40:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144026&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145732&fm=152695779989137&tin=02508201610067®Number=0000000000091683&sum=50063 [14:40:26]OFD Sender: Processing packet 145732 [packets to send 206, broken 205] [14:40:26]ProducePacketName [14:40:26]name=ofd_packets/00145732 [14:40:26]OFD Sender: To server: pG, [14:40:26]CommunicateWithHost lk.salyk.kg:30040 [14:40:26]ConnectInit lk.salyk.kg [14:40:26]written 0, free lines is 4095 [14:40:26]Connected sock=11 [14:40:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 88 E6 04 01 B9 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 DA 50 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 44 39 02 00 35 04 06 00 8A E0 41 B9 96 91 65 CD 9B 09 C1 3E D7 46 [14:40:26]Write to MH i2c: 01 00 00 8E 1D AB [14:40:26]Write i2c OK [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: 01 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: 01 07 00 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: 01 07 00 8E 1D 00 00 00 00 00 E2 0C A0 [14:40:26]RasterBufferAndPrint [14:40:26]line [14:40:26]line [14:40:26]line [14:40:26]line [14:40:26]line [14:40:26]written 0, free lines is 3307 [14:40:26]MH_Cut [14:40:26]Write to MH i2c: D1 01 00 95 1D 01 84 [14:40:26]Write i2c OK [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: D1 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: D1 01 00 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: D1 01 00 95 1D 00 83 [14:40:26]Write to MH i2c: 01 00 00 96 1D B3 [14:40:26]Write i2c OK [14:40:26]MH_I2C_Read... [14:40:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 1D C4 47 00 BB 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 31 37 34 35 10 04 04 00 44 39 02 00 F4 03 04 00 07 F6 1D 67 B6 04 01 00 00 20 53 B7 13 94 35 C9 64 [14:40:26]CommunicateWithHost err = 0 [14:40:26]CheckOFDResponse [14:40:26]1017 (14) - 77093643461234 [14:40:26]1041 (16) - 0000000000871745 [14:40:26]1040 (4) - 145732 [14:40:26]1012 (4) - 27.10.2024 08:12 [14:40:26]1206 (1) - 0 [14:40:26]OFD Sender: Remove packet 145732 [14:40:26]ProducePacketName [14:40:26]name=ofd_packets/00145732 [14:40:26]NVStorageDeleteData [14:40:27]OFD Sender: No OFD packet to send [14:40:27]*** Cut start [14:40:27]*** Partial cut [14:40:27]*** CUTSNS_PIN = 1 [14:40:27]*** CUTSNS_PIN = 0 [14:40:27]*** Brake cut motor [14:40:27]Read from MH i2c: 01 [14:40:27]MH_I2C_Read... [14:40:27]*** Stop cut motor [14:40:27]*** Cut end [14:40:27]Read from MH i2c: 01 07 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: 01 07 00 96 1D 00 00 00 00 00 FF 0F C8 [14:40:27]process_action close_receipt done [14:40:27]requested_data is exist [14:40:27]produce_requested_data [14:40:27]requested_item fm.sn is exist - process it [14:40:27]wFMCommunicate request_size=4 [14:40:27]MH_SAM_APDU [14:40:27]CAPDU: 80 11 00 00 [14:40:27]Write to MH i2c: E2 08 00 97 1D 80 11 00 00 00 00 00 00 2E [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:27]Read from MH i2c: E2 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 17 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 17 00 97 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 81 [14:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:40:27]wFMCommunicate OK [14:40:27]requested_item fd.num is exist - process it [14:40:27]SAM_PROTO_GetFieldsCounters [14:40:27]wFMCommunicate request_size=4 [14:40:27]MH_SAM_APDU [14:40:27]CAPDU: 80 13 00 00 [14:40:27]Write to MH i2c: E2 08 00 98 1D 80 13 00 00 00 00 00 00 31 [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 62 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 62 00 98 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 44 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [14:40:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 44 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:28]wFMCommunicate OK [14:40:28]SAM_PROTO_GetFieldsCounters done [14:40:28]requested_item shift.num is exist - process it [14:40:28]requested_item shift.opened is exist - process it [14:40:28]req_shift_opened [14:40:28]FM_GetShiftState [14:40:28]SAM_PROTO_GetShiftState [14:40:28]wFMCommunicate request_size=4 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 13 01 00 [14:40:28]Write to MH i2c: E2 08 00 99 1D 80 13 01 00 00 00 00 00 33 [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 0E 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 0E 00 99 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AB [14:40:28]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:40:28]wFMCommunicate OK [14:40:28]SAM_PROTO_GetShiftState done [14:40:28]FM_GetShiftState done [14:40:28]req_shift_opened done [14:40:28]requested_item shift.open_date is exist - process it [14:40:28]req_shift_open_date [14:40:28]req_shift_open_date done [14:40:28]produce_requested_data done [14:40:28]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145732,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:40:28]process_action_free close_receipt [14:40:28]json_value_free [14:40:28]json_value_free done [14:40:28]process_json_proto returns [14:40:28]Send response to host [14:40:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145732,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:40:28]free response buf [14:40:28]execute_script done [14:40:28]execute_script returns [14:40:28]free content buf [14:40:28]Sock 7.Close socket [14:40:28]Sock 7.Thread stoped [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:06]accept exits with 9 [14:45:06]New connection [14:45:06]New thread 3066596708 created [14:45:06]Thread 3066740068 joined [14:45:06]Waiting for new connection... [14:45:06] Sock 9.Parse request [14:45:06]Sock 9.Check first char [14:45:06]Sock 9.First char is OK [14:45:06]request: POST /json_proto HTTP/1.0 [14:45:06]Method: POST [14:45:06]URL: /json_proto [14:45:06]Method is POST - this is cgi request [14:45:06]url: /json_proto [14:45:06]query_string will be loaded in cgi processing [14:45:06]execute_cgi json_proto POST (null) [14:45:06]execute_cgi path=json_proto method=POST [14:45:06]POST find Content-Length [14:45:06]Host: 172.17.40.195:8080 [14:45:06]Content-Length: 766 [14:45:06]Content-Type: application/json [14:45:06] [14:45:06]POST finish read [14:45:06]Found Content-Length = 766 [14:45:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 190.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:06]execute_script... [14:45: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)160489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 190.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:06]POST & json_proto [14:45:06]process_json_proto [14:45:06]json parsed OK: [14:45:06]protocol is kg_v1.0 [14:45:06]action value=close_receipt [14:45:06]process_action close_receipt [14:45:06]cmd_close_receipt [14:45:06]MH_GetDate [14:45:06]Write to MH i2c: F0 00 00 9A 1D A6 [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: F0 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: F0 09 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: F0 09 00 9A 1D 00 F4 51 1E 67 D5 8D 6C 64 AB [14:45:06]GetLastDocTimeStamp 1730040026 [14:45:06]current date 1730040308 [14:45:06]FM_GetShiftState [14:45:06]SAM_PROTO_GetShiftState [14:45:06]wFMCommunicate request_size=4 [14:45:06]MH_SAM_APDU [14:45:06]CAPDU: 80 13 01 00 [14:45:06]Write to MH i2c: E2 08 00 9B 1D 80 13 01 00 00 00 00 00 35 [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 0E 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 0E 00 9B 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AD [14:45:06]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:45:06]wFMCommunicate OK [14:45:06]SAM_PROTO_GetShiftState done [14:45:06]FM_GetShiftState done [14:45:06]opened in 1729988959 [14:45:06]opened+sec_in_day 1730075359 [14:45:06]quantity*price = 19066 [14:45:06]sum+1 = 19068 [14:45:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.67 НСП 1% : 1.69 НДС 12% : 20.25 Наличными: 0.00 Безнал.: 190.67 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 156 27.10.2024 14:45 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145733 ФПД: 58173557647251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144508&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145733&fm=58173557647251&tin=02508201610067®Number=0000000000091683&sum=19067 [14:45:07]StoreToDocumentArchive [14:45:07]shift 545 fd 145733 [14:45:07]save to /storage/0545/doc_00145733 [14:45:07]save last doc name /storage/0545/doc_00145733 to /storage/kkm_last_doc_name [14:45:07]save OK [14:45:07]Clear old archive folders... [14:45:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:07]tlvbuf is 0045CCE0 [14:45:07]SAM_PROTO_ClearQueue [14:45:07]wFMCommunicate request_size=4 [14:45:07]MH_SAM_APDU [14:45:07]CAPDU: 80 09 00 00 [14:45:07]Write to MH i2c: E2 08 00 A8 1D 80 09 00 00 00 00 00 00 37 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:07]Read from MH i2c: E2 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 A8 1D 00 90 00 39 [14:45:07]RAPDU: 90 00 [14:45:07]wFMCommunicate OK [14:45:07]SAM_PROTO_ClearQueue done [14:45:07]KKMCreateOFDPacket [14:45:07]OFDProtocolAddRootSTLVToBuf [14:45:07]FM_MakeSignedData [14:45:07]FM_MakeSignedData [14:45:07]SAM_PROTO_SignData [14:45:07]wFMCommunicate request_size=4 [14:45:07]MH_SAM_APDU [14:45:07]CAPDU: 80 0D 01 02 [14:45:07]Write to MH i2c: E2 08 00 A9 1D 80 0D 01 02 00 00 00 00 3F [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:07]Read from MH i2c: E2 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 A9 1D 00 90 00 3A [14:45:07]RAPDU: 90 00 [14:45:07]wFMCommunicate OK [14:45:07]wFMCommunicate request_size=255 [14:45:07]MH_SAM_APDU [14:45: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 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F4 51 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 45 39 02 00 35 04 06 00 34 [14:45:07]Write to MH i2c: E2 02 01 AA 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 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F4 51 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 45 39 02 00 35 04 06 00 34 00 00 D6 [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 AA 1D 00 90 00 3B [14:45:08]RAPDU: 90 00 [14:45:08]wFMCommunicate OK [14:45:08]wFMCommunicate request_size=10 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 0D 02 02 05 E8 96 3D 27 93 [14:45:08]Write to MH i2c: E2 0D 00 AB 1D 80 0D 02 02 05 00 E8 96 3D 27 93 00 00 C1 [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 AB 1D 00 90 00 3C [14:45:08]RAPDU: 90 00 [14:45:08]wFMCommunicate OK [14:45:08]wFMCommunicate request_size=4 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 0D 03 02 [14:45:08]Write to MH i2c: E2 08 00 AC 1D 80 0D 03 02 00 00 00 00 44 [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 0B 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 0B 00 AC 1D 00 99 96 A4 84 A8 8D D3 02 90 00 A6 [14:45:08]RAPDU: 99 96 A4 84 A8 8D D3 02 90 00 [14:45:08]wFMCommunicate OK [14:45:08]SAM_PROTO_SignData done [14:45:08]FM_MakeSignedData done [14:45:08]CreateOFDProtocolMessage [14:45:08]wFMCommunicate request_size=4 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 11 00 00 [14:45:08]Write to MH i2c: E2 08 00 AD 1D 80 11 00 00 00 00 00 00 44 [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 17 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 17 00 AD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 97 [14:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:45:08]wFMCommunicate OK [14:45:08]CreateOFDProtocolMessage done [14:45:08]OFDSenderStorePacket 145733 [14:45:08]StoreOFDPacket docnum=145733 [14:45:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 B0 82 07 01 68 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F4 51 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 45 39 02 00 35 04 06 00 34 E8 96 3D 27 93 99 96 A4 84 A8 8D D3 02 [14:45:08]CheckFolder [14:45:08]dirname=/storage/ofd_packets [14:45:08]CheckFolder done [14:45:08]ProducePacketName [14:45:08]name=ofd_packets/00145733 [14:45:08]NVStorageSaveData ofd_packets/00145733 [14:45:08]File name is /storage/ofd_packets/00145733 [14:45:08]Write 301 bytes [14:45:08]NVStorageSaveData done [14:45:08]OFDSenderStorePacket done [14:45:08]KKMCreateOFDPacket done [14:45:08]NVStorageSaveData kkm_last_timestamp [14:45:08]File name is /storage/kkm_last_timestamp [14:45:08]Write 4 bytes [14:45:08]NVStorageSaveData done [14:45:08]ExternCall_PrintAddStr [14:45:08]wPrintStart [14:45:08]Write to MH i2c: 01 00 00 AE 1D CB [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: 01 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: 01 07 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: 01 07 00 AE 1D 00 00 00 00 00 FF 0F E0 [14:45:08]RasterBufferAndPrint [14:45:08]line Счет N : (1)160489 [14:45:08]line ИНН: 02508201610067 [14:45:08]line Контрольно-Кассовый Чек [14:45:08]line ПРОДАЖА [14:45:08]line ТРК (МРК, ГНК) : 42 [14:45:08]line Товар: 2710124130 [14:45:08]line Аи-92-К-2 [14:45:08]line 2.850 * 66.90 [14:45:08]line = 190.67 [14:45:08]line НДС 12% НСП 1% [14:45:08]line > о реализуемом товаре [14:45:08]line ИТОГО: 190.67 [14:45:08]line НСП 1% : 1.69 [14:45:08]line НДС 12% : 20.25 [14:45:08]line Наличными: 0.00 [14:45:08]line Безнал.: 190.67 [14:45:08]line Место: АЗС № 126 "Партнер Нефть" [14:45:08]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:45:08]line СНО: Общий режим [14:45:08]line Чек 156 27.10.2024 14:45 [14:45:08]line Смена: 545 ФФД: 1.0 [14:45:08]line ЗНМ: 0300000085 [14:45:08]line РНМ: 0000000000091683 [14:45:08]line Версия ККМ: 001 [14:45:08]line Платежная система: Mbank [14:45:08]line ФМ: 0000000000871745 [14:45:08]line ФД: 145733 [14:45:08]line ФПД: 58173557647251 [14:45:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144508&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145733&fm=58173557647251&tin=02508201610067®Number=0000000000091683&sum=19067 [14:45:08]OFD Sender: Processing packet 145733 [packets to send 206, broken 205] [14:45:08]ProducePacketName [14:45:08]name=ofd_packets/00145733 [14:45:08]OFD Sender: To server: pG, [14:45:08]CommunicateWithHost lk.salyk.kg:30040 [14:45:08]ConnectInit lk.salyk.kg [14:45:08]written 0, free lines is 4095 [14:45:09]Write to MH i2c: 01 00 00 D7 1D F4 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 07 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 D2 0C D9 [14:45:09]RasterBufferAndPrint [14:45:09]line [14:45:09]line [14:45:09]line [14:45:09]line [14:45:09]line [14:45:09]written 0, free lines is 3287 [14:45:09]MH_Cut [14:45:09]Write to MH i2c: D1 01 00 DE 1D 01 CD [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: D1 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: D1 01 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: D1 01 00 DE 1D 00 CC [14:45:09]Write to MH i2c: 01 00 00 DF 1D FC [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:10]*** Cut start [14:45:10]*** Partial cut [14:45:10]*** CUTSNS_PIN = 1 [14:45:10]*** CUTSNS_PIN = 0 [14:45:10]*** Brake cut motor [14:45:10]Read from MH i2c: 01 [14:45:10]MH_I2C_Read... [14:45:10]*** Stop cut motor [14:45:10]*** Cut end [14:45:10]Read from MH i2c: 01 07 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: 01 07 00 DF 1D 00 00 00 00 00 FF 0F 11 [14:45:10]process_action close_receipt done [14:45:10]requested_data is exist [14:45:10]produce_requested_data [14:45:10]requested_item fm.sn is exist - process it [14:45:10]wFMCommunicate request_size=4 [14:45:10]MH_SAM_APDU [14:45:10]CAPDU: 80 11 00 00 [14:45:10]Write to MH i2c: E2 08 00 E0 1D 80 11 00 00 00 00 00 00 77 [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:10]Read from MH i2c: E2 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 17 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 17 00 E0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 CA [14:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:45:10]wFMCommunicate OK [14:45:10]requested_item fd.num is exist - process it [14:45:10]SAM_PROTO_GetFieldsCounters [14:45:10]wFMCommunicate request_size=4 [14:45:10]MH_SAM_APDU [14:45:10]CAPDU: 80 13 00 00 [14:45:10]Write to MH i2c: E2 08 00 E1 1D 80 13 00 00 00 00 00 00 7A [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:10]Read from MH i2c: E2 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 62 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 62 00 E1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 45 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [14:45:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 45 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:10]wFMCommunicate OK [14:45:10]SAM_PROTO_GetFieldsCounters done [14:45:10]requested_item shift.num is exist - process it [14:45:10]requested_item shift.opened is exist - process it [14:45:10]req_shift_opened [14:45:10]FM_GetShiftState [14:45:10]SAM_PROTO_GetShiftState [14:45:10]wFMCommunicate request_size=4 [14:45:10]MH_SAM_APDU [14:45:10]CAPDU: 80 13 01 00 [14:45:10]Write to MH i2c: E2 08 00 E2 1D 80 13 01 00 00 00 00 00 7C [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:10]Read from MH i2c: E2 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 0E 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 0E 00 E2 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F4 [14:45:10]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:45:10]wFMCommunicate OK [14:45:10]SAM_PROTO_GetShiftState done [14:45:10]FM_GetShiftState done [14:45:10]req_shift_opened done [14:45:10]requested_item shift.open_date is exist - process it [14:45:10]req_shift_open_date [14:45:10]req_shift_open_date done [14:45:10]produce_requested_data done [14:45:10]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145733,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:45:10]process_action_free close_receipt [14:45:10]json_value_free [14:45:10]json_value_free done [14:45:10]process_json_proto returns [14:45:10]Send response to host [14:45:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145733,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:45:10]free response buf [14:45:10]execute_script done [14:45:10]execute_script returns [14:45:10]free content buf [14:45:10]Sock 9.Close socket [14:45:10]Sock 9.Thread stoped [14:45:13]ConnectInit Can't take IP for lk.salyk.kg [14:45:13]CommunicateWithHost connect error [14:45:13]CommunicateWithHost err = -1 [14:45:13]OFD Sender: Server communicate error [14:45:18]OFD Sender: Processing packet 145733 [packets to send 206, broken 205] [14:45:18]ProducePacketName [14:45:18]name=ofd_packets/00145733 [14:45:18]OFD Sender: To server: pG, [14:45:18]CommunicateWithHost lk.salyk.kg:30040 [14:45:18]ConnectInit lk.salyk.kg [14:45:18]Connected sock=9 [14:45:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 B0 82 07 01 68 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F4 51 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 45 39 02 00 35 04 06 00 34 E8 96 3D 27 93 99 96 A4 84 A8 8D D3 02 [14:45:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 52 93 47 00 B6 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 31 37 34 35 10 04 04 00 45 39 02 00 F4 03 04 00 2C F7 1D 67 B6 04 01 00 00 E1 58 98 D9 E3 93 7C 43 [14:45:19]CommunicateWithHost err = 0 [14:45:19]CheckOFDResponse [14:45:19]1017 (14) - 77093643461234 [14:45:19]1041 (16) - 0000000000871745 [14:45:19]1040 (4) - 145733 [14:45:19]1012 (4) - 27.10.2024 08:17 [14:45:19]1206 (1) - 0 [14:45:19]OFD Sender: Remove packet 145733 [14:45:19]ProducePacketName [14:45:19]name=ofd_packets/00145733 [14:45:19]NVStorageDeleteData [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:39]accept exits with 10 [14:46:39]New connection [14:46:39]New thread 3066740068 created [14:46:39]Thread 3066596708 joined [14:46:39]Waiting for new connection... [14:46:39] Sock 10.Parse request [14:46:39]Sock 10.Check first char [14:46:39]Sock 10.First char is OK [14:46:39]request: POST /json_proto HTTP/1.0 [14:46:39]Method: POST [14:46:39]URL: /json_proto [14:46:39]Method is POST - this is cgi request [14:46:39]url: /json_proto [14:46:39]query_string will be loaded in cgi processing [14:46:39]execute_cgi json_proto POST (null) [14:46:39]execute_cgi path=json_proto method=POST [14:46:39]POST find Content-Length [14:46:39]Host: 172.17.40.195:8080 [14:46:39]Content-Length: 677 [14:46:39]Content-Type: application/json [14:46:39] [14:46:39]POST finish read [14:46:39]Found Content-Length = 677 [14:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:39]execute_script... [14:46: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)160490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:39]POST & json_proto [14:46:39]process_json_proto [14:46:39]json parsed OK: [14:46:39]protocol is kg_v1.0 [14:46:39]action value=close_receipt [14:46:39]process_action close_receipt [14:46:39]cmd_close_receipt [14:46:39]MH_GetDate [14:46:39]Write to MH i2c: F0 00 00 E3 1D EF [14:46:39]Write i2c OK [14:46:39]MH_I2C_Read... [14:46:39]Read from MH i2c: F0 [14:46:39]MH_I2C_Read... [14:46:39]Read from MH i2c: F0 09 00 [14:46:39]MH_I2C_Read... [14:46:39]Read from MH i2c: F0 09 00 E3 1D 00 51 52 1E 67 D5 8D 6C 64 52 [14:46:39]GetLastDocTimeStamp 1730040308 [14:46:39]current date 1730040401 [14:46:39]FM_GetShiftState [14:46:39]SAM_PROTO_GetShiftState [14:46:39]wFMCommunicate request_size=4 [14:46:39]MH_SAM_APDU [14:46:39]CAPDU: 80 13 01 00 [14:46:39]Write to MH i2c: E2 08 00 E4 1D 80 13 01 00 00 00 00 00 7E [14:46:39]Write i2c OK [14:46:39]MH_I2C_Read... [14:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:40]Read from MH i2c: E2 [14:46:40]MH_I2C_Read... [14:46:40]Read from MH i2c: E2 0E 00 [14:46:40]MH_I2C_Read... [14:46:40]Read from MH i2c: E2 0E 00 E4 1D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F6 [14:46:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:46:40]wFMCommunicate OK [14:46:40]SAM_PROTO_GetShiftState done [14:46:40]FM_GetShiftState done [14:46:40]opened in 1729988959 [14:46:40]opened+sec_in_day 1730075359 [14:46:40]quantity*price = 40006 [14:46:40]sum+1 = 40007 [14:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 157 27.10.2024 14:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145734 ФПД: 90622752077284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144641&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145734&fm=90622752077284&tin=02508201610067®Number=0000000000091683&sum=40000 [14:46:41]StoreToDocumentArchive [14:46:41]shift 545 fd 145734 [14:46:41]save to /storage/0545/doc_00145734 [14:46:41]save last doc name /storage/0545/doc_00145734 to /storage/kkm_last_doc_name [14:46:41]save OK [14:46:41]Clear old archive folders... [14:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:41]tlvbuf is 004116B0 [14:46:41]SAM_PROTO_ClearQueue [14:46:41]wFMCommunicate request_size=4 [14:46:41]MH_SAM_APDU [14:46:41]CAPDU: 80 09 00 00 [14:46:41]Write to MH i2c: E2 08 00 F1 1D 80 09 00 00 00 00 00 00 80 [14:46:41]Write i2c OK [14:46:41]MH_I2C_Read... [14:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:41]Read from MH i2c: E2 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 03 00 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 03 00 F1 1D 00 90 00 82 [14:46:41]RAPDU: 90 00 [14:46:41]wFMCommunicate OK [14:46:41]SAM_PROTO_ClearQueue done [14:46:41]KKMCreateOFDPacket [14:46:41]OFDProtocolAddRootSTLVToBuf [14:46:41]FM_MakeSignedData [14:46:41]FM_MakeSignedData [14:46:41]SAM_PROTO_SignData [14:46:41]wFMCommunicate request_size=4 [14:46:41]MH_SAM_APDU [14:46:41]CAPDU: 80 0D 01 02 [14:46:41]Write to MH i2c: E2 08 00 F2 1D 80 0D 01 02 00 00 00 00 88 [14:46:41]Write i2c OK [14:46:41]MH_I2C_Read... [14:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:41]Read from MH i2c: E2 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 03 00 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 03 00 F2 1D 00 90 00 83 [14:46:41]RAPDU: 90 00 [14:46:41]wFMCommunicate OK [14:46:41]wFMCommunicate request_size=255 [14:46:41]MH_SAM_APDU [14:46: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 51 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 46 39 02 00 35 04 06 00 52 [14:46:41]Write to MH i2c: E2 02 01 F3 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 51 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 46 39 02 00 35 04 06 00 52 00 00 A0 [14:46:41]Write i2c OK [14:46:41]MH_I2C_Read... [14:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:41]Read from MH i2c: E2 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 03 00 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 03 00 F3 1D 00 90 00 84 [14:46:41]RAPDU: 90 00 [14:46:41]wFMCommunicate OK [14:46:41]wFMCommunicate request_size=10 [14:46:41]MH_SAM_APDU [14:46:41]CAPDU: 80 0D 02 02 05 6B C0 F2 35 E4 [14:46:41]Write to MH i2c: E2 0D 00 F4 1D 80 0D 02 02 05 00 6B C0 F2 35 E4 00 00 CB [14:46:41]Write i2c OK [14:46:41]MH_I2C_Read... [14:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:41]Read from MH i2c: E2 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 03 00 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 03 00 F4 1D 00 90 00 85 [14:46:41]RAPDU: 90 00 [14:46:41]wFMCommunicate OK [14:46:41]wFMCommunicate request_size=4 [14:46:41]MH_SAM_APDU [14:46:41]CAPDU: 80 0D 03 02 [14:46:41]Write to MH i2c: E2 08 00 F5 1D 80 0D 03 02 00 00 00 00 8D [14:46:41]Write i2c OK [14:46:41]MH_I2C_Read... [14:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:41]Read from MH i2c: E2 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 0B 00 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 0B 00 F5 1D 00 DB C8 31 C5 0A 5E AC 23 90 00 5E [14:46:41]RAPDU: DB C8 31 C5 0A 5E AC 23 90 00 [14:46:41]wFMCommunicate OK [14:46:41]SAM_PROTO_SignData done [14:46:41]FM_MakeSignedData done [14:46:41]CreateOFDProtocolMessage [14:46:41]wFMCommunicate request_size=4 [14:46:41]MH_SAM_APDU [14:46:41]CAPDU: 80 11 00 00 [14:46:41]Write to MH i2c: E2 08 00 F6 1D 80 11 00 00 00 00 00 00 8D [14:46:41]Write i2c OK [14:46:41]MH_I2C_Read... [14:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:41]Read from MH i2c: E2 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 17 00 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: E2 17 00 F6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E0 [14:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:46:41]wFMCommunicate OK [14:46:41]CreateOFDProtocolMessage done [14:46:41]OFDSenderStorePacket 145734 [14:46:41]StoreOFDPacket docnum=145734 [14:46:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D8 25 07 01 C0 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 51 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 46 39 02 00 35 04 06 00 52 6B C0 F2 35 E4 DB C8 31 C5 0A 5E AC 23 [14:46:41]CheckFolder [14:46:41]dirname=/storage/ofd_packets [14:46:41]CheckFolder done [14:46:41]ProducePacketName [14:46:41]name=ofd_packets/00145734 [14:46:41]NVStorageSaveData ofd_packets/00145734 [14:46:41]File name is /storage/ofd_packets/00145734 [14:46:41]Write 301 bytes [14:46:41]NVStorageSaveData done [14:46:41]OFDSenderStorePacket done [14:46:41]KKMCreateOFDPacket done [14:46:41]NVStorageSaveData kkm_last_timestamp [14:46:41]File name is /storage/kkm_last_timestamp [14:46:41]Write 4 bytes [14:46:41]NVStorageSaveData done [14:46:41]ExternCall_PrintAddStr [14:46:41]wPrintStart [14:46:41]Write to MH i2c: 01 00 00 F7 1D 14 [14:46:41]Write i2c OK [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: 01 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: 01 07 00 [14:46:41]MH_I2C_Read... [14:46:41]Read from MH i2c: 01 07 00 F7 1D 00 00 00 00 00 FF 0F 29 [14:46:41]RasterBufferAndPrint [14:46:41]line Счет N : (1)160490 [14:46:41]line ИНН: 02508201610067 [14:46:41]line Контрольно-Кассовый Чек [14:46:41]line ПРОДАЖА [14:46:41]line ТРК (МРК, ГНК) : 42 [14:46:41]line Товар: 2710124130 [14:46:41]line Аи-92-К-2 [14:46:41]line 5.980 * 66.90 [14:46:41]line = 400.06 [14:46:41]line НДС 12% НСП 1% [14:46:41]line > о реализуемом товаре [14:46:41]line ОКРУГЛЕНИЕ: -0.06 [14:46:41]line ИТОГО: 400.00 [14:46:41]line Внесено: 400.00 [14:46:41]line СДАЧА: 0.00 [14:46:41]line НСП 1% : 3.54 [14:46:41]line НДС 12% : 42.48 [14:46:41]line Наличными: 400.00 [14:46:41]line Безнал.: 0.00 [14:46:41]line Место: АЗС № 126 "Партнер Нефть" [14:46:41]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:46:41]line СНО: Общий режим [14:46:41]line Чек 157 27.10.2024 14:46 [14:46:41]line Смена: 545 ФФД: 1.0 [14:46:41]line ЗНМ: 0300000085 [14:46:41]line РНМ: 0000000000091683 [14:46:41]line Версия ККМ: 001 [14:46:41]line ФМ: 0000000000871745 [14:46:41]line ФД: 145734 [14:46:41]line ФПД: 90622752077284 [14:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144641&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145734&fm=90622752077284&tin=02508201610067®Number=0000000000091683&sum=40000 [14:46:42]written 0, free lines is 4095 [14:46:42]OFD Sender: Processing packet 145734 [packets to send 206, broken 205] [14:46:42]ProducePacketName [14:46:42]name=ofd_packets/00145734 [14:46:42]OFD Sender: To server: pG, [14:46:42]CommunicateWithHost lk.salyk.kg:30040 [14:46:42]ConnectInit lk.salyk.kg [14:46:42]Connected sock=11 [14:46:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D8 25 07 01 C0 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 51 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 46 39 02 00 35 04 06 00 52 6B C0 F2 35 E4 DB C8 31 C5 0A 5E AC 23 [14:46:42]Write to MH i2c: 01 00 00 22 1E 40 [14:46:42]Write i2c OK [14:46:42]MH_I2C_Read... [14:46:42]Read from MH i2c: 01 [14:46:42]MH_I2C_Read... [14:46:42]Read from MH i2c: 01 07 00 [14:46:42]MH_I2C_Read... [14:46:42]Read from MH i2c: 01 07 00 22 1E 00 00 00 00 00 AD 0C 00 [14:46:42]RasterBufferAndPrint [14:46:42]line [14:46:42]line [14:46:42]line [14:46:42]line [14:46:42]line [14:46:42]written 0, free lines is 3251 [14:46:42]MH_Cut [14:46:42]Write to MH i2c: D1 01 00 29 1E 01 19 [14:46:42]Write i2c OK [14:46:42]MH_I2C_Read... [14:46:42]Read from MH i2c: D1 [14:46:42]MH_I2C_Read... [14:46:42]Read from MH i2c: D1 01 00 [14:46:42]MH_I2C_Read... [14:46:42]Read from MH i2c: D1 01 00 29 1E 00 18 [14:46:42]Write to MH i2c: 01 00 00 2A 1E 48 [14:46:42]Write i2c OK [14:46:42]MH_I2C_Read... [14:46:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 F2 DD 47 00 7F BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 46 39 02 00 F4 03 04 00 7F F7 1D 67 B6 04 01 00 00 BC 65 26 1B 4D A4 3B 66 [14:46:42]CommunicateWithHost err = 0 [14:46:42]CheckOFDResponse [14:46:42]1017 (14) - 77093643461234 [14:46:42]1041 (16) - 0000000000871745 [14:46:42]1040 (4) - 145734 [14:46:42]1012 (4) - 27.10.2024 08:19 [14:46:42]1206 (1) - 0 [14:46:42]OFD Sender: Remove packet 145734 [14:46:42]ProducePacketName [14:46:42]name=ofd_packets/00145734 [14:46:42]NVStorageDeleteData [14:46:43]OFD Sender: No OFD packet to send [14:46:43]*** Cut start [14:46:43]*** Partial cut [14:46:43]*** CUTSNS_PIN = 1 [14:46:43]*** CUTSNS_PIN = 0 [14:46:43]*** Brake cut motor [14:46:43]Read from MH i2c: 01 [14:46:43]MH_I2C_Read... [14:46:43]*** Stop cut motor [14:46:43]*** Cut end [14:46:43]Read from MH i2c: 01 07 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: 01 07 00 2A 1E 00 00 00 00 00 FF 0F 5D [14:46:43]process_action close_receipt done [14:46:43]requested_data is exist [14:46:43]produce_requested_data [14:46:43]requested_item fm.sn is exist - process it [14:46:43]wFMCommunicate request_size=4 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 11 00 00 [14:46:43]Write to MH i2c: E2 08 00 2B 1E 80 11 00 00 00 00 00 00 C3 [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 17 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 17 00 2B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 16 [14:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:46:43]wFMCommunicate OK [14:46:43]requested_item fd.num is exist - process it [14:46:43]SAM_PROTO_GetFieldsCounters [14:46:43]wFMCommunicate request_size=4 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 13 00 00 [14:46:43]Write to MH i2c: E2 08 00 2C 1E 80 13 00 00 00 00 00 00 C6 [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:44]Read from MH i2c: E2 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 62 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 62 00 2C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 46 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [14:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 46 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:44]wFMCommunicate OK [14:46:44]SAM_PROTO_GetFieldsCounters done [14:46:44]requested_item shift.num is exist - process it [14:46:44]requested_item shift.opened is exist - process it [14:46:44]req_shift_opened [14:46:44]FM_GetShiftState [14:46:44]SAM_PROTO_GetShiftState [14:46:44]wFMCommunicate request_size=4 [14:46:44]MH_SAM_APDU [14:46:44]CAPDU: 80 13 01 00 [14:46:44]Write to MH i2c: E2 08 00 2D 1E 80 13 01 00 00 00 00 00 C8 [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:44]Read from MH i2c: E2 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 0E 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 0E 00 2D 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 40 [14:46:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:46:44]wFMCommunicate OK [14:46:44]SAM_PROTO_GetShiftState done [14:46:44]FM_GetShiftState done [14:46:44]req_shift_opened done [14:46:44]requested_item shift.open_date is exist - process it [14:46:44]req_shift_open_date [14:46:44]req_shift_open_date done [14:46:44]produce_requested_data done [14:46:44]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145734,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:46:44]process_action_free close_receipt [14:46:44]json_value_free [14:46:44]json_value_free done [14:46:44]process_json_proto returns [14:46:44]Send response to host [14:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145734,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:46:44]free response buf [14:46:44]execute_script done [14:46:44]execute_script returns [14:46:44]free content buf [14:46:44]Sock 10.Close socket [14:46:44]Sock 10.Thread stoped [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:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:56]accept exits with 7 [14:47:56]New connection [14:47:56]New thread 3066596708 created [14:47:56]Thread 3066740068 joined [14:47:56]Waiting for new connection... [14:47:56] Sock 7.Parse request [14:47:56]Sock 7.Check first char [14:47:56]Sock 7.First char is OK [14:47:56]request: POST /json_proto HTTP/1.0 [14:47:56]Method: POST [14:47:56]URL: /json_proto [14:47:56]Method is POST - this is cgi request [14:47:56]url: /json_proto [14:47:56]query_string will be loaded in cgi processing [14:47:56]execute_cgi json_proto POST (null) [14:47:56]execute_cgi path=json_proto method=POST [14:47:56]POST find Content-Length [14:47:56]Host: 172.17.40.195:8080 [14:47:56]Content-Length: 678 [14:47:56]Content-Type: application/json [14:47:56] [14:47:56]POST finish read [14:47:56]Found Content-Length = 678 [14:47:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.080, "sum" : 896.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 896.00, "total" : 896.00, "payments": [ { "type": 0, "sum" : 896.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:56]execute_script... [14:47: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)160488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.080, "sum" : 896.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 896.00, "total" : 896.00, "payments": [ { "type": 0, "sum" : 896.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:56]POST & json_proto [14:47:56]process_json_proto [14:47:56]json parsed OK: [14:47:56]protocol is kg_v1.0 [14:47:56]action value=close_receipt [14:47:56]process_action close_receipt [14:47:56]cmd_close_receipt [14:47:56]MH_GetDate [14:47:56]Write to MH i2c: F0 00 00 2E 1E 3B [14:47:56]Write i2c OK [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: F0 [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: F0 09 00 [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: F0 09 00 2E 1E 00 9E 52 1E 67 D5 8D 6C 64 EB [14:47:56]GetLastDocTimeStamp 1730040401 [14:47:56]current date 1730040478 [14:47:56]FM_GetShiftState [14:47:56]SAM_PROTO_GetShiftState [14:47:56]wFMCommunicate request_size=4 [14:47:56]MH_SAM_APDU [14:47:56]CAPDU: 80 13 01 00 [14:47:56]Write to MH i2c: E2 08 00 2F 1E 80 13 01 00 00 00 00 00 CA [14:47:56]Write i2c OK [14:47:56]MH_I2C_Read... [14:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:56]Read from MH i2c: E2 [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: E2 0E 00 [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: E2 0E 00 2F 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 42 [14:47:56]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:47:56]wFMCommunicate OK [14:47:56]SAM_PROTO_GetShiftState done [14:47:56]FM_GetShiftState done [14:47:56]opened in 1729988959 [14:47:56]opened+sec_in_day 1730075359 [14:47:56]quantity*price = 89633 [14:47:56]sum+1 = 89635 [14:47:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 896.00 Внесено: 896.00 СДАЧА: 0.00 НСП 1% : 7.93 НДС 12% : 95.19 Наличными: 896.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 158 27.10.2024 14:47 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145735 ФПД: 128195624073571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144758&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145735&fm=128195624073571&tin=02508201610067®Number=0000000000091683&sum=89600 [14:47:58]StoreToDocumentArchive [14:47:58]shift 545 fd 145735 [14:47:58]save to /storage/0545/doc_00145735 [14:47:58]save last doc name /storage/0545/doc_00145735 to /storage/kkm_last_doc_name [14:47:58]save OK [14:47:58]Clear old archive folders... [14:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:58]tlvbuf is 003FB6D0 [14:47:58]SAM_PROTO_ClearQueue [14:47:58]wFMCommunicate request_size=4 [14:47:58]MH_SAM_APDU [14:47:58]CAPDU: 80 09 00 00 [14:47:58]Write to MH i2c: E2 08 00 3C 1E 80 09 00 00 00 00 00 00 CC [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:58]Read from MH i2c: E2 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 3C 1E 00 90 00 CE [14:47:58]RAPDU: 90 00 [14:47:58]wFMCommunicate OK [14:47:58]SAM_PROTO_ClearQueue done [14:47:58]KKMCreateOFDPacket [14:47:58]OFDProtocolAddRootSTLVToBuf [14:47:58]FM_MakeSignedData [14:47:58]FM_MakeSignedData [14:47:58]SAM_PROTO_SignData [14:47:58]wFMCommunicate request_size=4 [14:47:58]MH_SAM_APDU [14:47:58]CAPDU: 80 0D 01 02 [14:47:58]Write to MH i2c: E2 08 00 3D 1E 80 0D 01 02 00 00 00 00 D4 [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:58]Read from MH i2c: E2 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 3D 1E 00 90 00 CF [14:47:58]RAPDU: 90 00 [14:47:58]wFMCommunicate OK [14:47:58]wFMCommunicate request_size=255 [14:47:58]MH_SAM_APDU [14:47: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 33 FF 03 08 00 03 30 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 22 5E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 5E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 25 00 00 00 00 07 04 06 00 00 5E 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 9E 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 47 39 02 00 35 04 06 00 74 [14:47:58]Write to MH i2c: E2 02 01 3E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 22 5E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 5E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 25 00 00 00 00 07 04 06 00 00 5E 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 9E 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 47 39 02 00 35 04 06 00 74 00 00 34 [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:58]OFD Sender: No OFD packet to send [14:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:58]Read from MH i2c: E2 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 3E 1E 00 90 00 D0 [14:47:58]RAPDU: 90 00 [14:47:58]wFMCommunicate OK [14:47:58]wFMCommunicate request_size=10 [14:47:58]MH_SAM_APDU [14:47:58]CAPDU: 80 0D 02 02 05 97 DE A2 79 63 [14:47:58]Write to MH i2c: E2 0D 00 3F 1E 80 0D 02 02 05 00 97 DE A2 79 63 00 00 D4 [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:58]Read from MH i2c: E2 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 3F 1E 00 90 00 D1 [14:47:58]RAPDU: 90 00 [14:47:58]wFMCommunicate OK [14:47:58]wFMCommunicate request_size=4 [14:47:58]MH_SAM_APDU [14:47:58]CAPDU: 80 0D 03 02 [14:47:58]Write to MH i2c: E2 08 00 40 1E 80 0D 03 02 00 00 00 00 D9 [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:58]Read from MH i2c: E2 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 0B 00 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 0B 00 40 1E 00 B9 EC 77 B9 7C B0 03 07 90 00 E5 [14:47:58]RAPDU: B9 EC 77 B9 7C B0 03 07 90 00 [14:47:58]wFMCommunicate OK [14:47:58]SAM_PROTO_SignData done [14:47:58]FM_MakeSignedData done [14:47:58]CreateOFDProtocolMessage [14:47:58]wFMCommunicate request_size=4 [14:47:58]MH_SAM_APDU [14:47:58]CAPDU: 80 11 00 00 [14:47:58]Write to MH i2c: E2 08 00 41 1E 80 11 00 00 00 00 00 00 D9 [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:58]Read from MH i2c: E2 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 17 00 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 17 00 41 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2C [14:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:47:58]wFMCommunicate OK [14:47:58]CreateOFDProtocolMessage done [14:47:58]OFDSenderStorePacket 145735 [14:47:58]StoreOFDPacket docnum=145735 [14:47:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E2 D9 07 01 94 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 22 5E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 5E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 25 00 00 00 00 07 04 06 00 00 5E 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 9E 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 47 39 02 00 35 04 06 00 74 97 DE A2 79 63 B9 EC 77 B9 7C B0 03 07 [14:47:58]CheckFolder [14:47:58]dirname=/storage/ofd_packets [14:47:58]CheckFolder done [14:47:58]ProducePacketName [14:47:58]name=ofd_packets/00145735 [14:47:58]NVStorageSaveData ofd_packets/00145735 [14:47:58]File name is /storage/ofd_packets/00145735 [14:47:58]Write 301 bytes [14:47:58]NVStorageSaveData done [14:47:58]OFDSenderStorePacket done [14:47:58]KKMCreateOFDPacket done [14:47:58]NVStorageSaveData kkm_last_timestamp [14:47:58]File name is /storage/kkm_last_timestamp [14:47:58]Write 4 bytes [14:47:58]NVStorageSaveData done [14:47:58]ExternCall_PrintAddStr [14:47:58]wPrintStart [14:47:58]Write to MH i2c: 01 00 00 42 1E 60 [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: 01 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: 01 07 00 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: 01 07 00 42 1E 00 00 00 00 00 FF 0F 75 [14:47:58]RasterBufferAndPrint [14:47:58]line Счет N : (1)160488 [14:47:58]line ИНН: 02508201610067 [14:47:58]line Контрольно-Кассовый Чек [14:47:58]line ПРОДАЖА [14:47:58]line ТРК (МРК, ГНК) : 63 [14:47:58]line Товар: 2710124500 [14:47:58]line Аи-95-К-3 [14:47:58]line 12.080 * 74.20 [14:47:58]line = 896.34 [14:47:58]line НДС 12% НСП 1% [14:47:58]line > о реализуемом товаре [14:47:58]line ОКРУГЛЕНИЕ: -0.34 [14:47:58]line ИТОГО: 896.00 [14:47:58]line Внесено: 896.00 [14:47:58]line СДАЧА: 0.00 [14:47:58]line НСП 1% : 7.93 [14:47:58]line НДС 12% : 95.19 [14:47:58]line Наличными: 896.00 [14:47:58]line Безнал.: 0.00 [14:47:58]line Место: АЗС № 126 "Партнер Нефть" [14:47:58]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:47:58]line СНО: Общий режим [14:47:58]line Чек 158 27.10.2024 14:47 [14:47:58]line Смена: 545 ФФД: 1.0 [14:47:58]line ЗНМ: 0300000085 [14:47:58]line РНМ: 0000000000091683 [14:47:58]line Версия ККМ: 001 [14:47:58]line ФМ: 0000000000871745 [14:47:58]line ФД: 145735 [14:47:58]line ФПД: 128195624073571 [14:47:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144758&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145735&fm=128195624073571&tin=02508201610067®Number=0000000000091683&sum=89600 [14:47:58]OFD Sender: Processing packet 145735 [packets to send 206, broken 205] [14:47:58]ProducePacketName [14:47:58]name=ofd_packets/00145735 [14:47:58]OFD Sender: To server: pG, [14:47:58]CommunicateWithHost lk.salyk.kg:30040 [14:47:58]ConnectInit lk.salyk.kg [14:47:58]written 0, free lines is 4095 [14:47:58]Connected sock=11 [14:47:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E2 D9 07 01 94 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 22 5E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 5E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 25 00 00 00 00 07 04 06 00 00 5E 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 9E 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 47 39 02 00 35 04 06 00 74 97 DE A2 79 63 B9 EC 77 B9 7C B0 03 07 [14:47:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 59 3B 47 00 30 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 47 39 02 00 F4 03 04 00 CC F7 1D 67 B6 04 01 00 00 90 8B AD 9F 76 FD 67 85 [14:47:59]CommunicateWithHost err = 0 [14:47:59]CheckOFDResponse [14:47:59]1017 (14) - 77093643461234 [14:47:59]1041 (16) - 0000000000871745 [14:47:59]1040 (4) - 145735 [14:47:59]1012 (4) - 27.10.2024 08:20 [14:47:59]1206 (1) - 0 [14:47:59]OFD Sender: Remove packet 145735 [14:47:59]ProducePacketName [14:47:59]name=ofd_packets/00145735 [14:47:59]NVStorageDeleteData [14:47:59]Write to MH i2c: 01 00 00 6D 1E 8B [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 07 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 B9 0C 57 [14:47:59]RasterBufferAndPrint [14:47:59]line [14:47:59]line [14:47:59]line [14:47:59]line [14:47:59]line [14:47:59]written 0, free lines is 3264 [14:47:59]MH_Cut [14:47:59]Write to MH i2c: D1 01 00 74 1E 01 64 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: D1 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: D1 01 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: D1 01 00 74 1E 00 63 [14:47:59]Write to MH i2c: 01 00 00 75 1E 93 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]OFD Sender: No OFD packet to send [14:48:00]*** Cut start [14:48:00]*** Partial cut [14:48:00]*** CUTSNS_PIN = 1 [14:48:00]*** CUTSNS_PIN = 0 [14:48:00]*** Brake cut motor [14:48:00]Read from MH i2c: 01 [14:48:00]MH_I2C_Read... [14:48:00]*** Stop cut motor [14:48:00]*** Cut end [14:48:00]Read from MH i2c: 01 07 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: 01 07 00 75 1E 00 00 00 00 00 FF 0F A8 [14:48:00]process_action close_receipt done [14:48:00]requested_data is exist [14:48:00]produce_requested_data [14:48:00]requested_item fm.sn is exist - process it [14:48:00]wFMCommunicate request_size=4 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 11 00 00 [14:48:00]Write to MH i2c: E2 08 00 76 1E 80 11 00 00 00 00 00 00 0E [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 17 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 17 00 76 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 61 [14:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:48:00]wFMCommunicate OK [14:48:00]requested_item fd.num is exist - process it [14:48:00]SAM_PROTO_GetFieldsCounters [14:48:00]wFMCommunicate request_size=4 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 13 00 00 [14:48:00]Write to MH i2c: E2 08 00 77 1E 80 13 00 00 00 00 00 00 11 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 62 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 62 00 77 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 47 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [14:48:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 47 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:00]wFMCommunicate OK [14:48:00]SAM_PROTO_GetFieldsCounters done [14:48:00]requested_item shift.num is exist - process it [14:48:00]requested_item shift.opened is exist - process it [14:48:00]req_shift_opened [14:48:00]FM_GetShiftState [14:48:00]SAM_PROTO_GetShiftState [14:48:00]wFMCommunicate request_size=4 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 13 01 00 [14:48:00]Write to MH i2c: E2 08 00 78 1E 80 13 01 00 00 00 00 00 13 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 0E 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 0E 00 78 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8B [14:48:01]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:48:01]wFMCommunicate OK [14:48:01]SAM_PROTO_GetShiftState done [14:48:01]FM_GetShiftState done [14:48:01]req_shift_opened done [14:48:01]requested_item shift.open_date is exist - process it [14:48:01]req_shift_open_date [14:48:01]req_shift_open_date done [14:48:01]produce_requested_data done [14:48:01]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145735,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:48:01]process_action_free close_receipt [14:48:01]json_value_free [14:48:01]json_value_free done [14:48:01]process_json_proto returns [14:48:01]Send response to host [14:48:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145735,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:48:01]free response buf [14:48:01]execute_script done [14:48:01]execute_script returns [14:48:01]free content buf [14:48:01]Sock 7.Close socket [14:48:01]Sock 7.Thread stoped [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:58]accept exits with 9 [14:48:58]New connection [14:48:58]New thread 3066740068 created [14:48:58]Thread 3066596708 joined [14:48:58]Waiting for new connection... [14:48:58] Sock 9.Parse request [14:48:58]Sock 9.Check first char [14:48:58]Sock 9.First char is OK [14:48:58]request: POST /json_proto HTTP/1.0 [14:48:58]Method: POST [14:48:58]URL: /json_proto [14:48:58]Method is POST - this is cgi request [14:48:58]url: /json_proto [14:48:58]query_string will be loaded in cgi processing [14:48:58]execute_cgi json_proto POST (null) [14:48:58]execute_cgi path=json_proto method=POST [14:48:58]POST find Content-Length [14:48:58]Host: 172.17.40.195:8080 [14:48:58]Content-Length: 675 [14:48:58]Content-Type: application/json [14:48:58] [14:48:58]POST finish read [14:48:58]Found Content-Length = 675 [14:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:58]execute_script... [14:48: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)160492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:58]POST & json_proto [14:48:58]process_json_proto [14:48:58]json parsed OK: [14:48:58]protocol is kg_v1.0 [14:48:58]action value=close_receipt [14:48:58]process_action close_receipt [14:48:58]cmd_close_receipt [14:48:58]MH_GetDate [14:48:58]Write to MH i2c: F0 00 00 79 1E 86 [14:48:58]Write i2c OK [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: F0 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: F0 09 00 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: F0 09 00 79 1E 00 DC 52 1E 67 D5 8D 6C 64 74 [14:48:58]GetLastDocTimeStamp 1730040478 [14:48:58]current date 1730040540 [14:48:58]FM_GetShiftState [14:48:58]SAM_PROTO_GetShiftState [14:48:58]wFMCommunicate request_size=4 [14:48:58]MH_SAM_APDU [14:48:58]CAPDU: 80 13 01 00 [14:48:58]Write to MH i2c: E2 08 00 7A 1E 80 13 01 00 00 00 00 00 15 [14:48:58]Write i2c OK [14:48:58]MH_I2C_Read... [14:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:58]Read from MH i2c: E2 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: E2 0E 00 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: E2 0E 00 7A 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8D [14:48:58]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:48:58]wFMCommunicate OK [14:48:58]SAM_PROTO_GetShiftState done [14:48:58]FM_GetShiftState done [14:48:58]opened in 1729988959 [14:48:58]opened+sec_in_day 1730075359 [14:48:58]quantity*price = 90068 [14:48:58]sum+1 = 90069 [14:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 159 27.10.2024 14:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145736 ФПД: 27528278842010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144900&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145736&fm=27528278842010&tin=02508201610067®Number=0000000000091683&sum=90000 [14:48:59]StoreToDocumentArchive [14:48:59]shift 545 fd 145736 [14:48:59]save to /storage/0545/doc_00145736 [14:48:59]save last doc name /storage/0545/doc_00145736 to /storage/kkm_last_doc_name [14:48:59]save OK [14:48:59]Clear old archive folders... [14:48:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:48:59]tlvbuf is 0041BAE0 [14:48:59]SAM_PROTO_ClearQueue [14:48:59]wFMCommunicate request_size=4 [14:48:59]MH_SAM_APDU [14:48:59]CAPDU: 80 09 00 00 [14:48:59]Write to MH i2c: E2 08 00 87 1E 80 09 00 00 00 00 00 00 17 [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 87 1E 00 90 00 19 [14:48:59]RAPDU: 90 00 [14:48:59]wFMCommunicate OK [14:48:59]SAM_PROTO_ClearQueue done [14:48:59]KKMCreateOFDPacket [14:48:59]OFDProtocolAddRootSTLVToBuf [14:48:59]FM_MakeSignedData [14:48:59]FM_MakeSignedData [14:48:59]SAM_PROTO_SignData [14:48:59]wFMCommunicate request_size=4 [14:48:59]MH_SAM_APDU [14:48:59]CAPDU: 80 0D 01 02 [14:48:59]Write to MH i2c: E2 08 00 88 1E 80 0D 01 02 00 00 00 00 1F [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 88 1E 00 90 00 1A [14:48:59]RAPDU: 90 00 [14:48:59]wFMCommunicate OK [14:48:59]wFMCommunicate request_size=255 [14:48:59]MH_SAM_APDU [14:48: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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 DC 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 48 39 02 00 35 04 06 00 19 09 6D 48 [14:48:59]Write to MH i2c: E2 02 01 89 1E 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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 DC 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 48 39 02 00 35 04 06 00 19 09 6D 48 00 00 3B [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 89 1E 00 90 00 1B [14:48:59]RAPDU: 90 00 [14:48:59]wFMCommunicate OK [14:48:59]wFMCommunicate request_size=7 [14:48:59]MH_SAM_APDU [14:48:59]CAPDU: 80 0D 02 02 02 1A 9A [14:48:59]Write to MH i2c: E2 0A 00 8A 1E 80 0D 02 02 02 00 1A 9A 00 00 DA [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]OFD Sender: No OFD packet to send [14:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 03 00 8A 1E 00 90 00 1C [14:48:59]RAPDU: 90 00 [14:48:59]wFMCommunicate OK [14:48:59]wFMCommunicate request_size=4 [14:48:59]MH_SAM_APDU [14:48:59]CAPDU: 80 0D 03 02 [14:48:59]Write to MH i2c: E2 08 00 8B 1E 80 0D 03 02 00 00 00 00 24 [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 0B 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 0B 00 8B 1E 00 74 86 74 69 8A 12 8C A3 90 00 C7 [14:48:59]RAPDU: 74 86 74 69 8A 12 8C A3 90 00 [14:48:59]wFMCommunicate OK [14:48:59]SAM_PROTO_SignData done [14:49:00]FM_MakeSignedData done [14:49:00]CreateOFDProtocolMessage [14:49:00]wFMCommunicate request_size=4 [14:49:00]MH_SAM_APDU [14:49:00]CAPDU: 80 11 00 00 [14:49:00]Write to MH i2c: E2 08 00 8C 1E 80 11 00 00 00 00 00 00 24 [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:00]Read from MH i2c: E2 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 17 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 17 00 8C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 77 [14:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:49:00]wFMCommunicate OK [14:49:00]CreateOFDProtocolMessage done [14:49:00]OFDSenderStorePacket 145736 [14:49:00]StoreOFDPacket docnum=145736 [14:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 D7 38 04 01 28 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 DC 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 48 39 02 00 35 04 06 00 19 09 6D 48 1A 9A 74 86 74 69 8A 12 8C A3 [14:49:00]CheckFolder [14:49:00]dirname=/storage/ofd_packets [14:49:00]CheckFolder done [14:49:00]ProducePacketName [14:49:00]name=ofd_packets/00145736 [14:49:00]NVStorageSaveData ofd_packets/00145736 [14:49:00]File name is /storage/ofd_packets/00145736 [14:49:00]Write 298 bytes [14:49:00]NVStorageSaveData done [14:49:00]OFDSenderStorePacket done [14:49:00]KKMCreateOFDPacket done [14:49:00]NVStorageSaveData kkm_last_timestamp [14:49:00]File name is /storage/kkm_last_timestamp [14:49:00]Write 4 bytes [14:49:00]NVStorageSaveData done [14:49:00]ExternCall_PrintAddStr [14:49:00]wPrintStart [14:49:00]Write to MH i2c: 01 00 00 8D 1E AB [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: 01 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: 01 07 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: 01 07 00 8D 1E 00 00 00 00 00 FF 0F C0 [14:49:00]RasterBufferAndPrint [14:49:00]line Счет N : (1)160492 [14:49:00]line ИНН: 02508201610067 [14:49:00]line Контрольно-Кассовый Чек [14:49:00]line ПРОДАЖА [14:49:00]line ТРК (МРК, ГНК) : 21 [14:49:00]line Товар: 2710194210 [14:49:00]line ДТ-К-2 [14:49:00]line 11.820 * 76.20 [14:49:00]line = 900.68 [14:49:00]line НДС 12% НСП 1% [14:49:00]line > о реализуемом товаре [14:49:00]line ОКРУГЛЕНИЕ: -0.68 [14:49:00]line ИТОГО: 900.00 [14:49:00]line Внесено: 900.00 [14:49:00]line СДАЧА: 0.00 [14:49:00]line НСП 1% : 7.97 [14:49:00]line НДС 12% : 95.65 [14:49:00]line Наличными: 900.00 [14:49:00]line Безнал.: 0.00 [14:49:00]line Место: АЗС № 126 "Партнер Нефть" [14:49:00]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:49:00]line СНО: Общий режим [14:49:00]line Чек 159 27.10.2024 14:49 [14:49:00]line Смена: 545 ФФД: 1.0 [14:49:00]line ЗНМ: 0300000085 [14:49:00]line РНМ: 0000000000091683 [14:49:00]line Версия ККМ: 001 [14:49:00]line ФМ: 0000000000871745 [14:49:00]line ФД: 145736 [14:49:00]line ФПД: 27528278842010 [14:49:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144900&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145736&fm=27528278842010&tin=02508201610067®Number=0000000000091683&sum=90000 [14:49:00]OFD Sender: Processing packet 145736 [packets to send 206, broken 205] [14:49:00]ProducePacketName [14:49:00]name=ofd_packets/00145736 [14:49:00]OFD Sender: To server: pG, [14:49:00]CommunicateWithHost lk.salyk.kg:30040 [14:49:00]ConnectInit lk.salyk.kg [14:49:00]written 0, free lines is 4095 [14:49:00]Connected sock=10 [14:49:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 D7 38 04 01 28 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 DC 52 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 48 39 02 00 35 04 06 00 19 09 6D 48 1A 9A 74 86 74 69 8A 12 8C A3 [14:49:00]Write to MH i2c: 01 00 00 B8 1E D6 [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: 01 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: 01 07 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: 01 07 00 B8 1E 00 00 00 00 00 B9 0C A2 [14:49:00]RasterBufferAndPrint [14:49:00]line [14:49:00]line [14:49:00]line [14:49:00]line [14:49:00]line [14:49:00]written 0, free lines is 3264 [14:49:00]MH_Cut [14:49:00]Write to MH i2c: D1 01 00 BF 1E 01 AF [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: D1 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: D1 01 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: D1 01 00 BF 1E 00 AE [14:49:00]Write to MH i2c: 01 00 00 C0 1E DE [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 95 A4 47 00 77 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 48 39 02 00 F4 03 04 00 09 F8 1D 67 B6 04 01 00 00 17 F2 3D 8D C3 97 6C D9 [14:49:00]CommunicateWithHost err = 0 [14:49:00]CheckOFDResponse [14:49:00]1017 (14) - 77093643461234 [14:49:00]1041 (16) - 0000000000871745 [14:49:00]1040 (4) - 145736 [14:49:00]1012 (4) - 27.10.2024 08:21 [14:49:00]1206 (1) - 0 [14:49:00]OFD Sender: Remove packet 145736 [14:49:00]ProducePacketName [14:49:00]name=ofd_packets/00145736 [14:49:00]NVStorageDeleteData [14:49:01]OFD Sender: No OFD packet to send [14:49:01]*** Cut start [14:49:01]*** Partial cut [14:49:01]*** CUTSNS_PIN = 1 [14:49:01]*** CUTSNS_PIN = 0 [14:49:01]*** Brake cut motor [14:49:02]Read from MH i2c: 01 [14:49:02]MH_I2C_Read... [14:49:02]*** Stop cut motor [14:49:02]*** Cut end [14:49:02]Read from MH i2c: 01 07 00 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: 01 07 00 C0 1E 00 00 00 00 00 FF 0F F3 [14:49:02]process_action close_receipt done [14:49:02]requested_data is exist [14:49:02]produce_requested_data [14:49:02]requested_item fm.sn is exist - process it [14:49:02]wFMCommunicate request_size=4 [14:49:02]MH_SAM_APDU [14:49:02]CAPDU: 80 11 00 00 [14:49:02]Write to MH i2c: E2 08 00 C1 1E 80 11 00 00 00 00 00 00 59 [14:49:02]Write i2c OK [14:49:02]MH_I2C_Read... [14:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:02]Read from MH i2c: E2 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 17 00 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 17 00 C1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AC [14:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:49:02]wFMCommunicate OK [14:49:02]requested_item fd.num is exist - process it [14:49:02]SAM_PROTO_GetFieldsCounters [14:49:02]wFMCommunicate request_size=4 [14:49:02]MH_SAM_APDU [14:49:02]CAPDU: 80 13 00 00 [14:49:02]Write to MH i2c: E2 08 00 C2 1E 80 13 00 00 00 00 00 00 5C [14:49:02]Write i2c OK [14:49:02]MH_I2C_Read... [14:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:02]Read from MH i2c: E2 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 62 00 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 62 00 C2 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 48 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [14:49:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 48 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:02]wFMCommunicate OK [14:49:02]SAM_PROTO_GetFieldsCounters done [14:49:02]requested_item shift.num is exist - process it [14:49:02]requested_item shift.opened is exist - process it [14:49:02]req_shift_opened [14:49:02]FM_GetShiftState [14:49:02]SAM_PROTO_GetShiftState [14:49:02]wFMCommunicate request_size=4 [14:49:02]MH_SAM_APDU [14:49:02]CAPDU: 80 13 01 00 [14:49:02]Write to MH i2c: E2 08 00 C3 1E 80 13 01 00 00 00 00 00 5E [14:49:02]Write i2c OK [14:49:02]MH_I2C_Read... [14:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:02]Read from MH i2c: E2 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 0E 00 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 0E 00 C3 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D6 [14:49:02]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:49:02]wFMCommunicate OK [14:49:02]SAM_PROTO_GetShiftState done [14:49:02]FM_GetShiftState done [14:49:02]req_shift_opened done [14:49:02]requested_item shift.open_date is exist - process it [14:49:02]req_shift_open_date [14:49:02]req_shift_open_date done [14:49:02]produce_requested_data done [14:49:02]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145736,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:49:02]process_action_free close_receipt [14:49:02]json_value_free [14:49:02]json_value_free done [14:49:02]process_json_proto returns [14:49:02]Send response to host [14:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145736,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:49:02]free response buf [14:49:02]execute_script done [14:49:02]execute_script returns [14:49:02]free content buf [14:49:02]Sock 9.Close socket [14:49:02]Sock 9.Thread stoped [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:28]accept exits with 7 [14:51:28]New connection [14:51:28]New thread 3066596708 created [14:51:28]Thread 3066740068 joined [14:51:28]Waiting for new connection... [14:51:28] Sock 7.Parse request [14:51:28]Sock 7.Check first char [14:51:28]Sock 7.First char is OK [14:51:28]request: POST /json_proto HTTP/1.0 [14:51:28]Method: POST [14:51:28]URL: /json_proto [14:51:28]Method is POST - this is cgi request [14:51:28]url: /json_proto [14:51:28]query_string will be loaded in cgi processing [14:51:28]execute_cgi json_proto POST (null) [14:51:28]execute_cgi path=json_proto method=POST [14:51:28]POST find Content-Length [14:51:28]Host: 172.17.40.195:8080 [14:51:28]Content-Length: 679 [14:51:28]Content-Type: application/json [14:51:28] [14:51:28]POST finish read [14:51:28]Found Content-Length = 679 [14:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:28]execute_script... [14:51: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)160493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:28]POST & json_proto [14:51:28]process_json_proto [14:51:28]json parsed OK: [14:51:28]protocol is kg_v1.0 [14:51:28]action value=close_receipt [14:51:28]process_action close_receipt [14:51:28]cmd_close_receipt [14:51:28]MH_GetDate [14:51:28]Write to MH i2c: F0 00 00 C4 1E D1 [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: F0 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: F0 09 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: F0 09 00 C4 1E 00 72 53 1E 67 D5 8D 6C 64 56 [14:51:28]GetLastDocTimeStamp 1730040540 [14:51:28]current date 1730040690 [14:51:28]FM_GetShiftState [14:51:28]SAM_PROTO_GetShiftState [14:51:28]wFMCommunicate request_size=4 [14:51:28]MH_SAM_APDU [14:51:28]CAPDU: 80 13 01 00 [14:51:28]Write to MH i2c: E2 08 00 C5 1E 80 13 01 00 00 00 00 00 60 [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:28]Read from MH i2c: E2 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 0E 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 0E 00 C5 1E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D8 [14:51:28]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:51:28]wFMCommunicate OK [14:51:28]SAM_PROTO_GetShiftState done [14:51:28]FM_GetShiftState done [14:51:28]opened in 1729988959 [14:51:28]opened+sec_in_day 1730075359 [14:51:28]quantity*price = 200025 [14:51:28]sum+1 = 200026 [14:51:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 160 27.10.2024 14:51 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145737 ФПД: 50174902231381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145130&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145737&fm=50174902231381&tin=02508201610067®Number=0000000000091683&sum=200000 [14:51:29]StoreToDocumentArchive [14:51:29]shift 545 fd 145737 [14:51:29]save to /storage/0545/doc_00145737 [14:51:29]save last doc name /storage/0545/doc_00145737 to /storage/kkm_last_doc_name [14:51:29]save OK [14:51:29]Clear old archive folders... [14:51:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:51:29]tlvbuf is B6E8DEF0 [14:51:29]SAM_PROTO_ClearQueue [14:51:29]wFMCommunicate request_size=4 [14:51:29]MH_SAM_APDU [14:51:29]CAPDU: 80 09 00 00 [14:51:29]Write to MH i2c: E2 08 00 D2 1E 80 09 00 00 00 00 00 00 62 [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:29]Read from MH i2c: E2 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 03 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 03 00 D2 1E 00 90 00 64 [14:51:29]RAPDU: 90 00 [14:51:29]wFMCommunicate OK [14:51:29]SAM_PROTO_ClearQueue done [14:51:29]KKMCreateOFDPacket [14:51:29]OFDProtocolAddRootSTLVToBuf [14:51:29]FM_MakeSignedData [14:51:29]FM_MakeSignedData [14:51:29]SAM_PROTO_SignData [14:51:29]wFMCommunicate request_size=4 [14:51:29]MH_SAM_APDU [14:51:29]CAPDU: 80 0D 01 02 [14:51:29]Write to MH i2c: E2 08 00 D3 1E 80 0D 01 02 00 00 00 00 6A [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:29]Read from MH i2c: E2 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 03 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 03 00 D3 1E 00 90 00 65 [14:51:29]RAPDU: 90 00 [14:51:29]wFMCommunicate OK [14:51:29]wFMCommunicate request_size=255 [14:51:29]MH_SAM_APDU [14:51:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 72 53 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 49 39 02 00 35 04 06 00 2D A2 41 39 [14:51:29]Write to MH i2c: E2 02 01 D4 1E 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 72 53 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 49 39 02 00 35 04 06 00 2D A2 41 39 00 00 B6 [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:29]Read from MH i2c: E2 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 03 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 03 00 D4 1E 00 90 00 66 [14:51:29]RAPDU: 90 00 [14:51:29]wFMCommunicate OK [14:51:29]wFMCommunicate request_size=7 [14:51:29]MH_SAM_APDU [14:51:29]CAPDU: 80 0D 02 02 02 61 55 [14:51:29]Write to MH i2c: E2 0A 00 D5 1E 80 0D 02 02 02 00 61 55 00 00 27 [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:29]Read from MH i2c: E2 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 03 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 03 00 D5 1E 00 90 00 67 [14:51:29]RAPDU: 90 00 [14:51:29]wFMCommunicate OK [14:51:29]wFMCommunicate request_size=4 [14:51:29]MH_SAM_APDU [14:51:29]CAPDU: 80 0D 03 02 [14:51:29]Write to MH i2c: E2 08 00 D6 1E 80 0D 03 02 00 00 00 00 6F [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:29]Read from MH i2c: E2 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 0B 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 0B 00 D6 1E 00 B3 A2 08 41 67 53 2F 46 90 00 3D [14:51:29]RAPDU: B3 A2 08 41 67 53 2F 46 90 00 [14:51:29]wFMCommunicate OK [14:51:29]SAM_PROTO_SignData done [14:51:29]FM_MakeSignedData done [14:51:29]CreateOFDProtocolMessage [14:51:29]wFMCommunicate request_size=4 [14:51:29]MH_SAM_APDU [14:51:29]CAPDU: 80 11 00 00 [14:51:29]Write to MH i2c: E2 08 00 D7 1E 80 11 00 00 00 00 00 00 6F [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:30]Read from MH i2c: E2 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 17 00 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 17 00 D7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C2 [14:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:51:30]wFMCommunicate OK [14:51:30]CreateOFDProtocolMessage done [14:51:30]OFDSenderStorePacket 145737 [14:51:30]StoreOFDPacket docnum=145737 [14:51:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 FE F9 04 01 21 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 72 53 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 49 39 02 00 35 04 06 00 2D A2 41 39 61 55 B3 A2 08 41 67 53 2F 46 [14:51:30]CheckFolder [14:51:30]dirname=/storage/ofd_packets [14:51:30]CheckFolder done [14:51:30]ProducePacketName [14:51:30]name=ofd_packets/00145737 [14:51:30]NVStorageSaveData ofd_packets/00145737 [14:51:30]File name is /storage/ofd_packets/00145737 [14:51:30]Write 298 bytes [14:51:30]NVStorageSaveData done [14:51:30]OFDSenderStorePacket done [14:51:30]KKMCreateOFDPacket done [14:51:30]NVStorageSaveData kkm_last_timestamp [14:51:30]File name is /storage/kkm_last_timestamp [14:51:30]Write 4 bytes [14:51:30]NVStorageSaveData done [14:51:30]ExternCall_PrintAddStr [14:51:30]wPrintStart [14:51:30]Write to MH i2c: 01 00 00 D8 1E F6 [14:51:30]Write i2c OK [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: 01 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: 01 07 00 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: 01 07 00 D8 1E 00 00 00 00 00 FF 0F 0B [14:51:30]RasterBufferAndPrint [14:51:30]line Счет N : (1)160493 [14:51:30]line ИНН: 02508201610067 [14:51:30]line Контрольно-Кассовый Чек [14:51:30]line ПРОДАЖА [14:51:30]line ТРК (МРК, ГНК) : 21 [14:51:30]line Товар: 2710194210 [14:51:30]line ДТ-К-2 [14:51:30]line 26.250 * 76.20 [14:51:30]line = 2000.25 [14:51:30]line НДС 12% НСП 1% [14:51:30]line > о реализуемом товаре [14:51:30]line ОКРУГЛЕНИЕ: -0.25 [14:51:30]line ИТОГО: 2000.00 [14:51:30]line Внесено: 2000.00 [14:51:30]line СДАЧА: 0.00 [14:51:30]line НСП 1% : 17.70 [14:51:30]line НДС 12% : 212.42 [14:51:30]line Наличными: 2000.00 [14:51:30]line Безнал.: 0.00 [14:51:30]line Место: АЗС № 126 "Партнер Нефть" [14:51:30]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:51:30]line СНО: Общий режим [14:51:30]line Чек 160 27.10.2024 14:51 [14:51:30]line Смена: 545 ФФД: 1.0 [14:51:30]line ЗНМ: 0300000085 [14:51:30]line РНМ: 0000000000091683 [14:51:30]line Версия ККМ: 001 [14:51:30]line ФМ: 0000000000871745 [14:51:30]line ФД: 145737 [14:51:30]line ФПД: 50174902231381 [14:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145130&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145737&fm=50174902231381&tin=02508201610067®Number=0000000000091683&sum=200000 [14:51:30]OFD Sender: Processing packet 145737 [packets to send 206, broken 205] [14:51:30]ProducePacketName [14:51:30]name=ofd_packets/00145737 [14:51:30]OFD Sender: To server: pG, [14:51:30]CommunicateWithHost lk.salyk.kg:30040 [14:51:30]ConnectInit lk.salyk.kg [14:51:30]written 0, free lines is 4095 [14:51:30]Connected sock=10 [14:51:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 FE F9 04 01 21 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 72 53 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 49 39 02 00 35 04 06 00 2D A2 41 39 61 55 B3 A2 08 41 67 53 2F 46 [14:51:30]Write to MH i2c: 01 00 00 03 1F 22 [14:51:30]Write i2c OK [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: 01 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: 01 07 00 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: 01 07 00 03 1F 00 00 00 00 00 A9 0C DE [14:51:30]RasterBufferAndPrint [14:51:30]line [14:51:30]line [14:51:30]line [14:51:30]line [14:51:30]line [14:51:30]written 0, free lines is 3247 [14:51:30]MH_Cut [14:51:30]Write to MH i2c: D1 01 00 0A 1F 01 FB [14:51:30]Write i2c OK [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: D1 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: D1 01 00 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: D1 01 00 0A 1F 00 FA [14:51:30]Write to MH i2c: 01 00 00 0B 1F 2A [14:51:30]Write i2c OK [14:51:30]MH_I2C_Read... [14:51:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 87 75 47 00 E5 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 49 39 02 00 F4 03 04 00 9F F8 1D 67 B6 04 01 00 00 18 B0 D1 51 25 11 C2 11 [14:51:30]CommunicateWithHost err = 0 [14:51:30]CheckOFDResponse [14:51:30]1017 (14) - 77093643461234 [14:51:30]1041 (16) - 0000000000871745 [14:51:30]1040 (4) - 145737 [14:51:30]1012 (4) - 27.10.2024 08:23 [14:51:30]1206 (1) - 0 [14:51:30]OFD Sender: Remove packet 145737 [14:51:30]ProducePacketName [14:51:30]name=ofd_packets/00145737 [14:51:30]NVStorageDeleteData [14:51:31]OFD Sender: No OFD packet to send [14:51:31]*** Cut start [14:51:31]*** Partial cut [14:51:31]*** CUTSNS_PIN = 1 [14:51:31]*** CUTSNS_PIN = 0 [14:51:31]*** Brake cut motor [14:51:32]Read from MH i2c: 01 [14:51:32]MH_I2C_Read... [14:51:32]*** Stop cut motor [14:51:32]*** Cut end [14:51:32]Read from MH i2c: 01 07 00 [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: 01 07 00 0B 1F 00 00 00 00 00 FF 0F 3F [14:51:32]process_action close_receipt done [14:51:32]requested_data is exist [14:51:32]produce_requested_data [14:51:32]requested_item fm.sn is exist - process it [14:51:32]wFMCommunicate request_size=4 [14:51:32]MH_SAM_APDU [14:51:32]CAPDU: 80 11 00 00 [14:51:32]Write to MH i2c: E2 08 00 0C 1F 80 11 00 00 00 00 00 00 A5 [14:51:32]Write i2c OK [14:51:32]MH_I2C_Read... [14:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:32]Read from MH i2c: E2 [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: E2 17 00 [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: E2 17 00 0C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F8 [14:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:51:32]wFMCommunicate OK [14:51:32]requested_item fd.num is exist - process it [14:51:32]SAM_PROTO_GetFieldsCounters [14:51:32]wFMCommunicate request_size=4 [14:51:32]MH_SAM_APDU [14:51:32]CAPDU: 80 13 00 00 [14:51:32]Write to MH i2c: E2 08 00 0D 1F 80 13 00 00 00 00 00 00 A8 [14:51:32]Write i2c OK [14:51:32]MH_I2C_Read... [14:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:32]Read from MH i2c: E2 [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: E2 62 00 [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: E2 62 00 0D 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 49 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [14:51:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 49 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:32]wFMCommunicate OK [14:51:32]SAM_PROTO_GetFieldsCounters done [14:51:32]requested_item shift.num is exist - process it [14:51:32]requested_item shift.opened is exist - process it [14:51:32]req_shift_opened [14:51:32]FM_GetShiftState [14:51:32]SAM_PROTO_GetShiftState [14:51:32]wFMCommunicate request_size=4 [14:51:32]MH_SAM_APDU [14:51:32]CAPDU: 80 13 01 00 [14:51:32]Write to MH i2c: E2 08 00 0E 1F 80 13 01 00 00 00 00 00 AA [14:51:32]Write i2c OK [14:51:32]MH_I2C_Read... [14:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:32]Read from MH i2c: E2 [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: E2 0E 00 [14:51:32]MH_I2C_Read... [14:51:32]Read from MH i2c: E2 0E 00 0E 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 22 [14:51:32]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:51:32]wFMCommunicate OK [14:51:32]SAM_PROTO_GetShiftState done [14:51:32]FM_GetShiftState done [14:51:32]req_shift_opened done [14:51:32]requested_item shift.open_date is exist - process it [14:51:32]req_shift_open_date [14:51:32]req_shift_open_date done [14:51:32]produce_requested_data done [14:51:32]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145737,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:51:32]process_action_free close_receipt [14:51:32]json_value_free [14:51:32]json_value_free done [14:51:32]process_json_proto returns [14:51:32]Send response to host [14:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145737,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:51:32]free response buf [14:51:32]execute_script done [14:51:32]execute_script returns [14:51:32]free content buf [14:51:32]Sock 7.Close socket [14:51:32]Sock 7.Thread stoped [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:51]int [14:52:51]Write to MH i2c: 01 00 00 0F 1F 2E [14:52:51]*** FLAG_PRN_KEY set [14:52:51]Write i2c OK [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: 01 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: 01 07 00 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: 01 07 00 0F 1F 00 08 00 00 00 FF 0F 4B [14:52:51]state=0 [14:52:51]Key pressed [14:52:51]Feed [14:52:51]Write to MH i2c: D8 00 00 10 1F 06 [14:52:51]Write i2c OK [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: D8 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: D8 01 00 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: D8 01 00 10 1F 00 07 [14:52:51]int [14:52:51]Write to MH i2c: 01 00 00 11 1F 30 [14:52:51]Write i2c OK [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: 01 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: 01 07 00 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: 01 07 00 11 1F 00 48 00 00 00 3C 00 BB [14:52:51]state=2 [14:52:51]Key pressed [14:52:51]int [14:52:51]Write to MH i2c: 01 00 00 12 1F 31 [14:52:51]*** FLAG_PRN_KEY reset [14:52:51]Write i2c OK [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: 01 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: 01 07 00 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: 01 07 00 12 1F 00 00 00 00 00 F7 0F 3E [14:52:51]state=2 [14:52:51]Stop feed [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:07]accept exits with 9 [14:54:07]New connection [14:54:07]New thread 3066740068 created [14:54:07]Thread 3066596708 joined [14:54:07]Waiting for new connection... [14:54:07] Sock 9.Parse request [14:54:07]Sock 9.Check first char [14:54:07]Sock 9.First char is OK [14:54:07]request: POST /json_proto HTTP/1.0 [14:54:07]Method: POST [14:54:07]URL: /json_proto [14:54:07]Method is POST - this is cgi request [14:54:07]url: /json_proto [14:54:07]query_string will be loaded in cgi processing [14:54:07]execute_cgi json_proto POST (null) [14:54:07]execute_cgi path=json_proto method=POST [14:54:07]POST find Content-Length [14:54:07]Host: 172.17.40.195:8080 [14:54:07]Content-Length: 766 [14:54:07]Content-Type: application/json [14:54:07] [14:54:07]POST finish read [14:54:07]Found Content-Length = 766 [14:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:07]execute_script... [14:54:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:07]POST & json_proto [14:54:07]process_json_proto [14:54:07]json parsed OK: [14:54:07]protocol is kg_v1.0 [14:54:07]action value=close_receipt [14:54:07]process_action close_receipt [14:54:07]cmd_close_receipt [14:54:07]MH_GetDate [14:54:07]Write to MH i2c: F0 00 00 13 1F 21 [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: F0 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: F0 09 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: F0 09 00 13 1F 00 11 54 1E 67 D5 8D 6C 64 46 [14:54:07]GetLastDocTimeStamp 1730040690 [14:54:07]current date 1730040849 [14:54:07]FM_GetShiftState [14:54:07]SAM_PROTO_GetShiftState [14:54:07]wFMCommunicate request_size=4 [14:54:07]MH_SAM_APDU [14:54:07]CAPDU: 80 13 01 00 [14:54:07]Write to MH i2c: E2 08 00 14 1F 80 13 01 00 00 00 00 00 B0 [14:54:07]Write i2c OK [14:54:07]MH_I2C_Read... [14:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:07]Read from MH i2c: E2 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 0E 00 [14:54:07]MH_I2C_Read... [14:54:07]Read from MH i2c: E2 0E 00 14 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 28 [14:54:07]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:54:07]wFMCommunicate OK [14:54:07]SAM_PROTO_GetShiftState done [14:54:07]FM_GetShiftState done [14:54:07]opened in 1729988959 [14:54:07]opened+sec_in_day 1730075359 [14:54:07]quantity*price = 50010 [14:54:07]sum+1 = 50012 [14:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 161 27.10.2024 14:54 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145738 ФПД: 20003029115912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145409&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145738&fm=20003029115912&tin=02508201610067®Number=0000000000091683&sum=50011 [14:54:08]StoreToDocumentArchive [14:54:08]shift 545 fd 145738 [14:54:08]save to /storage/0545/doc_00145738 [14:54:08]save last doc name /storage/0545/doc_00145738 to /storage/kkm_last_doc_name [14:54:08]save OK [14:54:08]Clear old archive folders... [14:54:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:08]tlvbuf is B6E8D7C0 [14:54:08]SAM_PROTO_ClearQueue [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 09 00 00 [14:54:08]Write to MH i2c: E2 08 00 21 1F 80 09 00 00 00 00 00 00 B2 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 21 1F 00 90 00 B4 [14:54:08]RAPDU: 90 00 [14:54:08]wFMCommunicate OK [14:54:08]SAM_PROTO_ClearQueue done [14:54:08]KKMCreateOFDPacket [14:54:08]OFDProtocolAddRootSTLVToBuf [14:54:08]FM_MakeSignedData [14:54:08]FM_MakeSignedData [14:54:08]SAM_PROTO_SignData [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 0D 01 02 [14:54:08]Write to MH i2c: E2 08 00 22 1F 80 0D 01 02 00 00 00 00 BA [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 22 1F 00 90 00 B5 [14:54:08]RAPDU: 90 00 [14:54:08]wFMCommunicate OK [14:54:08]wFMCommunicate request_size=255 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 11 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4A 39 02 00 35 04 06 00 12 [14:54:08]Write to MH i2c: E2 02 01 23 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 11 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4A 39 02 00 35 04 06 00 12 00 00 7C [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 23 1F 00 90 00 B6 [14:54:08]RAPDU: 90 00 [14:54:08]wFMCommunicate OK [14:54:08]wFMCommunicate request_size=10 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 0D 02 02 05 31 51 71 E4 08 [14:54:08]Write to MH i2c: E2 0D 00 24 1F 80 0D 02 02 05 00 31 51 71 E4 08 00 00 A6 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 03 00 24 1F 00 90 00 B7 [14:54:08]RAPDU: 90 00 [14:54:08]wFMCommunicate OK [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 0D 03 02 [14:54:08]Write to MH i2c: E2 08 00 25 1F 80 0D 03 02 00 00 00 00 BF [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 0B 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 0B 00 25 1F 00 94 AA 93 C8 A2 3F 20 96 90 00 F0 [14:54:08]RAPDU: 94 AA 93 C8 A2 3F 20 96 90 00 [14:54:08]wFMCommunicate OK [14:54:08]SAM_PROTO_SignData done [14:54:08]FM_MakeSignedData done [14:54:08]CreateOFDProtocolMessage [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 11 00 00 [14:54:08]Write to MH i2c: E2 08 00 26 1F 80 11 00 00 00 00 00 00 BF [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 17 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 17 00 26 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 12 [14:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:54:08]wFMCommunicate OK [14:54:08]CreateOFDProtocolMessage done [14:54:08]OFDSenderStorePacket 145738 [14:54:08]StoreOFDPacket docnum=145738 [14:54:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 45 2D 07 01 48 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 11 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4A 39 02 00 35 04 06 00 12 31 51 71 E4 08 94 AA 93 C8 A2 3F 20 96 [14:54:08]CheckFolder [14:54:08]dirname=/storage/ofd_packets [14:54:08]CheckFolder done [14:54:08]ProducePacketName [14:54:08]name=ofd_packets/00145738 [14:54:08]NVStorageSaveData ofd_packets/00145738 [14:54:08]File name is /storage/ofd_packets/00145738 [14:54:08]Write 301 bytes [14:54:08]NVStorageSaveData done [14:54:08]OFDSenderStorePacket done [14:54:08]KKMCreateOFDPacket done [14:54:08]NVStorageSaveData kkm_last_timestamp [14:54:08]File name is /storage/kkm_last_timestamp [14:54:08]Write 4 bytes [14:54:08]NVStorageSaveData done [14:54:08]ExternCall_PrintAddStr [14:54:08]wPrintStart [14:54:08]Write to MH i2c: 01 00 00 27 1F 46 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: 01 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: 01 07 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: 01 07 00 27 1F 00 00 00 00 00 FF 0F 5B [14:54:08]RasterBufferAndPrint [14:54:08]line Счет N : (1)160494 [14:54:08]line ИНН: 02508201610067 [14:54:08]line Контрольно-Кассовый Чек [14:54:08]line ПРОДАЖА [14:54:08]line ТРК (МРК, ГНК) : 43 [14:54:08]line Товар: 2710124500 [14:54:08]line Аи-95-К-3 [14:54:08]line 6.740 * 74.20 [14:54:08]line = 500.11 [14:54:08]line НДС 12% НСП 1% [14:54:08]line > о реализуемом товаре [14:54:08]line ИТОГО: 500.11 [14:54:08]line НСП 1% : 4.43 [14:54:08]line НДС 12% : 53.11 [14:54:08]line Наличными: 0.00 [14:54:08]line Безнал.: 500.11 [14:54:08]line Место: АЗС № 126 "Партнер Нефть" [14:54:09]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:54:09]line СНО: Общий режим [14:54:09]line Чек 161 27.10.2024 14:54 [14:54:09]line Смена: 545 ФФД: 1.0 [14:54:09]line ЗНМ: 0300000085 [14:54:09]line РНМ: 0000000000091683 [14:54:09]line Версия ККМ: 001 [14:54:09]line Платежная система: Mbank [14:54:09]line ФМ: 0000000000871745 [14:54:09]line ФД: 145738 [14:54:09]line ФПД: 20003029115912 [14:54:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145409&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145738&fm=20003029115912&tin=02508201610067®Number=0000000000091683&sum=50011 [14:54:09]OFD Sender: Processing packet 145738 [packets to send 206, broken 205] [14:54:09]ProducePacketName [14:54:09]name=ofd_packets/00145738 [14:54:09]OFD Sender: To server: pG, [14:54:09]CommunicateWithHost lk.salyk.kg:30040 [14:54:09]ConnectInit lk.salyk.kg [14:54:09]written 0, free lines is 4095 [14:54:09]Connected sock=10 [14:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 45 2D 07 01 48 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 11 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4A 39 02 00 35 04 06 00 12 31 51 71 E4 08 94 AA 93 C8 A2 3F 20 96 [14:54:09]Write to MH i2c: 01 00 00 50 1F 6F [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 07 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: 01 07 00 50 1F 00 00 00 00 00 D6 0C 58 [14:54:09]RasterBufferAndPrint [14:54:09]line [14:54:09]line [14:54:09]line [14:54:09]line [14:54:09]line [14:54:09]written 0, free lines is 3294 [14:54:09]MH_Cut [14:54:09]Write to MH i2c: D1 01 00 57 1F 01 48 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: D1 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: D1 01 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: D1 01 00 57 1F 00 47 [14:54:09]Write to MH i2c: 01 00 00 58 1F 77 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 CB 9C 47 00 D9 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 31 37 34 35 10 04 04 00 4A 39 02 00 F4 03 04 00 3E F9 1D 67 B6 04 01 00 00 72 E9 CE 9A 13 4E 14 C1 [14:54:09]CommunicateWithHost err = 0 [14:54:09]CheckOFDResponse [14:54:09]1017 (14) - 77093643461234 [14:54:09]1041 (16) - 0000000000871745 [14:54:09]1040 (4) - 145738 [14:54:09]1012 (4) - 27.10.2024 08:26 [14:54:09]1206 (1) - 0 [14:54:09]OFD Sender: Remove packet 145738 [14:54:09]ProducePacketName [14:54:09]name=ofd_packets/00145738 [14:54:09]NVStorageDeleteData [14:54:10]OFD Sender: No OFD packet to send [14:54:10]*** Cut start [14:54:10]*** Partial cut [14:54:10]*** CUTSNS_PIN = 1 [14:54:10]*** CUTSNS_PIN = 0 [14:54:10]*** Brake cut motor [14:54:11]Read from MH i2c: 01 [14:54:11]MH_I2C_Read... [14:54:11]*** Stop cut motor [14:54:11]*** Cut end [14:54:11]Read from MH i2c: 01 07 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: 01 07 00 58 1F 00 00 00 00 00 FF 0F 8C [14:54:11]process_action close_receipt done [14:54:11]requested_data is exist [14:54:11]produce_requested_data [14:54:11]requested_item fm.sn is exist - process it [14:54:11]wFMCommunicate request_size=4 [14:54:11]MH_SAM_APDU [14:54:11]CAPDU: 80 11 00 00 [14:54:11]Write to MH i2c: E2 08 00 59 1F 80 11 00 00 00 00 00 00 F2 [14:54:11]Write i2c OK [14:54:11]MH_I2C_Read... [14:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:11]Read from MH i2c: E2 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 17 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 17 00 59 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 45 [14:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:54:11]wFMCommunicate OK [14:54:11]requested_item fd.num is exist - process it [14:54:11]SAM_PROTO_GetFieldsCounters [14:54:11]wFMCommunicate request_size=4 [14:54:11]MH_SAM_APDU [14:54:11]CAPDU: 80 13 00 00 [14:54:11]Write to MH i2c: E2 08 00 5A 1F 80 13 00 00 00 00 00 00 F5 [14:54:11]Write i2c OK [14:54:11]MH_I2C_Read... [14:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:11]Read from MH i2c: E2 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 62 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 62 00 5A 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [14:54:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:11]wFMCommunicate OK [14:54:11]SAM_PROTO_GetFieldsCounters done [14:54:11]requested_item shift.num is exist - process it [14:54:11]requested_item shift.opened is exist - process it [14:54:11]req_shift_opened [14:54:11]FM_GetShiftState [14:54:11]SAM_PROTO_GetShiftState [14:54:11]wFMCommunicate request_size=4 [14:54:11]MH_SAM_APDU [14:54:11]CAPDU: 80 13 01 00 [14:54:11]Write to MH i2c: E2 08 00 5B 1F 80 13 01 00 00 00 00 00 F7 [14:54:11]Write i2c OK [14:54:11]MH_I2C_Read... [14:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:11]Read from MH i2c: E2 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 0E 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 0E 00 5B 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6F [14:54:11]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:54:11]wFMCommunicate OK [14:54:11]SAM_PROTO_GetShiftState done [14:54:11]FM_GetShiftState done [14:54:11]req_shift_opened done [14:54:11]requested_item shift.open_date is exist - process it [14:54:11]req_shift_open_date [14:54:11]req_shift_open_date done [14:54:11]produce_requested_data done [14:54:11]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145738,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:54:11]process_action_free close_receipt [14:54:11]json_value_free [14:54:11]json_value_free done [14:54:11]process_json_proto returns [14:54:11]Send response to host [14:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145738,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:54:11]free response buf [14:54:11]execute_script done [14:54:11]execute_script returns [14:54:11]free content buf [14:54:11]Sock 9.Close socket [14:54:11]Sock 9.Thread stoped [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:54:55]accept exits with 7 [14:54:55]New connection [14:54:55]New thread 3066596708 created [14:54:55]Thread 3066740068 joined [14:54:55]Waiting for new connection... [14:54:55] Sock 7.Parse request [14:54:55]Sock 7.Check first char [14:54:55]Sock 7.First char is OK [14:54:55]request: POST /json_proto HTTP/1.0 [14:54:55]Method: POST [14:54:55]URL: /json_proto [14:54:55]Method is POST - this is cgi request [14:54:55]url: /json_proto [14:54:55]query_string will be loaded in cgi processing [14:54:55]execute_cgi json_proto POST (null) [14:54:55]execute_cgi path=json_proto method=POST [14:54:55]POST find Content-Length [14:54:55]Host: 172.17.40.195:8080 [14:54:55]Content-Length: 677 [14:54:55]Content-Type: application/json [14:54:55] [14:54:55]POST finish read [14:54:55]Found Content-Length = 677 [14:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:55]execute_script... [14: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)160495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:55]POST & json_proto [14:54:55]process_json_proto [14:54:55]json parsed OK: [14:54:55]protocol is kg_v1.0 [14:54:55]action value=close_receipt [14:54:55]process_action close_receipt [14:54:55]cmd_close_receipt [14:54:55]MH_GetDate [14:54:55]Write to MH i2c: F0 00 00 5C 1F 6A [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: F0 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: F0 09 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: F0 09 00 5C 1F 00 41 54 1E 67 D5 8D 6C 64 BF [14:54:55]GetLastDocTimeStamp 1730040849 [14:54:55]current date 1730040897 [14:54:55]FM_GetShiftState [14:54:55]SAM_PROTO_GetShiftState [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 13 01 00 [14:54:55]Write to MH i2c: E2 08 00 5D 1F 80 13 01 00 00 00 00 00 F9 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 0E 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 0E 00 5D 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 71 [14:54:55]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:54:55]wFMCommunicate OK [14:54:55]SAM_PROTO_GetShiftState done [14:54:55]FM_GetShiftState done [14:54:55]opened in 1729988959 [14:54:55]opened+sec_in_day 1730075359 [14:54:55]quantity*price = 40006 [14:54:55]sum+1 = 40007 [14:54:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 162 27.10.2024 14:54 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145739 ФПД: 56506278196329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145457&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145739&fm=56506278196329&tin=02508201610067®Number=0000000000091683&sum=40000 [14:54:56]StoreToDocumentArchive [14:54:56]shift 545 fd 145739 [14:54:56]save to /storage/0545/doc_00145739 [14:54:56]save last doc name /storage/0545/doc_00145739 to /storage/kkm_last_doc_name [14:54:56]save OK [14:54:56]Clear old archive folders... [14:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:56]tlvbuf is B6D74540 [14:54:56]SAM_PROTO_ClearQueue [14:54:56]wFMCommunicate request_size=4 [14:54:56]MH_SAM_APDU [14:54:56]CAPDU: 80 09 00 00 [14:54:56]Write to MH i2c: E2 08 00 6A 1F 80 09 00 00 00 00 00 00 FB [14:54:56]Write i2c OK [14:54:56]MH_I2C_Read... [14:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:56]Read from MH i2c: E2 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: E2 03 00 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: E2 03 00 6A 1F 00 90 00 FD [14:54:56]RAPDU: 90 00 [14:54:56]wFMCommunicate OK [14:54:56]SAM_PROTO_ClearQueue done [14:54:56]KKMCreateOFDPacket [14:54:56]OFDProtocolAddRootSTLVToBuf [14:54:56]FM_MakeSignedData [14:54:56]FM_MakeSignedData [14:54:56]SAM_PROTO_SignData [14:54:56]wFMCommunicate request_size=4 [14:54:56]MH_SAM_APDU [14:54:56]CAPDU: 80 0D 01 02 [14:54:56]Write to MH i2c: E2 08 00 6B 1F 80 0D 01 02 00 00 00 00 03 [14:54:56]Write i2c OK [14:54:56]MH_I2C_Read... [14:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:56]Read from MH i2c: E2 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: E2 03 00 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: E2 03 00 6B 1F 00 90 00 FE [14:54:56]RAPDU: 90 00 [14:54:56]wFMCommunicate OK [14:54:56]wFMCommunicate request_size=255 [14:54:56]MH_SAM_APDU [14: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 41 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4B 39 02 00 35 04 06 00 33 [14:54:56]Write to MH i2c: E2 02 01 6C 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 41 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4B 39 02 00 35 04 06 00 33 00 00 F8 [14:54:56]Write i2c OK [14:54:56]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 6C 1F 00 90 00 FF [14:54:57]RAPDU: 90 00 [14:54:57]wFMCommunicate OK [14:54:57]wFMCommunicate request_size=10 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 0D 02 02 05 64 64 A3 B4 69 [14:54:57]Write to MH i2c: E2 0D 00 6D 1F 80 0D 02 02 05 00 64 64 A3 B4 69 00 00 98 [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 03 00 6D 1F 00 90 00 00 [14:54:57]RAPDU: 90 00 [14:54:57]wFMCommunicate OK [14:54:57]wFMCommunicate request_size=4 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 0D 03 02 [14:54:57]Write to MH i2c: E2 08 00 6E 1F 80 0D 03 02 00 00 00 00 08 [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 0B 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 0B 00 6E 1F 00 AF 89 75 A2 7B 61 2B 42 90 00 A1 [14:54:57]RAPDU: AF 89 75 A2 7B 61 2B 42 90 00 [14:54:57]wFMCommunicate OK [14:54:57]SAM_PROTO_SignData done [14:54:57]FM_MakeSignedData done [14:54:57]CreateOFDProtocolMessage [14:54:57]wFMCommunicate request_size=4 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 11 00 00 [14:54:57]Write to MH i2c: E2 08 00 6F 1F 80 11 00 00 00 00 00 00 08 [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 17 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 17 00 6F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 5B [14:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:54:57]wFMCommunicate OK [14:54:57]CreateOFDProtocolMessage done [14:54:57]OFDSenderStorePacket 145739 [14:54:57]StoreOFDPacket docnum=145739 [14:54:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D9 27 07 01 E4 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 41 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4B 39 02 00 35 04 06 00 33 64 64 A3 B4 69 AF 89 75 A2 7B 61 2B 42 [14:54:57]CheckFolder [14:54:57]dirname=/storage/ofd_packets [14:54:57]CheckFolder done [14:54:57]ProducePacketName [14:54:57]name=ofd_packets/00145739 [14:54:57]NVStorageSaveData ofd_packets/00145739 [14:54:57]File name is /storage/ofd_packets/00145739 [14:54:57]Write 301 bytes [14:54:57]NVStorageSaveData done [14:54:57]OFDSenderStorePacket done [14:54:57]KKMCreateOFDPacket done [14:54:57]NVStorageSaveData kkm_last_timestamp [14:54:57]File name is /storage/kkm_last_timestamp [14:54:57]Write 4 bytes [14:54:57]NVStorageSaveData done [14:54:57]ExternCall_PrintAddStr [14:54:57]wPrintStart [14:54:57]Write to MH i2c: 01 00 00 70 1F 8F [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: 01 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: 01 07 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: 01 07 00 70 1F 00 00 00 00 00 FF 0F A4 [14:54:57]RasterBufferAndPrint [14:54:57]line Счет N : (1)160495 [14:54:57]line ИНН: 02508201610067 [14:54:57]line Контрольно-Кассовый Чек [14:54:57]line ПРОДАЖА [14:54:57]line ТРК (МРК, ГНК) : 52 [14:54:57]line Товар: 2710124130 [14:54:57]line Аи-92-К-2 [14:54:57]line 5.980 * 66.90 [14:54:57]line = 400.06 [14:54:57]line НДС 12% НСП 1% [14:54:57]line > о реализуемом товаре [14:54:57]line ОКРУГЛЕНИЕ: -0.06 [14:54:57]line ИТОГО: 400.00 [14:54:57]line Внесено: 400.00 [14:54:57]line СДАЧА: 0.00 [14:54:57]line НСП 1% : 3.54 [14:54:57]line НДС 12% : 42.48 [14:54:57]line Наличными: 400.00 [14:54:57]line Безнал.: 0.00 [14:54:57]line Место: АЗС № 126 "Партнер Нефть" [14:54:57]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:54:57]line СНО: Общий режим [14:54:57]line Чек 162 27.10.2024 14:54 [14:54:57]line Смена: 545 ФФД: 1.0 [14:54:57]line ЗНМ: 0300000085 [14:54:57]line РНМ: 0000000000091683 [14:54:57]line Версия ККМ: 001 [14:54:57]line ФМ: 0000000000871745 [14:54:57]line ФД: 145739 [14:54:57]line ФПД: 56506278196329 [14:54:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145457&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145739&fm=56506278196329&tin=02508201610067®Number=0000000000091683&sum=40000 [14:54:57]written 0, free lines is 4095 [14:54:57]OFD Sender: Processing packet 145739 [packets to send 206, broken 205] [14:54:57]ProducePacketName [14:54:57]name=ofd_packets/00145739 [14:54:57]OFD Sender: To server: pG, [14:54:57]CommunicateWithHost lk.salyk.kg:30040 [14:54:57]ConnectInit lk.salyk.kg [14:54:58]Connected sock=10 [14:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D9 27 07 01 E4 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 41 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4B 39 02 00 35 04 06 00 33 64 64 A3 B4 69 AF 89 75 A2 7B 61 2B 42 [14:54:58]Write to MH i2c: 01 00 00 9B 1F BA [14:54:58]Write i2c OK [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: 01 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: 01 07 00 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: 01 07 00 9B 1F 00 00 00 00 00 AB 0C 78 [14:54:58]RasterBufferAndPrint [14:54:58]line [14:54:58]line [14:54:58]line [14:54:58]line [14:54:58]line [14:54:58]written 0, free lines is 3250 [14:54:58]MH_Cut [14:54:58]Write to MH i2c: D1 01 00 A2 1F 01 93 [14:54:58]Write i2c OK [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: D1 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: D1 01 00 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: D1 01 00 A2 1F 00 92 [14:54:58]Write to MH i2c: 01 00 00 A3 1F C2 [14:54:58]Write i2c OK [14:54:58]MH_I2C_Read... [14:54:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 05 83 47 00 1C FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4B 39 02 00 F4 03 04 00 6F F9 1D 67 B6 04 01 00 00 39 F8 74 02 61 09 23 14 [14:54:58]CommunicateWithHost err = 0 [14:54:58]CheckOFDResponse [14:54:58]1017 (14) - 77093643461234 [14:54:58]1041 (16) - 0000000000871745 [14:54:58]1040 (4) - 145739 [14:54:58]1012 (4) - 27.10.2024 08:27 [14:54:58]1206 (1) - 0 [14:54:58]OFD Sender: Remove packet 145739 [14:54:58]ProducePacketName [14:54:58]name=ofd_packets/00145739 [14:54:58]NVStorageDeleteData [14:54:58]OFD Sender: No OFD packet to send [14:54:58]*** Cut start [14:54:58]*** Partial cut [14:54:58]*** CUTSNS_PIN = 1 [14:54:58]*** CUTSNS_PIN = 0 [14:54:59]*** Brake cut motor [14:54:59]Read from MH i2c: 01 [14:54:59]MH_I2C_Read... [14:54:59]*** Stop cut motor [14:54:59]*** Cut end [14:54:59]Read from MH i2c: 01 07 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: 01 07 00 A3 1F 00 00 00 00 00 FF 0F D7 [14:54:59]process_action close_receipt done [14:54:59]requested_data is exist [14:54:59]produce_requested_data [14:54:59]requested_item fm.sn is exist - process it [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 11 00 00 [14:54:59]Write to MH i2c: E2 08 00 A4 1F 80 11 00 00 00 00 00 00 3D [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 17 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 17 00 A4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 90 [14:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:54:59]wFMCommunicate OK [14:54:59]requested_item fd.num is exist - process it [14:54:59]SAM_PROTO_GetFieldsCounters [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 13 00 00 [14:54:59]Write to MH i2c: E2 08 00 A5 1F 80 13 00 00 00 00 00 00 40 [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 62 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 62 00 A5 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [14: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:59]wFMCommunicate OK [14:54:59]SAM_PROTO_GetFieldsCounters done [14:54:59]requested_item shift.num is exist - process it [14:54:59]requested_item shift.opened is exist - process it [14:54:59]req_shift_opened [14:54:59]FM_GetShiftState [14:54:59]SAM_PROTO_GetShiftState [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 13 01 00 [14:54:59]Write to MH i2c: E2 08 00 A6 1F 80 13 01 00 00 00 00 00 42 [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 0E 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 0E 00 A6 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 BA [14:54:59]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:54:59]wFMCommunicate OK [14:54:59]SAM_PROTO_GetShiftState done [14:54:59]FM_GetShiftState done [14:54:59]req_shift_opened done [14:54:59]requested_item shift.open_date is exist - process it [14:54:59]req_shift_open_date [14:54:59]req_shift_open_date done [14:54:59]produce_requested_data done [14:54:59]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145739,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:54:59]process_action_free close_receipt [14:54:59]json_value_free [14:54:59]json_value_free done [14:54:59]process_json_proto returns [14:54:59]Send response to host [14:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145739,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:54:59]free response buf [14:54:59]execute_script done [14:54:59]execute_script returns [14:54:59]free content buf [14:54:59]Sock 7.Close socket [14:54:59]Sock 7.Thread stoped [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]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:04]accept exits with 9 [14:58:04]New connection [14:58:04]New thread 3066740068 created [14:58:04]Thread 3066596708 joined [14:58:04]Waiting for new connection... [14:58:04] Sock 9.Parse request [14:58:04]Sock 9.Check first char [14:58:04]Sock 9.First char is OK [14:58:04]request: POST /json_proto HTTP/1.0 [14:58:04]Method: POST [14:58:04]URL: /json_proto [14:58:04]Method is POST - this is cgi request [14:58:04]url: /json_proto [14:58:04]query_string will be loaded in cgi processing [14:58:04]execute_cgi json_proto POST (null) [14:58:04]execute_cgi path=json_proto method=POST [14:58:04]POST find Content-Length [14:58:04]Host: 172.17.40.195:8080 [14:58:04]Content-Length: 678 [14:58:04]Content-Type: application/json [14:58:04] [14:58:04]POST finish read [14:58:04]Found Content-Length = 678 [14:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:04]execute_script... [14:58: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)160497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:04]POST & json_proto [14:58:04]process_json_proto [14:58:04]json parsed OK: [14:58:04]protocol is kg_v1.0 [14:58:04]action value=close_receipt [14:58:04]process_action close_receipt [14:58:04]cmd_close_receipt [14:58:04]MH_GetDate [14:58:04]Write to MH i2c: F0 00 00 A7 1F B5 [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: F0 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: F0 09 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: F0 09 00 A7 1F 00 FE 54 1E 67 D5 8D 6C 64 C7 [14:58:04]GetLastDocTimeStamp 1730040897 [14:58:04]current date 1730041086 [14:58:04]FM_GetShiftState [14:58:04]SAM_PROTO_GetShiftState [14:58:04]wFMCommunicate request_size=4 [14:58:04]MH_SAM_APDU [14:58:04]CAPDU: 80 13 01 00 [14:58:04]Write to MH i2c: E2 08 00 A8 1F 80 13 01 00 00 00 00 00 44 [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:04]Read from MH i2c: E2 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 0E 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 0E 00 A8 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 BC [14:58:04]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:58:04]wFMCommunicate OK [14:58:04]SAM_PROTO_GetShiftState done [14:58:04]FM_GetShiftState done [14:58:04]opened in 1729988959 [14:58:04]opened+sec_in_day 1730075359 [14:58:04]quantity*price = 70044 [14:58:04]sum+1 = 70045 [14:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 163 27.10.2024 14:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145740 ФПД: 175588503208798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145806&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145740&fm=175588503208798&tin=02508201610067®Number=0000000000091683&sum=70000 [14:58:05]StoreToDocumentArchive [14:58:05]shift 545 fd 145740 [14:58:05]save to /storage/0545/doc_00145740 [14:58:05]save last doc name /storage/0545/doc_00145740 to /storage/kkm_last_doc_name [14:58:05]save OK [14:58:05]Clear old archive folders... [14:58:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:05]tlvbuf is B6D74330 [14:58:05]SAM_PROTO_ClearQueue [14:58:05]wFMCommunicate request_size=4 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 09 00 00 [14:58:05]Write to MH i2c: E2 08 00 B5 1F 80 09 00 00 00 00 00 00 46 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 B5 1F 00 90 00 48 [14:58:05]RAPDU: 90 00 [14:58:05]wFMCommunicate OK [14:58:05]SAM_PROTO_ClearQueue done [14:58:05]KKMCreateOFDPacket [14:58:05]OFDProtocolAddRootSTLVToBuf [14:58:05]FM_MakeSignedData [14:58:05]FM_MakeSignedData [14:58:05]SAM_PROTO_SignData [14:58:05]wFMCommunicate request_size=4 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 0D 01 02 [14:58:05]Write to MH i2c: E2 08 00 B6 1F 80 0D 01 02 00 00 00 00 4E [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 B6 1F 00 90 00 49 [14:58:05]RAPDU: 90 00 [14:58:05]wFMCommunicate OK [14:58:05]wFMCommunicate request_size=255 [14:58:05]MH_SAM_APDU [14:58: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FE 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4C 39 02 00 35 04 06 00 9F [14:58:05]Write to MH i2c: E2 02 01 B7 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FE 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4C 39 02 00 35 04 06 00 9F 00 00 AF [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 B7 1F 00 90 00 4A [14:58:05]RAPDU: 90 00 [14:58:05]wFMCommunicate OK [14:58:05]wFMCommunicate request_size=10 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 0D 02 02 05 B2 62 5C 43 5E [14:58:05]Write to MH i2c: E2 0D 00 B8 1F 80 0D 02 02 05 00 B2 62 5C 43 5E 00 00 6C [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 B8 1F 00 90 00 4B [14:58:05]RAPDU: 90 00 [14:58:05]wFMCommunicate OK [14:58:05]wFMCommunicate request_size=4 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 0D 03 02 [14:58:05]Write to MH i2c: E2 08 00 B9 1F 80 0D 03 02 00 00 00 00 53 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 0B 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 0B 00 B9 1F 00 72 09 E3 40 B6 1E 35 DA 90 00 D5 [14:58:05]RAPDU: 72 09 E3 40 B6 1E 35 DA 90 00 [14:58:05]wFMCommunicate OK [14:58:05]SAM_PROTO_SignData done [14:58:05]FM_MakeSignedData done [14:58:05]CreateOFDProtocolMessage [14:58:05]wFMCommunicate request_size=4 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 11 00 00 [14:58:05]Write to MH i2c: E2 08 00 BA 1F 80 11 00 00 00 00 00 00 53 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 17 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 17 00 BA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A6 [14:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:58:05]wFMCommunicate OK [14:58:05]CreateOFDProtocolMessage done [14:58:05]OFDSenderStorePacket 145740 [14:58:05]StoreOFDPacket docnum=145740 [14:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 EB 8A 07 01 4A 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FE 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4C 39 02 00 35 04 06 00 9F B2 62 5C 43 5E 72 09 E3 40 B6 1E 35 DA [14:58:05]CheckFolder [14:58:05]dirname=/storage/ofd_packets [14:58:05]CheckFolder done [14:58:05]ProducePacketName [14:58:05]name=ofd_packets/00145740 [14:58:05]NVStorageSaveData ofd_packets/00145740 [14:58:05]File name is /storage/ofd_packets/00145740 [14:58:05]Write 301 bytes [14:58:05]NVStorageSaveData done [14:58:05]OFDSenderStorePacket done [14:58:05]KKMCreateOFDPacket done [14:58:05]NVStorageSaveData kkm_last_timestamp [14:58:05]File name is /storage/kkm_last_timestamp [14:58:05]Write 4 bytes [14:58:05]NVStorageSaveData done [14:58:05]ExternCall_PrintAddStr [14:58:05]wPrintStart [14:58:05]Write to MH i2c: 01 00 00 BB 1F DA [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: 01 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: 01 07 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: 01 07 00 BB 1F 00 00 00 00 00 FF 0F EF [14:58:05]RasterBufferAndPrint [14:58:05]line Счет N : (1)160497 [14:58:05]line ИНН: 02508201610067 [14:58:05]line Контрольно-Кассовый Чек [14:58:05]line ПРОДАЖА [14:58:05]line ТРК (МРК, ГНК) : 42 [14:58:05]line Товар: 2710124130 [14:58:05]line Аи-92-К-2 [14:58:05]line 10.470 * 66.90 [14:58:05]line = 700.44 [14:58:05]line НДС 12% НСП 1% [14:58:05]line > о реализуемом товаре [14:58:05]line ОКРУГЛЕНИЕ: -0.44 [14:58:05]line ИТОГО: 700.00 [14:58:05]line Внесено: 700.00 [14:58:05]line СДАЧА: 0.00 [14:58:05]line НСП 1% : 6.20 [14:58:05]line НДС 12% : 74.38 [14:58:05]line Наличными: 700.00 [14:58:05]line Безнал.: 0.00 [14:58:05]line Место: АЗС № 126 "Партнер Нефть" [14:58:05]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:58:05]line СНО: Общий режим [14:58:05]line Чек 163 27.10.2024 14:58 [14:58:05]line Смена: 545 ФФД: 1.0 [14:58:05]line ЗНМ: 0300000085 [14:58:05]line РНМ: 0000000000091683 [14:58:05]line Версия ККМ: 001 [14:58:05]line ФМ: 0000000000871745 [14:58:05]line ФД: 145740 [14:58:05]line ФПД: 175588503208798 [14:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145806&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145740&fm=175588503208798&tin=02508201610067®Number=0000000000091683&sum=70000 [14:58:05]written 0, free lines is 4095 [14:58:05]OFD Sender: Processing packet 145740 [packets to send 206, broken 205] [14:58:05]ProducePacketName [14:58:06]name=ofd_packets/00145740 [14:58:06]OFD Sender: To server: pG, [14:58:06]CommunicateWithHost lk.salyk.kg:30040 [14:58:06]ConnectInit lk.salyk.kg [14:58:06]Write to MH i2c: 01 00 00 E6 1F 05 [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: 01 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: 01 07 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: 01 07 00 E6 1F 00 00 00 00 00 AD 0C C5 [14:58:06]RasterBufferAndPrint [14:58:06]line [14:58:06]line [14:58:06]line [14:58:06]line [14:58:06]line [14:58:06]written 0, free lines is 3253 [14:58:06]MH_Cut [14:58:06]Write to MH i2c: D1 01 00 ED 1F 01 DE [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: D1 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: D1 01 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: D1 01 00 ED 1F 00 DD [14:58:06]Write to MH i2c: 01 00 00 EE 1F 0D [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]Connected sock=10 [14:58:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 EB 8A 07 01 4A 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FE 54 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4C 39 02 00 35 04 06 00 9F B2 62 5C 43 5E 72 09 E3 40 B6 1E 35 DA [14:58:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A9 8F 47 00 35 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4C 39 02 00 F4 03 04 00 2B FA 1D 67 B6 04 01 00 00 01 44 40 B1 6D FD 18 8F [14:58:06]CommunicateWithHost err = 0 [14:58:06]CheckOFDResponse [14:58:06]1017 (14) - 77093643461234 [14:58:06]1041 (16) - 0000000000871745 [14:58:06]1040 (4) - 145740 [14:58:06]1012 (4) - 27.10.2024 08:30 [14:58:06]1206 (1) - 0 [14:58:06]OFD Sender: Remove packet 145740 [14:58:06]ProducePacketName [14:58:06]name=ofd_packets/00145740 [14:58:06]NVStorageDeleteData [14:58:07]*** Cut start [14:58:07]*** Partial cut [14:58:07]*** CUTSNS_PIN = 1 [14:58:07]*** CUTSNS_PIN = 0 [14:58:07]OFD Sender: No OFD packet to send [14:58:07]*** Brake cut motor [14:58:07]Read from MH i2c: 01 [14:58:07]MH_I2C_Read... [14:58:07]*** Stop cut motor [14:58:07]*** Cut end [14:58:07]Read from MH i2c: 01 07 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: 01 07 00 EE 1F 00 00 00 00 00 FF 0F 22 [14:58:07]process_action close_receipt done [14:58:07]requested_data is exist [14:58:07]produce_requested_data [14:58:07]requested_item fm.sn is exist - process it [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 11 00 00 [14:58:07]Write to MH i2c: E2 08 00 EF 1F 80 11 00 00 00 00 00 00 88 [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 17 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 17 00 EF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 DB [14:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:58:07]wFMCommunicate OK [14:58:07]requested_item fd.num is exist - process it [14:58:07]SAM_PROTO_GetFieldsCounters [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 13 00 00 [14:58:07]Write to MH i2c: E2 08 00 F0 1F 80 13 00 00 00 00 00 00 8B [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 62 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 62 00 F0 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [14:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:07]wFMCommunicate OK [14:58:07]SAM_PROTO_GetFieldsCounters done [14:58:07]requested_item shift.num is exist - process it [14:58:07]requested_item shift.opened is exist - process it [14:58:07]req_shift_opened [14:58:07]FM_GetShiftState [14:58:07]SAM_PROTO_GetShiftState [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 13 01 00 [14:58:07]Write to MH i2c: E2 08 00 F1 1F 80 13 01 00 00 00 00 00 8D [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:08]Read from MH i2c: E2 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: E2 0E 00 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: E2 0E 00 F1 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 05 [14:58:08]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:58:08]wFMCommunicate OK [14:58:08]SAM_PROTO_GetShiftState done [14:58:08]FM_GetShiftState done [14:58:08]req_shift_opened done [14:58:08]requested_item shift.open_date is exist - process it [14:58:08]req_shift_open_date [14:58:08]req_shift_open_date done [14:58:08]produce_requested_data done [14:58:08]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145740,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:58:08]process_action_free close_receipt [14:58:08]json_value_free [14:58:08]json_value_free done [14:58:08]process_json_proto returns [14:58:08]Send response to host [14:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145740,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:58:08]free response buf [14:58:08]execute_script done [14:58:08]execute_script returns [14:58:08]free content buf [14:58:08]Sock 9.Close socket [14:58:08]Sock 9.Thread stoped [14:58:08]accept exits with 7 [14:58:08]New connection [14:58:08]New thread 3066596708 created [14:58:08]Thread 3066740068 joined [14:58:08]Waiting for new connection... [14:58:08] Sock 7.Parse request [14:58:08]Sock 7.Check first char [14:58:08]Sock 7.First char is OK [14:58:08]request: POST /json_proto HTTP/1.0 [14:58:08]Method: POST [14:58:08]URL: /json_proto [14:58:08]Method is POST - this is cgi request [14:58:08]url: /json_proto [14:58:08]query_string will be loaded in cgi processing [14:58:08]execute_cgi json_proto POST (null) [14:58:08]execute_cgi path=json_proto method=POST [14:58:08]POST find Content-Length [14:58:08]Host: 172.17.40.195:8080 [14:58:08]Content-Length: 766 [14:58:08]Content-Type: application/json [14:58:08] [14:58:08]POST finish read [14:58:08]Found Content-Length = 766 [14:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:08]execute_script... [14:58: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)160496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:08]POST & json_proto [14:58:08]process_json_proto [14:58:08]json parsed OK: [14:58:08]protocol is kg_v1.0 [14:58:08]action value=close_receipt [14:58:08]process_action close_receipt [14:58:08]cmd_close_receipt [14:58:08]MH_GetDate [14:58:08]Write to MH i2c: F0 00 00 F2 1F 00 [14:58:08]Write i2c OK [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: F0 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: F0 09 00 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: F0 09 00 F2 1F 00 02 55 1E 67 D5 8D 6C 64 17 [14:58:08]GetLastDocTimeStamp 1730041086 [14:58:08]current date 1730041090 [14:58:08]FM_GetShiftState [14:58:08]SAM_PROTO_GetShiftState [14:58:08]wFMCommunicate request_size=4 [14:58:08]MH_SAM_APDU [14:58:08]CAPDU: 80 13 01 00 [14:58:08]Write to MH i2c: E2 08 00 F3 1F 80 13 01 00 00 00 00 00 8F [14:58:08]Write i2c OK [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: E2 [14:58:08]MH_I2C_Read... [14:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:08]Read from MH i2c: E2 0E 00 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: E2 0E 00 F3 1F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 07 [14:58:08]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:58:08]wFMCommunicate OK [14:58:08]SAM_PROTO_GetShiftState done [14:58:08]FM_GetShiftState done [14:58:08]opened in 1729988959 [14:58:08]opened+sec_in_day 1730075359 [14:58:08]quantity*price = 200025 [14:58:08]sum+1 = 200026 [14:58:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 164 27.10.2024 14:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145741 ФПД: 233131337150254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145810&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145741&fm=233131337150254&tin=02508201610067®Number=0000000000091683&sum=200025 [14:58:09]StoreToDocumentArchive [14:58:09]shift 545 fd 145741 [14:58:09]save to /storage/0545/doc_00145741 [14:58:09]save last doc name /storage/0545/doc_00145741 to /storage/kkm_last_doc_name [14:58:09]save OK [14:58:09]Clear old archive folders... [14:58:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:58:09]tlvbuf is B6F247F0 [14:58:09]SAM_PROTO_ClearQueue [14:58:09]wFMCommunicate request_size=4 [14:58:09]MH_SAM_APDU [14:58:09]CAPDU: 80 09 00 00 [14:58:09]Write to MH i2c: E2 08 00 00 20 80 09 00 00 00 00 00 00 92 [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 00 20 00 90 00 94 [14:58:10]RAPDU: 90 00 [14:58:10]wFMCommunicate OK [14:58:10]SAM_PROTO_ClearQueue done [14:58:10]KKMCreateOFDPacket [14:58:10]OFDProtocolAddRootSTLVToBuf [14:58:10]FM_MakeSignedData [14:58:10]FM_MakeSignedData [14:58:10]SAM_PROTO_SignData [14:58:10]wFMCommunicate request_size=4 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 0D 01 02 [14:58:10]Write to MH i2c: E2 08 00 01 20 80 0D 01 02 00 00 00 00 9A [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 01 20 00 90 00 95 [14:58:10]RAPDU: 90 00 [14:58:10]wFMCommunicate OK [14:58:10]wFMCommunicate request_size=255 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 02 55 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4D 39 02 00 35 04 06 00 D4 08 1E 89 [14:58:10]Write to MH i2c: E2 02 01 02 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 02 55 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4D 39 02 00 35 04 06 00 D4 08 1E 89 00 00 EC [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 02 20 00 90 00 96 [14:58:10]RAPDU: 90 00 [14:58:10]wFMCommunicate OK [14:58:10]wFMCommunicate request_size=7 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 0D 02 02 02 6F 2E [14:58:10]Write to MH i2c: E2 0A 00 03 20 80 0D 02 02 02 00 6F 2E 00 00 3E [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 03 20 00 90 00 97 [14:58:10]RAPDU: 90 00 [14:58:10]wFMCommunicate OK [14:58:10]wFMCommunicate request_size=4 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 0D 03 02 [14:58:10]Write to MH i2c: E2 08 00 04 20 80 0D 03 02 00 00 00 00 9F [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 0B 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 0B 00 04 20 00 E3 C4 3A F0 B9 D5 79 58 90 00 D0 [14:58:10]RAPDU: E3 C4 3A F0 B9 D5 79 58 90 00 [14:58:10]wFMCommunicate OK [14:58:10]SAM_PROTO_SignData done [14:58:10]FM_MakeSignedData done [14:58:10]CreateOFDProtocolMessage [14:58:10]wFMCommunicate request_size=4 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 11 00 00 [14:58:10]Write to MH i2c: E2 08 00 05 20 80 11 00 00 00 00 00 00 9F [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 17 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 17 00 05 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F2 [14:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:58:10]wFMCommunicate OK [14:58:10]CreateOFDProtocolMessage done [14:58:10]OFDSenderStorePacket 145741 [14:58:10]StoreOFDPacket docnum=145741 [14:58:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 80 82 04 01 74 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 02 55 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4D 39 02 00 35 04 06 00 D4 08 1E 89 6F 2E E3 C4 3A F0 B9 D5 79 58 [14:58:10]CheckFolder [14:58:10]dirname=/storage/ofd_packets [14:58:10]CheckFolder done [14:58:10]ProducePacketName [14:58:10]name=ofd_packets/00145741 [14:58:10]NVStorageSaveData ofd_packets/00145741 [14:58:10]File name is /storage/ofd_packets/00145741 [14:58:10]Write 298 bytes [14:58:10]NVStorageSaveData done [14:58:10]OFDSenderStorePacket done [14:58:10]KKMCreateOFDPacket done [14:58:10]NVStorageSaveData kkm_last_timestamp [14:58:10]File name is /storage/kkm_last_timestamp [14:58:10]Write 4 bytes [14:58:10]NVStorageSaveData done [14:58:10]ExternCall_PrintAddStr [14:58:10]wPrintStart [14:58:10]Write to MH i2c: 01 00 00 06 20 26 [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: 01 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: 01 07 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: 01 07 00 06 20 00 00 00 00 00 FF 0F 3B [14:58:10]RasterBufferAndPrint [14:58:10]line Счет N : (1)160496 [14:58:10]line ИНН: 02508201610067 [14:58:10]line Контрольно-Кассовый Чек [14:58:10]line ПРОДАЖА [14:58:10]line ТРК (МРК, ГНК) : 21 [14:58:10]line Товар: 2710194210 [14:58:10]line ДТ-К-2 [14:58:10]line 26.250 * 76.20 [14:58:10]line = 2000.25 [14:58:10]line НДС 12% НСП 1% [14:58:10]line > о реализуемом товаре [14:58:10]line ИТОГО: 2000.25 [14:58:10]line НСП 1% : 17.70 [14:58:10]line НДС 12% : 212.42 [14:58:10]line Наличными: 0.00 [14:58:10]line Безнал.: 2000.25 [14:58:10]line Место: АЗС № 126 "Партнер Нефть" [14:58:10]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [14:58:10]line СНО: Общий режим [14:58:10]line Чек 164 27.10.2024 14:58 [14:58:10]line Смена: 545 ФФД: 1.0 [14:58:10]line ЗНМ: 0300000085 [14:58:10]line РНМ: 0000000000091683 [14:58:10]line Версия ККМ: 001 [14:58:10]line Платежная система: Mbank [14:58:10]line ФМ: 0000000000871745 [14:58:10]line ФД: 145741 [14:58:10]line ФПД: 233131337150254 [14:58:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145810&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145741&fm=233131337150254&tin=02508201610067®Number=0000000000091683&sum=200025 [14:58:10]OFD Sender: Processing packet 145741 [packets to send 206, broken 205] [14:58:10]ProducePacketName [14:58:10]name=ofd_packets/00145741 [14:58:10]OFD Sender: To server: pG, [14:58:10]CommunicateWithHost lk.salyk.kg:30040 [14:58:10]ConnectInit lk.salyk.kg [14:58:10]written 0, free lines is 4095 [14:58:11]Connected sock=10 [14:58:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 80 82 04 01 74 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 02 55 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4D 39 02 00 35 04 06 00 D4 08 1E 89 6F 2E E3 C4 3A F0 B9 D5 79 58 [14:58:11]Write to MH i2c: 01 00 00 2F 20 4F [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 07 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 07 00 2F 20 00 00 00 00 00 ED 0C 4F [14:58:11]RasterBufferAndPrint [14:58:11]line [14:58:11]line [14:58:11]line [14:58:11]line [14:58:11]line [14:58:11]written 0, free lines is 3324 [14:58:11]MH_Cut [14:58:11]Write to MH i2c: D1 01 00 36 20 01 28 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: D1 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: D1 01 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: D1 01 00 36 20 00 27 [14:58:11]Write to MH i2c: 01 00 00 37 20 57 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 1A 36 47 00 C8 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4D 39 02 00 F4 03 04 00 30 FA 1D 67 B6 04 01 00 00 BF A6 0A 7A 87 4D A7 2F [14:58:11]CommunicateWithHost err = 0 [14:58:11]CheckOFDResponse [14:58:11]1017 (14) - 77093643461234 [14:58:11]1041 (16) - 0000000000871745 [14:58:11]1040 (4) - 145741 [14:58:11]1012 (4) - 27.10.2024 08:30 [14:58:11]1206 (1) - 0 [14:58:11]OFD Sender: Remove packet 145741 [14:58:11]ProducePacketName [14:58:11]name=ofd_packets/00145741 [14:58:11]NVStorageDeleteData [14:58:11]OFD Sender: No OFD packet to send [14:58:12]*** Cut start [14:58:12]*** Partial cut [14:58:12]*** CUTSNS_PIN = 1 [14:58:12]*** CUTSNS_PIN = 0 [14:58:12]*** Brake cut motor [14:58:12]Read from MH i2c: 01 [14:58:12]MH_I2C_Read... [14:58:12]*** Stop cut motor [14:58:12]*** Cut end [14:58:12]Read from MH i2c: 01 07 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 07 00 37 20 00 00 00 00 00 FF 0F 6C [14:58:12]process_action close_receipt done [14:58:12]requested_data is exist [14:58:12]produce_requested_data [14:58:12]requested_item fm.sn is exist - process it [14:58:12]wFMCommunicate request_size=4 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 11 00 00 [14:58:12]Write to MH i2c: E2 08 00 38 20 80 11 00 00 00 00 00 00 D2 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 17 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 17 00 38 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 25 [14:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [14:58:12]wFMCommunicate OK [14:58:12]requested_item fd.num is exist - process it [14:58:12]SAM_PROTO_GetFieldsCounters [14:58:12]wFMCommunicate request_size=4 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 13 00 00 [14:58:12]Write to MH i2c: E2 08 00 39 20 80 13 00 00 00 00 00 00 D5 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 62 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 62 00 39 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [14:58:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:12]wFMCommunicate OK [14:58:12]SAM_PROTO_GetFieldsCounters done [14:58:12]requested_item shift.num is exist - process it [14:58:12]requested_item shift.opened is exist - process it [14:58:12]req_shift_opened [14:58:12]FM_GetShiftState [14:58:12]SAM_PROTO_GetShiftState [14:58:12]wFMCommunicate request_size=4 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 13 01 00 [14:58:12]Write to MH i2c: E2 08 00 3A 20 80 13 01 00 00 00 00 00 D7 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 0E 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 0E 00 3A 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4F [14:58:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [14:58:13]wFMCommunicate OK [14:58:13]SAM_PROTO_GetShiftState done [14:58:13]FM_GetShiftState done [14:58:13]req_shift_opened done [14:58:13]requested_item shift.open_date is exist - process it [14:58:13]req_shift_open_date [14:58:13]req_shift_open_date done [14:58:13]produce_requested_data done [14:58:13]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145741,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [14:58:13]process_action_free close_receipt [14:58:13]json_value_free [14:58:13]json_value_free done [14:58:13]process_json_proto returns [14:58:13]Send response to host [14:58:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145741,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [14:58:13]free response buf [14:58:13]execute_script done [14:58:13]execute_script returns [14:58:13]free content buf [14:58:13]Sock 7.Close socket [14:58:13]Sock 7.Thread stoped [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:11]int [15:07:11]Write to MH i2c: 01 00 00 3B 20 5B [15:07:11]*** FLAG_PRN_KEY set [15:07:11]Write i2c OK [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 07 00 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 07 00 3B 20 00 08 00 00 00 FF 0F 78 [15:07:11]state=0 [15:07:11]Key pressed [15:07:11]Feed [15:07:11]Write to MH i2c: D8 00 00 3C 20 33 [15:07:11]Write i2c OK [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: D8 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: D8 01 00 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: D8 01 00 3C 20 00 34 [15:07:11]int [15:07:11]Write to MH i2c: 01 00 00 3D 20 5D [15:07:11]Write i2c OK [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 07 00 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 07 00 3D 20 00 48 00 00 00 3C 00 E8 [15:07:11]state=2 [15:07:11]Key pressed [15:07:11]int [15:07:11]Write to MH i2c: 01 00 00 3E 20 5E [15:07:11]Write i2c OK [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 07 00 [15:07:11]MH_I2C_Read... [15:07:11]*** FLAG_PRN_KEY reset [15:07:11]Read from MH i2c: 01 07 00 3E 20 00 08 00 00 00 F5 0F 71 [15:07:11]state=2 [15:07:11]Key pressed [15:07:11]*** FLAG_PRN_KEY set [15:07:11]int [15:07:11]Write to MH i2c: 01 00 00 3F 20 5F [15:07:11]*** FLAG_PRN_KEY reset [15:07:11]Write i2c OK [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 07 00 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 07 00 3F 20 00 00 00 00 00 FF 0F 74 [15:07:11]state=2 [15:07:11]Stop feed [15:07:12]int [15:07:12]Write to MH i2c: 01 00 00 40 20 60 [15:07:12]*** FLAG_PRN_KEY set [15:07:12]Write i2c OK [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: 01 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: 01 07 00 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: 01 07 00 40 20 00 08 00 00 00 FF 0F 7D [15:07:12]state=0 [15:07:12]Key pressed [15:07:12]Feed [15:07:12]Write to MH i2c: D8 00 00 41 20 38 [15:07:12]Write i2c OK [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: D8 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: D8 01 00 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: D8 01 00 41 20 00 39 [15:07:12]int [15:07:12]Write to MH i2c: 01 00 00 42 20 62 [15:07:12]Write i2c OK [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: 01 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: 01 07 00 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: 01 07 00 42 20 00 48 00 00 00 3C 00 ED [15:07:12]state=2 [15:07:12]Key pressed [15:07:12]int [15:07:12]Write to MH i2c: 01 00 00 43 20 63 [15:07:12]*** FLAG_PRN_KEY reset [15:07:12]Write i2c OK [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: 01 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: 01 07 00 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: 01 07 00 43 20 00 00 00 00 00 F6 0F 6F [15:07:12]state=2 [15:07:12]Stop feed [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]accept exits with 9 [15:09:12]New connection [15:09:12]New thread 3066740068 created [15:09:12]Thread 3066596708 joined [15:09:12]Waiting for new connection... [15:09:12]OFD Sender: No OFD packet to send [15:09:12] Sock 9.Parse request [15:09:12]Sock 9.Check first char [15:09:12]Sock 9.First char is OK [15:09:12]request: POST /json_proto HTTP/1.0 [15:09:12]Method: POST [15:09:12]URL: /json_proto [15:09:12]Method is POST - this is cgi request [15:09:12]url: /json_proto [15:09:12]query_string will be loaded in cgi processing [15:09:12]execute_cgi json_proto POST (null) [15:09:12]execute_cgi path=json_proto method=POST [15:09:12]POST find Content-Length [15:09:12]Host: 172.17.40.195:8080 [15:09:12]Content-Length: 640 [15:09:12]Content-Type: application/json [15:09:12] [15:09:12]POST finish read [15:09:12]Found Content-Length = 640 [15:09:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:12]execute_script... [15:09: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)160498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:12]POST & json_proto [15:09:12]process_json_proto [15:09:12]json parsed OK: [15:09:12]protocol is kg_v1.0 [15:09:12]action value=close_receipt [15:09:12]process_action close_receipt [15:09:12]cmd_close_receipt [15:09:12]MH_GetDate [15:09:12]Write to MH i2c: F0 00 00 44 20 53 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: F0 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: F0 09 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: F0 09 00 44 20 00 9B 57 1E 67 D5 8D 6C 64 05 [15:09:12]GetLastDocTimeStamp 1730041090 [15:09:12]current date 1730041755 [15:09:12]FM_GetShiftState [15:09:12]SAM_PROTO_GetShiftState [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 13 01 00 [15:09:12]Write to MH i2c: E2 08 00 45 20 80 13 01 00 00 00 00 00 E2 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:13]Read from MH i2c: E2 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 0E 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 0E 00 45 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5A [15:09:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:09:13]wFMCommunicate OK [15:09:13]SAM_PROTO_GetShiftState done [15:09:13]FM_GetShiftState done [15:09:13]opened in 1729988959 [15:09:13]opened+sec_in_day 1730075359 [15:09:13]quantity*price = 66900 [15:09:13]sum+1 = 66901 [15:09:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 165 27.10.2024 15:09 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145742 ФПД: 226681996802126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150915&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145742&fm=226681996802126&tin=02508201610067®Number=0000000000091683&sum=66900 [15:09:14]StoreToDocumentArchive [15:09:14]shift 545 fd 145742 [15:09:14]save to /storage/0545/doc_00145742 [15:09:14]save last doc name /storage/0545/doc_00145742 to /storage/kkm_last_doc_name [15:09:14]save OK [15:09:14]Clear old archive folders... [15:09:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:14]tlvbuf is 003FB800 [15:09:14]SAM_PROTO_ClearQueue [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 09 00 00 [15:09:14]Write to MH i2c: E2 08 00 52 20 80 09 00 00 00 00 00 00 E4 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 03 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 03 00 52 20 00 90 00 E6 [15:09:14]RAPDU: 90 00 [15:09:14]wFMCommunicate OK [15:09:14]SAM_PROTO_ClearQueue done [15:09:14]KKMCreateOFDPacket [15:09:14]OFDProtocolAddRootSTLVToBuf [15:09:14]FM_MakeSignedData [15:09:14]FM_MakeSignedData [15:09:14]SAM_PROTO_SignData [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 0D 01 02 [15:09:14]Write to MH i2c: E2 08 00 53 20 80 0D 01 02 00 00 00 00 EC [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 03 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 03 00 53 20 00 90 00 E7 [15:09:14]RAPDU: 90 00 [15:09:14]wFMCommunicate OK [15:09:14]wFMCommunicate request_size=255 [15:09:14]MH_SAM_APDU [15:09: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 9B 57 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4E 39 02 00 35 04 06 00 CE [15:09:14]Write to MH i2c: E2 02 01 54 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 9B 57 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4E 39 02 00 35 04 06 00 CE 00 00 39 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 03 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 03 00 54 20 00 90 00 E8 [15:09:14]RAPDU: 90 00 [15:09:14]wFMCommunicate OK [15:09:14]wFMCommunicate request_size=10 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 0D 02 02 05 2A 83 E5 78 4E [15:09:14]Write to MH i2c: E2 0D 00 55 20 80 0D 02 02 05 00 2A 83 E5 78 4E 00 00 51 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 03 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [15:09:14]RAPDU: 90 00 [15:09:14]wFMCommunicate OK [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 0D 03 02 [15:09:14]Write to MH i2c: E2 08 00 56 20 80 0D 03 02 00 00 00 00 F1 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 0B 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 0B 00 56 20 00 F6 B4 6E 46 9B F4 67 08 90 00 4E [15:09:14]RAPDU: F6 B4 6E 46 9B F4 67 08 90 00 [15:09:14]wFMCommunicate OK [15:09:14]SAM_PROTO_SignData done [15:09:14]FM_MakeSignedData done [15:09:14]CreateOFDProtocolMessage [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 11 00 00 [15:09:14]Write to MH i2c: E2 08 00 57 20 80 11 00 00 00 00 00 00 F1 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 17 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 17 00 57 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 44 [15:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:09:14]wFMCommunicate OK [15:09:14]CreateOFDProtocolMessage done [15:09:14]OFDSenderStorePacket 145742 [15:09:14]StoreOFDPacket docnum=145742 [15:09:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 02 1E 07 01 3C 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 9B 57 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4E 39 02 00 35 04 06 00 CE 2A 83 E5 78 4E F6 B4 6E 46 9B F4 67 08 [15:09:14]CheckFolder [15:09:14]dirname=/storage/ofd_packets [15:09:14]CheckFolder done [15:09:14]ProducePacketName [15:09:14]name=ofd_packets/00145742 [15:09:14]NVStorageSaveData ofd_packets/00145742 [15:09:14]File name is /storage/ofd_packets/00145742 [15:09:14]Write 301 bytes [15:09:14]NVStorageSaveData done [15:09:14]OFDSenderStorePacket done [15:09:14]KKMCreateOFDPacket done [15:09:14]NVStorageSaveData kkm_last_timestamp [15:09:14]File name is /storage/kkm_last_timestamp [15:09:14]Write 4 bytes [15:09:14]NVStorageSaveData done [15:09:14]ExternCall_PrintAddStr [15:09:14]wPrintStart [15:09:14]Write to MH i2c: 01 00 00 58 20 78 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: 01 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: 01 07 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: 01 07 00 58 20 00 00 00 00 00 FF 0F 8D [15:09:14]RasterBufferAndPrint [15:09:14]line Счет N : (1)160498 [15:09:14]line ИНН: 02508201610067 [15:09:14]line Контрольно-Кассовый Чек [15:09:14]line ПРОДАЖА [15:09:14]line ТРК (МРК, ГНК) : 42 [15:09:14]line Товар: 2710124130 [15:09:14]line Аи-92-К-2 [15:09:14]line 10.000 * 66.90 [15:09:14]line = 669.00 [15:09:14]line НДС 12% НСП 1% [15:09:14]line > о реализуемом товаре [15:09:14]line ИТОГО: 669.00 [15:09:14]line НСП 1% : 5.92 [15:09:14]line НДС 12% : 71.04 [15:09:14]line Наличными: 669.00 [15:09:14]line Безнал.: 0.00 [15:09:14]line Место: АЗС № 126 "Партнер Нефть" [15:09:14]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:09:14]line СНО: Общий режим [15:09:14]line Чек 165 27.10.2024 15:09 [15:09:14]line Смена: 545 ФФД: 1.0 [15:09:14]line ЗНМ: 0300000085 [15:09:14]line РНМ: 0000000000091683 [15:09:14]line Версия ККМ: 001 [15:09:14]line ФМ: 0000000000871745 [15:09:14]line ФД: 145742 [15:09:14]line ФПД: 226681996802126 [15:09:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150915&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145742&fm=226681996802126&tin=02508201610067®Number=0000000000091683&sum=66900 [15:09:15]OFD Sender: Processing packet 145742 [packets to send 206, broken 205] [15:09:15]ProducePacketName [15:09:15]name=ofd_packets/00145742 [15:09:15]OFD Sender: To server: pG, [15:09:15]CommunicateWithHost lk.salyk.kg:30040 [15:09:15]ConnectInit lk.salyk.kg [15:09:15]written 0, free lines is 4095 [15:09:15]Connected sock=7 [15:09:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 02 1E 07 01 3C 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 9B 57 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4E 39 02 00 35 04 06 00 CE 2A 83 E5 78 4E F6 B4 6E 46 9B F4 67 08 [15:09:15]Write to MH i2c: 01 00 00 80 20 A0 [15:09:15]Write i2c OK [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: 01 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: 01 07 00 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: 01 07 00 80 20 00 00 00 00 00 EC 0C 9F [15:09:15]RasterBufferAndPrint [15:09:15]line [15:09:15]line [15:09:15]line [15:09:15]line [15:09:15]line [15:09:15]written 0, free lines is 3312 [15:09:15]MH_Cut [15:09:15]Write to MH i2c: D1 01 00 87 20 01 79 [15:09:15]Write i2c OK [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: D1 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: D1 01 00 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: D1 01 00 87 20 00 78 [15:09:15]Write to MH i2c: 01 00 00 88 20 A8 [15:09:15]Write i2c OK [15:09:15]MH_I2C_Read... [15:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 1C 28 47 00 5E 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4E 39 02 00 F4 03 04 00 C8 FC 1D 67 B6 04 01 00 00 0D CC 3F DA 0D 68 F8 23 [15:09:15]CommunicateWithHost err = 0 [15:09:15]CheckOFDResponse [15:09:15]1017 (14) - 77093643461234 [15:09:15]1041 (16) - 0000000000871745 [15:09:15]1040 (4) - 145742 [15:09:15]1012 (4) - 27.10.2024 08:41 [15:09:15]1206 (1) - 0 [15:09:15]OFD Sender: Remove packet 145742 [15:09:15]ProducePacketName [15:09:15]name=ofd_packets/00145742 [15:09:15]NVStorageDeleteData [15:09:16]OFD Sender: No OFD packet to send [15:09:16]*** Cut start [15:09:16]*** Partial cut [15:09:16]*** CUTSNS_PIN = 1 [15:09:16]*** CUTSNS_PIN = 0 [15:09:16]*** Brake cut motor [15:09:16]Read from MH i2c: 01 [15:09:16]MH_I2C_Read... [15:09:16]*** Stop cut motor [15:09:16]*** Cut end [15:09:16]Read from MH i2c: 01 07 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: 01 07 00 88 20 00 00 00 00 00 FF 0F BD [15:09:16]process_action close_receipt done [15:09:16]requested_data is exist [15:09:16]produce_requested_data [15:09:16]requested_item fm.sn is exist - process it [15:09:16]wFMCommunicate request_size=4 [15:09:16]MH_SAM_APDU [15:09:16]CAPDU: 80 11 00 00 [15:09:16]Write to MH i2c: E2 08 00 89 20 80 11 00 00 00 00 00 00 23 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:16]Read from MH i2c: E2 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 17 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 17 00 89 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 76 [15:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:09:16]wFMCommunicate OK [15:09:16]requested_item fd.num is exist - process it [15:09:16]SAM_PROTO_GetFieldsCounters [15:09:16]wFMCommunicate request_size=4 [15:09:16]MH_SAM_APDU [15:09:16]CAPDU: 80 13 00 00 [15:09:16]Write to MH i2c: E2 08 00 8A 20 80 13 00 00 00 00 00 00 26 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 62 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 62 00 8A 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [15:09:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:17]wFMCommunicate OK [15:09:17]SAM_PROTO_GetFieldsCounters done [15:09:17]requested_item shift.num is exist - process it [15:09:17]requested_item shift.opened is exist - process it [15:09:17]req_shift_opened [15:09:17]FM_GetShiftState [15:09:17]SAM_PROTO_GetShiftState [15:09:17]wFMCommunicate request_size=4 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 13 01 00 [15:09:17]Write to MH i2c: E2 08 00 8B 20 80 13 01 00 00 00 00 00 28 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 0E 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 0E 00 8B 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A0 [15:09:17]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:09:17]wFMCommunicate OK [15:09:17]SAM_PROTO_GetShiftState done [15:09:17]FM_GetShiftState done [15:09:17]req_shift_opened done [15:09:17]requested_item shift.open_date is exist - process it [15:09:17]req_shift_open_date [15:09:17]req_shift_open_date done [15:09:17]produce_requested_data done [15:09:17]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145742,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:09:17]process_action_free close_receipt [15:09:17]json_value_free [15:09:17]json_value_free done [15:09:17]process_json_proto returns [15:09:17]Send response to host [15:09:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145742,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:09:17]free response buf [15:09:17]execute_script done [15:09:17]execute_script returns [15:09:17]free content buf [15:09:17]Sock 9.Close socket [15:09:17]Sock 9.Thread stoped [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:22]accept exits with 10 [15:17:22]New connection [15:17:22]New thread 3066596708 created [15:17:22]Thread 3066740068 joined [15:17:22]Waiting for new connection... [15:17:22] Sock 10.Parse request [15:17:22]Sock 10.Check first char [15:17:22]Sock 10.First char is OK [15:17:22]request: POST /json_proto HTTP/1.0 [15:17:22]Method: POST [15:17:22]URL: /json_proto [15:17:22]Method is POST - this is cgi request [15:17:22]url: /json_proto [15:17:22]query_string will be loaded in cgi processing [15:17:22]execute_cgi json_proto POST (null) [15:17:22]execute_cgi path=json_proto method=POST [15:17:22]POST find Content-Length [15:17:22]Host: 172.17.40.195:8080 [15:17:22]Content-Length: 679 [15:17:22]Content-Type: application/json [15:17:22] [15:17:22]POST finish read [15:17:22]Found Content-Length = 679 [15:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:22]execute_script... [15:17: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)160499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:22]POST & json_proto [15:17:22]process_json_proto [15:17:22]json parsed OK: [15:17:22]protocol is kg_v1.0 [15:17:22]action value=close_receipt [15:17:22]process_action close_receipt [15:17:22]cmd_close_receipt [15:17:22]MH_GetDate [15:17:22]Write to MH i2c: F0 00 00 8C 20 9B [15:17:22]Write i2c OK [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: F0 [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: F0 09 00 [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: F0 09 00 8C 20 00 84 59 1E 67 D5 8D 6C 64 38 [15:17:22]GetLastDocTimeStamp 1730041755 [15:17:22]current date 1730042244 [15:17:22]FM_GetShiftState [15:17:22]SAM_PROTO_GetShiftState [15:17:22]wFMCommunicate request_size=4 [15:17:22]MH_SAM_APDU [15:17:22]CAPDU: 80 13 01 00 [15:17:22]Write to MH i2c: E2 08 00 8D 20 80 13 01 00 00 00 00 00 2A [15:17:22]Write i2c OK [15:17:22]MH_I2C_Read... [15:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:22]Read from MH i2c: E2 [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: E2 0E 00 [15:17:22]MH_I2C_Read... [15:17:22]Read from MH i2c: E2 0E 00 8D 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A2 [15:17:22]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:17:22]wFMCommunicate OK [15:17:22]SAM_PROTO_GetShiftState done [15:17:22]FM_GetShiftState done [15:17:22]opened in 1729988959 [15:17:22]opened+sec_in_day 1730075359 [15:17:22]quantity*price = 100050 [15:17:22]sum+1 = 100052 [15:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 166 27.10.2024 15:17 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145743 ФПД: 41437764565582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151725&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145743&fm=41437764565582&tin=02508201610067®Number=0000000000091683&sum=100000 [15:17:24]StoreToDocumentArchive [15:17:24]shift 545 fd 145743 [15:17:24]save to /storage/0545/doc_00145743 [15:17:24]save last doc name /storage/0545/doc_00145743 to /storage/kkm_last_doc_name [15:17:24]save OK [15:17:24]Clear old archive folders... [15:17:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:17:24]tlvbuf is 003FB6C0 [15:17:24]SAM_PROTO_ClearQueue [15:17:24]wFMCommunicate request_size=4 [15:17:24]MH_SAM_APDU [15:17:24]CAPDU: 80 09 00 00 [15:17:24]Write to MH i2c: E2 08 00 9A 20 80 09 00 00 00 00 00 00 2C [15:17:24]Write i2c OK [15:17:24]MH_I2C_Read... [15:17:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:24]Read from MH i2c: E2 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 03 00 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 03 00 9A 20 00 90 00 2E [15:17:24]RAPDU: 90 00 [15:17:24]wFMCommunicate OK [15:17:24]SAM_PROTO_ClearQueue done [15:17:24]KKMCreateOFDPacket [15:17:24]OFDProtocolAddRootSTLVToBuf [15:17:24]FM_MakeSignedData [15:17:24]FM_MakeSignedData [15:17:24]SAM_PROTO_SignData [15:17:24]wFMCommunicate request_size=4 [15:17:24]MH_SAM_APDU [15:17:24]CAPDU: 80 0D 01 02 [15:17:24]Write to MH i2c: E2 08 00 9B 20 80 0D 01 02 00 00 00 00 34 [15:17:24]Write i2c OK [15:17:24]MH_I2C_Read... [15:17:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:24]Read from MH i2c: E2 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 03 00 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 03 00 9B 20 00 90 00 2F [15:17:24]RAPDU: 90 00 [15:17:24]wFMCommunicate OK [15:17:24]wFMCommunicate request_size=255 [15:17:24]MH_SAM_APDU [15:17: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 85 59 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4F 39 02 00 35 04 06 00 25 AF FB 3C [15:17:24]Write to MH i2c: E2 02 01 9C 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 85 59 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4F 39 02 00 35 04 06 00 25 AF FB 3C 00 00 79 [15:17:24]Write i2c OK [15:17:24]MH_I2C_Read... [15:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:24]Read from MH i2c: E2 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 03 00 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 03 00 9C 20 00 90 00 30 [15:17:24]RAPDU: 90 00 [15:17:24]wFMCommunicate OK [15:17:24]wFMCommunicate request_size=7 [15:17:24]MH_SAM_APDU [15:17:24]CAPDU: 80 0D 02 02 02 BA 4E [15:17:24]Write to MH i2c: E2 0A 00 9D 20 80 0D 02 02 02 00 BA 4E 00 00 43 [15:17:24]Write i2c OK [15:17:24]MH_I2C_Read... [15:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:24]Read from MH i2c: E2 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 03 00 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 03 00 9D 20 00 90 00 31 [15:17:24]RAPDU: 90 00 [15:17:24]wFMCommunicate OK [15:17:24]wFMCommunicate request_size=4 [15:17:24]MH_SAM_APDU [15:17:24]CAPDU: 80 0D 03 02 [15:17:24]Write to MH i2c: E2 08 00 9E 20 80 0D 03 02 00 00 00 00 39 [15:17:24]Write i2c OK [15:17:24]MH_I2C_Read... [15:17:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:24]Read from MH i2c: E2 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 0B 00 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 0B 00 9E 20 00 37 92 36 69 6E 4A E3 01 90 00 3E [15:17:24]RAPDU: 37 92 36 69 6E 4A E3 01 90 00 [15:17:24]wFMCommunicate OK [15:17:24]SAM_PROTO_SignData done [15:17:24]FM_MakeSignedData done [15:17:24]CreateOFDProtocolMessage [15:17:24]wFMCommunicate request_size=4 [15:17:24]MH_SAM_APDU [15:17:24]CAPDU: 80 11 00 00 [15:17:24]Write to MH i2c: E2 08 00 9F 20 80 11 00 00 00 00 00 00 39 [15:17:24]Write i2c OK [15:17:24]MH_I2C_Read... [15:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:24]Read from MH i2c: E2 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 17 00 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: E2 17 00 9F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8C [15:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:17:24]wFMCommunicate OK [15:17:24]CreateOFDProtocolMessage done [15:17:24]OFDSenderStorePacket 145743 [15:17:24]StoreOFDPacket docnum=145743 [15:17:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 CC C7 04 01 20 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 85 59 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4F 39 02 00 35 04 06 00 25 AF FB 3C BA 4E 37 92 36 69 6E 4A E3 01 [15:17:24]CheckFolder [15:17:24]dirname=/storage/ofd_packets [15:17:24]CheckFolder done [15:17:24]ProducePacketName [15:17:24]name=ofd_packets/00145743 [15:17:24]NVStorageSaveData ofd_packets/00145743 [15:17:24]File name is /storage/ofd_packets/00145743 [15:17:24]Write 298 bytes [15:17:24]NVStorageSaveData done [15:17:24]OFDSenderStorePacket done [15:17:24]KKMCreateOFDPacket done [15:17:24]NVStorageSaveData kkm_last_timestamp [15:17:24]File name is /storage/kkm_last_timestamp [15:17:24]Write 4 bytes [15:17:24]NVStorageSaveData done [15:17:24]ExternCall_PrintAddStr [15:17:24]wPrintStart [15:17:24]Write to MH i2c: 01 00 00 A0 20 C0 [15:17:24]Write i2c OK [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: 01 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: 01 07 00 [15:17:24]MH_I2C_Read... [15:17:24]Read from MH i2c: 01 07 00 A0 20 00 00 00 00 00 FF 0F D5 [15:17:24]RasterBufferAndPrint [15:17:24]line Счет N : (1)160499 [15:17:24]line ИНН: 02508201610067 [15:17:24]line Контрольно-Кассовый Чек [15:17:24]line ПРОДАЖА [15:17:24]line ТРК (МРК, ГНК) : 11 [15:17:24]line Товар: 2710194210 [15:17:24]line ДТ-К-2 [15:17:24]line 13.130 * 76.20 [15:17:24]line = 1000.51 [15:17:24]line НДС 12% НСП 1% [15:17:24]line > о реализуемом товаре [15:17:24]line ОКРУГЛЕНИЕ: -0.51 [15:17:24]line ИТОГО: 1000.00 [15:17:24]line Внесено: 1000.00 [15:17:24]line СДАЧА: 0.00 [15:17:24]line НСП 1% : 8.85 [15:17:24]line НДС 12% : 106.25 [15:17:24]line Наличными: 1000.00 [15:17:24]line Безнал.: 0.00 [15:17:24]line Место: АЗС № 126 "Партнер Нефть" [15:17:24]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:17:24]line СНО: Общий режим [15:17:24]line Чек 166 27.10.2024 15:17 [15:17:24]line Смена: 545 ФФД: 1.0 [15:17:24]line ЗНМ: 0300000085 [15:17:24]line РНМ: 0000000000091683 [15:17:24]line Версия ККМ: 001 [15:17:24]line ФМ: 0000000000871745 [15:17:24]line ФД: 145743 [15:17:24]line ФПД: 41437764565582 [15:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151725&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145743&fm=41437764565582&tin=02508201610067®Number=0000000000091683&sum=100000 [15:17:24]OFD Sender: Processing packet 145743 [packets to send 206, broken 205] [15:17:24]ProducePacketName [15:17:24]name=ofd_packets/00145743 [15:17:24]OFD Sender: To server: pG, [15:17:24]CommunicateWithHost lk.salyk.kg:30040 [15:17:24]ConnectInit lk.salyk.kg [15:17:24]written 0, free lines is 4095 [15:17:25]Connected sock=9 [15:17:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 CC C7 04 01 20 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 85 59 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4F 39 02 00 35 04 06 00 25 AF FB 3C BA 4E 37 92 36 69 6E 4A E3 01 [15:17:25]Write to MH i2c: 01 00 00 CB 20 EB [15:17:25]Write i2c OK [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: 01 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: 01 07 00 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: 01 07 00 CB 20 00 00 00 00 00 B1 0C AF [15:17:25]RasterBufferAndPrint [15:17:25]line [15:17:25]line [15:17:25]line [15:17:25]line [15:17:25]line [15:17:25]written 0, free lines is 3256 [15:17:25]MH_Cut [15:17:25]Write to MH i2c: D1 01 00 D2 20 01 C4 [15:17:25]Write i2c OK [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: D1 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: D1 01 00 [15:17:25]MH_I2C_Read... [15:17:25]Read from MH i2c: D1 01 00 D2 20 00 C3 [15:17:25]Write to MH i2c: 01 00 00 D3 20 F3 [15:17:25]Write i2c OK [15:17:25]MH_I2C_Read... [15:17:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 73 3F 47 00 0F A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 4F 39 02 00 F4 03 04 00 B2 FE 1D 67 B6 04 01 00 00 5E BE F2 08 3C E9 E4 35 [15:17:25]CommunicateWithHost err = 0 [15:17:25]CheckOFDResponse [15:17:25]1017 (14) - 77093643461234 [15:17:25]1041 (16) - 0000000000871745 [15:17:25]1040 (4) - 145743 [15:17:25]1012 (4) - 27.10.2024 08:49 [15:17:25]1206 (1) - 0 [15:17:25]OFD Sender: Remove packet 145743 [15:17:25]ProducePacketName [15:17:25]name=ofd_packets/00145743 [15:17:25]NVStorageDeleteData [15:17:25]OFD Sender: No OFD packet to send [15:17:26]*** Cut start [15:17:26]*** Partial cut [15:17:26]*** CUTSNS_PIN = 1 [15:17:26]*** CUTSNS_PIN = 0 [15:17:26]*** Brake cut motor [15:17:26]Read from MH i2c: 01 [15:17:26]MH_I2C_Read... [15:17:26]*** Stop cut motor [15:17:26]*** Cut end [15:17:26]Read from MH i2c: 01 07 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: 01 07 00 D3 20 00 00 00 00 00 FF 0F 08 [15:17:26]process_action close_receipt done [15:17:26]requested_data is exist [15:17:26]produce_requested_data [15:17:26]requested_item fm.sn is exist - process it [15:17:26]wFMCommunicate request_size=4 [15:17:26]MH_SAM_APDU [15:17:26]CAPDU: 80 11 00 00 [15:17:26]Write to MH i2c: E2 08 00 D4 20 80 11 00 00 00 00 00 00 6E [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 17 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 17 00 D4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C1 [15:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:17:26]wFMCommunicate OK [15:17:26]requested_item fd.num is exist - process it [15:17:26]SAM_PROTO_GetFieldsCounters [15:17:26]wFMCommunicate request_size=4 [15:17:26]MH_SAM_APDU [15:17:26]CAPDU: 80 13 00 00 [15:17:26]Write to MH i2c: E2 08 00 D5 20 80 13 00 00 00 00 00 00 71 [15:17:26]Write i2c OK [15:17:26]MH_I2C_Read... [15:17:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:26]Read from MH i2c: E2 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 62 00 [15:17:26]MH_I2C_Read... [15:17:26]Read from MH i2c: E2 62 00 D5 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [15:17:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 4F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:27]wFMCommunicate OK [15:17:27]SAM_PROTO_GetFieldsCounters done [15:17:27]requested_item shift.num is exist - process it [15:17:27]requested_item shift.opened is exist - process it [15:17:27]req_shift_opened [15:17:27]FM_GetShiftState [15:17:27]SAM_PROTO_GetShiftState [15:17:27]wFMCommunicate request_size=4 [15:17:27]MH_SAM_APDU [15:17:27]CAPDU: 80 13 01 00 [15:17:27]Write to MH i2c: E2 08 00 D6 20 80 13 01 00 00 00 00 00 73 [15:17:27]Write i2c OK [15:17:27]MH_I2C_Read... [15:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:27]Read from MH i2c: E2 [15:17:27]MH_I2C_Read... [15:17:27]Read from MH i2c: E2 0E 00 [15:17:27]MH_I2C_Read... [15:17:27]Read from MH i2c: E2 0E 00 D6 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EB [15:17:27]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:17:27]wFMCommunicate OK [15:17:27]SAM_PROTO_GetShiftState done [15:17:27]FM_GetShiftState done [15:17:27]req_shift_opened done [15:17:27]requested_item shift.open_date is exist - process it [15:17:27]req_shift_open_date [15:17:27]req_shift_open_date done [15:17:27]produce_requested_data done [15:17:27]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145743,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:17:27]process_action_free close_receipt [15:17:27]json_value_free [15:17:27]json_value_free done [15:17:27]process_json_proto returns [15:17:27]Send response to host [15:17:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145743,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:17:27]free response buf [15:17:27]execute_script done [15:17:27]execute_script returns [15:17:27]free content buf [15:17:27]Sock 10.Close socket [15:17:27]Sock 10.Thread stoped [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:17]accept exits with 7 [15:20:17]New connection [15:20:17]New thread 3066740068 created [15:20:17]Thread 3066596708 joined [15:20:17]Waiting for new connection... [15:20:17] Sock 7.Parse request [15:20:17]Sock 7.Check first char [15:20:17]Sock 7.First char is OK [15:20:17]request: POST /json_proto HTTP/1.0 [15:20:17]Method: POST [15:20:17]URL: /json_proto [15:20:17]Method is POST - this is cgi request [15:20:17]url: /json_proto [15:20:17]query_string will be loaded in cgi processing [15:20:17]execute_cgi json_proto POST (null) [15:20:17]execute_cgi path=json_proto method=POST [15:20:17]POST find Content-Length [15:20:17]Host: 172.17.40.195:8080 [15:20:17]Content-Length: 677 [15:20:17]Content-Type: application/json [15:20:17] [15:20:17]POST finish read [15:20:17]Found Content-Length = 677 [15:20:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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:20:17]execute_script... [15:20: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)160500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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:20:17]POST & json_proto [15:20:17]process_json_proto [15:20:17]json parsed OK: [15:20:17]protocol is kg_v1.0 [15:20:17]action value=close_receipt [15:20:17]process_action close_receipt [15:20:17]cmd_close_receipt [15:20:17]MH_GetDate [15:20:17]Write to MH i2c: F0 00 00 D7 20 E6 [15:20:17]Write i2c OK [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: F0 [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: F0 09 00 [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: F0 09 00 D7 20 00 33 5A 1E 67 D5 8D 6C 64 33 [15:20:17]GetLastDocTimeStamp 1730042245 [15:20:17]current date 1730042419 [15:20:17]FM_GetShiftState [15:20:17]SAM_PROTO_GetShiftState [15:20:17]wFMCommunicate request_size=4 [15:20:17]MH_SAM_APDU [15:20:17]CAPDU: 80 13 01 00 [15:20:17]Write to MH i2c: E2 08 00 D8 20 80 13 01 00 00 00 00 00 75 [15:20:17]Write i2c OK [15:20:17]MH_I2C_Read... [15:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:17]Read from MH i2c: E2 [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: E2 0E 00 [15:20:17]MH_I2C_Read... [15:20:17]Read from MH i2c: E2 0E 00 D8 20 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 ED [15:20:17]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:20:17]wFMCommunicate OK [15:20:17]SAM_PROTO_GetShiftState done [15:20:17]FM_GetShiftState done [15:20:17]opened in 1729988959 [15:20:17]opened+sec_in_day 1730075359 [15:20:17]quantity*price = 30051 [15:20:17]sum+1 = 30052 [15:20:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 167 27.10.2024 15:20 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145744 ФПД: 98222827188597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152019&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145744&fm=98222827188597&tin=02508201610067®Number=0000000000091683&sum=30000 [15:20:18]StoreToDocumentArchive [15:20:18]shift 545 fd 145744 [15:20:18]save to /storage/0545/doc_00145744 [15:20:18]save last doc name /storage/0545/doc_00145744 to /storage/kkm_last_doc_name [15:20:18]save OK [15:20:18]Clear old archive folders... [15:20:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:18]tlvbuf is B6E8D7F0 [15:20:18]SAM_PROTO_ClearQueue [15:20:18]wFMCommunicate request_size=4 [15:20:18]MH_SAM_APDU [15:20:18]CAPDU: 80 09 00 00 [15:20:18]Write to MH i2c: E2 08 00 E5 20 80 09 00 00 00 00 00 00 77 [15:20:18]Write i2c OK [15:20:18]MH_I2C_Read... [15:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:19]Read from MH i2c: E2 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 E5 20 00 90 00 79 [15:20:19]RAPDU: 90 00 [15:20:19]wFMCommunicate OK [15:20:19]SAM_PROTO_ClearQueue done [15:20:19]KKMCreateOFDPacket [15:20:19]OFDProtocolAddRootSTLVToBuf [15:20:19]FM_MakeSignedData [15:20:19]FM_MakeSignedData [15:20:19]SAM_PROTO_SignData [15:20:19]wFMCommunicate request_size=4 [15:20:19]MH_SAM_APDU [15:20:19]CAPDU: 80 0D 01 02 [15:20:19]Write to MH i2c: E2 08 00 E6 20 80 0D 01 02 00 00 00 00 7F [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:19]Read from MH i2c: E2 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 E6 20 00 90 00 7A [15:20:19]RAPDU: 90 00 [15:20:19]wFMCommunicate OK [15:20:19]wFMCommunicate request_size=255 [15:20:19]MH_SAM_APDU [15:20: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 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 33 5A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 50 39 02 00 35 04 06 00 59 [15:20:19]Write to MH i2c: E2 02 01 E7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 33 5A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 50 39 02 00 35 04 06 00 59 00 00 F6 [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:19]Read from MH i2c: E2 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 E7 20 00 90 00 7B [15:20:19]RAPDU: 90 00 [15:20:19]wFMCommunicate OK [15:20:19]wFMCommunicate request_size=10 [15:20:19]MH_SAM_APDU [15:20:19]CAPDU: 80 0D 02 02 05 55 48 B9 31 75 [15:20:19]Write to MH i2c: E2 0D 00 E8 20 80 0D 02 02 05 00 55 48 B9 31 75 00 00 88 [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:19]Read from MH i2c: E2 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 E8 20 00 90 00 7C [15:20:19]RAPDU: 90 00 [15:20:19]wFMCommunicate OK [15:20:19]wFMCommunicate request_size=4 [15:20:19]MH_SAM_APDU [15:20:19]CAPDU: 80 0D 03 02 [15:20:19]Write to MH i2c: E2 08 00 E9 20 80 0D 03 02 00 00 00 00 84 [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:19]Read from MH i2c: E2 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 0B 00 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 0B 00 E9 20 00 2C 8A E3 5E D6 2A 41 3A 90 00 F7 [15:20:19]RAPDU: 2C 8A E3 5E D6 2A 41 3A 90 00 [15:20:19]wFMCommunicate OK [15:20:19]SAM_PROTO_SignData done [15:20:19]FM_MakeSignedData done [15:20:19]CreateOFDProtocolMessage [15:20:19]wFMCommunicate request_size=4 [15:20:19]MH_SAM_APDU [15:20:19]CAPDU: 80 11 00 00 [15:20:19]Write to MH i2c: E2 08 00 EA 20 80 11 00 00 00 00 00 00 84 [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:19]Read from MH i2c: E2 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 17 00 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 17 00 EA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D7 [15:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:20:19]wFMCommunicate OK [15:20:19]CreateOFDProtocolMessage done [15:20:19]OFDSenderStorePacket 145744 [15:20:19]StoreOFDPacket docnum=145744 [15:20:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 98 C6 07 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 33 5A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 50 39 02 00 35 04 06 00 59 55 48 B9 31 75 2C 8A E3 5E D6 2A 41 3A [15:20:19]CheckFolder [15:20:19]dirname=/storage/ofd_packets [15:20:19]CheckFolder done [15:20:19]ProducePacketName [15:20:19]name=ofd_packets/00145744 [15:20:19]NVStorageSaveData ofd_packets/00145744 [15:20:19]File name is /storage/ofd_packets/00145744 [15:20:19]Write 301 bytes [15:20:19]NVStorageSaveData done [15:20:19]OFDSenderStorePacket done [15:20:19]KKMCreateOFDPacket done [15:20:19]NVStorageSaveData kkm_last_timestamp [15:20:19]File name is /storage/kkm_last_timestamp [15:20:19]Write 4 bytes [15:20:19]NVStorageSaveData done [15:20:19]ExternCall_PrintAddStr [15:20:19]wPrintStart [15:20:19]Write to MH i2c: 01 00 00 EB 20 0B [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: 01 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: 01 07 00 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: 01 07 00 EB 20 00 00 00 00 00 FF 0F 20 [15:20:19]RasterBufferAndPrint [15:20:19]line Счет N : (1)160500 [15:20:19]line ИНН: 02508201610067 [15:20:19]line Контрольно-Кассовый Чек [15:20:19]line ПРОДАЖА [15:20:19]line ТРК (МРК, ГНК) : 53 [15:20:19]line Товар: 2710124500 [15:20:19]line Аи-95-К-3 [15:20:19]line 4.050 * 74.20 [15:20:19]line = 300.51 [15:20:19]line НДС 12% НСП 1% [15:20:19]line > о реализуемом товаре [15:20:19]line ОКРУГЛЕНИЕ: -0.51 [15:20:19]line ИТОГО: 300.00 [15:20:19]line Внесено: 300.00 [15:20:19]line СДАЧА: 0.00 [15:20:19]line НСП 1% : 2.66 [15:20:19]line НДС 12% : 31.91 [15:20:19]line Наличными: 300.00 [15:20:19]line Безнал.: 0.00 [15:20:19]line Место: АЗС № 126 "Партнер Нефть" [15:20:19]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:20:19]line СНО: Общий режим [15:20:19]line Чек 167 27.10.2024 15:20 [15:20:19]line Смена: 545 ФФД: 1.0 [15:20:19]line ЗНМ: 0300000085 [15:20:19]line РНМ: 0000000000091683 [15:20:19]line Версия ККМ: 001 [15:20:19]line ФМ: 0000000000871745 [15:20:19]line ФД: 145744 [15:20:19]line ФПД: 98222827188597 [15:20:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152019&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145744&fm=98222827188597&tin=02508201610067®Number=0000000000091683&sum=30000 [15:20:19]written 0, free lines is 4095 [15:20:19]OFD Sender: Processing packet 145744 [packets to send 206, broken 205] [15:20:19]ProducePacketName [15:20:19]name=ofd_packets/00145744 [15:20:19]OFD Sender: To server: pG, [15:20:19]CommunicateWithHost lk.salyk.kg:30040 [15:20:19]ConnectInit lk.salyk.kg [15:20:20]Connected sock=10 [15:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 98 C6 07 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 33 5A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 50 39 02 00 35 04 06 00 59 55 48 B9 31 75 2C 8A E3 5E D6 2A 41 3A [15:20:20]Write to MH i2c: 01 00 00 16 21 37 [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: 01 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: 01 07 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: 01 07 00 16 21 00 00 00 00 00 B8 0C 02 [15:20:20]RasterBufferAndPrint [15:20:20]line [15:20:20]line [15:20:20]line [15:20:20]line [15:20:20]line [15:20:20]written 0, free lines is 3263 [15:20:20]MH_Cut [15:20:20]Write to MH i2c: D1 01 00 1D 21 01 10 [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: D1 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: D1 01 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: D1 01 00 1D 21 00 0F [15:20:20]Write to MH i2c: 01 00 00 1E 21 3F [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 09 B9 47 00 31 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 50 39 02 00 F4 03 04 00 61 FF 1D 67 B6 04 01 00 00 A3 80 59 57 D4 46 F5 43 [15:20:20]CommunicateWithHost err = 0 [15:20:20]CheckOFDResponse [15:20:20]1017 (14) - 77093643461234 [15:20:20]1041 (16) - 0000000000871745 [15:20:20]1040 (4) - 145744 [15:20:20]1012 (4) - 27.10.2024 08:52 [15:20:20]1206 (1) - 0 [15:20:20]OFD Sender: Remove packet 145744 [15:20:20]ProducePacketName [15:20:20]name=ofd_packets/00145744 [15:20:20]NVStorageDeleteData [15:20:20]OFD Sender: No OFD packet to send [15:20:21]*** Cut start [15:20:21]*** Partial cut [15:20:21]*** CUTSNS_PIN = 1 [15:20:21]*** CUTSNS_PIN = 0 [15:20:21]*** Brake cut motor [15:20:21]Read from MH i2c: 01 [15:20:21]MH_I2C_Read... [15:20:21]*** Stop cut motor [15:20:21]*** Cut end [15:20:21]Read from MH i2c: 01 07 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: 01 07 00 1E 21 00 00 00 00 00 FF 0F 54 [15:20:21]process_action close_receipt done [15:20:21]requested_data is exist [15:20:21]produce_requested_data [15:20:21]requested_item fm.sn is exist - process it [15:20:21]wFMCommunicate request_size=4 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 11 00 00 [15:20:21]Write to MH i2c: E2 08 00 1F 21 80 11 00 00 00 00 00 00 BA [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 17 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 17 00 1F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0D [15:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:20:21]wFMCommunicate OK [15:20:21]requested_item fd.num is exist - process it [15:20:21]SAM_PROTO_GetFieldsCounters [15:20:21]wFMCommunicate request_size=4 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 13 00 00 [15:20:21]Write to MH i2c: E2 08 00 20 21 80 13 00 00 00 00 00 00 BD [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 62 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 62 00 20 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 50 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [15:20:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 50 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:21]wFMCommunicate OK [15:20:21]SAM_PROTO_GetFieldsCounters done [15:20:21]requested_item shift.num is exist - process it [15:20:21]requested_item shift.opened is exist - process it [15:20:21]req_shift_opened [15:20:21]FM_GetShiftState [15:20:21]SAM_PROTO_GetShiftState [15:20:21]wFMCommunicate request_size=4 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 13 01 00 [15:20:21]Write to MH i2c: E2 08 00 21 21 80 13 01 00 00 00 00 00 BF [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 0E 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 0E 00 21 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 37 [15:20:21]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:20:21]wFMCommunicate OK [15:20:21]SAM_PROTO_GetShiftState done [15:20:21]FM_GetShiftState done [15:20:21]req_shift_opened done [15:20:21]requested_item shift.open_date is exist - process it [15:20:21]req_shift_open_date [15:20:21]req_shift_open_date done [15:20:21]produce_requested_data done [15:20:21]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145744,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:20:21]process_action_free close_receipt [15:20:21]json_value_free [15:20:21]json_value_free done [15:20:21]process_json_proto returns [15:20:21]Send response to host [15:20:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145744,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:20:21]free response buf [15:20:21]execute_script done [15:20:21]execute_script returns [15:20:21]free content buf [15:20:21]Sock 7.Close socket [15:20:21]Sock 7.Thread stoped [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:46]accept exits with 9 [15:21:46]New connection [15:21:46]New thread 3066596708 created [15:21:46]Thread 3066740068 joined [15:21:46]Waiting for new connection... [15:21:46] Sock 9.Parse request [15:21:46]Sock 9.Check first char [15:21:46]Sock 9.First char is OK [15:21:46]request: POST /json_proto HTTP/1.0 [15:21:46]Method: POST [15:21:46]URL: /json_proto [15:21:46]Method is POST - this is cgi request [15:21:46]url: /json_proto [15:21:46]query_string will be loaded in cgi processing [15:21:46]execute_cgi json_proto POST (null) [15:21:46]execute_cgi path=json_proto method=POST [15:21:46]POST find Content-Length [15:21:46]Host: 172.17.40.195:8080 [15:21:46]Content-Length: 677 [15:21:46]Content-Type: application/json [15:21:46] [15:21:46]POST finish read [15:21:46]Found Content-Length = 677 [15:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:46]execute_script... [15:21: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)160501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:46]POST & json_proto [15:21:46]process_json_proto [15:21:46]json parsed OK: [15:21:46]protocol is kg_v1.0 [15:21:46]action value=close_receipt [15:21:46]process_action close_receipt [15:21:46]cmd_close_receipt [15:21:46]MH_GetDate [15:21:46]Write to MH i2c: F0 00 00 22 21 32 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: F0 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: F0 09 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: F0 09 00 22 21 00 8C 5A 1E 67 D5 8D 6C 64 D8 [15:21:46]GetLastDocTimeStamp 1730042419 [15:21:46]current date 1730042508 [15:21:46]FM_GetShiftState [15:21:46]SAM_PROTO_GetShiftState [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 13 01 00 [15:21:46]Write to MH i2c: E2 08 00 23 21 80 13 01 00 00 00 00 00 C1 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0E 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0E 00 23 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 39 [15:21:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:21:46]wFMCommunicate OK [15:21:46]SAM_PROTO_GetShiftState done [15:21:46]FM_GetShiftState done [15:21:46]opened in 1729988959 [15:21:46]opened+sec_in_day 1730075359 [15:21:46]quantity*price = 50041 [15:21:46]sum+1 = 50042 [15:21:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 168 27.10.2024 15:21 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145745 ФПД: 139274981073824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152148&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145745&fm=139274981073824&tin=02508201610067®Number=0000000000091683&sum=50000 [15:21:47]StoreToDocumentArchive [15:21:47]shift 545 fd 145745 [15:21:47]save to /storage/0545/doc_00145745 [15:21:47]save last doc name /storage/0545/doc_00145745 to /storage/kkm_last_doc_name [15:21:47]save OK [15:21:47]Clear old archive folders... [15:21:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:47]tlvbuf is 0045D160 [15:21:47]SAM_PROTO_ClearQueue [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 09 00 00 [15:21:47]Write to MH i2c: E2 08 00 30 21 80 09 00 00 00 00 00 00 C3 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 30 21 00 90 00 C5 [15:21:47]RAPDU: 90 00 [15:21:47]wFMCommunicate OK [15:21:47]SAM_PROTO_ClearQueue done [15:21:47]KKMCreateOFDPacket [15:21:47]OFDProtocolAddRootSTLVToBuf [15:21:47]FM_MakeSignedData [15:21:47]FM_MakeSignedData [15:21:47]SAM_PROTO_SignData [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 0D 01 02 [15:21:47]Write to MH i2c: E2 08 00 31 21 80 0D 01 02 00 00 00 00 CB [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 31 21 00 90 00 C6 [15:21:47]RAPDU: 90 00 [15:21:47]wFMCommunicate OK [15:21:47]wFMCommunicate request_size=255 [15:21:47]MH_SAM_APDU [15:21: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8C 5A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 51 39 02 00 35 04 06 00 7E [15:21:47]Write to MH i2c: E2 02 01 32 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8C 5A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 51 39 02 00 35 04 06 00 7E 00 00 99 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 32 21 00 90 00 C7 [15:21:47]RAPDU: 90 00 [15:21:47]wFMCommunicate OK [15:21:47]wFMCommunicate request_size=10 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 0D 02 02 05 AB 7B C5 E3 A0 [15:21:47]Write to MH i2c: E2 0D 00 33 21 80 0D 02 02 05 00 AB 7B C5 E3 A0 00 00 46 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 33 21 00 90 00 C8 [15:21:47]RAPDU: 90 00 [15:21:47]wFMCommunicate OK [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 0D 03 02 [15:21:47]Write to MH i2c: E2 08 00 34 21 80 0D 03 02 00 00 00 00 D0 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 0B 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 0B 00 34 21 00 0F 75 D5 77 62 83 7D 7D 90 00 80 [15:21:47]RAPDU: 0F 75 D5 77 62 83 7D 7D 90 00 [15:21:47]wFMCommunicate OK [15:21:47]SAM_PROTO_SignData done [15:21:47]FM_MakeSignedData done [15:21:47]CreateOFDProtocolMessage [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 11 00 00 [15:21:47]Write to MH i2c: E2 08 00 35 21 80 11 00 00 00 00 00 00 D0 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 17 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 17 00 35 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 23 [15:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:21:47]wFMCommunicate OK [15:21:47]CreateOFDProtocolMessage done [15:21:47]OFDSenderStorePacket 145745 [15:21:47]StoreOFDPacket docnum=145745 [15:21:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DE 29 07 01 EB 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8C 5A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 51 39 02 00 35 04 06 00 7E AB 7B C5 E3 A0 0F 75 D5 77 62 83 7D 7D [15:21:47]CheckFolder [15:21:47]dirname=/storage/ofd_packets [15:21:47]CheckFolder done [15:21:47]ProducePacketName [15:21:47]name=ofd_packets/00145745 [15:21:47]NVStorageSaveData ofd_packets/00145745 [15:21:47]File name is /storage/ofd_packets/00145745 [15:21:47]Write 301 bytes [15:21:47]NVStorageSaveData done [15:21:47]OFDSenderStorePacket done [15:21:47]KKMCreateOFDPacket done [15:21:47]NVStorageSaveData kkm_last_timestamp [15:21:47]File name is /storage/kkm_last_timestamp [15:21:47]Write 4 bytes [15:21:47]NVStorageSaveData done [15:21:47]ExternCall_PrintAddStr [15:21:47]wPrintStart [15:21:47]Write to MH i2c: 01 00 00 36 21 57 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: 01 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: 01 07 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: 01 07 00 36 21 00 00 00 00 00 FF 0F 6C [15:21:47]RasterBufferAndPrint [15:21:47]line Счет N : (1)160501 [15:21:47]line ИНН: 02508201610067 [15:21:47]line Контрольно-Кассовый Чек [15:21:47]line ПРОДАЖА [15:21:47]line ТРК (МРК, ГНК) : 32 [15:21:47]line Товар: 2710124130 [15:21:47]line Аи-92-К-2 [15:21:47]line 7.480 * 66.90 [15:21:47]line = 500.41 [15:21:47]line НДС 12% НСП 1% [15:21:47]line > о реализуемом товаре [15:21:47]line ОКРУГЛЕНИЕ: -0.41 [15:21:47]line ИТОГО: 500.00 [15:21:47]line Внесено: 500.00 [15:21:47]line СДАЧА: 0.00 [15:21:47]line НСП 1% : 4.43 [15:21:47]line НДС 12% : 53.14 [15:21:47]line Наличными: 500.00 [15:21:47]line Безнал.: 0.00 [15:21:47]line Место: АЗС № 126 "Партнер Нефть" [15:21:47]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:21:47]line СНО: Общий режим [15:21:47]line Чек 168 27.10.2024 15:21 [15:21:47]line Смена: 545 ФФД: 1.0 [15:21:47]line ЗНМ: 0300000085 [15:21:47]line РНМ: 0000000000091683 [15:21:47]line Версия ККМ: 001 [15:21:47]line ФМ: 0000000000871745 [15:21:47]line ФД: 145745 [15:21:47]line ФПД: 139274981073824 [15:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152148&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145745&fm=139274981073824&tin=02508201610067®Number=0000000000091683&sum=50000 [15:21:48]written 0, free lines is 4095 [15:21:48]OFD Sender: Processing packet 145745 [packets to send 206, broken 205] [15:21:48]ProducePacketName [15:21:48]name=ofd_packets/00145745 [15:21:48]OFD Sender: To server: pG, [15:21:48]CommunicateWithHost lk.salyk.kg:30040 [15:21:48]ConnectInit lk.salyk.kg [15:21:48]Connected sock=10 [15:21:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DE 29 07 01 EB 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8C 5A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 51 39 02 00 35 04 06 00 7E AB 7B C5 E3 A0 0F 75 D5 77 62 83 7D 7D [15:21:48]Write to MH i2c: 01 00 00 61 21 82 [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 07 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 07 00 61 21 00 00 00 00 00 A7 0C 3C [15:21:48]RasterBufferAndPrint [15:21:48]line [15:21:48]line [15:21:48]line [15:21:48]line [15:21:48]line [15:21:48]written 0, free lines is 3245 [15:21:48]MH_Cut [15:21:48]Write to MH i2c: D1 01 00 68 21 01 5B [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: D1 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: D1 01 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: D1 01 00 68 21 00 5A [15:21:48]Write to MH i2c: 01 00 00 69 21 8A [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 AD D7 47 00 79 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 51 39 02 00 F4 03 04 00 B9 FF 1D 67 B6 04 01 00 00 18 CC 6B F0 C9 6C 66 FE [15:21:48]CommunicateWithHost err = 0 [15:21:48]CheckOFDResponse [15:21:48]1017 (14) - 77093643461234 [15:21:48]1041 (16) - 0000000000871745 [15:21:48]1040 (4) - 145745 [15:21:48]1012 (4) - 27.10.2024 08:54 [15:21:48]1206 (1) - 0 [15:21:48]OFD Sender: Remove packet 145745 [15:21:48]ProducePacketName [15:21:48]name=ofd_packets/00145745 [15:21:48]NVStorageDeleteData [15:21:49]OFD Sender: No OFD packet to send [15:21:49]*** Cut start [15:21:49]*** Partial cut [15:21:49]*** CUTSNS_PIN = 1 [15:21:49]*** CUTSNS_PIN = 0 [15:21:49]*** Brake cut motor [15:21:49]Read from MH i2c: 01 [15:21:49]MH_I2C_Read... [15:21:49]*** Stop cut motor [15:21:49]*** Cut end [15:21:49]Read from MH i2c: 01 07 00 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: 01 07 00 69 21 00 00 00 00 00 FF 0F 9F [15:21:49]process_action close_receipt done [15:21:49]requested_data is exist [15:21:49]produce_requested_data [15:21:49]requested_item fm.sn is exist - process it [15:21:49]wFMCommunicate request_size=4 [15:21:49]MH_SAM_APDU [15:21:49]CAPDU: 80 11 00 00 [15:21:49]Write to MH i2c: E2 08 00 6A 21 80 11 00 00 00 00 00 00 05 [15:21:49]Write i2c OK [15:21:49]MH_I2C_Read... [15:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:49]Read from MH i2c: E2 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: E2 17 00 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: E2 17 00 6A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 58 [15:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:21:49]wFMCommunicate OK [15:21:50]requested_item fd.num is exist - process it [15:21:50]SAM_PROTO_GetFieldsCounters [15:21:50]wFMCommunicate request_size=4 [15:21:50]MH_SAM_APDU [15:21:50]CAPDU: 80 13 00 00 [15:21:50]Write to MH i2c: E2 08 00 6B 21 80 13 00 00 00 00 00 00 08 [15:21:50]Write i2c OK [15:21:50]MH_I2C_Read... [15:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:50]Read from MH i2c: E2 [15:21:50]MH_I2C_Read... [15:21:50]Read from MH i2c: E2 62 00 [15:21:50]MH_I2C_Read... [15:21:50]Read from MH i2c: E2 62 00 6B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 51 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [15:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 51 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:50]wFMCommunicate OK [15:21:50]SAM_PROTO_GetFieldsCounters done [15:21:50]requested_item shift.num is exist - process it [15:21:50]requested_item shift.opened is exist - process it [15:21:50]req_shift_opened [15:21:50]FM_GetShiftState [15:21:50]SAM_PROTO_GetShiftState [15:21:50]wFMCommunicate request_size=4 [15:21:50]MH_SAM_APDU [15:21:50]CAPDU: 80 13 01 00 [15:21:50]Write to MH i2c: E2 08 00 6C 21 80 13 01 00 00 00 00 00 0A [15:21:50]Write i2c OK [15:21:50]MH_I2C_Read... [15:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:50]Read from MH i2c: E2 [15:21:50]MH_I2C_Read... [15:21:50]Read from MH i2c: E2 0E 00 [15:21:50]MH_I2C_Read... [15:21:50]Read from MH i2c: E2 0E 00 6C 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 82 [15:21:50]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:21:50]wFMCommunicate OK [15:21:50]SAM_PROTO_GetShiftState done [15:21:50]FM_GetShiftState done [15:21:50]req_shift_opened done [15:21:50]requested_item shift.open_date is exist - process it [15:21:50]req_shift_open_date [15:21:50]req_shift_open_date done [15:21:50]produce_requested_data done [15:21:50]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145745,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:21:50]process_action_free close_receipt [15:21:50]json_value_free [15:21:50]json_value_free done [15:21:50]process_json_proto returns [15:21:50]Send response to host [15:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145745,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:21:50]free response buf [15:21:50]execute_script done [15:21:50]execute_script returns [15:21:50]free content buf [15:21:50]Sock 9.Close socket [15:21:50]Sock 9.Thread stoped [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:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:09]accept exits with 7 [15:34:09]New connection [15:34:09]New thread 3066740068 created [15:34:09]Thread 3066596708 joined [15:34:09]Waiting for new connection... [15:34:09] Sock 7.Parse request [15:34:09]Sock 7.Check first char [15:34:09]Sock 7.First char is OK [15:34:09]request: POST /json_proto HTTP/1.0 [15:34:09]Method: POST [15:34:09]URL: /json_proto [15:34:09]Method is POST - this is cgi request [15:34:09]url: /json_proto [15:34:09]query_string will be loaded in cgi processing [15:34:09]execute_cgi json_proto POST (null) [15:34:09]execute_cgi path=json_proto method=POST [15:34:09]POST find Content-Length [15:34:09]Host: 172.17.40.195:8080 [15:34:09]Content-Length: 679 [15:34:09]Content-Type: application/json [15:34:09] [15:34:09]POST finish read [15:34:09]Found Content-Length = 679 [15:34:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:09]execute_script... [15:34: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)160502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:09]POST & json_proto [15:34:09]process_json_proto [15:34:09]json parsed OK: [15:34:09]protocol is kg_v1.0 [15:34:09]action value=close_receipt [15:34:09]process_action close_receipt [15:34:09]cmd_close_receipt [15:34:09]MH_GetDate [15:34:09]Write to MH i2c: F0 00 00 6D 21 7D [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: F0 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: F0 09 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: F0 09 00 6D 21 00 73 5D 1E 67 D5 8D 6C 64 0D [15:34:09]GetLastDocTimeStamp 1730042508 [15:34:09]current date 1730043251 [15:34:09]FM_GetShiftState [15:34:09]SAM_PROTO_GetShiftState [15:34:09]wFMCommunicate request_size=4 [15:34:09]MH_SAM_APDU [15:34:09]CAPDU: 80 13 01 00 [15:34:09]Write to MH i2c: E2 08 00 6E 21 80 13 01 00 00 00 00 00 0C [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:09]Read from MH i2c: E2 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 0E 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: E2 0E 00 6E 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 84 [15:34:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:34:09]wFMCommunicate OK [15:34:09]SAM_PROTO_GetShiftState done [15:34:09]FM_GetShiftState done [15:34:09]opened in 1729988959 [15:34:09]opened+sec_in_day 1730075359 [15:34:09]quantity*price = 200025 [15:34:09]sum+1 = 200026 [15:34:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 169 27.10.2024 15:34 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145746 ФПД: 255187867404811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153411&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145746&fm=255187867404811&tin=02508201610067®Number=0000000000091683&sum=200000 [15:34:10]StoreToDocumentArchive [15:34:10]shift 545 fd 145746 [15:34:10]save to /storage/0545/doc_00145746 [15:34:10]save last doc name /storage/0545/doc_00145746 to /storage/kkm_last_doc_name [15:34:10]save OK [15:34:10]Clear old archive folders... [15:34:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:34:10]tlvbuf is 00408240 [15:34:10]SAM_PROTO_ClearQueue [15:34:10]wFMCommunicate request_size=4 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 09 00 00 [15:34:10]Write to MH i2c: E2 08 00 7B 21 80 09 00 00 00 00 00 00 0E [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 7B 21 00 90 00 10 [15:34:10]RAPDU: 90 00 [15:34:10]wFMCommunicate OK [15:34:10]SAM_PROTO_ClearQueue done [15:34:10]KKMCreateOFDPacket [15:34:10]OFDProtocolAddRootSTLVToBuf [15:34:10]FM_MakeSignedData [15:34:10]FM_MakeSignedData [15:34:10]SAM_PROTO_SignData [15:34:10]wFMCommunicate request_size=4 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 0D 01 02 [15:34:10]Write to MH i2c: E2 08 00 7C 21 80 0D 01 02 00 00 00 00 16 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 7C 21 00 90 00 11 [15:34:10]RAPDU: 90 00 [15:34:10]wFMCommunicate OK [15:34:10]wFMCommunicate request_size=255 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 73 5D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 52 39 02 00 35 04 06 00 E8 17 8E 30 [15:34:10]Write to MH i2c: E2 02 01 7D 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 73 5D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 52 39 02 00 35 04 06 00 E8 17 8E 30 00 00 F3 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 7D 21 00 90 00 12 [15:34:10]RAPDU: 90 00 [15:34:10]wFMCommunicate OK [15:34:10]wFMCommunicate request_size=7 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 0D 02 02 02 0A 0B [15:34:10]Write to MH i2c: E2 0A 00 7E 21 80 0D 02 02 02 00 0A 0B 00 00 32 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 7E 21 00 90 00 13 [15:34:10]RAPDU: 90 00 [15:34:10]wFMCommunicate OK [15:34:10]wFMCommunicate request_size=4 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 0D 03 02 [15:34:10]Write to MH i2c: E2 08 00 7F 21 80 0D 03 02 00 00 00 00 1B [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 0B 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 0B 00 7F 21 00 F5 6B 8F C3 F1 28 78 54 90 00 B3 [15:34:10]RAPDU: F5 6B 8F C3 F1 28 78 54 90 00 [15:34:10]wFMCommunicate OK [15:34:10]SAM_PROTO_SignData done [15:34:10]FM_MakeSignedData done [15:34:10]CreateOFDProtocolMessage [15:34:10]wFMCommunicate request_size=4 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 11 00 00 [15:34:10]Write to MH i2c: E2 08 00 80 21 80 11 00 00 00 00 00 00 1B [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 17 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 17 00 80 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6E [15:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:34:10]wFMCommunicate OK [15:34:10]CreateOFDProtocolMessage done [15:34:10]OFDSenderStorePacket 145746 [15:34:10]StoreOFDPacket docnum=145746 [15:34:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 59 1C 04 01 8A 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 73 5D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 52 39 02 00 35 04 06 00 E8 17 8E 30 0A 0B F5 6B 8F C3 F1 28 78 54 [15:34:10]CheckFolder [15:34:10]dirname=/storage/ofd_packets [15:34:10]CheckFolder done [15:34:10]ProducePacketName [15:34:10]name=ofd_packets/00145746 [15:34:10]NVStorageSaveData ofd_packets/00145746 [15:34:10]File name is /storage/ofd_packets/00145746 [15:34:10]Write 298 bytes [15:34:10]NVStorageSaveData done [15:34:10]OFDSenderStorePacket done [15:34:10]KKMCreateOFDPacket done [15:34:10]NVStorageSaveData kkm_last_timestamp [15:34:10]File name is /storage/kkm_last_timestamp [15:34:10]Write 4 bytes [15:34:10]NVStorageSaveData done [15:34:10]ExternCall_PrintAddStr [15:34:10]wPrintStart [15:34:10]Write to MH i2c: 01 00 00 81 21 A2 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: 01 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: 01 07 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: 01 07 00 81 21 00 00 00 00 00 FF 0F B7 [15:34:10]RasterBufferAndPrint [15:34:10]line Счет N : (1)160502 [15:34:10]line ИНН: 02508201610067 [15:34:10]line Контрольно-Кассовый Чек [15:34:10]line ПРОДАЖА [15:34:10]line ТРК (МРК, ГНК) : 21 [15:34:10]line Товар: 2710194210 [15:34:10]line ДТ-К-2 [15:34:10]line 26.250 * 76.20 [15:34:10]line = 2000.25 [15:34:10]line НДС 12% НСП 1% [15:34:10]line > о реализуемом товаре [15:34:10]line ОКРУГЛЕНИЕ: -0.25 [15:34:10]line ИТОГО: 2000.00 [15:34:10]line Внесено: 2000.00 [15:34:10]line СДАЧА: 0.00 [15:34:10]line НСП 1% : 17.70 [15:34:10]line НДС 12% : 212.42 [15:34:10]line Наличными: 2000.00 [15:34:10]line Безнал.: 0.00 [15:34:10]line Место: АЗС № 126 "Партнер Нефть" [15:34:10]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:34:10]line СНО: Общий режим [15:34:10]line Чек 169 27.10.2024 15:34 [15:34:10]line Смена: 545 ФФД: 1.0 [15:34:10]line ЗНМ: 0300000085 [15:34:10]line РНМ: 0000000000091683 [15:34:10]line Версия ККМ: 001 [15:34:10]line ФМ: 0000000000871745 [15:34:10]line ФД: 145746 [15:34:10]line ФПД: 255187867404811 [15:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153411&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145746&fm=255187867404811&tin=02508201610067®Number=0000000000091683&sum=200000 [15:34:11]OFD Sender: Processing packet 145746 [packets to send 206, broken 205] [15:34:11]ProducePacketName [15:34:11]name=ofd_packets/00145746 [15:34:11]OFD Sender: To server: pG, [15:34:11]CommunicateWithHost lk.salyk.kg:30040 [15:34:11]ConnectInit lk.salyk.kg [15:34:11]written 0, free lines is 4095 [15:34:11]Connected sock=10 [15:34:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 59 1C 04 01 8A 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 73 5D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 52 39 02 00 35 04 06 00 E8 17 8E 30 0A 0B F5 6B 8F C3 F1 28 78 54 [15:34:11]Write to MH i2c: 01 00 00 AC 21 CD [15:34:11]Write i2c OK [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: 01 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: 01 07 00 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: 01 07 00 AC 21 00 00 00 00 00 A3 0C 83 [15:34:11]RasterBufferAndPrint [15:34:11]line [15:34:11]line [15:34:11]line [15:34:11]line [15:34:11]line [15:34:11]written 0, free lines is 3241 [15:34:11]MH_Cut [15:34:11]Write to MH i2c: D1 01 00 B3 21 01 A6 [15:34:11]Write i2c OK [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: D1 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: D1 01 00 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: D1 01 00 B3 21 00 A5 [15:34:11]Write to MH i2c: 01 00 00 B4 21 D5 [15:34:11]Write i2c OK [15:34:11]MH_I2C_Read... [15:34:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 21 5E 47 00 C5 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 31 37 34 35 10 04 04 00 52 39 02 00 F4 03 04 00 A0 02 1E 67 B6 04 01 00 00 E6 A0 87 31 5F DA 69 83 [15:34:11]CommunicateWithHost err = 0 [15:34:11]CheckOFDResponse [15:34:11]1017 (14) - 77093643461234 [15:34:11]1041 (16) - 0000000000871745 [15:34:11]1040 (4) - 145746 [15:34:11]1012 (4) - 27.10.2024 09:06 [15:34:11]1206 (1) - 0 [15:34:11]OFD Sender: Remove packet 145746 [15:34:11]ProducePacketName [15:34:11]name=ofd_packets/00145746 [15:34:11]NVStorageDeleteData [15:34:12]OFD Sender: No OFD packet to send [15:34:12]*** Cut start [15:34:12]*** Partial cut [15:34:12]*** CUTSNS_PIN = 1 [15:34:12]*** CUTSNS_PIN = 0 [15:34:12]*** Brake cut motor [15:34:13]Read from MH i2c: 01 [15:34:13]MH_I2C_Read... [15:34:13]*** Stop cut motor [15:34:13]*** Cut end [15:34:13]Read from MH i2c: 01 07 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: 01 07 00 B4 21 00 00 00 00 00 FF 0F EA [15:34:13]process_action close_receipt done [15:34:13]requested_data is exist [15:34:13]produce_requested_data [15:34:13]requested_item fm.sn is exist - process it [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 11 00 00 [15:34:13]Write to MH i2c: E2 08 00 B5 21 80 11 00 00 00 00 00 00 50 [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 17 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 17 00 B5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A3 [15:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:34:13]wFMCommunicate OK [15:34:13]requested_item fd.num is exist - process it [15:34:13]SAM_PROTO_GetFieldsCounters [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 13 00 00 [15:34:13]Write to MH i2c: E2 08 00 B6 21 80 13 00 00 00 00 00 00 53 [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 62 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 62 00 B6 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 52 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [15:34:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 52 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:13]wFMCommunicate OK [15:34:13]SAM_PROTO_GetFieldsCounters done [15:34:13]requested_item shift.num is exist - process it [15:34:13]requested_item shift.opened is exist - process it [15:34:13]req_shift_opened [15:34:13]FM_GetShiftState [15:34:13]SAM_PROTO_GetShiftState [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 13 01 00 [15:34:13]Write to MH i2c: E2 08 00 B7 21 80 13 01 00 00 00 00 00 55 [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 0E 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 0E 00 B7 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CD [15:34:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:34:13]wFMCommunicate OK [15:34:13]SAM_PROTO_GetShiftState done [15:34:13]FM_GetShiftState done [15:34:13]req_shift_opened done [15:34:13]requested_item shift.open_date is exist - process it [15:34:13]req_shift_open_date [15:34:13]req_shift_open_date done [15:34:13]produce_requested_data done [15:34:13]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145746,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:34:13]process_action_free close_receipt [15:34:13]json_value_free [15:34:13]json_value_free done [15:34:13]process_json_proto returns [15:34:13]Send response to host [15:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145746,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:34:13]free response buf [15:34:13]execute_script done [15:34:13]execute_script returns [15:34:13]free content buf [15:34:13]Sock 7.Close socket [15:34:13]Sock 7.Thread stoped [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:26]accept exits with 9 [15:35:26]New connection [15:35:26]New thread 3066596708 created [15:35:26]Thread 3066740068 joined [15:35:26]Waiting for new connection... [15:35:26] Sock 9.Parse request [15:35:26]Sock 9.Check first char [15:35:26]Sock 9.First char is OK [15:35:26]request: POST /json_proto HTTP/1.0 [15:35:26]Method: POST [15:35:26]URL: /json_proto [15:35:26]Method is POST - this is cgi request [15:35:26]url: /json_proto [15:35:26]query_string will be loaded in cgi processing [15:35:26]execute_cgi json_proto POST (null) [15:35:26]execute_cgi path=json_proto method=POST [15:35:26]POST find Content-Length [15:35:26]Host: 172.17.40.195:8080 [15:35:26]Content-Length: 682 [15:35:26]Content-Type: application/json [15:35:26] [15:35:26]POST finish read [15:35:26]Found Content-Length = 682 [15:35:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:26]execute_script... [15:35: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)160503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:26]POST & json_proto [15:35:26]process_json_proto [15:35:26]json parsed OK: [15:35:26]protocol is kg_v1.0 [15:35:26]action value=close_receipt [15:35:26]process_action close_receipt [15:35:26]cmd_close_receipt [15:35:26]MH_GetDate [15:35:26]Write to MH i2c: F0 00 00 B8 21 C8 [15:35:26]Write i2c OK [15:35:26]MH_I2C_Read... [15:35:26]Read from MH i2c: F0 [15:35:26]MH_I2C_Read... [15:35:26]Read from MH i2c: F0 09 00 [15:35:26]MH_I2C_Read... [15:35:26]Read from MH i2c: F0 09 00 B8 21 00 C0 5D 1E 67 D5 8D 6C 64 A5 [15:35:26]GetLastDocTimeStamp 1730043251 [15:35:26]current date 1730043328 [15:35:26]FM_GetShiftState [15:35:26]SAM_PROTO_GetShiftState [15:35:26]wFMCommunicate request_size=4 [15:35:26]MH_SAM_APDU [15:35:26]CAPDU: 80 13 01 00 [15:35:26]Write to MH i2c: E2 08 00 B9 21 80 13 01 00 00 00 00 00 57 [15:35:26]Write i2c OK [15:35:26]MH_I2C_Read... [15:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:26]Read from MH i2c: E2 [15:35:26]MH_I2C_Read... [15:35:26]Read from MH i2c: E2 0E 00 [15:35:26]MH_I2C_Read... [15:35:26]Read from MH i2c: E2 0E 00 B9 21 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CF [15:35:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:35:26]wFMCommunicate OK [15:35:26]SAM_PROTO_GetShiftState done [15:35:26]FM_GetShiftState done [15:35:26]opened in 1729988959 [15:35:26]opened+sec_in_day 1730075359 [15:35:26]quantity*price = 100015 [15:35:26]sum+1 = 100017 [15:35:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 170 27.10.2024 15:35 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145747 ФПД: 127716127780276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153529&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145747&fm=127716127780276&tin=02508201610067®Number=0000000000091683&sum=100000 [15:35:28]StoreToDocumentArchive [15:35:28]shift 545 fd 145747 [15:35:28]save to /storage/0545/doc_00145747 [15:35:28]save last doc name /storage/0545/doc_00145747 to /storage/kkm_last_doc_name [15:35:28]save OK [15:35:28]Clear old archive folders... [15:35:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:28]tlvbuf is B6F21560 [15:35:28]SAM_PROTO_ClearQueue [15:35:28]wFMCommunicate request_size=4 [15:35:28]MH_SAM_APDU [15:35:28]CAPDU: 80 09 00 00 [15:35:28]Write to MH i2c: E2 08 00 C6 21 80 09 00 00 00 00 00 00 59 [15:35:28]Write i2c OK [15:35:28]MH_I2C_Read... [15:35:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:28]Read from MH i2c: E2 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 03 00 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 03 00 C6 21 00 90 00 5B [15:35:28]RAPDU: 90 00 [15:35:28]wFMCommunicate OK [15:35:28]SAM_PROTO_ClearQueue done [15:35:28]KKMCreateOFDPacket [15:35:28]OFDProtocolAddRootSTLVToBuf [15:35:28]FM_MakeSignedData [15:35:28]FM_MakeSignedData [15:35:28]SAM_PROTO_SignData [15:35:28]wFMCommunicate request_size=4 [15:35:28]MH_SAM_APDU [15:35:28]CAPDU: 80 0D 01 02 [15:35:28]Write to MH i2c: E2 08 00 C7 21 80 0D 01 02 00 00 00 00 61 [15:35:28]Write i2c OK [15:35:28]MH_I2C_Read... [15:35:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:28]Read from MH i2c: E2 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 03 00 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 03 00 C7 21 00 90 00 5C [15:35:28]RAPDU: 90 00 [15:35:28]wFMCommunicate OK [15:35:28]wFMCommunicate request_size=255 [15:35:28]MH_SAM_APDU [15:35:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C1 5D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 53 39 02 00 35 04 06 00 74 [15:35:28]Write to MH i2c: E2 02 01 C8 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C1 5D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 53 39 02 00 35 04 06 00 74 00 00 5B [15:35:28]Write i2c OK [15:35:28]MH_I2C_Read... [15:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:28]Read from MH i2c: E2 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 03 00 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 03 00 C8 21 00 90 00 5D [15:35:28]RAPDU: 90 00 [15:35:28]wFMCommunicate OK [15:35:28]wFMCommunicate request_size=10 [15:35:28]MH_SAM_APDU [15:35:28]CAPDU: 80 0D 02 02 05 28 3A 6D AD B4 [15:35:28]Write to MH i2c: E2 0D 00 C9 21 80 0D 02 02 05 00 28 3A 6D AD B4 00 00 9E [15:35:28]Write i2c OK [15:35:28]MH_I2C_Read... [15:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:28]Read from MH i2c: E2 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 03 00 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 03 00 C9 21 00 90 00 5E [15:35:28]RAPDU: 90 00 [15:35:28]wFMCommunicate OK [15:35:28]wFMCommunicate request_size=4 [15:35:28]MH_SAM_APDU [15:35:28]CAPDU: 80 0D 03 02 [15:35:28]Write to MH i2c: E2 08 00 CA 21 80 0D 03 02 00 00 00 00 66 [15:35:28]Write i2c OK [15:35:28]MH_I2C_Read... [15:35:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:28]Read from MH i2c: E2 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 0B 00 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 0B 00 CA 21 00 C3 9D 07 93 06 9A A9 F3 90 00 9D [15:35:28]RAPDU: C3 9D 07 93 06 9A A9 F3 90 00 [15:35:28]wFMCommunicate OK [15:35:28]SAM_PROTO_SignData done [15:35:28]FM_MakeSignedData done [15:35:28]CreateOFDProtocolMessage [15:35:28]wFMCommunicate request_size=4 [15:35:28]MH_SAM_APDU [15:35:28]CAPDU: 80 11 00 00 [15:35:28]Write to MH i2c: E2 08 00 CB 21 80 11 00 00 00 00 00 00 66 [15:35:28]Write i2c OK [15:35:28]MH_I2C_Read... [15:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:28]Read from MH i2c: E2 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 17 00 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: E2 17 00 CB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B9 [15:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:35:28]wFMCommunicate OK [15:35:28]CreateOFDProtocolMessage done [15:35:28]OFDSenderStorePacket 145747 [15:35:28]StoreOFDPacket docnum=145747 [15:35:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D7 08 07 01 3D 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C1 5D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 53 39 02 00 35 04 06 00 74 28 3A 6D AD B4 C3 9D 07 93 06 9A A9 F3 [15:35:28]CheckFolder [15:35:28]dirname=/storage/ofd_packets [15:35:28]CheckFolder done [15:35:28]ProducePacketName [15:35:28]name=ofd_packets/00145747 [15:35:28]NVStorageSaveData ofd_packets/00145747 [15:35:28]File name is /storage/ofd_packets/00145747 [15:35:28]Write 301 bytes [15:35:28]NVStorageSaveData done [15:35:28]OFDSenderStorePacket done [15:35:28]KKMCreateOFDPacket done [15:35:28]NVStorageSaveData kkm_last_timestamp [15:35:28]File name is /storage/kkm_last_timestamp [15:35:28]Write 4 bytes [15:35:28]NVStorageSaveData done [15:35:28]ExternCall_PrintAddStr [15:35:28]wPrintStart [15:35:28]Write to MH i2c: 01 00 00 CC 21 ED [15:35:28]Write i2c OK [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: 01 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: 01 07 00 [15:35:28]MH_I2C_Read... [15:35:28]Read from MH i2c: 01 07 00 CC 21 00 00 00 00 00 FF 0F 02 [15:35:28]RasterBufferAndPrint [15:35:28]line Счет N : (1)160503 [15:35:28]line ИНН: 02508201610067 [15:35:28]line Контрольно-Кассовый Чек [15:35:28]line ПРОДАЖА [15:35:28]line ТРК (МРК, ГНК) : 42 [15:35:28]line Товар: 2710124130 [15:35:28]line Аи-92-К-2 [15:35:28]line 14.950 * 66.90 [15:35:28]line = 1000.16 [15:35:28]line НДС 12% НСП 1% [15:35:28]line > о реализуемом товаре [15:35:28]line ОКРУГЛЕНИЕ: -0.16 [15:35:28]line ИТОГО: 1000.00 [15:35:28]line Внесено: 1000.00 [15:35:28]line СДАЧА: 0.00 [15:35:28]line НСП 1% : 8.85 [15:35:28]line НДС 12% : 106.21 [15:35:28]line Наличными: 1000.00 [15:35:28]line Безнал.: 0.00 [15:35:28]line Место: АЗС № 126 "Партнер Нефть" [15:35:28]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:35:28]line СНО: Общий режим [15:35:28]line Чек 170 27.10.2024 15:35 [15:35:28]line Смена: 545 ФФД: 1.0 [15:35:28]line ЗНМ: 0300000085 [15:35:28]line РНМ: 0000000000091683 [15:35:28]line Версия ККМ: 001 [15:35:28]line ФМ: 0000000000871745 [15:35:28]line ФД: 145747 [15:35:28]line ФПД: 127716127780276 [15:35:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153529&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145747&fm=127716127780276&tin=02508201610067®Number=0000000000091683&sum=100000 [15:35:28]OFD Sender: Processing packet 145747 [packets to send 206, broken 205] [15:35:28]ProducePacketName [15:35:28]name=ofd_packets/00145747 [15:35:28]OFD Sender: To server: pG, [15:35:28]CommunicateWithHost lk.salyk.kg:30040 [15:35:28]ConnectInit lk.salyk.kg [15:35:28]written 0, free lines is 4095 [15:35:29]Connected sock=10 [15:35:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D7 08 07 01 3D 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C1 5D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 53 39 02 00 35 04 06 00 74 28 3A 6D AD B4 C3 9D 07 93 06 9A A9 F3 [15:35:29]Write to MH i2c: 01 00 00 F7 21 18 [15:35:29]Write i2c OK [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: 01 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: 01 07 00 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: 01 07 00 F7 21 00 00 00 00 00 A3 0C CE [15:35:29]RasterBufferAndPrint [15:35:29]line [15:35:29]line [15:35:29]line [15:35:29]line [15:35:29]line [15:35:29]written 0, free lines is 3241 [15:35:29]MH_Cut [15:35:29]Write to MH i2c: D1 01 00 FE 21 01 F1 [15:35:29]Write i2c OK [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: D1 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: D1 01 00 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: D1 01 00 FE 21 00 F0 [15:35:29]Write to MH i2c: 01 00 00 FF 21 20 [15:35:29]Write i2c OK [15:35:29]MH_I2C_Read... [15:35:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 3C F2 47 00 B3 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 31 37 34 35 10 04 04 00 53 39 02 00 F4 03 04 00 EE 02 1E 67 B6 04 01 00 00 9E C6 A4 45 F6 03 AA 9A [15:35:29]CommunicateWithHost err = 0 [15:35:29]CheckOFDResponse [15:35:29]1017 (14) - 77093643461234 [15:35:29]1041 (16) - 0000000000871745 [15:35:29]1040 (4) - 145747 [15:35:29]1012 (4) - 27.10.2024 09:07 [15:35:29]1206 (1) - 0 [15:35:29]OFD Sender: Remove packet 145747 [15:35:29]ProducePacketName [15:35:29]name=ofd_packets/00145747 [15:35:29]NVStorageDeleteData [15:35:29]OFD Sender: No OFD packet to send [15:35:30]*** Cut start [15:35:30]*** Partial cut [15:35:30]*** CUTSNS_PIN = 1 [15:35:30]*** CUTSNS_PIN = 0 [15:35:30]*** Brake cut motor [15:35:30]Read from MH i2c: 01 [15:35:30]MH_I2C_Read... [15:35:30]*** Stop cut motor [15:35:30]*** Cut end [15:35:30]Read from MH i2c: 01 07 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: 01 07 00 FF 21 00 00 00 00 00 FF 0F 35 [15:35:30]process_action close_receipt done [15:35:30]requested_data is exist [15:35:30]produce_requested_data [15:35:30]requested_item fm.sn is exist - process it [15:35:30]wFMCommunicate request_size=4 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 11 00 00 [15:35:30]Write to MH i2c: E2 08 00 00 22 80 11 00 00 00 00 00 00 9C [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 17 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 17 00 00 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EF [15:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:35:30]wFMCommunicate OK [15:35:30]requested_item fd.num is exist - process it [15:35:30]SAM_PROTO_GetFieldsCounters [15:35:30]wFMCommunicate request_size=4 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 13 00 00 [15:35:30]Write to MH i2c: E2 08 00 01 22 80 13 00 00 00 00 00 00 9F [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 62 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 62 00 01 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 53 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [15:35:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 53 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:30]wFMCommunicate OK [15:35:30]SAM_PROTO_GetFieldsCounters done [15:35:30]requested_item shift.num is exist - process it [15:35:30]requested_item shift.opened is exist - process it [15:35:30]req_shift_opened [15:35:30]FM_GetShiftState [15:35:30]SAM_PROTO_GetShiftState [15:35:30]wFMCommunicate request_size=4 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 13 01 00 [15:35:30]Write to MH i2c: E2 08 00 02 22 80 13 01 00 00 00 00 00 A1 [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:31]Read from MH i2c: E2 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 0E 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 0E 00 02 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 19 [15:35:31]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:35:31]wFMCommunicate OK [15:35:31]SAM_PROTO_GetShiftState done [15:35:31]FM_GetShiftState done [15:35:31]req_shift_opened done [15:35:31]requested_item shift.open_date is exist - process it [15:35:31]req_shift_open_date [15:35:31]req_shift_open_date done [15:35:31]produce_requested_data done [15:35:31]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145747,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:35:31]process_action_free close_receipt [15:35:31]json_value_free [15:35:31]json_value_free done [15:35:31]process_json_proto returns [15:35:31]Send response to host [15:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145747,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:35:31]free response buf [15:35:31]execute_script done [15:35:31]execute_script returns [15:35:31]free content buf [15:35:31]Sock 9.Close socket [15:35:31]Sock 9.Thread stoped [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:36:56]accept exits with 7 [15:36:56]New connection [15:36:56]New thread 3066740068 created [15:36:56]Thread 3066596708 joined [15:36:56]Waiting for new connection... [15:36:56] Sock 7.Parse request [15:36:56]Sock 7.Check first char [15:36:56]Sock 7.First char is OK [15:36:56]request: POST /json_proto HTTP/1.0 [15:36:56]Method: POST [15:36:56]URL: /json_proto [15:36:56]Method is POST - this is cgi request [15:36:56]url: /json_proto [15:36:56]query_string will be loaded in cgi processing [15:36:56]execute_cgi json_proto POST (null) [15:36:56]execute_cgi path=json_proto method=POST [15:36:56]POST find Content-Length [15:36:56]Host: 172.17.40.195:8080 [15:36:56]Content-Length: 679 [15:36:56]Content-Type: application/json [15:36:56] [15:36:56]POST finish read [15:36:56]Found Content-Length = 679 [15:36:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:56]execute_script... [15:36: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)160504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:56]POST & json_proto [15:36:56]process_json_proto [15:36:56]json parsed OK: [15:36:56]protocol is kg_v1.0 [15:36:56]action value=close_receipt [15:36:56]process_action close_receipt [15:36:56]cmd_close_receipt [15:36:56]MH_GetDate [15:36:56]Write to MH i2c: F0 00 00 03 22 14 [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: F0 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: F0 09 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: F0 09 00 03 22 00 1A 5E 1E 67 D5 8D 6C 64 4C [15:36:56]GetLastDocTimeStamp 1730043329 [15:36:56]current date 1730043418 [15:36:56]FM_GetShiftState [15:36:56]SAM_PROTO_GetShiftState [15:36:56]wFMCommunicate request_size=4 [15:36:56]MH_SAM_APDU [15:36:56]CAPDU: 80 13 01 00 [15:36:56]Write to MH i2c: E2 08 00 04 22 80 13 01 00 00 00 00 00 A3 [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:56]Read from MH i2c: E2 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 0E 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 0E 00 04 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1B [15:36:56]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:36:56]wFMCommunicate OK [15:36:56]SAM_PROTO_GetShiftState done [15:36:56]FM_GetShiftState done [15:36:56]opened in 1729988959 [15:36:56]opened+sec_in_day 1730075359 [15:36:56]quantity*price = 100050 [15:36:56]sum+1 = 100052 [15:36:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 171 27.10.2024 15:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145748 ФПД: 998008093782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153658&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145748&fm=998008093782&tin=02508201610067®Number=0000000000091683&sum=100000 [15:36:57]StoreToDocumentArchive [15:36:57]shift 545 fd 145748 [15:36:57]save to /storage/0545/doc_00145748 [15:36:57]save last doc name /storage/0545/doc_00145748 to /storage/kkm_last_doc_name [15:36:57]save OK [15:36:57]Clear old archive folders... [15:36:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:36:57]tlvbuf is 004286E0 [15:36:57]SAM_PROTO_ClearQueue [15:36:57]wFMCommunicate request_size=4 [15:36:57]MH_SAM_APDU [15:36:57]CAPDU: 80 09 00 00 [15:36:57]Write to MH i2c: E2 08 00 11 22 80 09 00 00 00 00 00 00 A5 [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:57]Read from MH i2c: E2 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 03 00 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 03 00 11 22 00 90 00 A7 [15:36:57]RAPDU: 90 00 [15:36:57]wFMCommunicate OK [15:36:57]SAM_PROTO_ClearQueue done [15:36:57]KKMCreateOFDPacket [15:36:57]OFDProtocolAddRootSTLVToBuf [15:36:57]FM_MakeSignedData [15:36:57]FM_MakeSignedData [15:36:57]SAM_PROTO_SignData [15:36:57]wFMCommunicate request_size=4 [15:36:57]MH_SAM_APDU [15:36:57]CAPDU: 80 0D 01 02 [15:36:57]Write to MH i2c: E2 08 00 12 22 80 0D 01 02 00 00 00 00 AD [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:57]Read from MH i2c: E2 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 03 00 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 03 00 12 22 00 90 00 A8 [15:36:57]RAPDU: 90 00 [15:36:57]wFMCommunicate OK [15:36:57]wFMCommunicate request_size=255 [15:36:57]MH_SAM_APDU [15:36: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1A 5E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 54 39 02 00 35 04 06 00 00 E8 5D EA [15:36:57]Write to MH i2c: E2 02 01 13 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1A 5E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 54 39 02 00 35 04 06 00 00 E8 5D EA 00 00 BA [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:58]Read from MH i2c: E2 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 03 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 03 00 13 22 00 90 00 A9 [15:36:58]RAPDU: 90 00 [15:36:58]wFMCommunicate OK [15:36:58]wFMCommunicate request_size=7 [15:36:58]MH_SAM_APDU [15:36:58]CAPDU: 80 0D 02 02 02 FC 56 [15:36:58]Write to MH i2c: E2 0A 00 14 22 80 0D 02 02 02 00 FC 56 00 00 06 [15:36:58]Write i2c OK [15:36:58]MH_I2C_Read... [15:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:58]Read from MH i2c: E2 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 03 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 03 00 14 22 00 90 00 AA [15:36:58]RAPDU: 90 00 [15:36:58]wFMCommunicate OK [15:36:58]wFMCommunicate request_size=4 [15:36:58]MH_SAM_APDU [15:36:58]CAPDU: 80 0D 03 02 [15:36:58]Write to MH i2c: E2 08 00 15 22 80 0D 03 02 00 00 00 00 B2 [15:36:58]Write i2c OK [15:36:58]MH_I2C_Read... [15:36:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:58]Read from MH i2c: E2 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 0B 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 0B 00 15 22 00 85 73 90 85 31 C9 02 59 90 00 15 [15:36:58]RAPDU: 85 73 90 85 31 C9 02 59 90 00 [15:36:58]wFMCommunicate OK [15:36:58]SAM_PROTO_SignData done [15:36:58]FM_MakeSignedData done [15:36:58]CreateOFDProtocolMessage [15:36:58]wFMCommunicate request_size=4 [15:36:58]MH_SAM_APDU [15:36:58]CAPDU: 80 11 00 00 [15:36:58]Write to MH i2c: E2 08 00 16 22 80 11 00 00 00 00 00 00 B2 [15:36:58]Write i2c OK [15:36:58]MH_I2C_Read... [15:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:58]Read from MH i2c: E2 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 17 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 17 00 16 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 05 [15:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:36:58]wFMCommunicate OK [15:36:58]CreateOFDProtocolMessage done [15:36:58]OFDSenderStorePacket 145748 [15:36:58]StoreOFDPacket docnum=145748 [15:36:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 78 52 04 01 3C BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1A 5E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 54 39 02 00 35 04 06 00 00 E8 5D EA FC 56 85 73 90 85 31 C9 02 59 [15:36:58]CheckFolder [15:36:58]dirname=/storage/ofd_packets [15:36:58]CheckFolder done [15:36:58]ProducePacketName [15:36:58]name=ofd_packets/00145748 [15:36:58]NVStorageSaveData ofd_packets/00145748 [15:36:58]File name is /storage/ofd_packets/00145748 [15:36:58]Write 298 bytes [15:36:58]NVStorageSaveData done [15:36:58]OFDSenderStorePacket done [15:36:58]KKMCreateOFDPacket done [15:36:58]NVStorageSaveData kkm_last_timestamp [15:36:58]File name is /storage/kkm_last_timestamp [15:36:58]Write 4 bytes [15:36:58]NVStorageSaveData done [15:36:58]ExternCall_PrintAddStr [15:36:58]wPrintStart [15:36:58]Write to MH i2c: 01 00 00 17 22 39 [15:36:58]Write i2c OK [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: 01 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: 01 07 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: 01 07 00 17 22 00 00 00 00 00 FF 0F 4E [15:36:58]RasterBufferAndPrint [15:36:58]line Счет N : (1)160504 [15:36:58]line ИНН: 02508201610067 [15:36:58]line Контрольно-Кассовый Чек [15:36:58]line ПРОДАЖА [15:36:58]line ТРК (МРК, ГНК) : 11 [15:36:58]line Товар: 2710194210 [15:36:58]line ДТ-К-2 [15:36:58]line 13.130 * 76.20 [15:36:58]line = 1000.51 [15:36:58]line НДС 12% НСП 1% [15:36:58]line > о реализуемом товаре [15:36:58]line ОКРУГЛЕНИЕ: -0.51 [15:36:58]line ИТОГО: 1000.00 [15:36:58]line Внесено: 1000.00 [15:36:58]line СДАЧА: 0.00 [15:36:58]line НСП 1% : 8.85 [15:36:58]line НДС 12% : 106.25 [15:36:58]line Наличными: 1000.00 [15:36:58]line Безнал.: 0.00 [15:36:58]line Место: АЗС № 126 "Партнер Нефть" [15:36:58]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:36:58]line СНО: Общий режим [15:36:58]line Чек 171 27.10.2024 15:36 [15:36:58]line Смена: 545 ФФД: 1.0 [15:36:58]line ЗНМ: 0300000085 [15:36:58]line РНМ: 0000000000091683 [15:36:58]line Версия ККМ: 001 [15:36:58]line ФМ: 0000000000871745 [15:36:58]line ФД: 145748 [15:36:58]line ФПД: 998008093782 [15:36:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153658&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145748&fm=998008093782&tin=02508201610067®Number=0000000000091683&sum=100000 [15:36:58]OFD Sender: Processing packet 145748 [packets to send 206, broken 205] [15:36:58]ProducePacketName [15:36:58]name=ofd_packets/00145748 [15:36:58]OFD Sender: To server: pG, [15:36:58]CommunicateWithHost lk.salyk.kg:30040 [15:36:58]ConnectInit lk.salyk.kg [15:36:58]written 0, free lines is 4095 [15:36:58]Connected sock=10 [15:36:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 78 52 04 01 3C BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1A 5E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 54 39 02 00 35 04 06 00 00 E8 5D EA FC 56 85 73 90 85 31 C9 02 59 [15:36:58]Write to MH i2c: 01 00 00 42 22 64 [15:36:58]Write i2c OK [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: 01 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: 01 07 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: 01 07 00 42 22 00 00 00 00 00 9E 0C 15 [15:36:58]RasterBufferAndPrint [15:36:58]line [15:36:58]line [15:36:58]line [15:36:58]line [15:36:58]line [15:36:58]written 0, free lines is 3237 [15:36:59]MH_Cut [15:36:59]Write to MH i2c: D1 01 00 49 22 01 3D [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: D1 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: D1 01 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: D1 01 00 49 22 00 3C [15:36:59]Write to MH i2c: 01 00 00 4A 22 6C [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 88 C1 47 00 D3 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 54 39 02 00 F4 03 04 00 47 03 1E 67 B6 04 01 00 00 08 C3 3E 88 EC 30 10 66 [15:36:59]CommunicateWithHost err = 0 [15:36:59]CheckOFDResponse [15:36:59]1017 (14) - 77093643461234 [15:36:59]1041 (16) - 0000000000871745 [15:36:59]1040 (4) - 145748 [15:36:59]1012 (4) - 27.10.2024 09:09 [15:36:59]1206 (1) - 0 [15:36:59]OFD Sender: Remove packet 145748 [15:36:59]ProducePacketName [15:36:59]name=ofd_packets/00145748 [15:36:59]NVStorageDeleteData [15:36:59]OFD Sender: No OFD packet to send [15:36:59]*** Cut start [15:36:59]*** Partial cut [15:36:59]*** CUTSNS_PIN = 1 [15:36:59]*** CUTSNS_PIN = 0 [15:37:00]*** Brake cut motor [15:37:00]Read from MH i2c: 01 [15:37:00]MH_I2C_Read... [15:37:00]*** Stop cut motor [15:37:00]*** Cut end [15:37:00]Read from MH i2c: 01 07 00 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: 01 07 00 4A 22 00 00 00 00 00 FF 0F 81 [15:37:00]process_action close_receipt done [15:37:00]requested_data is exist [15:37:00]produce_requested_data [15:37:00]requested_item fm.sn is exist - process it [15:37:00]wFMCommunicate request_size=4 [15:37:00]MH_SAM_APDU [15:37:00]CAPDU: 80 11 00 00 [15:37:00]Write to MH i2c: E2 08 00 4B 22 80 11 00 00 00 00 00 00 E7 [15:37:00]Write i2c OK [15:37:00]MH_I2C_Read... [15:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:00]Read from MH i2c: E2 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 17 00 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 17 00 4B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3A [15:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:37:00]wFMCommunicate OK [15:37:00]requested_item fd.num is exist - process it [15:37:00]SAM_PROTO_GetFieldsCounters [15:37:00]wFMCommunicate request_size=4 [15:37:00]MH_SAM_APDU [15:37:00]CAPDU: 80 13 00 00 [15:37:00]Write to MH i2c: E2 08 00 4C 22 80 13 00 00 00 00 00 00 EA [15:37:00]Write i2c OK [15:37:00]MH_I2C_Read... [15:37:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:00]Read from MH i2c: E2 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 62 00 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 62 00 4C 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 54 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [15:37:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 54 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:00]wFMCommunicate OK [15:37:00]SAM_PROTO_GetFieldsCounters done [15:37:00]requested_item shift.num is exist - process it [15:37:00]requested_item shift.opened is exist - process it [15:37:00]req_shift_opened [15:37:00]FM_GetShiftState [15:37:00]SAM_PROTO_GetShiftState [15:37:00]wFMCommunicate request_size=4 [15:37:00]MH_SAM_APDU [15:37:00]CAPDU: 80 13 01 00 [15:37:00]Write to MH i2c: E2 08 00 4D 22 80 13 01 00 00 00 00 00 EC [15:37:00]Write i2c OK [15:37:00]MH_I2C_Read... [15:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:00]Read from MH i2c: E2 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 0E 00 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 0E 00 4D 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 64 [15:37:00]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:37:00]wFMCommunicate OK [15:37:00]SAM_PROTO_GetShiftState done [15:37:00]FM_GetShiftState done [15:37:00]req_shift_opened done [15:37:00]requested_item shift.open_date is exist - process it [15:37:00]req_shift_open_date [15:37:00]req_shift_open_date done [15:37:00]produce_requested_data done [15:37:00]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145748,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:37:00]process_action_free close_receipt [15:37:00]json_value_free [15:37:00]json_value_free done [15:37:00]process_json_proto returns [15:37:00]Send response to host [15:37:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145748,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:37:00]free response buf [15:37:00]execute_script done [15:37:00]execute_script returns [15:37:00]free content buf [15:37:00]Sock 7.Close socket [15:37:00]Sock 7.Thread stoped [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:34]accept exits with 9 [15:42:34]New connection [15:42:34]New thread 3066596708 created [15:42:34]Thread 3066740068 joined [15:42:34]Waiting for new connection... [15:42:34] Sock 9.Parse request [15:42:34]Sock 9.Check first char [15:42:34]Sock 9.First char is OK [15:42:34]request: POST /json_proto HTTP/1.0 [15:42:34]Method: POST [15:42:34]URL: /json_proto [15:42:34]Method is POST - this is cgi request [15:42:34]url: /json_proto [15:42:34]query_string will be loaded in cgi processing [15:42:34]execute_cgi json_proto POST (null) [15:42:34]execute_cgi path=json_proto method=POST [15:42:34]POST find Content-Length [15:42:34]Host: 172.17.40.195:8080 [15:42:34]Content-Length: 682 [15:42:34]Content-Type: application/json [15:42:34] [15:42:34]POST finish read [15:42:34]Found Content-Length = 682 [15:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:34]execute_script... [15:42: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)160505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:34]POST & json_proto [15:42:34]process_json_proto [15:42:34]json parsed OK: [15:42:34]protocol is kg_v1.0 [15:42:34]action value=close_receipt [15:42:34]process_action close_receipt [15:42:34]cmd_close_receipt [15:42:34]MH_GetDate [15:42:34]Write to MH i2c: F0 00 00 4E 22 5F [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: F0 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: F0 09 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: F0 09 00 4E 22 00 6C 5F 1E 67 D5 8D 6C 64 EA [15:42:34]GetLastDocTimeStamp 1730043418 [15:42:34]current date 1730043756 [15:42:34]FM_GetShiftState [15:42:34]SAM_PROTO_GetShiftState [15:42:34]wFMCommunicate request_size=4 [15:42:34]MH_SAM_APDU [15:42:34]CAPDU: 80 13 01 00 [15:42:34]Write to MH i2c: E2 08 00 4F 22 80 13 01 00 00 00 00 00 EE [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:34]Read from MH i2c: E2 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 0E 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 0E 00 4F 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 66 [15:42:34]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:42:34]wFMCommunicate OK [15:42:34]SAM_PROTO_GetShiftState done [15:42:34]FM_GetShiftState done [15:42:34]opened in 1729988959 [15:42:34]opened+sec_in_day 1730075359 [15:42:34]quantity*price = 100021 [15:42:34]sum+1 = 100023 [15:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 172 27.10.2024 15:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145749 ФПД: 94615196099666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154236&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145749&fm=94615196099666&tin=02508201610067®Number=0000000000091683&sum=100000 [15:42:35]StoreToDocumentArchive [15:42:35]shift 545 fd 145749 [15:42:35]save to /storage/0545/doc_00145749 [15:42:35]save last doc name /storage/0545/doc_00145749 to /storage/kkm_last_doc_name [15:42:35]save OK [15:42:35]Clear old archive folders... [15:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:35]tlvbuf is 0045D230 [15:42:35]SAM_PROTO_ClearQueue [15:42:35]wFMCommunicate request_size=4 [15:42:35]MH_SAM_APDU [15:42:35]CAPDU: 80 09 00 00 [15:42:35]Write to MH i2c: E2 08 00 5C 22 80 09 00 00 00 00 00 00 F0 [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:35]Read from MH i2c: E2 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 03 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 03 00 5C 22 00 90 00 F2 [15:42:35]RAPDU: 90 00 [15:42:35]wFMCommunicate OK [15:42:35]SAM_PROTO_ClearQueue done [15:42:35]KKMCreateOFDPacket [15:42:35]OFDProtocolAddRootSTLVToBuf [15:42:35]FM_MakeSignedData [15:42:35]FM_MakeSignedData [15:42:35]SAM_PROTO_SignData [15:42:35]wFMCommunicate request_size=4 [15:42:35]MH_SAM_APDU [15:42:35]CAPDU: 80 0D 01 02 [15:42:35]Write to MH i2c: E2 08 00 5D 22 80 0D 01 02 00 00 00 00 F8 [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:35]Read from MH i2c: E2 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 03 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 03 00 5D 22 00 90 00 F3 [15:42:35]RAPDU: 90 00 [15:42:35]wFMCommunicate OK [15:42:35]wFMCommunicate request_size=255 [15:42:35]MH_SAM_APDU [15:42:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 6C 5F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 55 39 02 00 35 04 06 00 56 [15:42:35]Write to MH i2c: E2 02 01 5E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 6C 5F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 55 39 02 00 35 04 06 00 56 00 00 A9 [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:35]Read from MH i2c: E2 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 03 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 03 00 5E 22 00 90 00 F4 [15:42:35]RAPDU: 90 00 [15:42:35]wFMCommunicate OK [15:42:35]wFMCommunicate request_size=10 [15:42:35]MH_SAM_APDU [15:42:35]CAPDU: 80 0D 02 02 05 0D 51 27 64 52 [15:42:35]Write to MH i2c: E2 0D 00 5F 22 80 0D 02 02 05 00 0D 51 27 64 52 00 00 40 [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:35]Read from MH i2c: E2 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 03 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 03 00 5F 22 00 90 00 F5 [15:42:35]RAPDU: 90 00 [15:42:35]wFMCommunicate OK [15:42:35]wFMCommunicate request_size=4 [15:42:35]MH_SAM_APDU [15:42:35]CAPDU: 80 0D 03 02 [15:42:35]Write to MH i2c: E2 08 00 60 22 80 0D 03 02 00 00 00 00 FD [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:35]Read from MH i2c: E2 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 0B 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 0B 00 60 22 00 1F 19 A0 2D 55 3D B5 50 90 00 9A [15:42:35]RAPDU: 1F 19 A0 2D 55 3D B5 50 90 00 [15:42:35]wFMCommunicate OK [15:42:35]SAM_PROTO_SignData done [15:42:35]FM_MakeSignedData done [15:42:35]CreateOFDProtocolMessage [15:42:35]wFMCommunicate request_size=4 [15:42:35]MH_SAM_APDU [15:42:35]CAPDU: 80 11 00 00 [15:42:35]Write to MH i2c: E2 08 00 61 22 80 11 00 00 00 00 00 00 FD [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:35]Read from MH i2c: E2 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 17 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 17 00 61 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 50 [15:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:42:35]wFMCommunicate OK [15:42:35]CreateOFDProtocolMessage done [15:42:35]OFDSenderStorePacket 145749 [15:42:35]StoreOFDPacket docnum=145749 [15:42:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 6F 6D 07 01 5E C1 5A 03 01 00 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 6C 5F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 55 39 02 00 35 04 06 00 56 0D 51 27 64 52 1F 19 A0 2D 55 3D B5 50 [15:42:35]CheckFolder [15:42:35]dirname=/storage/ofd_packets [15:42:35]CheckFolder done [15:42:35]ProducePacketName [15:42:35]name=ofd_packets/00145749 [15:42:35]NVStorageSaveData ofd_packets/00145749 [15:42:35]File name is /storage/ofd_packets/00145749 [15:42:35]Write 301 bytes [15:42:35]NVStorageSaveData done [15:42:35]OFDSenderStorePacket done [15:42:35]KKMCreateOFDPacket done [15:42:35]NVStorageSaveData kkm_last_timestamp [15:42:35]File name is /storage/kkm_last_timestamp [15:42:35]Write 4 bytes [15:42:35]NVStorageSaveData done [15:42:35]ExternCall_PrintAddStr [15:42:35]wPrintStart [15:42:35]Write to MH i2c: 01 00 00 62 22 84 [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: 01 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: 01 07 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: 01 07 00 62 22 00 00 00 00 00 FF 0F 99 [15:42:35]RasterBufferAndPrint [15:42:35]line Счет N : (1)160505 [15:42:35]line ИНН: 02508201610067 [15:42:35]line Контрольно-Кассовый Чек [15:42:35]line ПРОДАЖА [15:42:35]line ТРК (МРК, ГНК) : 53 [15:42:35]line Товар: 2710124500 [15:42:35]line Аи-95-К-3 [15:42:35]line 13.480 * 74.20 [15:42:35]line = 1000.22 [15:42:35]line НДС 12% НСП 1% [15:42:35]line > о реализуемом товаре [15:42:35]line ОКРУГЛЕНИЕ: -0.22 [15:42:35]line ИТОГО: 1000.00 [15:42:35]line Внесено: 1000.00 [15:42:35]line СДАЧА: 0.00 [15:42:35]line НСП 1% : 8.85 [15:42:35]line НДС 12% : 106.22 [15:42:35]line Наличными: 1000.00 [15:42:35]line Безнал.: 0.00 [15:42:35]line Место: АЗС № 126 "Партнер Нефть" [15:42:35]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:42:35]line СНО: Общий режим [15:42:35]line Чек 172 27.10.2024 15:42 [15:42:35]line Смена: 545 ФФД: 1.0 [15:42:35]line ЗНМ: 0300000085 [15:42:35]line РНМ: 0000000000091683 [15:42:35]line Версия ККМ: 001 [15:42:35]line ФМ: 0000000000871745 [15:42:35]line ФД: 145749 [15:42:35]line ФПД: 94615196099666 [15:42:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154236&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145749&fm=94615196099666&tin=02508201610067®Number=0000000000091683&sum=100000 [15:42:36]OFD Sender: Processing packet 145749 [packets to send 206, broken 205] [15:42:36]ProducePacketName [15:42:36]name=ofd_packets/00145749 [15:42:36]OFD Sender: To server: pG, [15:42:36]CommunicateWithHost lk.salyk.kg:30040 [15:42:36]ConnectInit lk.salyk.kg [15:42:36]written 0, free lines is 4095 [15:42:36]Connected sock=10 [15:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 6F 6D 07 01 5E C1 5A 03 01 00 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 6C 5F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 55 39 02 00 35 04 06 00 56 0D 51 27 64 52 1F 19 A0 2D 55 3D B5 50 [15:42:36]Write to MH i2c: 01 00 00 8D 22 AF [15:42:36]Write i2c OK [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: 01 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: 01 07 00 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: 01 07 00 8D 22 00 00 00 00 00 AC 0C 6E [15:42:36]RasterBufferAndPrint [15:42:36]line [15:42:36]line [15:42:36]line [15:42:36]line [15:42:36]line [15:42:36]written 0, free lines is 3248 [15:42:36]MH_Cut [15:42:36]Write to MH i2c: D1 01 00 94 22 01 88 [15:42:36]Write i2c OK [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: D1 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: D1 01 00 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: D1 01 00 94 22 00 87 [15:42:36]Write to MH i2c: 01 00 00 95 22 B7 [15:42:36]Write i2c OK [15:42:36]MH_I2C_Read... [15:42:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 AF 43 47 00 B3 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 55 39 02 00 F4 03 04 00 99 04 1E 67 B6 04 01 00 00 4F 7C 58 9B 26 7C 5F 87 [15:42:36]CommunicateWithHost err = 0 [15:42:36]CheckOFDResponse [15:42:36]1017 (14) - 77093643461234 [15:42:36]1041 (16) - 0000000000871745 [15:42:36]1040 (4) - 145749 [15:42:36]1012 (4) - 27.10.2024 09:15 [15:42:36]1206 (1) - 0 [15:42:36]OFD Sender: Remove packet 145749 [15:42:36]ProducePacketName [15:42:36]name=ofd_packets/00145749 [15:42:36]NVStorageDeleteData [15:42:37]OFD Sender: No OFD packet to send [15:42:37]*** Cut start [15:42:37]*** Partial cut [15:42:37]*** CUTSNS_PIN = 1 [15:42:37]*** CUTSNS_PIN = 0 [15:42:37]*** Brake cut motor [15:42:38]Read from MH i2c: 01 [15:42:38]MH_I2C_Read... [15:42:38]*** Stop cut motor [15:42:38]*** Cut end [15:42:38]Read from MH i2c: 01 07 00 [15:42:38]MH_I2C_Read... [15:42:38]Read from MH i2c: 01 07 00 95 22 00 00 00 00 00 FF 0F CC [15:42:38]process_action close_receipt done [15:42:38]requested_data is exist [15:42:38]produce_requested_data [15:42:38]requested_item fm.sn is exist - process it [15:42:38]wFMCommunicate request_size=4 [15:42:38]MH_SAM_APDU [15:42:38]CAPDU: 80 11 00 00 [15:42:38]Write to MH i2c: E2 08 00 96 22 80 11 00 00 00 00 00 00 32 [15:42:38]Write i2c OK [15:42:38]MH_I2C_Read... [15:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:38]Read from MH i2c: E2 [15:42:38]MH_I2C_Read... [15:42:38]Read from MH i2c: E2 17 00 [15:42:38]MH_I2C_Read... [15:42:38]Read from MH i2c: E2 17 00 96 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 85 [15:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:42:38]wFMCommunicate OK [15:42:38]requested_item fd.num is exist - process it [15:42:38]SAM_PROTO_GetFieldsCounters [15:42:38]wFMCommunicate request_size=4 [15:42:38]MH_SAM_APDU [15:42:38]CAPDU: 80 13 00 00 [15:42:38]Write to MH i2c: E2 08 00 97 22 80 13 00 00 00 00 00 00 35 [15:42:38]Write i2c OK [15:42:38]MH_I2C_Read... [15:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:38]Read from MH i2c: E2 [15:42:38]MH_I2C_Read... [15:42:38]Read from MH i2c: E2 62 00 [15:42:38]MH_I2C_Read... [15:42:38]Read from MH i2c: E2 62 00 97 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 55 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [15:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 55 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:38]wFMCommunicate OK [15:42:38]SAM_PROTO_GetFieldsCounters done [15:42:38]requested_item shift.num is exist - process it [15:42:38]requested_item shift.opened is exist - process it [15:42:38]req_shift_opened [15:42:38]FM_GetShiftState [15:42:38]SAM_PROTO_GetShiftState [15:42:38]wFMCommunicate request_size=4 [15:42:38]MH_SAM_APDU [15:42:38]CAPDU: 80 13 01 00 [15:42:38]Write to MH i2c: E2 08 00 98 22 80 13 01 00 00 00 00 00 37 [15:42:38]Write i2c OK [15:42:38]MH_I2C_Read... [15:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:38]Read from MH i2c: E2 [15:42:38]MH_I2C_Read... [15:42:38]Read from MH i2c: E2 0E 00 [15:42:38]MH_I2C_Read... [15:42:38]Read from MH i2c: E2 0E 00 98 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AF [15:42:38]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:42:38]wFMCommunicate OK [15:42:38]SAM_PROTO_GetShiftState done [15:42:38]FM_GetShiftState done [15:42:38]req_shift_opened done [15:42:38]requested_item shift.open_date is exist - process it [15:42:38]req_shift_open_date [15:42:38]req_shift_open_date done [15:42:38]produce_requested_data done [15:42:38]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145749,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:42:38]process_action_free close_receipt [15:42:38]json_value_free [15:42:38]json_value_free done [15:42:38]process_json_proto returns [15:42:38]Send response to host [15:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145749,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:42:38]free response buf [15:42:38]execute_script done [15:42:38]execute_script returns [15:42:38]free content buf [15:42:38]Sock 9.Close socket [15:42:38]Sock 9.Thread stoped [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:27]accept exits with 7 [15:46:27]New connection [15:46:27]New thread 3066740068 created [15:46:27]Thread 3066596708 joined [15:46:27]Waiting for new connection... [15:46:27] Sock 7.Parse request [15:46:27]Sock 7.Check first char [15:46:27]Sock 7.First char is OK [15:46:27]request: POST /json_proto HTTP/1.0 [15:46:27]Method: POST [15:46:27]URL: /json_proto [15:46:27]Method is POST - this is cgi request [15:46:27]url: /json_proto [15:46:27]query_string will be loaded in cgi processing [15:46:27]execute_cgi json_proto POST (null) [15:46:27]execute_cgi path=json_proto method=POST [15:46:27]POST find Content-Length [15:46:27]Host: 172.17.40.195:8080 [15:46:27]Content-Length: 984 [15:46:27]Content-Type: application/json [15:46:27] [15:46:27]POST finish read [15:46:27]Found Content-Length = 984 [15:46:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 43.250, "sum" : 2850.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 43.25 \u0441\u043E\u043C", "deposit" : 2850.00, "total" : 2850.00, "payments": [ { "type": 0, "sum" : 2850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:27]execute_script... [15:46: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)160506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 43.250, "sum" : 2850.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 43.25 \u0441\u043E\u043C", "deposit" : 2850.00, "total" : 2850.00, "payments": [ { "type": 0, "sum" : 2850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:27]POST & json_proto [15:46:27]process_json_proto [15:46:27]json parsed OK: [15:46:27]protocol is kg_v1.0 [15:46:27]action value=close_receipt [15:46:27]process_action close_receipt [15:46:27]cmd_close_receipt [15:46:27]MH_GetDate [15:46:27]Write to MH i2c: F0 00 00 99 22 AA [15:46:27]Write i2c OK [15:46:27]MH_I2C_Read... [15:46:27]Read from MH i2c: F0 [15:46:27]MH_I2C_Read... [15:46:27]Read from MH i2c: F0 09 00 [15:46:27]MH_I2C_Read... [15:46:27]Read from MH i2c: F0 09 00 99 22 00 55 60 1E 67 D5 8D 6C 64 1F [15:46:27]GetLastDocTimeStamp 1730043756 [15:46:27]current date 1730043989 [15:46:27]FM_GetShiftState [15:46:27]SAM_PROTO_GetShiftState [15:46:27]wFMCommunicate request_size=4 [15:46:27]MH_SAM_APDU [15:46:27]CAPDU: 80 13 01 00 [15:46:27]Write to MH i2c: E2 08 00 9A 22 80 13 01 00 00 00 00 00 39 [15:46:27]Write i2c OK [15:46:27]MH_I2C_Read... [15:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:27]Read from MH i2c: E2 [15:46:27]MH_I2C_Read... [15:46:27]Read from MH i2c: E2 0E 00 [15:46:27]MH_I2C_Read... [15:46:27]Read from MH i2c: E2 0E 00 9A 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B1 [15:46:27]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:46:27]wFMCommunicate OK [15:46:27]SAM_PROTO_GetShiftState done [15:46:27]FM_GetShiftState done [15:46:27]opened in 1729988959 [15:46:27]opened+sec_in_day 1730075359 [15:46:27]quantity*price = 285017 [15:46:27]sum+1 = 285019 [15:46:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 2850.00 Внесено: 2850.00 СДАЧА: 0.00 НСП 1% : 25.22 НДС 12% : 302.67 Наличными: 2850.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 173 27.10.2024 15:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-92 номер 126 сэкономлено 43.25 сом ФМ: 0000000000871745 ФД: 145750 ФПД: 161389312912853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154629&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145750&fm=161389312912853&tin=02508201610067®Number=0000000000091683&sum=285000 [15:46:28]StoreToDocumentArchive [15:46:28]shift 545 fd 145750 [15:46:28]save to /storage/0545/doc_00145750 [15:46:28]save last doc name /storage/0545/doc_00145750 to /storage/kkm_last_doc_name [15:46:28]save OK [15:46:28]Clear old archive folders... [15:46:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:28]tlvbuf is 004641F0 [15:46:28]SAM_PROTO_ClearQueue [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 09 00 00 [15:46:28]Write to MH i2c: E2 08 00 A7 22 80 09 00 00 00 00 00 00 3B [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 A7 22 00 90 00 3D [15:46:28]RAPDU: 90 00 [15:46:28]wFMCommunicate OK [15:46:28]SAM_PROTO_ClearQueue done [15:46:28]KKMCreateOFDPacket [15:46:28]OFDProtocolAddRootSTLVToBuf [15:46:28]FM_MakeSignedData [15:46:28]FM_MakeSignedData [15:46:28]SAM_PROTO_SignData [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 0D 01 02 [15:46:28]Write to MH i2c: E2 08 00 A8 22 80 0D 01 02 00 00 00 00 43 [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 A8 22 00 90 00 3E [15:46:28]RAPDU: 90 00 [15:46:28]wFMCommunicate OK [15:46:28]wFMCommunicate request_size=255 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 A8 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5A 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 76 00 00 00 00 07 04 06 00 48 59 04 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 55 60 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 56 39 02 00 35 04 06 00 92 [15:46:28]Write to MH i2c: E2 02 01 A9 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 32 FF 03 08 00 03 F2 A8 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5A 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 76 00 00 00 00 07 04 06 00 48 59 04 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 55 60 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 56 39 02 00 35 04 06 00 92 00 00 7F [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:29]Read from MH i2c: E2 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 03 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 03 00 A9 22 00 90 00 3F [15:46:29]RAPDU: 90 00 [15:46:29]wFMCommunicate OK [15:46:29]wFMCommunicate request_size=10 [15:46:29]MH_SAM_APDU [15:46:29]CAPDU: 80 0D 02 02 05 C8 60 AA AD D5 [15:46:29]Write to MH i2c: E2 0D 00 AA 22 80 0D 02 02 05 00 C8 60 AA AD D5 00 00 A4 [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:29]Read from MH i2c: E2 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 03 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 03 00 AA 22 00 90 00 40 [15:46:29]RAPDU: 90 00 [15:46:29]wFMCommunicate OK [15:46:29]wFMCommunicate request_size=4 [15:46:29]MH_SAM_APDU [15:46:29]CAPDU: 80 0D 03 02 [15:46:29]Write to MH i2c: E2 08 00 AB 22 80 0D 03 02 00 00 00 00 48 [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:29]Read from MH i2c: E2 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 0B 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 0B 00 AB 22 00 7E 84 56 79 06 7D B0 C2 90 00 0F [15:46:29]RAPDU: 7E 84 56 79 06 7D B0 C2 90 00 [15:46:29]wFMCommunicate OK [15:46:29]SAM_PROTO_SignData done [15:46:29]FM_MakeSignedData done [15:46:29]CreateOFDProtocolMessage [15:46:29]wFMCommunicate request_size=4 [15:46:29]MH_SAM_APDU [15:46:29]CAPDU: 80 11 00 00 [15:46:29]Write to MH i2c: E2 08 00 AC 22 80 11 00 00 00 00 00 00 48 [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:29]Read from MH i2c: E2 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 17 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 17 00 AC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9B [15:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:46:29]wFMCommunicate OK [15:46:29]CreateOFDProtocolMessage done [15:46:29]OFDSenderStorePacket 145750 [15:46:29]StoreOFDPacket docnum=145750 [15:46:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A1 BE 07 01 41 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 32 FF 03 08 00 03 F2 A8 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5A 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 76 00 00 00 00 07 04 06 00 48 59 04 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 55 60 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 56 39 02 00 35 04 06 00 92 C8 60 AA AD D5 7E 84 56 79 06 7D B0 C2 [15:46:29]CheckFolder [15:46:29]dirname=/storage/ofd_packets [15:46:29]CheckFolder done [15:46:29]ProducePacketName [15:46:29]name=ofd_packets/00145750 [15:46:29]NVStorageSaveData ofd_packets/00145750 [15:46:29]File name is /storage/ofd_packets/00145750 [15:46:29]Write 301 bytes [15:46:29]NVStorageSaveData done [15:46:29]OFDSenderStorePacket done [15:46:29]KKMCreateOFDPacket done [15:46:29]NVStorageSaveData kkm_last_timestamp [15:46:29]File name is /storage/kkm_last_timestamp [15:46:29]Write 4 bytes [15:46:29]NVStorageSaveData done [15:46:29]ExternCall_PrintAddStr [15:46:29]wPrintStart [15:46:29]Write to MH i2c: 01 00 00 AD 22 CF [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: 01 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: 01 07 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: 01 07 00 AD 22 00 00 00 00 00 FF 0F E4 [15:46:29]RasterBufferAndPrint [15:46:29]line Счет N : (1)160506 [15:46:29]line ИНН: 02508201610067 [15:46:29]line Контрольно-Кассовый Чек [15:46:29]line ПРОДАЖА [15:46:29]line ТРК (МРК, ГНК) : 42 [15:46:29]line Товар: 2710124130 [15:46:29]line Аи-92-К-2 [15:46:29]line 43.250 * 65.90 [15:46:29]line = 2850.18 [15:46:29]line НДС 12% НСП 1% [15:46:29]line > о реализуемом товаре [15:46:29]line ОКРУГЛЕНИЕ: -0.18 [15:46:29]line ИТОГО: 2850.00 [15:46:29]line Внесено: 2850.00 [15:46:29]line СДАЧА: 0.00 [15:46:29]line НСП 1% : 25.22 [15:46:29]line НДС 12% : 302.67 [15:46:29]line Наличными: 2850.00 [15:46:29]line Безнал.: 0.00 [15:46:29]line Место: АЗС № 126 "Партнер Нефть" [15:46:29]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:46:29]line СНО: Общий режим [15:46:29]line Чек 173 27.10.2024 15:46 [15:46:29]line Смена: 545 ФФД: 1.0 [15:46:29]line ЗНМ: 0300000085 [15:46:29]line РНМ: 0000000000091683 [15:46:29]line Версия ККМ: 001 [15:46:29]line [15:46:29]line Дисконтная программа [15:46:29]line АИ-92 [15:46:29]line номер 126 [15:46:29]line сэкономлено 43.25 сом [15:46:29]line ФМ: 0000000000871745 [15:46:29]line ФД: 145750 [15:46:29]line ФПД: 161389312912853 [15:46:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154629&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145750&fm=161389312912853&tin=02508201610067®Number=0000000000091683&sum=285000 [15:46:29]OFD Sender: Processing packet 145750 [packets to send 206, broken 205] [15:46:29]ProducePacketName [15:46:29]name=ofd_packets/00145750 [15:46:29]OFD Sender: To server: pG, [15:46:29]CommunicateWithHost lk.salyk.kg:30040 [15:46:29]ConnectInit lk.salyk.kg [15:46:29]written 0, free lines is 4095 [15:46:29]Connected sock=10 [15:46:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A1 BE 07 01 41 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 32 FF 03 08 00 03 F2 A8 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5A 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 76 00 00 00 00 07 04 06 00 48 59 04 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 55 60 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 56 39 02 00 35 04 06 00 92 C8 60 AA AD D5 7E 84 56 79 06 7D B0 C2 [15:46:30]Write to MH i2c: 01 00 00 DD 22 FF [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: 01 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: 01 07 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: 01 07 00 DD 22 00 00 00 00 00 61 0C 73 [15:46:30]RasterBufferAndPrint [15:46:30]line [15:46:30]line [15:46:30]line [15:46:30]line [15:46:30]line [15:46:30]written 0, free lines is 3177 [15:46:30]MH_Cut [15:46:30]Write to MH i2c: D1 01 00 E4 22 01 D8 [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 9B B4 47 00 43 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 56 39 02 00 F4 03 04 00 83 05 1E 67 B6 04 01 00 00 38 D6 36 E3 6D 68 F0 70 [15:46:30]CommunicateWithHost err = 0 [15:46:30]CheckOFDResponse [15:46:30]1017 (14) - 77093643461234 [15:46:30]1041 (16) - 0000000000871745 [15:46:30]1040 (4) - 145750 [15:46:30]1012 (4) - 27.10.2024 09:18 [15:46:30]1206 (1) - 0 [15:46:30]OFD Sender: Remove packet 145750 [15:46:30]ProducePacketName [15:46:30]name=ofd_packets/00145750 [15:46:30]NVStorageDeleteData [15:46:30]Read from MH i2c: D1 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: D1 01 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: D1 01 00 E4 22 00 D7 [15:46:30]Write to MH i2c: 01 00 00 E5 22 07 [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]OFD Sender: No OFD packet to send [15:46:31]*** Cut start [15:46:31]*** Partial cut [15:46:31]*** CUTSNS_PIN = 1 [15:46:31]*** CUTSNS_PIN = 0 [15:46:31]*** Brake cut motor [15:46:31]Read from MH i2c: 01 [15:46:31]MH_I2C_Read... [15:46:31]*** Stop cut motor [15:46:31]*** Cut end [15:46:31]Read from MH i2c: 01 07 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 07 00 E5 22 00 00 00 00 00 FF 0F 1C [15:46:31]process_action close_receipt done [15:46:31]requested_data is exist [15:46:31]produce_requested_data [15:46:31]requested_item fm.sn is exist - process it [15:46:31]wFMCommunicate request_size=4 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 11 00 00 [15:46:31]Write to MH i2c: E2 08 00 E6 22 80 11 00 00 00 00 00 00 82 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 17 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 17 00 E6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D5 [15:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:46:31]wFMCommunicate OK [15:46:31]requested_item fd.num is exist - process it [15:46:31]SAM_PROTO_GetFieldsCounters [15:46:31]wFMCommunicate request_size=4 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 13 00 00 [15:46:31]Write to MH i2c: E2 08 00 E7 22 80 13 00 00 00 00 00 00 85 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 62 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 62 00 E7 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 56 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [15:46:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 56 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:31]wFMCommunicate OK [15:46:31]SAM_PROTO_GetFieldsCounters done [15:46:31]requested_item shift.num is exist - process it [15:46:31]requested_item shift.opened is exist - process it [15:46:31]req_shift_opened [15:46:31]FM_GetShiftState [15:46:31]SAM_PROTO_GetShiftState [15:46:31]wFMCommunicate request_size=4 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 13 01 00 [15:46:31]Write to MH i2c: E2 08 00 E8 22 80 13 01 00 00 00 00 00 87 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:32]Read from MH i2c: E2 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: E2 0E 00 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: E2 0E 00 E8 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FF [15:46:32]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:46:32]wFMCommunicate OK [15:46:32]SAM_PROTO_GetShiftState done [15:46:32]FM_GetShiftState done [15:46:32]req_shift_opened done [15:46:32]requested_item shift.open_date is exist - process it [15:46:32]req_shift_open_date [15:46:32]req_shift_open_date done [15:46:32]produce_requested_data done [15:46:32]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145750,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:46:32]process_action_free close_receipt [15:46:32]json_value_free [15:46:32]json_value_free done [15:46:32]process_json_proto returns [15:46:32]Send response to host [15:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145750,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:46:32]free response buf [15:46:32]execute_script done [15:46:32]execute_script returns [15:46:32]free content buf [15:46:32]Sock 7.Close socket [15:46:32]Sock 7.Thread stoped [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]accept exits with 9 [15:48:35]New connection [15:48:35]New thread 3066596708 created [15:48:35]Thread 3066740068 joined [15:48:35]Waiting for new connection... [15:48:35] Sock 9.Parse request [15:48:35]Sock 9.Check first char [15:48:35]Sock 9.First char is OK [15:48:35]request: POST /json_proto HTTP/1.0 [15:48:35]Method: POST [15:48:35]URL: /json_proto [15:48:35]Method is POST - this is cgi request [15:48:35]url: /json_proto [15:48:35]query_string will be loaded in cgi processing [15:48:35]execute_cgi json_proto POST (null) [15:48:35]execute_cgi path=json_proto method=POST [15:48:35]POST find Content-Length [15:48:35]Host: 172.17.40.195:8080 [15:48:35]Content-Length: 679 [15:48:35]Content-Type: application/json [15:48:35] [15:48:35]POST finish read [15:48:35]Found Content-Length = 679 [15:48:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:35]execute_script... [15:48: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)160507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:35]POST & json_proto [15:48:35]process_json_proto [15:48:35]json parsed OK: [15:48:35]protocol is kg_v1.0 [15:48:35]action value=close_receipt [15:48:35]process_action close_receipt [15:48:35]cmd_close_receipt [15:48:35]MH_GetDate [15:48:35]Write to MH i2c: F0 00 00 E9 22 FA [15:48:35]Write i2c OK [15:48:35]MH_I2C_Read... [15:48:35]Read from MH i2c: F0 [15:48:35]MH_I2C_Read... [15:48:35]Read from MH i2c: F0 09 00 [15:48:35]MH_I2C_Read... [15:48:35]Read from MH i2c: F0 09 00 E9 22 00 D5 60 1E 67 D5 8D 6C 64 EF [15:48:35]GetLastDocTimeStamp 1730043989 [15:48:35]current date 1730044117 [15:48:35]FM_GetShiftState [15:48:35]SAM_PROTO_GetShiftState [15:48:35]wFMCommunicate request_size=4 [15:48:35]MH_SAM_APDU [15:48:35]CAPDU: 80 13 01 00 [15:48:35]Write to MH i2c: E2 08 00 EA 22 80 13 01 00 00 00 00 00 89 [15:48:35]Write i2c OK [15:48:35]MH_I2C_Read... [15:48:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:35]Read from MH i2c: E2 [15:48:35]MH_I2C_Read... [15:48:35]Read from MH i2c: E2 0E 00 [15:48:35]MH_I2C_Read... [15:48:35]Read from MH i2c: E2 0E 00 EA 22 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 01 [15:48:35]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:48:35]wFMCommunicate OK [15:48:35]SAM_PROTO_GetShiftState done [15:48:35]FM_GetShiftState done [15:48:35]opened in 1729988959 [15:48:35]opened+sec_in_day 1730075359 [15:48:35]quantity*price = 100050 [15:48:35]sum+1 = 100052 [15:48:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 174 27.10.2024 15:48 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145751 ФПД: 124947370653983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154837&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145751&fm=124947370653983&tin=02508201610067®Number=0000000000091683&sum=100000 [15:48:36]StoreToDocumentArchive [15:48:36]shift 545 fd 145751 [15:48:36]save to /storage/0545/doc_00145751 [15:48:36]save last doc name /storage/0545/doc_00145751 to /storage/kkm_last_doc_name [15:48:36]save OK [15:48:36]Clear old archive folders... [15:48:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:48:36]tlvbuf is 00439C20 [15:48:36]SAM_PROTO_ClearQueue [15:48:36]wFMCommunicate request_size=4 [15:48:36]MH_SAM_APDU [15:48:36]CAPDU: 80 09 00 00 [15:48:36]Write to MH i2c: E2 08 00 F7 22 80 09 00 00 00 00 00 00 8B [15:48:36]Write i2c OK [15:48:36]MH_I2C_Read... [15:48:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:36]Read from MH i2c: E2 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 03 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 03 00 F7 22 00 90 00 8D [15:48:36]RAPDU: 90 00 [15:48:36]wFMCommunicate OK [15:48:36]SAM_PROTO_ClearQueue done [15:48:36]KKMCreateOFDPacket [15:48:36]OFDProtocolAddRootSTLVToBuf [15:48:36]FM_MakeSignedData [15:48:36]FM_MakeSignedData [15:48:36]SAM_PROTO_SignData [15:48:36]wFMCommunicate request_size=4 [15:48:36]MH_SAM_APDU [15:48:36]CAPDU: 80 0D 01 02 [15:48:36]Write to MH i2c: E2 08 00 F8 22 80 0D 01 02 00 00 00 00 93 [15:48:36]Write i2c OK [15:48:36]MH_I2C_Read... [15:48:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:36]Read from MH i2c: E2 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 03 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 03 00 F8 22 00 90 00 8E [15:48:36]RAPDU: 90 00 [15:48:36]wFMCommunicate OK [15:48:36]wFMCommunicate request_size=255 [15:48:36]MH_SAM_APDU [15:48:36]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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 D5 60 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 57 39 02 00 35 04 06 00 71 A3 93 A4 [15:48:36]Write to MH i2c: E2 02 01 F9 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 D5 60 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 57 39 02 00 35 04 06 00 71 A3 93 A4 00 00 7F [15:48:36]Write i2c OK [15:48:36]MH_I2C_Read... [15:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:37]Read from MH i2c: E2 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 03 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 03 00 F9 22 00 90 00 8F [15:48:37]RAPDU: 90 00 [15:48:37]wFMCommunicate OK [15:48:37]wFMCommunicate request_size=7 [15:48:37]MH_SAM_APDU [15:48:37]CAPDU: 80 0D 02 02 02 B9 1F [15:48:37]Write to MH i2c: E2 0A 00 FA 22 80 0D 02 02 02 00 B9 1F 00 00 72 [15:48:37]Write i2c OK [15:48:37]MH_I2C_Read... [15:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:37]Read from MH i2c: E2 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 03 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 03 00 FA 22 00 90 00 90 [15:48:37]RAPDU: 90 00 [15:48:37]wFMCommunicate OK [15:48:37]wFMCommunicate request_size=4 [15:48:37]MH_SAM_APDU [15:48:37]CAPDU: 80 0D 03 02 [15:48:37]Write to MH i2c: E2 08 00 FB 22 80 0D 03 02 00 00 00 00 98 [15:48:37]Write i2c OK [15:48:37]MH_I2C_Read... [15:48:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:37]Read from MH i2c: E2 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 0B 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 0B 00 FB 22 00 F9 58 0F F7 B6 73 A0 6C 90 00 25 [15:48:37]RAPDU: F9 58 0F F7 B6 73 A0 6C 90 00 [15:48:37]wFMCommunicate OK [15:48:37]SAM_PROTO_SignData done [15:48:37]FM_MakeSignedData done [15:48:37]CreateOFDProtocolMessage [15:48:37]wFMCommunicate request_size=4 [15:48:37]MH_SAM_APDU [15:48:37]CAPDU: 80 11 00 00 [15:48:37]Write to MH i2c: E2 08 00 FC 22 80 11 00 00 00 00 00 00 98 [15:48:37]Write i2c OK [15:48:37]MH_I2C_Read... [15:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:37]Read from MH i2c: E2 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 17 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 17 00 FC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EB [15:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:48:37]wFMCommunicate OK [15:48:37]CreateOFDProtocolMessage done [15:48:37]OFDSenderStorePacket 145751 [15:48:37]StoreOFDPacket docnum=145751 [15:48:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 3C 62 04 01 04 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 D5 60 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 57 39 02 00 35 04 06 00 71 A3 93 A4 B9 1F F9 58 0F F7 B6 73 A0 6C [15:48:37]CheckFolder [15:48:37]dirname=/storage/ofd_packets [15:48:37]CheckFolder done [15:48:37]ProducePacketName [15:48:37]name=ofd_packets/00145751 [15:48:37]NVStorageSaveData ofd_packets/00145751 [15:48:37]File name is /storage/ofd_packets/00145751 [15:48:37]Write 298 bytes [15:48:37]NVStorageSaveData done [15:48:37]OFDSenderStorePacket done [15:48:37]KKMCreateOFDPacket done [15:48:37]NVStorageSaveData kkm_last_timestamp [15:48:37]File name is /storage/kkm_last_timestamp [15:48:37]Write 4 bytes [15:48:37]NVStorageSaveData done [15:48:37]ExternCall_PrintAddStr [15:48:37]wPrintStart [15:48:37]Write to MH i2c: 01 00 00 FD 22 1F [15:48:37]Write i2c OK [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: 01 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: 01 07 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: 01 07 00 FD 22 00 00 00 00 00 FF 0F 34 [15:48:37]RasterBufferAndPrint [15:48:37]line Счет N : (1)160507 [15:48:37]line ИНН: 02508201610067 [15:48:37]line Контрольно-Кассовый Чек [15:48:37]line ПРОДАЖА [15:48:37]line ТРК (МРК, ГНК) : 11 [15:48:37]line Товар: 2710194210 [15:48:37]line ДТ-К-2 [15:48:37]line 13.130 * 76.20 [15:48:37]line = 1000.51 [15:48:37]line НДС 12% НСП 1% [15:48:37]line > о реализуемом товаре [15:48:37]line ОКРУГЛЕНИЕ: -0.51 [15:48:37]line ИТОГО: 1000.00 [15:48:37]line Внесено: 1000.00 [15:48:37]line СДАЧА: 0.00 [15:48:37]line НСП 1% : 8.85 [15:48:37]line НДС 12% : 106.25 [15:48:37]line Наличными: 1000.00 [15:48:37]line Безнал.: 0.00 [15:48:37]line Место: АЗС № 126 "Партнер Нефть" [15:48:37]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:48:37]line СНО: Общий режим [15:48:37]line Чек 174 27.10.2024 15:48 [15:48:37]line Смена: 545 ФФД: 1.0 [15:48:37]line ЗНМ: 0300000085 [15:48:37]line РНМ: 0000000000091683 [15:48:37]line Версия ККМ: 001 [15:48:37]line ФМ: 0000000000871745 [15:48:37]line ФД: 145751 [15:48:37]line ФПД: 124947370653983 [15:48:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154837&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145751&fm=124947370653983&tin=02508201610067®Number=0000000000091683&sum=100000 [15:48:37]OFD Sender: Processing packet 145751 [packets to send 206, broken 205] [15:48:37]ProducePacketName [15:48:37]name=ofd_packets/00145751 [15:48:37]OFD Sender: To server: pG, [15:48:37]CommunicateWithHost lk.salyk.kg:30040 [15:48:37]ConnectInit lk.salyk.kg [15:48:37]written 0, free lines is 4095 [15:48:37]Connected sock=10 [15:48:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 3C 62 04 01 04 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 D5 60 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 57 39 02 00 35 04 06 00 71 A3 93 A4 B9 1F F9 58 0F F7 B6 73 A0 6C [15:48:38]Write to MH i2c: 01 00 00 28 23 4B [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: 01 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: 01 07 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: 01 07 00 28 23 00 00 00 00 00 B6 0C 14 [15:48:38]RasterBufferAndPrint [15:48:38]line [15:48:38]line [15:48:38]line [15:48:38]line [15:48:38]line [15:48:38]written 0, free lines is 3259 [15:48:38]MH_Cut [15:48:38]Write to MH i2c: D1 01 00 2F 23 01 24 [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: D1 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: D1 01 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: D1 01 00 2F 23 00 23 [15:48:38]Write to MH i2c: 01 00 00 30 23 53 [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 CC 15 47 00 D5 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 57 39 02 00 F4 03 04 00 03 06 1E 67 B6 04 01 00 00 91 CB 89 C9 41 09 39 D2 [15:48:38]CommunicateWithHost err = 0 [15:48:38]CheckOFDResponse [15:48:38]1017 (14) - 77093643461234 [15:48:38]1041 (16) - 0000000000871745 [15:48:38]1040 (4) - 145751 [15:48:38]1012 (4) - 27.10.2024 09:21 [15:48:38]1206 (1) - 0 [15:48:38]OFD Sender: Remove packet 145751 [15:48:38]ProducePacketName [15:48:38]name=ofd_packets/00145751 [15:48:38]NVStorageDeleteData [15:48:38]OFD Sender: No OFD packet to send [15:48:38]*** Cut start [15:48:38]*** Partial cut [15:48:38]*** CUTSNS_PIN = 1 [15:48:38]*** CUTSNS_PIN = 0 [15:48:39]*** Brake cut motor [15:48:39]Read from MH i2c: 01 [15:48:39]MH_I2C_Read... [15:48:39]*** Stop cut motor [15:48:39]*** Cut end [15:48:39]Read from MH i2c: 01 07 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 07 00 30 23 00 00 00 00 00 FF 0F 68 [15:48:39]process_action close_receipt done [15:48:39]requested_data is exist [15:48:39]produce_requested_data [15:48:39]requested_item fm.sn is exist - process it [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 11 00 00 [15:48:39]Write to MH i2c: E2 08 00 31 23 80 11 00 00 00 00 00 00 CE [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 17 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 17 00 31 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 21 [15:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:48:39]wFMCommunicate OK [15:48:39]requested_item fd.num is exist - process it [15:48:39]SAM_PROTO_GetFieldsCounters [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 13 00 00 [15:48:39]Write to MH i2c: E2 08 00 32 23 80 13 00 00 00 00 00 00 D1 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 62 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 62 00 32 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 57 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [15:48:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 57 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:39]wFMCommunicate OK [15:48:39]SAM_PROTO_GetFieldsCounters done [15:48:39]requested_item shift.num is exist - process it [15:48:39]requested_item shift.opened is exist - process it [15:48:39]req_shift_opened [15:48:39]FM_GetShiftState [15:48:39]SAM_PROTO_GetShiftState [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 13 01 00 [15:48:39]Write to MH i2c: E2 08 00 33 23 80 13 01 00 00 00 00 00 D3 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 0E 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 0E 00 33 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4B [15:48:39]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:48:39]wFMCommunicate OK [15:48:39]SAM_PROTO_GetShiftState done [15:48:39]FM_GetShiftState done [15:48:39]req_shift_opened done [15:48:39]requested_item shift.open_date is exist - process it [15:48:39]req_shift_open_date [15:48:39]req_shift_open_date done [15:48:39]produce_requested_data done [15:48:39]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145751,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:48:39]process_action_free close_receipt [15:48:39]json_value_free [15:48:39]json_value_free done [15:48:39]process_json_proto returns [15:48:39]Send response to host [15:48:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145751,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:48:39]free response buf [15:48:39]execute_script done [15:48:39]execute_script returns [15:48:39]free content buf [15:48:39]Sock 9.Close socket [15:48:39]Sock 9.Thread stoped [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:20]accept exits with 7 [15:49:20]New connection [15:49:20]New thread 3066740068 created [15:49:20]Thread 3066596708 joined [15:49:20]Waiting for new connection... [15:49:20] Sock 7.Parse request [15:49:20]Sock 7.Check first char [15:49:20]Sock 7.First char is OK [15:49:20]request: POST /json_proto HTTP/1.0 [15:49:20]Method: POST [15:49:20]URL: /json_proto [15:49:20]Method is POST - this is cgi request [15:49:20]url: /json_proto [15:49:20]query_string will be loaded in cgi processing [15:49:20]execute_cgi json_proto POST (null) [15:49:20]execute_cgi path=json_proto method=POST [15:49:20]POST find Content-Length [15:49:20]Host: 172.17.40.195:8080 [15:49:20]Content-Length: 682 [15:49:20]Content-Type: application/json [15:49:20] [15:49:20]POST finish read [15:49:20]Found Content-Length = 682 [15:49:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 49.870, "sum" : 3700.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:20]execute_script... [15:49:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 49.870, "sum" : 3700.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:20]POST & json_proto [15:49:20]process_json_proto [15:49:20]json parsed OK: [15:49:20]protocol is kg_v1.0 [15:49:20]action value=close_receipt [15:49:20]process_action close_receipt [15:49:20]cmd_close_receipt [15:49:20]MH_GetDate [15:49:20]Write to MH i2c: F0 00 00 34 23 46 [15:49:20]Write i2c OK [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: F0 [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: F0 09 00 [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: F0 09 00 34 23 00 02 61 1E 67 D5 8D 6C 64 69 [15:49:20]GetLastDocTimeStamp 1730044117 [15:49:20]current date 1730044162 [15:49:20]FM_GetShiftState [15:49:20]SAM_PROTO_GetShiftState [15:49:20]wFMCommunicate request_size=4 [15:49:20]MH_SAM_APDU [15:49:20]CAPDU: 80 13 01 00 [15:49:20]Write to MH i2c: E2 08 00 35 23 80 13 01 00 00 00 00 00 D5 [15:49:20]Write i2c OK [15:49:20]MH_I2C_Read... [15:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:20]Read from MH i2c: E2 [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: E2 0E 00 [15:49:20]MH_I2C_Read... [15:49:20]Read from MH i2c: E2 0E 00 35 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4D [15:49:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:49:20]wFMCommunicate OK [15:49:20]SAM_PROTO_GetShiftState done [15:49:20]FM_GetShiftState done [15:49:20]opened in 1729988959 [15:49:20]opened+sec_in_day 1730075359 [15:49:20]quantity*price = 370035 [15:49:20]sum+1 = 370036 [15:49:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 3700.00 Внесено: 5000.00 СДАЧА: 1300.00 НСП 1% : 32.75 НДС 12% : 392.96 Наличными: 3700.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 175 27.10.2024 15:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145752 ФПД: 217526574951807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154922&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145752&fm=217526574951807&tin=02508201610067®Number=0000000000091683&sum=370000 [15:49:21]StoreToDocumentArchive [15:49:21]shift 545 fd 145752 [15:49:21]save to /storage/0545/doc_00145752 [15:49:21]save last doc name /storage/0545/doc_00145752 to /storage/kkm_last_doc_name [15:49:21]save OK [15:49:21]Clear old archive folders... [15:49:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:21]tlvbuf is B6EA6610 [15:49:21]SAM_PROTO_ClearQueue [15:49:21]wFMCommunicate request_size=4 [15:49:21]MH_SAM_APDU [15:49:21]CAPDU: 80 09 00 00 [15:49:21]Write to MH i2c: E2 08 00 42 23 80 09 00 00 00 00 00 00 D7 [15:49:21]Write i2c OK [15:49:21]MH_I2C_Read... [15:49:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:21]Read from MH i2c: E2 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 03 00 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 03 00 42 23 00 90 00 D9 [15:49:21]RAPDU: 90 00 [15:49:21]wFMCommunicate OK [15:49:21]SAM_PROTO_ClearQueue done [15:49:21]KKMCreateOFDPacket [15:49:21]OFDProtocolAddRootSTLVToBuf [15:49:21]FM_MakeSignedData [15:49:21]FM_MakeSignedData [15:49:21]SAM_PROTO_SignData [15:49:21]wFMCommunicate request_size=4 [15:49:21]MH_SAM_APDU [15:49:21]CAPDU: 80 0D 01 02 [15:49:21]Write to MH i2c: E2 08 00 43 23 80 0D 01 02 00 00 00 00 DF [15:49:21]Write i2c OK [15:49:21]MH_I2C_Read... [15:49:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:21]Read from MH i2c: E2 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 03 00 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 03 00 43 23 00 90 00 DA [15:49:21]RAPDU: 90 00 [15:49:21]wFMCommunicate OK [15:49:21]wFMCommunicate request_size=255 [15:49:21]MH_SAM_APDU [15:49: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 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 02 61 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 58 39 02 00 35 04 06 00 C5 [15:49:21]Write to MH i2c: E2 02 01 44 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 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 02 61 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 58 39 02 00 35 04 06 00 C5 00 00 A8 [15:49:21]Write i2c OK [15:49:21]MH_I2C_Read... [15:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:21]Read from MH i2c: E2 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 03 00 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 03 00 44 23 00 90 00 DB [15:49:21]RAPDU: 90 00 [15:49:21]wFMCommunicate OK [15:49:21]wFMCommunicate request_size=10 [15:49:21]MH_SAM_APDU [15:49:21]CAPDU: 80 0D 02 02 05 D6 DA 3A AD 7F [15:49:21]Write to MH i2c: E2 0D 00 45 23 80 0D 02 02 05 00 D6 DA 3A AD 7F 00 00 02 [15:49:21]Write i2c OK [15:49:21]MH_I2C_Read... [15:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:21]Read from MH i2c: E2 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 03 00 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 03 00 45 23 00 90 00 DC [15:49:21]RAPDU: 90 00 [15:49:21]wFMCommunicate OK [15:49:21]wFMCommunicate request_size=4 [15:49:21]MH_SAM_APDU [15:49:21]CAPDU: 80 0D 03 02 [15:49:21]Write to MH i2c: E2 08 00 46 23 80 0D 03 02 00 00 00 00 E4 [15:49:21]Write i2c OK [15:49:21]MH_I2C_Read... [15:49:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:22]Read from MH i2c: E2 [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: E2 0B 00 [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: E2 0B 00 46 23 00 6D 0E 8A 4D 8D A4 18 E8 90 00 68 [15:49:22]RAPDU: 6D 0E 8A 4D 8D A4 18 E8 90 00 [15:49:22]wFMCommunicate OK [15:49:22]SAM_PROTO_SignData done [15:49:22]FM_MakeSignedData done [15:49:22]CreateOFDProtocolMessage [15:49:22]wFMCommunicate request_size=4 [15:49:22]MH_SAM_APDU [15:49:22]CAPDU: 80 11 00 00 [15:49:22]Write to MH i2c: E2 08 00 47 23 80 11 00 00 00 00 00 00 E4 [15:49:22]Write i2c OK [15:49:22]MH_I2C_Read... [15:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:22]Read from MH i2c: E2 [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: E2 17 00 [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: E2 17 00 47 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 37 [15:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:49:22]wFMCommunicate OK [15:49:22]CreateOFDProtocolMessage done [15:49:22]OFDSenderStorePacket 145752 [15:49:22]StoreOFDPacket docnum=145752 [15:49:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F9 73 07 01 8F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 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 02 61 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 58 39 02 00 35 04 06 00 C5 D6 DA 3A AD 7F 6D 0E 8A 4D 8D A4 18 E8 [15:49:22]CheckFolder [15:49:22]dirname=/storage/ofd_packets [15:49:22]CheckFolder done [15:49:22]ProducePacketName [15:49:22]name=ofd_packets/00145752 [15:49:22]NVStorageSaveData ofd_packets/00145752 [15:49:22]File name is /storage/ofd_packets/00145752 [15:49:22]Write 301 bytes [15:49:22]NVStorageSaveData done [15:49:22]OFDSenderStorePacket done [15:49:22]KKMCreateOFDPacket done [15:49:22]NVStorageSaveData kkm_last_timestamp [15:49:22]File name is /storage/kkm_last_timestamp [15:49:22]Write 4 bytes [15:49:22]NVStorageSaveData done [15:49:22]ExternCall_PrintAddStr [15:49:22]wPrintStart [15:49:22]Write to MH i2c: 01 00 00 48 23 6B [15:49:22]Write i2c OK [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: 01 [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: 01 07 00 [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: 01 07 00 48 23 00 00 00 00 00 FF 0F 80 [15:49:22]RasterBufferAndPrint [15:49:22]line Счет N : (1)160508 [15:49:22]line ИНН: 02508201610067 [15:49:22]line Контрольно-Кассовый Чек [15:49:22]line ПРОДАЖА [15:49:22]line ТРК (МРК, ГНК) : 43 [15:49:22]line Товар: 2710124500 [15:49:22]line Аи-95-К-3 [15:49:22]line 49.870 * 74.20 [15:49:22]line = 3700.35 [15:49:22]line НДС 12% НСП 1% [15:49:22]line > о реализуемом товаре [15:49:22]line ОКРУГЛЕНИЕ: -0.35 [15:49:22]line ИТОГО: 3700.00 [15:49:22]line Внесено: 5000.00 [15:49:22]line СДАЧА: 1300.00 [15:49:22]line НСП 1% : 32.75 [15:49:22]line НДС 12% : 392.96 [15:49:22]line Наличными: 3700.00 [15:49:22]line Безнал.: 0.00 [15:49:22]line Место: АЗС № 126 "Партнер Нефть" [15:49:22]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:49:22]line СНО: Общий режим [15:49:22]line Чек 175 27.10.2024 15:49 [15:49:22]line Смена: 545 ФФД: 1.0 [15:49:22]line ЗНМ: 0300000085 [15:49:22]line РНМ: 0000000000091683 [15:49:22]line Версия ККМ: 001 [15:49:22]line ФМ: 0000000000871745 [15:49:22]line ФД: 145752 [15:49:22]line ФПД: 217526574951807 [15:49:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154922&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145752&fm=217526574951807&tin=02508201610067®Number=0000000000091683&sum=370000 [15:49:22]OFD Sender: Processing packet 145752 [packets to send 206, broken 205] [15:49:22]ProducePacketName [15:49:22]name=ofd_packets/00145752 [15:49:22]OFD Sender: To server: pG, [15:49:22]CommunicateWithHost lk.salyk.kg:30040 [15:49:22]ConnectInit lk.salyk.kg [15:49:22]written 0, free lines is 4095 [15:49:22]Connected sock=10 [15:49:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F9 73 07 01 8F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 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 02 61 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 58 39 02 00 35 04 06 00 C5 D6 DA 3A AD 7F 6D 0E 8A 4D 8D A4 18 E8 [15:49:22]Write to MH i2c: 01 00 00 73 23 96 [15:49:22]Write i2c OK [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: 01 [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: 01 07 00 [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: 01 07 00 73 23 00 00 00 00 00 C0 0C 69 [15:49:22]RasterBufferAndPrint [15:49:22]line [15:49:22]line [15:49:22]line [15:49:22]line [15:49:22]line [15:49:22]written 0, free lines is 3270 [15:49:22]MH_Cut [15:49:22]Write to MH i2c: D1 01 00 7A 23 01 6F [15:49:22]Write i2c OK [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: D1 [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: D1 01 00 [15:49:22]MH_I2C_Read... [15:49:22]Read from MH i2c: D1 01 00 7A 23 00 6E [15:49:22]Write to MH i2c: 01 00 00 7B 23 9E [15:49:22]Write i2c OK [15:49:22]MH_I2C_Read... [15:49:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A5 CE 47 00 44 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 31 37 34 35 10 04 04 00 58 39 02 00 F4 03 04 00 2F 06 1E 67 B6 04 01 00 00 B3 CC 48 A1 3F B6 D0 B0 [15:49:22]CommunicateWithHost err = 0 [15:49:22]CheckOFDResponse [15:49:22]1017 (14) - 77093643461234 [15:49:22]1041 (16) - 0000000000871745 [15:49:22]1040 (4) - 145752 [15:49:22]1012 (4) - 27.10.2024 09:21 [15:49:22]1206 (1) - 0 [15:49:22]OFD Sender: Remove packet 145752 [15:49:22]ProducePacketName [15:49:22]name=ofd_packets/00145752 [15:49:22]NVStorageDeleteData [15:49:23]OFD Sender: No OFD packet to send [15:49:23]*** Cut start [15:49:23]*** Partial cut [15:49:23]*** CUTSNS_PIN = 1 [15:49:23]*** CUTSNS_PIN = 0 [15:49:23]*** Brake cut motor [15:49:24]Read from MH i2c: 01 [15:49:24]MH_I2C_Read... [15:49:24]*** Stop cut motor [15:49:24]*** Cut end [15:49:24]Read from MH i2c: 01 07 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: 01 07 00 7B 23 00 00 00 00 00 FF 0F B3 [15:49:24]process_action close_receipt done [15:49:24]requested_data is exist [15:49:24]produce_requested_data [15:49:24]requested_item fm.sn is exist - process it [15:49:24]wFMCommunicate request_size=4 [15:49:24]MH_SAM_APDU [15:49:24]CAPDU: 80 11 00 00 [15:49:24]Write to MH i2c: E2 08 00 7C 23 80 11 00 00 00 00 00 00 19 [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:24]Read from MH i2c: E2 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 17 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 17 00 7C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6C [15:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:49:24]wFMCommunicate OK [15:49:24]requested_item fd.num is exist - process it [15:49:24]SAM_PROTO_GetFieldsCounters [15:49:24]wFMCommunicate request_size=4 [15:49:24]MH_SAM_APDU [15:49:24]CAPDU: 80 13 00 00 [15:49:24]Write to MH i2c: E2 08 00 7D 23 80 13 00 00 00 00 00 00 1C [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:24]Read from MH i2c: E2 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 62 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 62 00 7D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 58 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [15:49:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 58 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:24]wFMCommunicate OK [15:49:24]SAM_PROTO_GetFieldsCounters done [15:49:24]requested_item shift.num is exist - process it [15:49:24]requested_item shift.opened is exist - process it [15:49:24]req_shift_opened [15:49:24]FM_GetShiftState [15:49:24]SAM_PROTO_GetShiftState [15:49:24]wFMCommunicate request_size=4 [15:49:24]MH_SAM_APDU [15:49:24]CAPDU: 80 13 01 00 [15:49:24]Write to MH i2c: E2 08 00 7E 23 80 13 01 00 00 00 00 00 1E [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:24]Read from MH i2c: E2 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 0E 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 0E 00 7E 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 96 [15:49:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:49:24]wFMCommunicate OK [15:49:24]SAM_PROTO_GetShiftState done [15:49:24]FM_GetShiftState done [15:49:24]req_shift_opened done [15:49:24]requested_item shift.open_date is exist - process it [15:49:24]req_shift_open_date [15:49:24]req_shift_open_date done [15:49:24]produce_requested_data done [15:49:24]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145752,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:49:24]process_action_free close_receipt [15:49:24]json_value_free [15:49:24]json_value_free done [15:49:24]process_json_proto returns [15:49:24]Send response to host [15:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145752,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:49:24]free response buf [15:49:24]execute_script done [15:49:24]execute_script returns [15:49:24]free content buf [15:49:24]Sock 7.Close socket [15:49:24]Sock 7.Thread stoped [15:49:24]accept exits with 9 [15:49:24]New connection [15:49:24]New thread 3066596708 created [15:49:24]Thread 3066740068 joined [15:49:24]Waiting for new connection... [15:49:24] Sock 9.Parse request [15:49:24]Sock 9.Check first char [15:49:24]Sock 9.First char is OK [15:49:24]request: POST /json_proto HTTP/1.0 [15:49:24]Method: POST [15:49:24]URL: /json_proto [15:49:24]Method is POST - this is cgi request [15:49:24]url: /json_proto [15:49:24]query_string will be loaded in cgi processing [15:49:24]execute_cgi json_proto POST (null) [15:49:24]execute_cgi path=json_proto method=POST [15:49:24]POST find Content-Length [15:49:24]Host: 172.17.40.195:8080 [15:49:24]Content-Length: 766 [15:49:24]Content-Type: application/json [15:49:24] [15:49:24]POST finish read [15:49:24]Found Content-Length = 766 [15:49:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:24]execute_script... [15:49:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:24]POST & json_proto [15:49:24]process_json_proto [15:49:24]json parsed OK: [15:49:24]protocol is kg_v1.0 [15:49:24]action value=close_receipt [15:49:24]process_action close_receipt [15:49:24]cmd_close_receipt [15:49:24]MH_GetDate [15:49:24]Write to MH i2c: F0 00 00 7F 23 91 [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: F0 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: F0 09 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: F0 09 00 7F 23 00 07 61 1E 67 D5 8D 6C 64 B9 [15:49:24]GetLastDocTimeStamp 1730044162 [15:49:24]current date 1730044167 [15:49:24]FM_GetShiftState [15:49:24]SAM_PROTO_GetShiftState [15:49:24]wFMCommunicate request_size=4 [15:49:24]MH_SAM_APDU [15:49:24]CAPDU: 80 13 01 00 [15:49:24]Write to MH i2c: E2 08 00 80 23 80 13 01 00 00 00 00 00 20 [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:25]Read from MH i2c: E2 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 0E 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 0E 00 80 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 98 [15:49:25]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:49:25]wFMCommunicate OK [15:49:25]SAM_PROTO_GetShiftState done [15:49:25]FM_GetShiftState done [15:49:25]opened in 1729988959 [15:49:25]opened+sec_in_day 1730075359 [15:49:25]quantity*price = 100050 [15:49:25]sum+1 = 100052 [15:49:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 176 27.10.2024 15:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145753 ФПД: 236226344370803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154927&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145753&fm=236226344370803&tin=02508201610067®Number=0000000000091683&sum=100051 [15:49:26]StoreToDocumentArchive [15:49:26]shift 545 fd 145753 [15:49:26]save to /storage/0545/doc_00145753 [15:49:26]save last doc name /storage/0545/doc_00145753 to /storage/kkm_last_doc_name [15:49:26]save OK [15:49:26]Clear old archive folders... [15:49:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:49:26]tlvbuf is 00405870 [15:49:26]SAM_PROTO_ClearQueue [15:49:26]wFMCommunicate request_size=4 [15:49:26]MH_SAM_APDU [15:49:26]CAPDU: 80 09 00 00 [15:49:26]Write to MH i2c: E2 08 00 8D 23 80 09 00 00 00 00 00 00 22 [15:49:26]Write i2c OK [15:49:26]MH_I2C_Read... [15:49:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:26]Read from MH i2c: E2 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: E2 03 00 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: E2 03 00 8D 23 00 90 00 24 [15:49:26]RAPDU: 90 00 [15:49:26]wFMCommunicate OK [15:49:26]SAM_PROTO_ClearQueue done [15:49:26]KKMCreateOFDPacket [15:49:26]OFDProtocolAddRootSTLVToBuf [15:49:26]FM_MakeSignedData [15:49:26]FM_MakeSignedData [15:49:26]SAM_PROTO_SignData [15:49:26]wFMCommunicate request_size=4 [15:49:26]MH_SAM_APDU [15:49:26]CAPDU: 80 0D 01 02 [15:49:26]Write to MH i2c: E2 08 00 8E 23 80 0D 01 02 00 00 00 00 2A [15:49:26]Write i2c OK [15:49:26]MH_I2C_Read... [15:49:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:26]Read from MH i2c: E2 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: E2 03 00 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: E2 03 00 8E 23 00 90 00 25 [15:49:26]RAPDU: 90 00 [15:49:26]wFMCommunicate OK [15:49:26]wFMCommunicate request_size=255 [15:49:26]MH_SAM_APDU [15:49: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 07 61 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 59 39 02 00 35 04 06 00 D6 D8 BB 57 [15:49:26]Write to MH i2c: E2 02 01 8F 23 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 07 61 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 59 39 02 00 35 04 06 00 D6 D8 BB 57 00 00 28 [15:49:26]Write i2c OK [15:49:26]MH_I2C_Read... [15:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:26]Read from MH i2c: E2 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: E2 03 00 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: E2 03 00 8F 23 00 90 00 26 [15:49:26]RAPDU: 90 00 [15:49:26]wFMCommunicate OK [15:49:26]wFMCommunicate request_size=7 [15:49:26]MH_SAM_APDU [15:49:26]CAPDU: 80 0D 02 02 02 C2 73 [15:49:26]Write to MH i2c: E2 0A 00 90 23 80 0D 02 02 02 00 C2 73 00 00 66 [15:49:26]Write i2c OK [15:49:26]MH_I2C_Read... [15:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:26]Read from MH i2c: E2 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: E2 03 00 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: E2 03 00 90 23 00 90 00 27 [15:49:26]RAPDU: 90 00 [15:49:26]wFMCommunicate OK [15:49:26]wFMCommunicate request_size=4 [15:49:26]MH_SAM_APDU [15:49:26]CAPDU: 80 0D 03 02 [15:49:26]Write to MH i2c: E2 08 00 91 23 80 0D 03 02 00 00 00 00 2F [15:49:26]Write i2c OK [15:49:26]MH_I2C_Read... [15:49:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:26]Read from MH i2c: E2 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: E2 0B 00 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: E2 0B 00 91 23 00 CB 34 DF FF 77 B3 89 C9 90 00 89 [15:49:26]RAPDU: CB 34 DF FF 77 B3 89 C9 90 00 [15:49:26]wFMCommunicate OK [15:49:26]SAM_PROTO_SignData done [15:49:26]FM_MakeSignedData done [15:49:26]CreateOFDProtocolMessage [15:49:26]wFMCommunicate request_size=4 [15:49:26]MH_SAM_APDU [15:49:26]CAPDU: 80 11 00 00 [15:49:26]Write to MH i2c: E2 08 00 92 23 80 11 00 00 00 00 00 00 2F [15:49:26]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:27]Read from MH i2c: E2 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 17 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 17 00 92 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 82 [15:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:49:27]wFMCommunicate OK [15:49:27]CreateOFDProtocolMessage done [15:49:27]OFDSenderStorePacket 145753 [15:49:27]StoreOFDPacket docnum=145753 [15:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 03 89 04 01 27 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 07 61 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 59 39 02 00 35 04 06 00 D6 D8 BB 57 C2 73 CB 34 DF FF 77 B3 89 C9 [15:49:27]CheckFolder [15:49:27]dirname=/storage/ofd_packets [15:49:27]CheckFolder done [15:49:27]ProducePacketName [15:49:27]name=ofd_packets/00145753 [15:49:27]NVStorageSaveData ofd_packets/00145753 [15:49:27]File name is /storage/ofd_packets/00145753 [15:49:27]Write 298 bytes [15:49:27]NVStorageSaveData done [15:49:27]OFDSenderStorePacket done [15:49:27]KKMCreateOFDPacket done [15:49:27]NVStorageSaveData kkm_last_timestamp [15:49:27]File name is /storage/kkm_last_timestamp [15:49:27]Write 4 bytes [15:49:27]NVStorageSaveData done [15:49:27]ExternCall_PrintAddStr [15:49:27]wPrintStart [15:49:27]Write to MH i2c: 01 00 00 93 23 B6 [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: 01 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: 01 07 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: 01 07 00 93 23 00 00 00 00 00 FF 0F CB [15:49:27]RasterBufferAndPrint [15:49:27]line Счет N : (1)160509 [15:49:27]line ИНН: 02508201610067 [15:49:27]line Контрольно-Кассовый Чек [15:49:27]line ПРОДАЖА [15:49:27]line ТРК (МРК, ГНК) : 11 [15:49:27]line Товар: 2710194210 [15:49:27]line ДТ-К-2 [15:49:27]line 13.130 * 76.20 [15:49:27]line = 1000.51 [15:49:27]line НДС 12% НСП 1% [15:49:27]line > о реализуемом товаре [15:49:27]line ИТОГО: 1000.51 [15:49:27]line НСП 1% : 8.85 [15:49:27]line НДС 12% : 106.25 [15:49:27]line Наличными: 0.00 [15:49:27]line Безнал.: 1000.51 [15:49:27]line Место: АЗС № 126 "Партнер Нефть" [15:49:27]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:49:27]line СНО: Общий режим [15:49:27]line Чек 176 27.10.2024 15:49 [15:49:27]line Смена: 545 ФФД: 1.0 [15:49:27]line ЗНМ: 0300000085 [15:49:27]line РНМ: 0000000000091683 [15:49:27]line Версия ККМ: 001 [15:49:27]line Платежная система: Mbank [15:49:27]line ФМ: 0000000000871745 [15:49:27]line ФД: 145753 [15:49:27]line ФПД: 236226344370803 [15:49:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154927&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145753&fm=236226344370803&tin=02508201610067®Number=0000000000091683&sum=100051 [15:49:27]written 0, free lines is 4095 [15:49:27]OFD Sender: Processing packet 145753 [packets to send 206, broken 205] [15:49:27]ProducePacketName [15:49:27]name=ofd_packets/00145753 [15:49:27]OFD Sender: To server: pG, [15:49:27]CommunicateWithHost lk.salyk.kg:30040 [15:49:27]ConnectInit lk.salyk.kg [15:49:27]Connected sock=10 [15:49:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 03 89 04 01 27 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 07 61 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 59 39 02 00 35 04 06 00 D6 D8 BB 57 C2 73 CB 34 DF FF 77 B3 89 C9 [15:49:27]Write to MH i2c: 01 00 00 BC 23 DF [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: 01 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: 01 07 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: 01 07 00 BC 23 00 00 00 00 00 D5 0C C7 [15:49:27]RasterBufferAndPrint [15:49:27]line [15:49:27]line [15:49:27]line [15:49:27]line [15:49:27]line [15:49:27]written 0, free lines is 3298 [15:49:27]MH_Cut [15:49:27]Write to MH i2c: D1 01 00 C3 23 01 B8 [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: D1 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: D1 01 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: D1 01 00 C3 23 00 B7 [15:49:27]Write to MH i2c: 01 00 00 C4 23 E7 [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 DA 7E 47 00 54 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 59 39 02 00 F4 03 04 00 34 06 1E 67 B6 04 01 00 00 DB 96 02 9E AD 50 4D CB [15:49:27]CommunicateWithHost err = 0 [15:49:27]CheckOFDResponse [15:49:27]1017 (14) - 77093643461234 [15:49:27]1041 (16) - 0000000000871745 [15:49:27]1040 (4) - 145753 [15:49:27]1012 (4) - 27.10.2024 09:21 [15:49:27]1206 (1) - 0 [15:49:27]OFD Sender: Remove packet 145753 [15:49:27]ProducePacketName [15:49:27]name=ofd_packets/00145753 [15:49:27]NVStorageDeleteData [15:49:28]OFD Sender: No OFD packet to send [15:49:28]*** Cut start [15:49:28]*** Partial cut [15:49:28]*** CUTSNS_PIN = 1 [15:49:28]*** CUTSNS_PIN = 0 [15:49:28]*** Brake cut motor [15:49:29]Read from MH i2c: 01 [15:49:29]MH_I2C_Read... [15:49:29]*** Stop cut motor [15:49:29]*** Cut end [15:49:29]Read from MH i2c: 01 07 00 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: 01 07 00 C4 23 00 00 00 00 00 FF 0F FC [15:49:29]process_action close_receipt done [15:49:29]requested_data is exist [15:49:29]produce_requested_data [15:49:29]requested_item fm.sn is exist - process it [15:49:29]wFMCommunicate request_size=4 [15:49:29]MH_SAM_APDU [15:49:29]CAPDU: 80 11 00 00 [15:49:29]Write to MH i2c: E2 08 00 C5 23 80 11 00 00 00 00 00 00 62 [15:49:29]Write i2c OK [15:49:29]MH_I2C_Read... [15:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:29]Read from MH i2c: E2 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: E2 17 00 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: E2 17 00 C5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B5 [15:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:49:29]wFMCommunicate OK [15:49:29]requested_item fd.num is exist - process it [15:49:29]SAM_PROTO_GetFieldsCounters [15:49:29]wFMCommunicate request_size=4 [15:49:29]MH_SAM_APDU [15:49:29]CAPDU: 80 13 00 00 [15:49:29]Write to MH i2c: E2 08 00 C6 23 80 13 00 00 00 00 00 00 65 [15:49:29]Write i2c OK [15:49:29]MH_I2C_Read... [15:49:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:29]Read from MH i2c: E2 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: E2 62 00 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: E2 62 00 C6 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 59 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [15:49:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 59 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:29]wFMCommunicate OK [15:49:29]SAM_PROTO_GetFieldsCounters done [15:49:29]requested_item shift.num is exist - process it [15:49:29]requested_item shift.opened is exist - process it [15:49:29]req_shift_opened [15:49:29]FM_GetShiftState [15:49:29]SAM_PROTO_GetShiftState [15:49:29]wFMCommunicate request_size=4 [15:49:29]MH_SAM_APDU [15:49:29]CAPDU: 80 13 01 00 [15:49:29]Write to MH i2c: E2 08 00 C7 23 80 13 01 00 00 00 00 00 67 [15:49:29]Write i2c OK [15:49:29]MH_I2C_Read... [15:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:29]Read from MH i2c: E2 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: E2 0E 00 [15:49:29]MH_I2C_Read... [15:49:29]Read from MH i2c: E2 0E 00 C7 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 DF [15:49:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:49:29]wFMCommunicate OK [15:49:29]SAM_PROTO_GetShiftState done [15:49:29]FM_GetShiftState done [15:49:29]req_shift_opened done [15:49:29]requested_item shift.open_date is exist - process it [15:49:29]req_shift_open_date [15:49:29]req_shift_open_date done [15:49:29]produce_requested_data done [15:49:29]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145753,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:49:29]process_action_free close_receipt [15:49:29]json_value_free [15:49:29]json_value_free done [15:49:29]process_json_proto returns [15:49:29]Send response to host [15:49:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145753,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:49:29]free response buf [15:49:29]execute_script done [15:49:29]execute_script returns [15:49:29]free content buf [15:49:29]Sock 9.Close socket [15:49:29]Sock 9.Thread stoped [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:41]int [15:49:41]Write to MH i2c: 01 00 00 C8 23 EB [15:49:41]*** FLAG_PRN_KEY set [15:49:41]Write i2c OK [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 07 00 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 07 00 C8 23 00 08 00 00 00 FF 0F 08 [15:49:41]state=0 [15:49:41]Key pressed [15:49:41]Feed [15:49:41]Write to MH i2c: D8 00 00 C9 23 C3 [15:49:41]Write i2c OK [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: D8 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: D8 01 00 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: D8 01 00 C9 23 00 C4 [15:49:41]int [15:49:41]Write to MH i2c: 01 00 00 CA 23 ED [15:49:41]Write i2c OK [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 07 00 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 07 00 CA 23 00 48 00 00 00 3C 00 78 [15:49:41]state=2 [15:49:41]Key pressed [15:49:41]int [15:49:41]Write to MH i2c: 01 00 00 CB 23 EE [15:49:41]*** FLAG_PRN_KEY reset [15:49:41]Write i2c OK [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 07 00 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 07 00 CB 23 00 00 00 00 00 FF 0F 03 [15:49:41]state=2 [15:49:41]Stop feed [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [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]accept exits with 7 [15:53:48]New connection [15:53:48]New thread 3066740068 created [15:53:48]Thread 3066596708 joined [15:53:48]Waiting for new connection... [15:53:48] Sock 7.Parse request [15:53:48]Sock 7.Check first char [15:53:48]Sock 7.First char is OK [15:53:48]request: POST /json_proto HTTP/1.0 [15:53:48]Method: POST [15:53:48]URL: /json_proto [15:53:48]Method is POST - this is cgi request [15:53:48]url: /json_proto [15:53:48]query_string will be loaded in cgi processing [15:53:48]execute_cgi json_proto POST (null) [15:53:48]execute_cgi path=json_proto method=POST [15:53:48]POST find Content-Length [15:53:48]Host: 172.17.40.195:8080 [15:53:48]Content-Length: 683 [15:53:48]Content-Type: application/json [15:53:48] [15:53:48]POST finish read [15:53:48]Found Content-Length = 683 [15:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.720, "sum" : 750.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:48]execute_script... [15:53: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)160510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.720, "sum" : 750.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:48]POST & json_proto [15:53:48]process_json_proto [15:53:48]json parsed OK: [15:53:48]protocol is kg_v1.0 [15:53:48]action value=close_receipt [15:53:48]process_action close_receipt [15:53:48]cmd_close_receipt [15:53:48]MH_GetDate [15:53:48]Write to MH i2c: F0 00 00 CC 23 DE [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: F0 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: F0 09 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: F0 09 00 CC 23 00 0E 62 1E 67 D5 8D 6C 64 0E [15:53:48]GetLastDocTimeStamp 1730044167 [15:53:48]current date 1730044430 [15:53:48]FM_GetShiftState [15:53:48]SAM_PROTO_GetShiftState [15:53:48]wFMCommunicate request_size=4 [15:53:48]MH_SAM_APDU [15:53:48]CAPDU: 80 13 01 00 [15:53:48]Write to MH i2c: E2 08 00 CD 23 80 13 01 00 00 00 00 00 6D [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:48]Read from MH i2c: E2 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 0E 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 0E 00 CD 23 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E5 [15:53:48]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:53:48]wFMCommunicate OK [15:53:48]SAM_PROTO_GetShiftState done [15:53:48]FM_GetShiftState done [15:53:48]opened in 1729988959 [15:53:48]opened+sec_in_day 1730075359 [15:53:48]quantity*price = 75038 [15:53:48]sum+1 = 75039 [15:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.69 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 177 27.10.2024 15:53 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145754 ФПД: 196153730129808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155351&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145754&fm=196153730129808&tin=02508201610067®Number=0000000000091683&sum=75000 [15:53:49]StoreToDocumentArchive [15:53:49]shift 545 fd 145754 [15:53:49]save to /storage/0545/doc_00145754 [15:53:49]save last doc name /storage/0545/doc_00145754 to /storage/kkm_last_doc_name [15:53:49]save OK [15:53:49]Clear old archive folders... [15:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:53:49]tlvbuf is 00437480 [15:53:49]SAM_PROTO_ClearQueue [15:53:49]wFMCommunicate request_size=4 [15:53:49]MH_SAM_APDU [15:53:49]CAPDU: 80 09 00 00 [15:53:49]Write to MH i2c: E2 08 00 DA 23 80 09 00 00 00 00 00 00 6F [15:53:49]Write i2c OK [15:53:49]MH_I2C_Read... [15:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:49]Read from MH i2c: E2 [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: E2 03 00 [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: E2 03 00 DA 23 00 90 00 71 [15:53:49]RAPDU: 90 00 [15:53:49]wFMCommunicate OK [15:53:49]SAM_PROTO_ClearQueue done [15:53:49]KKMCreateOFDPacket [15:53:49]OFDProtocolAddRootSTLVToBuf [15:53:49]FM_MakeSignedData [15:53:49]FM_MakeSignedData [15:53:49]SAM_PROTO_SignData [15:53:49]wFMCommunicate request_size=4 [15:53:49]MH_SAM_APDU [15:53:49]CAPDU: 80 0D 01 02 [15:53:49]Write to MH i2c: E2 08 00 DB 23 80 0D 01 02 00 00 00 00 77 [15:53:49]Write i2c OK [15:53:49]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 DB 23 00 90 00 72 [15:53:50]RAPDU: 90 00 [15:53:50]wFMCommunicate OK [15:53:50]wFMCommunicate request_size=255 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1E 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 0F 62 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5A 39 02 [15:53:50]Write to MH i2c: E2 02 01 DC 23 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1E 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 0F 62 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5A 39 02 00 00 A9 [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 DC 23 00 90 00 73 [15:53:50]RAPDU: 90 00 [15:53:50]wFMCommunicate OK [15:53:50]wFMCommunicate request_size=16 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B2 66 99 67 DF 90 [15:53:50]Write to MH i2c: E2 13 00 DD 23 80 0D 02 02 0B 00 00 35 04 06 00 B2 66 99 67 DF 90 00 00 56 [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 DD 23 00 90 00 74 [15:53:50]RAPDU: 90 00 [15:53:50]wFMCommunicate OK [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 0D 03 02 [15:53:50]Write to MH i2c: E2 08 00 DE 23 80 0D 03 02 00 00 00 00 7C [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 0B 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 0B 00 DE 23 00 E5 C8 3B 2F 51 86 C4 A1 90 00 D0 [15:53:50]RAPDU: E5 C8 3B 2F 51 86 C4 A1 90 00 [15:53:50]wFMCommunicate OK [15:53:50]SAM_PROTO_SignData done [15:53:50]FM_MakeSignedData done [15:53:50]CreateOFDProtocolMessage [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 11 00 00 [15:53:50]Write to MH i2c: E2 08 00 DF 23 80 11 00 00 00 00 00 00 7C [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 17 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 17 00 DF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 CF [15:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:53:50]wFMCommunicate OK [15:53:50]CreateOFDProtocolMessage done [15:53:50]OFDSenderStorePacket 145754 [15:53:50]StoreOFDPacket docnum=145754 [15:53:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 BC 16 0D 01 5E 3B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1E 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 0F 62 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5A 39 02 00 35 04 06 00 B2 66 99 67 DF 90 E5 C8 3B 2F 51 86 C4 A1 [15:53:50]CheckFolder [15:53:50]dirname=/storage/ofd_packets [15:53:50]CheckFolder done [15:53:50]ProducePacketName [15:53:50]name=ofd_packets/00145754 [15:53:50]NVStorageSaveData ofd_packets/00145754 [15:53:50]File name is /storage/ofd_packets/00145754 [15:53:50]Write 307 bytes [15:53:50]NVStorageSaveData done [15:53:50]OFDSenderStorePacket done [15:53:50]KKMCreateOFDPacket done [15:53:50]NVStorageSaveData kkm_last_timestamp [15:53:50]File name is /storage/kkm_last_timestamp [15:53:50]Write 4 bytes [15:53:50]NVStorageSaveData done [15:53:50]ExternCall_PrintAddStr [15:53:50]wPrintStart [15:53:50]Write to MH i2c: 01 00 00 E0 23 03 [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: 01 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: 01 07 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: 01 07 00 E0 23 00 00 00 00 00 FF 0F 18 [15:53:50]RasterBufferAndPrint [15:53:50]line Счет N : (1)160510 [15:53:50]line ИНН: 02508201610067 [15:53:50]line Контрольно-Кассовый Чек [15:53:50]line ПРОДАЖА [15:53:50]line ТРК (МРК, ГНК) : 31 [15:53:50]line Товар: 2710194240 [15:53:50]line D-Energy Дт-К-2 [15:53:50]line 9.720 * 77.20 [15:53:50]line = 750.38 [15:53:50]line НДС 12% НСП 1% [15:53:50]line > о реализуемом товаре [15:53:50]line ОКРУГЛЕНИЕ: -0.38 [15:53:50]line ИТОГО: 750.00 [15:53:50]line Внесено: 750.00 [15:53:50]line СДАЧА: 0.00 [15:53:50]line НСП 1% : 6.64 [15:53:50]line НДС 12% : 79.69 [15:53:50]line Наличными: 750.00 [15:53:50]line Безнал.: 0.00 [15:53:50]line Место: АЗС № 126 "Партнер Нефть" [15:53:50]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:53:50]line СНО: Общий режим [15:53:50]line Чек 177 27.10.2024 15:53 [15:53:50]line Смена: 545 ФФД: 1.0 [15:53:50]line ЗНМ: 0300000085 [15:53:50]line РНМ: 0000000000091683 [15:53:50]line Версия ККМ: 001 [15:53:50]line ФМ: 0000000000871745 [15:53:50]line ФД: 145754 [15:53:50]line ФПД: 196153730129808 [15:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155351&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145754&fm=196153730129808&tin=02508201610067®Number=0000000000091683&sum=75000 [15:53:50]OFD Sender: Processing packet 145754 [packets to send 206, broken 205] [15:53:50]ProducePacketName [15:53:50]name=ofd_packets/00145754 [15:53:50]OFD Sender: To server: pG, [15:53:50]CommunicateWithHost lk.salyk.kg:30040 [15:53:50]ConnectInit lk.salyk.kg [15:53:50]written 0, free lines is 4095 [15:53:50]Connected sock=9 [15:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 BC 16 0D 01 5E 3B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1E 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 0F 62 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5A 39 02 00 35 04 06 00 B2 66 99 67 DF 90 E5 C8 3B 2F 51 86 C4 A1 [15:53:51]Write to MH i2c: 01 00 00 0B 24 2F [15:53:51]Write i2c OK [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: 01 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: 01 07 00 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: 01 07 00 0B 24 00 00 00 00 00 BB 0C FD [15:53:51]RasterBufferAndPrint [15:53:51]line [15:53:51]line [15:53:51]line [15:53:51]line [15:53:51]line [15:53:51]written 0, free lines is 3266 [15:53:51]MH_Cut [15:53:51]Write to MH i2c: D1 01 00 12 24 01 08 [15:53:51]Write i2c OK [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: D1 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: D1 01 00 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: D1 01 00 12 24 00 07 [15:53:51]Write to MH i2c: 01 00 00 13 24 37 [15:53:51]Write i2c OK [15:53:51]MH_I2C_Read... [15:53:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 BD 34 47 00 82 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 31 37 34 35 10 04 04 00 5A 39 02 00 F4 03 04 00 3C 07 1E 67 B6 04 01 00 00 40 A9 28 A3 B8 86 A6 07 [15:53:51]CommunicateWithHost err = 0 [15:53:51]CheckOFDResponse [15:53:51]1017 (14) - 77093643461234 [15:53:51]1041 (16) - 0000000000871745 [15:53:51]1040 (4) - 145754 [15:53:51]1012 (4) - 27.10.2024 09:26 [15:53:51]1206 (1) - 0 [15:53:51]OFD Sender: Remove packet 145754 [15:53:51]ProducePacketName [15:53:51]name=ofd_packets/00145754 [15:53:51]NVStorageDeleteData [15:53:51]OFD Sender: No OFD packet to send [15:53:52]*** Cut start [15:53:52]*** Partial cut [15:53:52]*** CUTSNS_PIN = 1 [15:53:52]*** CUTSNS_PIN = 0 [15:53:52]*** Brake cut motor [15:53:52]Read from MH i2c: 01 [15:53:52]MH_I2C_Read... [15:53:52]*** Stop cut motor [15:53:52]*** Cut end [15:53:52]Read from MH i2c: 01 07 00 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: 01 07 00 13 24 00 00 00 00 00 FF 0F 4C [15:53:52]process_action close_receipt done [15:53:52]requested_data is exist [15:53:52]produce_requested_data [15:53:52]requested_item fm.sn is exist - process it [15:53:52]wFMCommunicate request_size=4 [15:53:52]MH_SAM_APDU [15:53:52]CAPDU: 80 11 00 00 [15:53:52]Write to MH i2c: E2 08 00 14 24 80 11 00 00 00 00 00 00 B2 [15:53:52]Write i2c OK [15:53:52]MH_I2C_Read... [15:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:52]Read from MH i2c: E2 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 17 00 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 17 00 14 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 05 [15:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:53:52]wFMCommunicate OK [15:53:52]requested_item fd.num is exist - process it [15:53:52]SAM_PROTO_GetFieldsCounters [15:53:52]wFMCommunicate request_size=4 [15:53:52]MH_SAM_APDU [15:53:52]CAPDU: 80 13 00 00 [15:53:52]Write to MH i2c: E2 08 00 15 24 80 13 00 00 00 00 00 00 B5 [15:53:52]Write i2c OK [15:53:52]MH_I2C_Read... [15:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:52]Read from MH i2c: E2 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 62 00 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 62 00 15 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [15:53:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:52]wFMCommunicate OK [15:53:52]SAM_PROTO_GetFieldsCounters done [15:53:52]requested_item shift.num is exist - process it [15:53:52]requested_item shift.opened is exist - process it [15:53:52]req_shift_opened [15:53:52]FM_GetShiftState [15:53:52]SAM_PROTO_GetShiftState [15:53:52]wFMCommunicate request_size=4 [15:53:52]MH_SAM_APDU [15:53:52]CAPDU: 80 13 01 00 [15:53:52]Write to MH i2c: E2 08 00 16 24 80 13 01 00 00 00 00 00 B7 [15:53:52]Write i2c OK [15:53:52]MH_I2C_Read... [15:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:52]Read from MH i2c: E2 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 0E 00 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 0E 00 16 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 2F [15:53:52]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:53:52]wFMCommunicate OK [15:53:52]SAM_PROTO_GetShiftState done [15:53:52]FM_GetShiftState done [15:53:52]req_shift_opened done [15:53:52]requested_item shift.open_date is exist - process it [15:53:52]req_shift_open_date [15:53:52]req_shift_open_date done [15:53:52]produce_requested_data done [15:53:52]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145754,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:53:52]process_action_free close_receipt [15:53:52]json_value_free [15:53:52]json_value_free done [15:53:52]process_json_proto returns [15:53:52]Send response to host [15:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145754,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:53:52]free response buf [15:53:52]execute_script done [15:53:52]execute_script returns [15:53:52]free content buf [15:53:52]Sock 7.Close socket [15:53:52]Sock 7.Thread stoped [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]int [15:54:56]Write to MH i2c: 01 00 00 17 24 3B [15:54:56]*** FLAG_PRN_KEY set [15:54:56]Write i2c OK [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: 01 [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: 01 07 00 [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: 01 07 00 17 24 00 08 00 00 00 FF 0F 58 [15:54:56]state=0 [15:54:56]Key pressed [15:54:56]Feed [15:54:56]Write to MH i2c: D8 00 00 18 24 13 [15:54:56]Write i2c OK [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: D8 [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: D8 01 00 [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: D8 01 00 18 24 00 14 [15:54:56]int [15:54:56]Write to MH i2c: 01 00 00 19 24 3D [15:54:56]Write i2c OK [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: 01 [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: 01 07 00 [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: 01 07 00 19 24 00 48 00 00 00 3C 00 C8 [15:54:56]state=2 [15:54:56]Key pressed [15:54:56]int [15:54:56]Write to MH i2c: 01 00 00 1A 24 3E [15:54:56]*** FLAG_PRN_KEY reset [15:54:56]Write i2c OK [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: 01 [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: 01 07 00 [15:54:56]MH_I2C_Read... [15:54:56]Read from MH i2c: 01 07 00 1A 24 00 00 00 00 00 F6 0F 4A [15:54:56]state=2 [15:54:56]Stop feed [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]accept exits with 10 [15:59:37]New connection [15:59:37]New thread 3066596708 created [15:59:37]Thread 3066740068 joined [15:59:37]Waiting for new connection... [15:59:37] Sock 10.Parse request [15:59:37]Sock 10.Check first char [15:59:37]Sock 10.First char is OK [15:59:37]request: POST /json_proto HTTP/1.0 [15:59:37]Method: POST [15:59:37]URL: /json_proto [15:59:37]Method is POST - this is cgi request [15:59:37]url: /json_proto [15:59:37]query_string will be loaded in cgi processing [15:59:37]execute_cgi json_proto POST (null) [15:59:37]execute_cgi path=json_proto method=POST [15:59:37]POST find Content-Length [15:59:37]Host: 172.17.40.195:8080 [15:59:37]Content-Length: 682 [15:59:37]Content-Type: application/json [15:59:37] [15:59:37]POST finish read [15:59:37]Found Content-Length = 682 [15:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 56.830, "sum" : 4216.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4216.00, "payments": [ { "type": 0, "sum" : 4216.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:37]execute_script... [15:59:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 56.830, "sum" : 4216.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4216.00, "payments": [ { "type": 0, "sum" : 4216.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:37]POST & json_proto [15:59:37]process_json_proto [15:59:37]json parsed OK: [15:59:37]protocol is kg_v1.0 [15:59:37]action value=close_receipt [15:59:37]process_action close_receipt [15:59:37]cmd_close_receipt [15:59:37]MH_GetDate [15:59:37]Write to MH i2c: F0 00 00 1B 24 2E [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]OFD Sender: No OFD packet to send [15:59:37]Read from MH i2c: F0 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: F0 09 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: F0 09 00 1B 24 00 6B 63 1E 67 D5 8D 6C 64 BC [15:59:37]GetLastDocTimeStamp 1730044431 [15:59:37]current date 1730044779 [15:59:37]FM_GetShiftState [15:59:37]SAM_PROTO_GetShiftState [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 13 01 00 [15:59:37]Write to MH i2c: E2 08 00 1C 24 80 13 01 00 00 00 00 00 BD [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 0E 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 0E 00 1C 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 35 [15:59:37]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:59:37]wFMCommunicate OK [15:59:37]SAM_PROTO_GetShiftState done [15:59:37]FM_GetShiftState done [15:59:37]opened in 1729988959 [15:59:37]opened+sec_in_day 1730075359 [15:59:37]quantity*price = 421678 [15:59:37]sum+1 = 421680 [15:59:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.79 ИТОГО: 4216.00 Внесено: 5000.00 СДАЧА: 784.00 НСП 1% : 37.32 НДС 12% : 447.80 Наличными: 4216.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 178 27.10.2024 15:59 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145755 ФПД: 170719545155624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155939&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145755&fm=170719545155624&tin=02508201610067®Number=0000000000091683&sum=421600 [15:59:38]StoreToDocumentArchive [15:59:38]shift 545 fd 145755 [15:59:38]save to /storage/0545/doc_00145755 [15:59:38]save last doc name /storage/0545/doc_00145755 to /storage/kkm_last_doc_name [15:59:38]save OK [15:59:38]Clear old archive folders... [15:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:38]tlvbuf is B6D745E0 [15:59:38]SAM_PROTO_ClearQueue [15:59:38]wFMCommunicate request_size=4 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 09 00 00 [15:59:38]Write to MH i2c: E2 08 00 29 24 80 09 00 00 00 00 00 00 BF [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 29 24 00 90 00 C1 [15:59:38]RAPDU: 90 00 [15:59:38]wFMCommunicate OK [15:59:38]SAM_PROTO_ClearQueue done [15:59:38]KKMCreateOFDPacket [15:59:38]OFDProtocolAddRootSTLVToBuf [15:59:38]FM_MakeSignedData [15:59:38]FM_MakeSignedData [15:59:38]SAM_PROTO_SignData [15:59:38]wFMCommunicate request_size=4 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 0D 01 02 [15:59:38]Write to MH i2c: E2 08 00 2A 24 80 0D 01 02 00 00 00 00 C7 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 2A 24 00 90 00 C2 [15:59:38]RAPDU: 90 00 [15:59:38]wFMCommunicate OK [15:59:38]wFMCommunicate request_size=255 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FE DD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2F 6F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 6E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC AE 00 00 00 00 07 04 06 00 E0 6E 06 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 6B 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5B 39 02 00 35 04 06 00 9B [15:59:38]Write to MH i2c: E2 02 01 2B 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FE DD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2F 6F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 6E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC AE 00 00 00 00 07 04 06 00 E0 6E 06 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 6B 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5B 39 02 00 35 04 06 00 9B 00 00 A9 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 2B 24 00 90 00 C3 [15:59:38]RAPDU: 90 00 [15:59:38]wFMCommunicate OK [15:59:38]wFMCommunicate request_size=10 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 0D 02 02 05 44 BD D8 60 28 [15:59:38]Write to MH i2c: E2 0D 00 2C 24 80 0D 02 02 05 00 44 BD D8 60 28 00 00 35 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 2C 24 00 90 00 C4 [15:59:38]RAPDU: 90 00 [15:59:38]wFMCommunicate OK [15:59:38]wFMCommunicate request_size=4 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 0D 03 02 [15:59:38]Write to MH i2c: E2 08 00 2D 24 80 0D 03 02 00 00 00 00 CC [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 0B 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 0B 00 2D 24 00 41 74 48 AF 25 F1 8C CE 90 00 E9 [15:59:38]RAPDU: 41 74 48 AF 25 F1 8C CE 90 00 [15:59:38]wFMCommunicate OK [15:59:38]SAM_PROTO_SignData done [15:59:38]FM_MakeSignedData done [15:59:38]CreateOFDProtocolMessage [15:59:38]wFMCommunicate request_size=4 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 11 00 00 [15:59:38]Write to MH i2c: E2 08 00 2E 24 80 11 00 00 00 00 00 00 CC [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 17 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 17 00 2E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1F [15:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:59:39]wFMCommunicate OK [15:59:39]CreateOFDProtocolMessage done [15:59:39]OFDSenderStorePacket 145755 [15:59:39]StoreOFDPacket docnum=145755 [15:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 59 4A 07 01 F0 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FE DD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2F 6F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 6E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC AE 00 00 00 00 07 04 06 00 E0 6E 06 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 6B 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5B 39 02 00 35 04 06 00 9B 44 BD D8 60 28 41 74 48 AF 25 F1 8C CE [15:59:39]CheckFolder [15:59:39]dirname=/storage/ofd_packets [15:59:39]CheckFolder done [15:59:39]ProducePacketName [15:59:39]name=ofd_packets/00145755 [15:59:39]NVStorageSaveData ofd_packets/00145755 [15:59:39]File name is /storage/ofd_packets/00145755 [15:59:39]Write 301 bytes [15:59:39]NVStorageSaveData done [15:59:39]OFDSenderStorePacket done [15:59:39]KKMCreateOFDPacket done [15:59:39]NVStorageSaveData kkm_last_timestamp [15:59:39]File name is /storage/kkm_last_timestamp [15:59:39]Write 4 bytes [15:59:39]NVStorageSaveData done [15:59:39]ExternCall_PrintAddStr [15:59:39]wPrintStart [15:59:39]Write to MH i2c: 01 00 00 2F 24 53 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 07 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 07 00 2F 24 00 00 00 00 00 FF 0F 68 [15:59:39]RasterBufferAndPrint [15:59:39]line Счет N : (1)160511 [15:59:39]line ИНН: 02508201610067 [15:59:39]line Контрольно-Кассовый Чек [15:59:39]line ПРОДАЖА [15:59:39]line ТРК (МРК, ГНК) : 53 [15:59:39]line Товар: 2710124500 [15:59:39]line Аи-95-К-3 [15:59:39]line 56.830 * 74.20 [15:59:39]line = 4216.79 [15:59:39]line НДС 12% НСП 1% [15:59:39]line > о реализуемом товаре [15:59:39]line ОКРУГЛЕНИЕ: -0.79 [15:59:39]line ИТОГО: 4216.00 [15:59:39]line Внесено: 5000.00 [15:59:39]line СДАЧА: 784.00 [15:59:39]line НСП 1% : 37.32 [15:59:39]line НДС 12% : 447.80 [15:59:39]line Наличными: 4216.00 [15:59:39]line Безнал.: 0.00 [15:59:39]line Место: АЗС № 126 "Партнер Нефть" [15:59:39]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [15:59:39]line СНО: Общий режим [15:59:39]line Чек 178 27.10.2024 15:59 [15:59:39]line Смена: 545 ФФД: 1.0 [15:59:39]line ЗНМ: 0300000085 [15:59:39]line РНМ: 0000000000091683 [15:59:39]line Версия ККМ: 001 [15:59:39]line ФМ: 0000000000871745 [15:59:39]line ФД: 145755 [15:59:39]line ФПД: 170719545155624 [15:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155939&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145755&fm=170719545155624&tin=02508201610067®Number=0000000000091683&sum=421600 [15:59:39]OFD Sender: Processing packet 145755 [packets to send 206, broken 205] [15:59:39]ProducePacketName [15:59:39]name=ofd_packets/00145755 [15:59:39]OFD Sender: To server: pG, [15:59:39]CommunicateWithHost lk.salyk.kg:30040 [15:59:39]ConnectInit lk.salyk.kg [15:59:39]written 0, free lines is 4095 [15:59:39]Connected sock=9 [15:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 59 4A 07 01 F0 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FE DD 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2F 6F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 6E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC AE 00 00 00 00 07 04 06 00 E0 6E 06 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 6B 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5B 39 02 00 35 04 06 00 9B 44 BD D8 60 28 41 74 48 AF 25 F1 8C CE [15:59:39]Write to MH i2c: 01 00 00 5A 24 7E [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 07 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 07 00 5A 24 00 00 00 00 00 C1 0C 52 [15:59:39]RasterBufferAndPrint [15:59:39]line [15:59:39]line [15:59:39]line [15:59:39]line [15:59:39]line [15:59:39]written 0, free lines is 3269 [15:59:39]MH_Cut [15:59:39]Write to MH i2c: D1 01 00 61 24 01 57 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: D1 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: D1 01 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: D1 01 00 61 24 00 56 [15:59:39]Write to MH i2c: 01 00 00 62 24 86 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 DD 0D 47 00 77 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5B 39 02 00 F4 03 04 00 98 08 1E 67 B6 04 01 00 00 0D E9 FB 57 69 F5 4B 03 [15:59:39]CommunicateWithHost err = 0 [15:59:39]CheckOFDResponse [15:59:39]1017 (14) - 77093643461234 [15:59:39]1041 (16) - 0000000000871745 [15:59:39]1040 (4) - 145755 [15:59:39]1012 (4) - 27.10.2024 09:32 [15:59:39]1206 (1) - 0 [15:59:39]OFD Sender: Remove packet 145755 [15:59:39]ProducePacketName [15:59:39]name=ofd_packets/00145755 [15:59:39]NVStorageDeleteData [15:59:40]OFD Sender: No OFD packet to send [15:59:40]*** Cut start [15:59:40]*** Partial cut [15:59:40]*** CUTSNS_PIN = 1 [15:59:40]*** CUTSNS_PIN = 0 [15:59:40]*** Brake cut motor [15:59:41]Read from MH i2c: 01 [15:59:41]MH_I2C_Read... [15:59:41]*** Stop cut motor [15:59:41]*** Cut end [15:59:41]Read from MH i2c: 01 07 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: 01 07 00 62 24 00 00 00 00 00 FF 0F 9B [15:59:41]process_action close_receipt done [15:59:41]requested_data is exist [15:59:41]produce_requested_data [15:59:41]requested_item fm.sn is exist - process it [15:59:41]wFMCommunicate request_size=4 [15:59:41]MH_SAM_APDU [15:59:41]CAPDU: 80 11 00 00 [15:59:41]Write to MH i2c: E2 08 00 63 24 80 11 00 00 00 00 00 00 01 [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:41]Read from MH i2c: E2 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 17 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 17 00 63 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 54 [15:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [15:59:41]wFMCommunicate OK [15:59:41]requested_item fd.num is exist - process it [15:59:41]SAM_PROTO_GetFieldsCounters [15:59:41]wFMCommunicate request_size=4 [15:59:41]MH_SAM_APDU [15:59:41]CAPDU: 80 13 00 00 [15:59:41]Write to MH i2c: E2 08 00 64 24 80 13 00 00 00 00 00 00 04 [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:41]Read from MH i2c: E2 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 62 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 62 00 64 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [15:59:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:41]wFMCommunicate OK [15:59:41]SAM_PROTO_GetFieldsCounters done [15:59:41]requested_item shift.num is exist - process it [15:59:41]requested_item shift.opened is exist - process it [15:59:41]req_shift_opened [15:59:41]FM_GetShiftState [15:59:41]SAM_PROTO_GetShiftState [15:59:41]wFMCommunicate request_size=4 [15:59:41]MH_SAM_APDU [15:59:41]CAPDU: 80 13 01 00 [15:59:41]Write to MH i2c: E2 08 00 65 24 80 13 01 00 00 00 00 00 06 [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:41]Read from MH i2c: E2 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 0E 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 0E 00 65 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7E [15:59:41]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [15:59:41]wFMCommunicate OK [15:59:41]SAM_PROTO_GetShiftState done [15:59:41]FM_GetShiftState done [15:59:41]req_shift_opened done [15:59:41]requested_item shift.open_date is exist - process it [15:59:41]req_shift_open_date [15:59:41]req_shift_open_date done [15:59:41]produce_requested_data done [15:59:41]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145755,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [15:59:41]process_action_free close_receipt [15:59:41]json_value_free [15:59:41]json_value_free done [15:59:41]process_json_proto returns [15:59:41]Send response to host [15:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145755,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [15:59:41]free response buf [15:59:41]execute_script done [15:59:41]execute_script returns [15:59:41]free content buf [15:59:41]Sock 10.Close socket [15:59:41]Sock 10.Thread stoped [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:26]accept exits with 7 [16:00:26]New connection [16:00:26]New thread 3066740068 created [16:00:26]Thread 3066596708 joined [16:00:26]Waiting for new connection... [16:00:26] Sock 7.Parse request [16:00:26]Sock 7.Check first char [16:00:26]Sock 7.First char is OK [16:00:26]request: POST /json_proto HTTP/1.0 [16:00:26]Method: POST [16:00:26]URL: /json_proto [16:00:26]Method is POST - this is cgi request [16:00:26]url: /json_proto [16:00:26]query_string will be loaded in cgi processing [16:00:26]execute_cgi json_proto POST (null) [16:00:26]execute_cgi path=json_proto method=POST [16:00:26]POST find Content-Length [16:00:26]Host: 172.17.40.195:8080 [16:00:26]Content-Length: 679 [16:00:26]Content-Type: application/json [16:00:26] [16:00:26]POST finish read [16:00:26]Found Content-Length = 679 [16:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 47.360, "sum" : 3608.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3608.00, "payments": [ { "type": 0, "sum" : 3608.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:26]execute_script... [16:00: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)160512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 47.360, "sum" : 3608.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3608.00, "payments": [ { "type": 0, "sum" : 3608.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:26]POST & json_proto [16:00:26]process_json_proto [16:00:26]json parsed OK: [16:00:26]protocol is kg_v1.0 [16:00:26]action value=close_receipt [16:00:26]process_action close_receipt [16:00:26]cmd_close_receipt [16:00:26]MH_GetDate [16:00:26]Write to MH i2c: F0 00 00 66 24 79 [16:00:26]Write i2c OK [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: F0 [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: F0 09 00 [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: F0 09 00 66 24 00 9C 63 1E 67 D5 8D 6C 64 38 [16:00:26]GetLastDocTimeStamp 1730044779 [16:00:26]current date 1730044828 [16:00:26]FM_GetShiftState [16:00:26]SAM_PROTO_GetShiftState [16:00:26]wFMCommunicate request_size=4 [16:00:26]MH_SAM_APDU [16:00:26]CAPDU: 80 13 01 00 [16:00:26]Write to MH i2c: E2 08 00 67 24 80 13 01 00 00 00 00 00 08 [16:00:26]Write i2c OK [16:00:26]MH_I2C_Read... [16:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:26]Read from MH i2c: E2 [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: E2 0E 00 [16:00:26]MH_I2C_Read... [16:00:26]Read from MH i2c: E2 0E 00 67 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 80 [16:00:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:00:26]wFMCommunicate OK [16:00:26]SAM_PROTO_GetShiftState done [16:00:26]FM_GetShiftState done [16:00:26]opened in 1729988959 [16:00:26]opened+sec_in_day 1730075359 [16:00:26]quantity*price = 360883 [16:00:26]sum+1 = 360884 [16:00:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.83 ИТОГО: 3608.00 Внесено: 5000.00 СДАЧА: 1392.00 НСП 1% : 31.94 НДС 12% : 383.24 Наличными: 3608.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 179 27.10.2024 16:00 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145756 ФПД: 106701956019760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160028&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145756&fm=106701956019760&tin=02508201610067®Number=0000000000091683&sum=360800 [16:00:27]StoreToDocumentArchive [16:00:27]shift 545 fd 145756 [16:00:27]save to /storage/0545/doc_00145756 [16:00:27]save last doc name /storage/0545/doc_00145756 to /storage/kkm_last_doc_name [16:00:27]save OK [16:00:27]Clear old archive folders... [16:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:00:27]tlvbuf is B6F21590 [16:00:27]SAM_PROTO_ClearQueue [16:00:27]wFMCommunicate request_size=4 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 09 00 00 [16:00:27]Write to MH i2c: E2 08 00 74 24 80 09 00 00 00 00 00 00 0A [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:27]Read from MH i2c: E2 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 74 24 00 90 00 0C [16:00:27]RAPDU: 90 00 [16:00:27]wFMCommunicate OK [16:00:27]SAM_PROTO_ClearQueue done [16:00:27]KKMCreateOFDPacket [16:00:27]OFDProtocolAddRootSTLVToBuf [16:00:27]FM_MakeSignedData [16:00:27]FM_MakeSignedData [16:00:27]SAM_PROTO_SignData [16:00:27]wFMCommunicate request_size=4 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 0D 01 02 [16:00:27]Write to MH i2c: E2 08 00 75 24 80 0D 01 02 00 00 00 00 12 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:27]Read from MH i2c: E2 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 75 24 00 90 00 0D [16:00:27]RAPDU: 90 00 [16:00:27]wFMCommunicate OK [16:00:27]wFMCommunicate request_size=255 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 00 B9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 81 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 81 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 95 00 00 00 00 07 04 06 00 60 81 05 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 9C 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5C 39 02 00 35 04 06 00 61 0B 7C 2F [16:00:27]Write to MH i2c: E2 02 01 76 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 00 B9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 81 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 81 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 95 00 00 00 00 07 04 06 00 60 81 05 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 9C 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5C 39 02 00 35 04 06 00 61 0B 7C 2F 00 00 E4 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:28]Read from MH i2c: E2 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 03 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 03 00 76 24 00 90 00 0E [16:00:28]RAPDU: 90 00 [16:00:28]wFMCommunicate OK [16:00:28]wFMCommunicate request_size=7 [16:00:28]MH_SAM_APDU [16:00:28]CAPDU: 80 0D 02 02 02 76 30 [16:00:28]Write to MH i2c: E2 0A 00 77 24 80 0D 02 02 02 00 76 30 00 00 BF [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:28]Read from MH i2c: E2 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 03 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 03 00 77 24 00 90 00 0F [16:00:28]RAPDU: 90 00 [16:00:28]wFMCommunicate OK [16:00:28]wFMCommunicate request_size=4 [16:00:28]MH_SAM_APDU [16:00:28]CAPDU: 80 0D 03 02 [16:00:28]Write to MH i2c: E2 08 00 78 24 80 0D 03 02 00 00 00 00 17 [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:28]Read from MH i2c: E2 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 0B 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 0B 00 78 24 00 91 4F C6 D3 57 08 3E 06 90 00 34 [16:00:28]RAPDU: 91 4F C6 D3 57 08 3E 06 90 00 [16:00:28]wFMCommunicate OK [16:00:28]SAM_PROTO_SignData done [16:00:28]FM_MakeSignedData done [16:00:28]CreateOFDProtocolMessage [16:00:28]wFMCommunicate request_size=4 [16:00:28]MH_SAM_APDU [16:00:28]CAPDU: 80 11 00 00 [16:00:28]Write to MH i2c: E2 08 00 79 24 80 11 00 00 00 00 00 00 17 [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:28]Read from MH i2c: E2 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 17 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 17 00 79 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6A [16:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:00:28]wFMCommunicate OK [16:00:28]CreateOFDProtocolMessage done [16:00:28]OFDSenderStorePacket 145756 [16:00:28]StoreOFDPacket docnum=145756 [16:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 98 F3 04 01 B6 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 00 B9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 81 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 81 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 95 00 00 00 00 07 04 06 00 60 81 05 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 9C 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5C 39 02 00 35 04 06 00 61 0B 7C 2F 76 30 91 4F C6 D3 57 08 3E 06 [16:00:28]CheckFolder [16:00:28]dirname=/storage/ofd_packets [16:00:28]CheckFolder done [16:00:28]ProducePacketName [16:00:28]name=ofd_packets/00145756 [16:00:28]NVStorageSaveData ofd_packets/00145756 [16:00:28]File name is /storage/ofd_packets/00145756 [16:00:28]Write 298 bytes [16:00:28]NVStorageSaveData done [16:00:28]OFDSenderStorePacket done [16:00:28]KKMCreateOFDPacket done [16:00:28]NVStorageSaveData kkm_last_timestamp [16:00:28]File name is /storage/kkm_last_timestamp [16:00:28]Write 4 bytes [16:00:28]NVStorageSaveData done [16:00:28]ExternCall_PrintAddStr [16:00:28]wPrintStart [16:00:28]Write to MH i2c: 01 00 00 7A 24 9E [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: 01 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: 01 07 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: 01 07 00 7A 24 00 00 00 00 00 FF 0F B3 [16:00:28]RasterBufferAndPrint [16:00:28]line Счет N : (1)160512 [16:00:28]line ИНН: 02508201610067 [16:00:28]line Контрольно-Кассовый Чек [16:00:28]line ПРОДАЖА [16:00:28]line ТРК (МРК, ГНК) : 11 [16:00:28]line Товар: 2710194210 [16:00:28]line ДТ-К-2 [16:00:28]line 47.360 * 76.20 [16:00:28]line = 3608.83 [16:00:28]line НДС 12% НСП 1% [16:00:28]line > о реализуемом товаре [16:00:28]line ОКРУГЛЕНИЕ: -0.83 [16:00:28]line ИТОГО: 3608.00 [16:00:28]line Внесено: 5000.00 [16:00:28]line СДАЧА: 1392.00 [16:00:28]line НСП 1% : 31.94 [16:00:28]line НДС 12% : 383.24 [16:00:28]line Наличными: 3608.00 [16:00:28]line Безнал.: 0.00 [16:00:28]line Место: АЗС № 126 "Партнер Нефть" [16:00:28]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:00:28]line СНО: Общий режим [16:00:28]line Чек 179 27.10.2024 16:00 [16:00:28]line Смена: 545 ФФД: 1.0 [16:00:28]line ЗНМ: 0300000085 [16:00:28]line РНМ: 0000000000091683 [16:00:28]line Версия ККМ: 001 [16:00:28]line ФМ: 0000000000871745 [16:00:28]line ФД: 145756 [16:00:28]line ФПД: 106701956019760 [16:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160028&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145756&fm=106701956019760&tin=02508201610067®Number=0000000000091683&sum=360800 [16:00:28]OFD Sender: Processing packet 145756 [packets to send 206, broken 205] [16:00:28]ProducePacketName [16:00:28]name=ofd_packets/00145756 [16:00:28]OFD Sender: To server: pG, [16:00:28]CommunicateWithHost lk.salyk.kg:30040 [16:00:28]ConnectInit lk.salyk.kg [16:00:28]written 0, free lines is 4095 [16:00:28]Connected sock=11 [16:00:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 98 F3 04 01 B6 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 00 B9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B3 81 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 81 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 95 00 00 00 00 07 04 06 00 60 81 05 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 9C 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5C 39 02 00 35 04 06 00 61 0B 7C 2F 76 30 91 4F C6 D3 57 08 3E 06 [16:00:28]Write to MH i2c: 01 00 00 A5 24 C9 [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: 01 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: 01 07 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: 01 07 00 A5 24 00 00 00 00 00 BA 0C 96 [16:00:28]RasterBufferAndPrint [16:00:28]line [16:00:28]line [16:00:28]line [16:00:28]line [16:00:28]line [16:00:28]written 0, free lines is 3264 [16:00:28]MH_Cut [16:00:28]Write to MH i2c: D1 01 00 AC 24 01 A2 [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: D1 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: D1 01 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: D1 01 00 AC 24 00 A1 [16:00:28]Write to MH i2c: 01 00 00 AD 24 D1 [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 62 78 47 00 B0 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 31 37 34 35 10 04 04 00 5C 39 02 00 F4 03 04 00 C9 08 1E 67 B6 04 01 00 00 FC 46 C7 96 BB DF 02 6E [16:00:29]CommunicateWithHost err = 0 [16:00:29]CheckOFDResponse [16:00:29]1017 (14) - 77093643461234 [16:00:29]1041 (16) - 0000000000871745 [16:00:29]1040 (4) - 145756 [16:00:29]1012 (4) - 27.10.2024 09:32 [16:00:29]1206 (1) - 0 [16:00:29]OFD Sender: Remove packet 145756 [16:00:29]ProducePacketName [16:00:29]name=ofd_packets/00145756 [16:00:29]NVStorageDeleteData [16:00:29]OFD Sender: No OFD packet to send [16:00:29]*** Cut start [16:00:29]*** Partial cut [16:00:29]*** CUTSNS_PIN = 1 [16:00:29]*** CUTSNS_PIN = 0 [16:00:30]*** Brake cut motor [16:00:30]Read from MH i2c: 01 [16:00:30]MH_I2C_Read... [16:00:30]*** Stop cut motor [16:00:30]*** Cut end [16:00:30]Read from MH i2c: 01 07 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: 01 07 00 AD 24 00 00 00 00 00 FF 0F E6 [16:00:30]process_action close_receipt done [16:00:30]requested_data is exist [16:00:30]produce_requested_data [16:00:30]requested_item fm.sn is exist - process it [16:00:30]wFMCommunicate request_size=4 [16:00:30]MH_SAM_APDU [16:00:30]CAPDU: 80 11 00 00 [16:00:30]Write to MH i2c: E2 08 00 AE 24 80 11 00 00 00 00 00 00 4C [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:30]Read from MH i2c: E2 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 17 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 17 00 AE 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9F [16:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:00:30]wFMCommunicate OK [16:00:30]requested_item fd.num is exist - process it [16:00:30]SAM_PROTO_GetFieldsCounters [16:00:30]wFMCommunicate request_size=4 [16:00:30]MH_SAM_APDU [16:00:30]CAPDU: 80 13 00 00 [16:00:30]Write to MH i2c: E2 08 00 AF 24 80 13 00 00 00 00 00 00 4F [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:30]Read from MH i2c: E2 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 62 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 62 00 AF 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:00:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:30]wFMCommunicate OK [16:00:30]SAM_PROTO_GetFieldsCounters done [16:00:30]requested_item shift.num is exist - process it [16:00:30]requested_item shift.opened is exist - process it [16:00:30]req_shift_opened [16:00:30]FM_GetShiftState [16:00:30]SAM_PROTO_GetShiftState [16:00:30]wFMCommunicate request_size=4 [16:00:30]MH_SAM_APDU [16:00:30]CAPDU: 80 13 01 00 [16:00:30]Write to MH i2c: E2 08 00 B0 24 80 13 01 00 00 00 00 00 51 [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:30]Read from MH i2c: E2 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 0E 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 0E 00 B0 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C9 [16:00:30]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:00:30]wFMCommunicate OK [16:00:30]SAM_PROTO_GetShiftState done [16:00:30]FM_GetShiftState done [16:00:30]req_shift_opened done [16:00:30]requested_item shift.open_date is exist - process it [16:00:30]req_shift_open_date [16:00:30]req_shift_open_date done [16:00:30]produce_requested_data done [16:00:30]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145756,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:00:30]process_action_free close_receipt [16:00:30]json_value_free [16:00:30]json_value_free done [16:00:30]process_json_proto returns [16:00:30]Send response to host [16:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145756,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:00:30]free response buf [16:00:30]execute_script done [16:00:30]execute_script returns [16:00:30]free content buf [16:00:30]Sock 7.Close socket [16:00:30]Sock 7.Thread stoped [16:00:34]OFD Sender: No OFD packet to send [16:00:36]int [16:00:36]Write to MH i2c: 01 00 00 B1 24 D5 [16:00:36]*** FLAG_PRN_KEY set [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 B1 24 00 08 00 00 00 FF 0F F2 [16:00:36]state=0 [16:00:36]Key pressed [16:00:36]Feed [16:00:36]Write to MH i2c: D8 00 00 B2 24 AD [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: D8 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: D8 01 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: D8 01 00 B2 24 00 AE [16:00:36]int [16:00:36]Write to MH i2c: 01 00 00 B3 24 D7 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 B3 24 00 48 00 00 00 3C 00 62 [16:00:36]state=2 [16:00:36]Key pressed [16:00:36]int [16:00:36]Write to MH i2c: 01 00 00 B4 24 D8 [16:00:36]*** FLAG_PRN_KEY reset [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 B4 24 00 00 00 00 00 FC 0F EA [16:00:36]state=2 [16:00:36]Stop feed [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]accept exits with 9 [16:01:14]New connection [16:01:14]New thread 3066596708 created [16:01:14]Thread 3066740068 joined [16:01:14]Waiting for new connection... [16:01:14] Sock 9.Parse request [16:01:14]Sock 9.Check first char [16:01:14]Sock 9.First char is OK [16:01:14]request: POST /json_proto HTTP/1.0 [16:01:14]Method: POST [16:01:14]URL: /json_proto [16:01:14]Method is POST - this is cgi request [16:01:14]url: /json_proto [16:01:14]query_string will be loaded in cgi processing [16:01:14]execute_cgi json_proto POST (null) [16:01:14]execute_cgi path=json_proto method=POST [16:01:14]POST find Content-Length [16:01:14]Host: 172.17.40.195:8080 [16:01:14]Content-Length: 682 [16:01:14]Content-Type: application/json [16:01:14] [16:01:14]POST finish read [16:01:14]Found Content-Length = 682 [16:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:14]execute_script... [16:01: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)160513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:14]POST & json_proto [16:01:14]process_json_proto [16:01:14]json parsed OK: [16:01:14]protocol is kg_v1.0 [16:01:14]action value=close_receipt [16:01:14]process_action close_receipt [16:01:14]cmd_close_receipt [16:01:14]MH_GetDate [16:01:14]Write to MH i2c: F0 00 00 B5 24 C8 [16:01:14]Write i2c OK [16:01:14]MH_I2C_Read... [16:01:14]Read from MH i2c: F0 [16:01:14]MH_I2C_Read... [16:01:14]Read from MH i2c: F0 09 00 [16:01:14]MH_I2C_Read... [16:01:14]Read from MH i2c: F0 09 00 B5 24 00 CC 63 1E 67 D5 8D 6C 64 B7 [16:01:14]GetLastDocTimeStamp 1730044828 [16:01:14]current date 1730044876 [16:01:14]FM_GetShiftState [16:01:14]SAM_PROTO_GetShiftState [16:01:14]wFMCommunicate request_size=4 [16:01:14]MH_SAM_APDU [16:01:14]CAPDU: 80 13 01 00 [16:01:14]Write to MH i2c: E2 08 00 B6 24 80 13 01 00 00 00 00 00 57 [16:01:14]Write i2c OK [16:01:14]MH_I2C_Read... [16:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:14]Read from MH i2c: E2 [16:01:14]MH_I2C_Read... [16:01:14]Read from MH i2c: E2 0E 00 [16:01:14]MH_I2C_Read... [16:01:14]Read from MH i2c: E2 0E 00 B6 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CF [16:01:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:01:14]wFMCommunicate OK [16:01:14]SAM_PROTO_GetShiftState done [16:01:14]FM_GetShiftState done [16:01:14]opened in 1729988959 [16:01:14]opened+sec_in_day 1730075359 [16:01:14]quantity*price = 160049 [16:01:14]sum+1 = 160050 [16:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 180 27.10.2024 16:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145757 ФПД: 220928853721586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160116&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145757&fm=220928853721586&tin=02508201610067®Number=0000000000091683&sum=160000 [16:01:15]StoreToDocumentArchive [16:01:15]shift 545 fd 145757 [16:01:15]save to /storage/0545/doc_00145757 [16:01:15]save last doc name /storage/0545/doc_00145757 to /storage/kkm_last_doc_name [16:01:15]save OK [16:01:15]Clear old archive folders... [16:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:15]tlvbuf is 004F7540 [16:01:15]SAM_PROTO_ClearQueue [16:01:15]wFMCommunicate request_size=4 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 09 00 00 [16:01:15]Write to MH i2c: E2 08 00 C3 24 80 09 00 00 00 00 00 00 59 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 03 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 03 00 C3 24 00 90 00 5B [16:01:15]RAPDU: 90 00 [16:01:15]wFMCommunicate OK [16:01:15]SAM_PROTO_ClearQueue done [16:01:15]KKMCreateOFDPacket [16:01:15]OFDProtocolAddRootSTLVToBuf [16:01:15]FM_MakeSignedData [16:01:15]FM_MakeSignedData [16:01:15]SAM_PROTO_SignData [16:01:15]wFMCommunicate request_size=4 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 0D 01 02 [16:01:15]Write to MH i2c: E2 08 00 C4 24 80 0D 01 02 00 00 00 00 61 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 03 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 03 00 C4 24 00 90 00 5C [16:01:15]RAPDU: 90 00 [16:01:15]wFMCommunicate OK [16:01:15]wFMCommunicate request_size=255 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 CC 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5D 39 02 00 35 04 06 00 C8 [16:01:15]Write to MH i2c: E2 02 01 C5 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 CC 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5D 39 02 00 35 04 06 00 C8 00 00 C5 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 03 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 03 00 C5 24 00 90 00 5D [16:01:15]RAPDU: 90 00 [16:01:15]wFMCommunicate OK [16:01:15]wFMCommunicate request_size=10 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 0D 02 02 05 EF 01 D8 C1 F2 [16:01:15]Write to MH i2c: E2 0D 00 C6 24 80 0D 02 02 05 00 EF 01 D8 C1 F2 00 00 E9 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 03 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 03 00 C6 24 00 90 00 5E [16:01:15]RAPDU: 90 00 [16:01:15]wFMCommunicate OK [16:01:15]wFMCommunicate request_size=4 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 0D 03 02 [16:01:15]Write to MH i2c: E2 08 00 C7 24 80 0D 03 02 00 00 00 00 66 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 0B 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 0B 00 C7 24 00 2E 9D 8C 79 8C FC 0F 36 90 00 04 [16:01:15]RAPDU: 2E 9D 8C 79 8C FC 0F 36 90 00 [16:01:15]wFMCommunicate OK [16:01:15]SAM_PROTO_SignData done [16:01:15]FM_MakeSignedData done [16:01:15]CreateOFDProtocolMessage [16:01:15]wFMCommunicate request_size=4 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 11 00 00 [16:01:15]Write to MH i2c: E2 08 00 C8 24 80 11 00 00 00 00 00 00 66 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 17 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 17 00 C8 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B9 [16:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:01:15]wFMCommunicate OK [16:01:15]CreateOFDProtocolMessage done [16:01:15]OFDSenderStorePacket 145757 [16:01:15]StoreOFDPacket docnum=145757 [16:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 13 0F 07 01 6A 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 CC 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5D 39 02 00 35 04 06 00 C8 EF 01 D8 C1 F2 2E 9D 8C 79 8C FC 0F 36 [16:01:15]CheckFolder [16:01:15]dirname=/storage/ofd_packets [16:01:15]CheckFolder done [16:01:15]ProducePacketName [16:01:15]name=ofd_packets/00145757 [16:01:15]NVStorageSaveData ofd_packets/00145757 [16:01:15]File name is /storage/ofd_packets/00145757 [16:01:15]Write 301 bytes [16:01:15]NVStorageSaveData done [16:01:15]OFDSenderStorePacket done [16:01:15]KKMCreateOFDPacket done [16:01:15]NVStorageSaveData kkm_last_timestamp [16:01:15]File name is /storage/kkm_last_timestamp [16:01:15]Write 4 bytes [16:01:15]NVStorageSaveData done [16:01:15]ExternCall_PrintAddStr [16:01:15]wPrintStart [16:01:15]Write to MH i2c: 01 00 00 C9 24 ED [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: 01 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: 01 07 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: 01 07 00 C9 24 00 00 00 00 00 FF 0F 02 [16:01:15]RasterBufferAndPrint [16:01:15]line Счет N : (1)160513 [16:01:15]line ИНН: 02508201610067 [16:01:15]line Контрольно-Кассовый Чек [16:01:15]line ПРОДАЖА [16:01:15]line ТРК (МРК, ГНК) : 33 [16:01:15]line Товар: 2710124500 [16:01:15]line Аи-95-К-3 [16:01:15]line 21.570 * 74.20 [16:01:15]line = 1600.49 [16:01:15]line НДС 12% НСП 1% [16:01:15]line > о реализуемом товаре [16:01:15]line ОКРУГЛЕНИЕ: -0.49 [16:01:15]line ИТОГО: 1600.00 [16:01:15]line Внесено: 1600.00 [16:01:15]line СДАЧА: 0.00 [16:01:15]line НСП 1% : 14.16 [16:01:15]line НДС 12% : 169.96 [16:01:15]line Наличными: 1600.00 [16:01:15]line Безнал.: 0.00 [16:01:15]line Место: АЗС № 126 "Партнер Нефть" [16:01:15]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:01:15]line СНО: Общий режим [16:01:15]line Чек 180 27.10.2024 16:01 [16:01:15]line Смена: 545 ФФД: 1.0 [16:01:15]line ЗНМ: 0300000085 [16:01:15]line РНМ: 0000000000091683 [16:01:15]line Версия ККМ: 001 [16:01:15]line ФМ: 0000000000871745 [16:01:15]line ФД: 145757 [16:01:15]line ФПД: 220928853721586 [16:01:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160116&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145757&fm=220928853721586&tin=02508201610067®Number=0000000000091683&sum=160000 [16:01:16]OFD Sender: Processing packet 145757 [packets to send 206, broken 205] [16:01:16]ProducePacketName [16:01:16]name=ofd_packets/00145757 [16:01:16]OFD Sender: To server: pG, [16:01:16]CommunicateWithHost lk.salyk.kg:30040 [16:01:16]ConnectInit lk.salyk.kg [16:01:16]written 0, free lines is 4095 [16:01:16]Connected sock=10 [16:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 13 0F 07 01 6A 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 CC 63 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5D 39 02 00 35 04 06 00 C8 EF 01 D8 C1 F2 2E 9D 8C 79 8C FC 0F 36 [16:01:16]Write to MH i2c: 01 00 00 F4 24 18 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: 01 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: 01 07 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: 01 07 00 F4 24 00 00 00 00 00 BB 0C E6 [16:01:16]RasterBufferAndPrint [16:01:16]line [16:01:16]line [16:01:16]line [16:01:16]line [16:01:16]line [16:01:16]written 0, free lines is 3266 [16:01:16]MH_Cut [16:01:16]Write to MH i2c: D1 01 00 FB 24 01 F1 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: D1 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: D1 01 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: D1 01 00 FB 24 00 F0 [16:01:16]Write to MH i2c: 01 00 00 FC 24 20 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 31 BE 47 00 8C F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5D 39 02 00 F4 03 04 00 F9 08 1E 67 B6 04 01 00 00 F0 2D EA 12 63 FE 88 B2 [16:01:16]CommunicateWithHost err = 0 [16:01:16]CheckOFDResponse [16:01:16]1017 (14) - 77093643461234 [16:01:16]1041 (16) - 0000000000871745 [16:01:16]1040 (4) - 145757 [16:01:16]1012 (4) - 27.10.2024 09:33 [16:01:16]1206 (1) - 0 [16:01:16]OFD Sender: Remove packet 145757 [16:01:16]ProducePacketName [16:01:16]name=ofd_packets/00145757 [16:01:16]NVStorageDeleteData [16:01:17]OFD Sender: No OFD packet to send [16:01:17]*** Cut start [16:01:17]*** Partial cut [16:01:17]*** CUTSNS_PIN = 1 [16:01:17]*** CUTSNS_PIN = 0 [16:01:17]*** Brake cut motor [16:01:18]Read from MH i2c: 01 [16:01:18]MH_I2C_Read... [16:01:18]*** Stop cut motor [16:01:18]*** Cut end [16:01:18]Read from MH i2c: 01 07 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: 01 07 00 FC 24 00 00 00 00 00 FF 0F 35 [16:01:18]process_action close_receipt done [16:01:18]requested_data is exist [16:01:18]produce_requested_data [16:01:18]requested_item fm.sn is exist - process it [16:01:18]wFMCommunicate request_size=4 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 11 00 00 [16:01:18]Write to MH i2c: E2 08 00 FD 24 80 11 00 00 00 00 00 00 9B [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 17 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 17 00 FD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EE [16:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:01:18]wFMCommunicate OK [16:01:18]requested_item fd.num is exist - process it [16:01:18]SAM_PROTO_GetFieldsCounters [16:01:18]wFMCommunicate request_size=4 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 13 00 00 [16:01:18]Write to MH i2c: E2 08 00 FE 24 80 13 00 00 00 00 00 00 9E [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 62 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 62 00 FE 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [16:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:18]wFMCommunicate OK [16:01:18]SAM_PROTO_GetFieldsCounters done [16:01:18]requested_item shift.num is exist - process it [16:01:18]requested_item shift.opened is exist - process it [16:01:18]req_shift_opened [16:01:18]FM_GetShiftState [16:01:18]SAM_PROTO_GetShiftState [16:01:18]wFMCommunicate request_size=4 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 13 01 00 [16:01:18]Write to MH i2c: E2 08 00 FF 24 80 13 01 00 00 00 00 00 A0 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 0E 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 0E 00 FF 24 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 18 [16:01:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:01:18]wFMCommunicate OK [16:01:18]SAM_PROTO_GetShiftState done [16:01:18]FM_GetShiftState done [16:01:18]req_shift_opened done [16:01:18]requested_item shift.open_date is exist - process it [16:01:18]req_shift_open_date [16:01:18]req_shift_open_date done [16:01:18]produce_requested_data done [16:01:18]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145757,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:01:18]process_action_free close_receipt [16:01:18]json_value_free [16:01:18]json_value_free done [16:01:18]process_json_proto returns [16:01:18]Send response to host [16:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145757,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:01:18]free response buf [16:01:18]execute_script done [16:01:18]execute_script returns [16:01:18]free content buf [16:01:18]Sock 9.Close socket [16:01:18]Sock 9.Thread stoped [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:23]accept exits with 7 [16:03:23]New connection [16:03:23]New thread 3066740068 created [16:03:23]Thread 3066596708 joined [16:03:23]Waiting for new connection... [16:03:23] Sock 7.Parse request [16:03:23]Sock 7.Check first char [16:03:23]Sock 7.First char is OK [16:03:23]request: POST /json_proto HTTP/1.0 [16:03:23]Method: POST [16:03:23]URL: /json_proto [16:03:23]Method is POST - this is cgi request [16:03:23]url: /json_proto [16:03:23]query_string will be loaded in cgi processing [16:03:23]execute_cgi json_proto POST (null) [16:03:23]execute_cgi path=json_proto method=POST [16:03:23]POST find Content-Length [16:03:23]Host: 172.17.40.195:8080 [16:03:23]Content-Length: 677 [16:03:23]Content-Type: application/json [16:03:23] [16:03:23]POST finish read [16:03:23]Found Content-Length = 677 [16:03:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:23]execute_script... [16:03: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)160514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:23]POST & json_proto [16:03:23]process_json_proto [16:03:23]json parsed OK: [16:03:23]protocol is kg_v1.0 [16:03:23]action value=close_receipt [16:03:23]process_action close_receipt [16:03:23]cmd_close_receipt [16:03:23]MH_GetDate [16:03:23]Write to MH i2c: F0 00 00 00 25 14 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: F0 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: F0 09 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: F0 09 00 00 25 00 4E 64 1E 67 D5 8D 6C 64 86 [16:03:23]GetLastDocTimeStamp 1730044876 [16:03:23]current date 1730045006 [16:03:23]FM_GetShiftState [16:03:23]SAM_PROTO_GetShiftState [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 13 01 00 [16:03:23]Write to MH i2c: E2 08 00 01 25 80 13 01 00 00 00 00 00 A3 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 0E 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 0E 00 01 25 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1B [16:03:23]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:03:23]wFMCommunicate OK [16:03:23]SAM_PROTO_GetShiftState done [16:03:23]FM_GetShiftState done [16:03:23]opened in 1729988959 [16:03:23]opened+sec_in_day 1730075359 [16:03:23]quantity*price = 30038 [16:03:23]sum+1 = 30039 [16:03:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 181 27.10.2024 16:03 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145758 ФПД: 119119377384277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160326&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145758&fm=119119377384277&tin=02508201610067®Number=0000000000091683&sum=30000 [16:03:25]StoreToDocumentArchive [16:03:25]shift 545 fd 145758 [16:03:25]save to /storage/0545/doc_00145758 [16:03:25]save last doc name /storage/0545/doc_00145758 to /storage/kkm_last_doc_name [16:03:25]save OK [16:03:25]Clear old archive folders... [16:03:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:25]tlvbuf is 0048AB50 [16:03:25]SAM_PROTO_ClearQueue [16:03:25]wFMCommunicate request_size=4 [16:03:25]MH_SAM_APDU [16:03:25]CAPDU: 80 09 00 00 [16:03:25]Write to MH i2c: E2 08 00 0E 25 80 09 00 00 00 00 00 00 A5 [16:03:25]Write i2c OK [16:03:25]MH_I2C_Read... [16:03:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:25]Read from MH i2c: E2 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 0E 25 00 90 00 A7 [16:03:25]RAPDU: 90 00 [16:03:25]wFMCommunicate OK [16:03:25]SAM_PROTO_ClearQueue done [16:03:25]KKMCreateOFDPacket [16:03:25]OFDProtocolAddRootSTLVToBuf [16:03:25]FM_MakeSignedData [16:03:25]FM_MakeSignedData [16:03:25]SAM_PROTO_SignData [16:03:25]wFMCommunicate request_size=4 [16:03:25]MH_SAM_APDU [16:03:25]CAPDU: 80 0D 01 02 [16:03:25]Write to MH i2c: E2 08 00 0F 25 80 0D 01 02 00 00 00 00 AD [16:03:25]Write i2c OK [16:03:25]MH_I2C_Read... [16:03:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:25]Read from MH i2c: E2 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 0F 25 00 90 00 A8 [16:03:25]RAPDU: 90 00 [16:03:25]wFMCommunicate OK [16:03:25]wFMCommunicate request_size=255 [16:03:25]MH_SAM_APDU [16:03: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 4E 64 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5E 39 02 00 35 04 06 00 6C [16:03:25]Write to MH i2c: E2 02 01 10 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 4E 64 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5E 39 02 00 35 04 06 00 6C 00 00 43 [16:03:25]Write i2c OK [16:03:25]MH_I2C_Read... [16:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:25]Read from MH i2c: E2 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 10 25 00 90 00 A9 [16:03:25]RAPDU: 90 00 [16:03:25]wFMCommunicate OK [16:03:25]wFMCommunicate request_size=10 [16:03:25]MH_SAM_APDU [16:03:25]CAPDU: 80 0D 02 02 05 56 A4 2C C3 55 [16:03:25]Write to MH i2c: E2 0D 00 11 25 80 0D 02 02 05 00 56 A4 2C C3 55 00 00 F8 [16:03:25]Write i2c OK [16:03:25]MH_I2C_Read... [16:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:25]Read from MH i2c: E2 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 11 25 00 90 00 AA [16:03:25]RAPDU: 90 00 [16:03:25]wFMCommunicate OK [16:03:25]wFMCommunicate request_size=4 [16:03:25]MH_SAM_APDU [16:03:25]CAPDU: 80 0D 03 02 [16:03:25]Write to MH i2c: E2 08 00 12 25 80 0D 03 02 00 00 00 00 B2 [16:03:25]Write i2c OK [16:03:25]MH_I2C_Read... [16:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:25]Read from MH i2c: E2 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 0B 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 0B 00 12 25 00 8A 43 6F C5 E9 65 C3 E8 90 00 AD [16:03:25]RAPDU: 8A 43 6F C5 E9 65 C3 E8 90 00 [16:03:25]wFMCommunicate OK [16:03:25]SAM_PROTO_SignData done [16:03:25]FM_MakeSignedData done [16:03:25]CreateOFDProtocolMessage [16:03:25]wFMCommunicate request_size=4 [16:03:25]MH_SAM_APDU [16:03:25]CAPDU: 80 11 00 00 [16:03:25]Write to MH i2c: E2 08 00 13 25 80 11 00 00 00 00 00 00 B2 [16:03:25]Write i2c OK [16:03:25]MH_I2C_Read... [16:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:25]Read from MH i2c: E2 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 17 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 17 00 13 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 05 [16:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:03:25]wFMCommunicate OK [16:03:25]CreateOFDProtocolMessage done [16:03:25]OFDSenderStorePacket 145758 [16:03:25]StoreOFDPacket docnum=145758 [16:03:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 FF 45 07 01 BE FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 4E 64 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5E 39 02 00 35 04 06 00 6C 56 A4 2C C3 55 8A 43 6F C5 E9 65 C3 E8 [16:03:25]CheckFolder [16:03:25]dirname=/storage/ofd_packets [16:03:25]CheckFolder done [16:03:25]ProducePacketName [16:03:25]name=ofd_packets/00145758 [16:03:25]NVStorageSaveData ofd_packets/00145758 [16:03:25]File name is /storage/ofd_packets/00145758 [16:03:25]Write 301 bytes [16:03:25]NVStorageSaveData done [16:03:25]OFDSenderStorePacket done [16:03:25]KKMCreateOFDPacket done [16:03:25]NVStorageSaveData kkm_last_timestamp [16:03:25]File name is /storage/kkm_last_timestamp [16:03:25]Write 4 bytes [16:03:25]NVStorageSaveData done [16:03:25]ExternCall_PrintAddStr [16:03:25]wPrintStart [16:03:25]Write to MH i2c: 01 00 00 14 25 39 [16:03:25]Write i2c OK [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: 01 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: 01 07 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: 01 07 00 14 25 00 00 00 00 00 FF 0F 4E [16:03:25]RasterBufferAndPrint [16:03:25]line Счет N : (1)160514 [16:03:25]line ИНН: 02508201610067 [16:03:25]line Контрольно-Кассовый Чек [16:03:25]line ПРОДАЖА [16:03:25]line ТРК (МРК, ГНК) : 32 [16:03:25]line Товар: 2710124130 [16:03:25]line Аи-92-К-2 [16:03:25]line 4.490 * 66.90 [16:03:25]line = 300.38 [16:03:25]line НДС 12% НСП 1% [16:03:25]line > о реализуемом товаре [16:03:25]line ОКРУГЛЕНИЕ: -0.38 [16:03:25]line ИТОГО: 300.00 [16:03:25]line Внесено: 300.00 [16:03:25]line СДАЧА: 0.00 [16:03:25]line НСП 1% : 2.66 [16:03:25]line НДС 12% : 31.90 [16:03:25]line Наличными: 300.00 [16:03:25]line Безнал.: 0.00 [16:03:25]line Место: АЗС № 126 "Партнер Нефть" [16:03:25]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:03:25]line СНО: Общий режим [16:03:25]line Чек 181 27.10.2024 16:03 [16:03:25]line Смена: 545 ФФД: 1.0 [16:03:25]line ЗНМ: 0300000085 [16:03:25]line РНМ: 0000000000091683 [16:03:25]line Версия ККМ: 001 [16:03:25]line ФМ: 0000000000871745 [16:03:25]line ФД: 145758 [16:03:25]line ФПД: 119119377384277 [16:03:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160326&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145758&fm=119119377384277&tin=02508201610067®Number=0000000000091683&sum=30000 [16:03:25]written 0, free lines is 4095 [16:03:25]OFD Sender: Processing packet 145758 [packets to send 206, broken 205] [16:03:25]ProducePacketName [16:03:25]name=ofd_packets/00145758 [16:03:25]OFD Sender: To server: pG, [16:03:25]CommunicateWithHost lk.salyk.kg:30040 [16:03:25]ConnectInit lk.salyk.kg [16:03:26]Connected sock=10 [16:03:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 FF 45 07 01 BE FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 4E 64 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5E 39 02 00 35 04 06 00 6C 56 A4 2C C3 55 8A 43 6F C5 E9 65 C3 E8 [16:03:26]Write to MH i2c: 01 00 00 3F 25 64 [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: 01 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: 01 07 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: 01 07 00 3F 25 00 00 00 00 00 A7 0C 1E [16:03:26]RasterBufferAndPrint [16:03:26]line [16:03:26]line [16:03:26]line [16:03:26]line [16:03:26]line [16:03:26]written 0, free lines is 3245 [16:03:26]MH_Cut [16:03:26]Write to MH i2c: D1 01 00 46 25 01 3D [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: D1 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: D1 01 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: D1 01 00 46 25 00 3C [16:03:26]Write to MH i2c: 01 00 00 47 25 6C [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 72 3E 47 00 3F A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5E 39 02 00 F4 03 04 00 7B 09 1E 67 B6 04 01 00 00 04 AA 31 99 80 3B 93 8A [16:03:26]CommunicateWithHost err = 0 [16:03:26]CheckOFDResponse [16:03:26]1017 (14) - 77093643461234 [16:03:26]1041 (16) - 0000000000871745 [16:03:26]1040 (4) - 145758 [16:03:26]1012 (4) - 27.10.2024 09:35 [16:03:26]1206 (1) - 0 [16:03:26]OFD Sender: Remove packet 145758 [16:03:26]ProducePacketName [16:03:26]name=ofd_packets/00145758 [16:03:26]NVStorageDeleteData [16:03:27]OFD Sender: No OFD packet to send [16:03:27]*** Cut start [16:03:27]*** Partial cut [16:03:27]*** CUTSNS_PIN = 1 [16:03:27]*** CUTSNS_PIN = 0 [16:03:27]*** Brake cut motor [16:03:27]Read from MH i2c: 01 [16:03:27]MH_I2C_Read... [16:03:27]*** Stop cut motor [16:03:27]*** Cut end [16:03:27]Read from MH i2c: 01 07 00 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: 01 07 00 47 25 00 00 00 00 00 FF 0F 81 [16:03:27]process_action close_receipt done [16:03:27]requested_data is exist [16:03:27]produce_requested_data [16:03:27]requested_item fm.sn is exist - process it [16:03:27]wFMCommunicate request_size=4 [16:03:27]MH_SAM_APDU [16:03:27]CAPDU: 80 11 00 00 [16:03:27]Write to MH i2c: E2 08 00 48 25 80 11 00 00 00 00 00 00 E7 [16:03:27]Write i2c OK [16:03:27]MH_I2C_Read... [16:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:27]Read from MH i2c: E2 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 17 00 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 17 00 48 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3A [16:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:03:27]wFMCommunicate OK [16:03:27]requested_item fd.num is exist - process it [16:03:27]SAM_PROTO_GetFieldsCounters [16:03:27]wFMCommunicate request_size=4 [16:03:27]MH_SAM_APDU [16:03:27]CAPDU: 80 13 00 00 [16:03:27]Write to MH i2c: E2 08 00 49 25 80 13 00 00 00 00 00 00 EA [16:03:27]Write i2c OK [16:03:27]MH_I2C_Read... [16:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:28]Read from MH i2c: E2 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: E2 62 00 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: E2 62 00 49 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [16:03:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:28]wFMCommunicate OK [16:03:28]SAM_PROTO_GetFieldsCounters done [16:03:28]requested_item shift.num is exist - process it [16:03:28]requested_item shift.opened is exist - process it [16:03:28]req_shift_opened [16:03:28]FM_GetShiftState [16:03:28]SAM_PROTO_GetShiftState [16:03:28]wFMCommunicate request_size=4 [16:03:28]MH_SAM_APDU [16:03:28]CAPDU: 80 13 01 00 [16:03:28]Write to MH i2c: E2 08 00 4A 25 80 13 01 00 00 00 00 00 EC [16:03:28]Write i2c OK [16:03:28]MH_I2C_Read... [16:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:28]Read from MH i2c: E2 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: E2 0E 00 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: E2 0E 00 4A 25 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 64 [16:03:28]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:03:28]wFMCommunicate OK [16:03:28]SAM_PROTO_GetShiftState done [16:03:28]FM_GetShiftState done [16:03:28]req_shift_opened done [16:03:28]requested_item shift.open_date is exist - process it [16:03:28]req_shift_open_date [16:03:28]req_shift_open_date done [16:03:28]produce_requested_data done [16:03:28]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145758,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:03:28]process_action_free close_receipt [16:03:28]json_value_free [16:03:28]json_value_free done [16:03:28]process_json_proto returns [16:03:28]Send response to host [16:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145758,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:03:28]free response buf [16:03:28]execute_script done [16:03:28]execute_script returns [16:03:28]free content buf [16:03:28]Sock 7.Close socket [16:03:28]Sock 7.Thread stoped [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:07]accept exits with 9 [16:05:07]New connection [16:05:07]New thread 3066596708 created [16:05:07]Thread 3066740068 joined [16:05:07]Waiting for new connection... [16:05:07] Sock 9.Parse request [16:05:07]Sock 9.Check first char [16:05:07]Sock 9.First char is OK [16:05:07]request: POST /json_proto HTTP/1.0 [16:05:07]Method: POST [16:05:07]URL: /json_proto [16:05:07]Method is POST - this is cgi request [16:05:07]url: /json_proto [16:05:07]query_string will be loaded in cgi processing [16:05:07]execute_cgi json_proto POST (null) [16:05:07]execute_cgi path=json_proto method=POST [16:05:07]POST find Content-Length [16:05:07]Host: 172.17.40.195:8080 [16:05:07]Content-Length: 684 [16:05:07]Content-Type: application/json [16:05:07] [16:05:07]POST finish read [16:05:07]Found Content-Length = 684 [16:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 11.270, "sum" : 870.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:07]execute_script... [16:05:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 11.270, "sum" : 870.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:07]POST & json_proto [16:05:07]process_json_proto [16:05:07]json parsed OK: [16:05:07]protocol is kg_v1.0 [16:05:07]action value=close_receipt [16:05:07]process_action close_receipt [16:05:07]cmd_close_receipt [16:05:07]MH_GetDate [16:05:07]Write to MH i2c: F0 00 00 4B 25 5F [16:05:07]Write i2c OK [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: F0 [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: F0 09 00 [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: F0 09 00 4B 25 00 B5 64 1E 67 D5 8D 6C 64 38 [16:05:07]GetLastDocTimeStamp 1730045006 [16:05:07]current date 1730045109 [16:05:07]FM_GetShiftState [16:05:07]SAM_PROTO_GetShiftState [16:05:07]wFMCommunicate request_size=4 [16:05:07]MH_SAM_APDU [16:05:07]CAPDU: 80 13 01 00 [16:05:07]Write to MH i2c: E2 08 00 4C 25 80 13 01 00 00 00 00 00 EE [16:05:07]Write i2c OK [16:05:07]MH_I2C_Read... [16:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:07]Read from MH i2c: E2 [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: E2 0E 00 [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: E2 0E 00 4C 25 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 66 [16:05:07]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:05:07]wFMCommunicate OK [16:05:07]SAM_PROTO_GetShiftState done [16:05:07]FM_GetShiftState done [16:05:07]opened in 1729988959 [16:05:07]opened+sec_in_day 1730075359 [16:05:07]quantity*price = 87004 [16:05:07]sum+1 = 87005 [16:05:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.39 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 182 27.10.2024 16:05 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145759 ФПД: 272270638670002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160509&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145759&fm=272270638670002&tin=02508201610067®Number=0000000000091683&sum=87000 [16:05:08]StoreToDocumentArchive [16:05:08]shift 545 fd 145759 [16:05:08]save to /storage/0545/doc_00145759 [16:05:08]save last doc name /storage/0545/doc_00145759 to /storage/kkm_last_doc_name [16:05:08]save OK [16:05:08]Clear old archive folders... [16:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:05:08]tlvbuf is 004F7210 [16:05:08]SAM_PROTO_ClearQueue [16:05:08]wFMCommunicate request_size=4 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 09 00 00 [16:05:08]Write to MH i2c: E2 08 00 59 25 80 09 00 00 00 00 00 00 F0 [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 03 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 03 00 59 25 00 90 00 F2 [16:05:08]RAPDU: 90 00 [16:05:08]wFMCommunicate OK [16:05:08]SAM_PROTO_ClearQueue done [16:05:08]KKMCreateOFDPacket [16:05:08]OFDProtocolAddRootSTLVToBuf [16:05:08]FM_MakeSignedData [16:05:08]FM_MakeSignedData [16:05:08]SAM_PROTO_SignData [16:05:08]wFMCommunicate request_size=4 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 0D 01 02 [16:05:08]Write to MH i2c: E2 08 00 5A 25 80 0D 01 02 00 00 00 00 F8 [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 03 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 03 00 5A 25 00 90 00 F3 [16:05:08]RAPDU: 90 00 [16:05:08]wFMCommunicate OK [16:05:08]wFMCommunicate request_size=255 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 2C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DC 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 24 00 00 00 00 07 04 06 00 D8 53 01 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 B5 64 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5F 39 02 [16:05:08]Write to MH i2c: E2 02 01 5B 25 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 2C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DC 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 24 00 00 00 00 07 04 06 00 D8 53 01 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 B5 64 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5F 39 02 00 00 61 [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 03 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 03 00 5B 25 00 90 00 F4 [16:05:08]RAPDU: 90 00 [16:05:08]wFMCommunicate OK [16:05:08]wFMCommunicate request_size=16 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F7 A0 F2 B3 60 B2 [16:05:08]Write to MH i2c: E2 13 00 5C 25 80 0D 02 02 0B 00 00 35 04 06 00 F7 A0 F2 B3 60 B2 00 00 9E [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 03 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 03 00 5C 25 00 90 00 F5 [16:05:08]RAPDU: 90 00 [16:05:08]wFMCommunicate OK [16:05:08]wFMCommunicate request_size=4 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 0D 03 02 [16:05:08]Write to MH i2c: E2 08 00 5D 25 80 0D 03 02 00 00 00 00 FD [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 0B 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 0B 00 5D 25 00 13 66 7A 53 36 8A 83 C6 90 00 4D [16:05:08]RAPDU: 13 66 7A 53 36 8A 83 C6 90 00 [16:05:08]wFMCommunicate OK [16:05:08]SAM_PROTO_SignData done [16:05:08]FM_MakeSignedData done [16:05:08]CreateOFDProtocolMessage [16:05:08]wFMCommunicate request_size=4 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 11 00 00 [16:05:08]Write to MH i2c: E2 08 00 5E 25 80 11 00 00 00 00 00 00 FD [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 17 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 17 00 5E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 50 [16:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:05:08]wFMCommunicate OK [16:05:08]CreateOFDProtocolMessage done [16:05:08]OFDSenderStorePacket 145759 [16:05:08]StoreOFDPacket docnum=145759 [16:05:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 9C 41 0D 01 D3 D6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 2C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DC 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 24 00 00 00 00 07 04 06 00 D8 53 01 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 B5 64 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5F 39 02 00 35 04 06 00 F7 A0 F2 B3 60 B2 13 66 7A 53 36 8A 83 C6 [16:05:08]CheckFolder [16:05:08]dirname=/storage/ofd_packets [16:05:08]CheckFolder done [16:05:08]ProducePacketName [16:05:08]name=ofd_packets/00145759 [16:05:08]NVStorageSaveData ofd_packets/00145759 [16:05:08]File name is /storage/ofd_packets/00145759 [16:05:08]Write 307 bytes [16:05:08]NVStorageSaveData done [16:05:08]OFDSenderStorePacket done [16:05:08]KKMCreateOFDPacket done [16:05:08]NVStorageSaveData kkm_last_timestamp [16:05:08]File name is /storage/kkm_last_timestamp [16:05:08]Write 4 bytes [16:05:08]NVStorageSaveData done [16:05:08]ExternCall_PrintAddStr [16:05:08]wPrintStart [16:05:08]Write to MH i2c: 01 00 00 5F 25 84 [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 07 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 07 00 5F 25 00 00 00 00 00 FF 0F 99 [16:05:08]RasterBufferAndPrint [16:05:08]line Счет N : (1)160515 [16:05:08]line ИНН: 02508201610067 [16:05:08]line Контрольно-Кассовый Чек [16:05:08]line ПРОДАЖА [16:05:08]line ТРК (МРК, ГНК) : 41 [16:05:08]line Товар: 2710194240 [16:05:08]line D-Energy Дт-К-2 [16:05:08]line 11.270 * 77.20 [16:05:08]line = 870.04 [16:05:08]line НДС 12% НСП 1% [16:05:08]line > о реализуемом товаре [16:05:08]line ОКРУГЛЕНИЕ: -0.04 [16:05:08]line ИТОГО: 870.00 [16:05:08]line Внесено: 870.00 [16:05:08]line СДАЧА: 0.00 [16:05:08]line НСП 1% : 7.70 [16:05:08]line НДС 12% : 92.39 [16:05:08]line Наличными: 870.00 [16:05:08]line Безнал.: 0.00 [16:05:08]line Место: АЗС № 126 "Партнер Нефть" [16:05:08]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:05:08]line СНО: Общий режим [16:05:08]line Чек 182 27.10.2024 16:05 [16:05:08]line Смена: 545 ФФД: 1.0 [16:05:08]line ЗНМ: 0300000085 [16:05:08]line РНМ: 0000000000091683 [16:05:08]line Версия ККМ: 001 [16:05:08]line ФМ: 0000000000871745 [16:05:08]line ФД: 145759 [16:05:08]line ФПД: 272270638670002 [16:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160509&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145759&fm=272270638670002&tin=02508201610067®Number=0000000000091683&sum=87000 [16:05:09]OFD Sender: Processing packet 145759 [packets to send 206, broken 205] [16:05:09]ProducePacketName [16:05:09]name=ofd_packets/00145759 [16:05:09]OFD Sender: To server: pG, [16:05:09]CommunicateWithHost lk.salyk.kg:30040 [16:05:09]ConnectInit lk.salyk.kg [16:05:09]written 0, free lines is 4095 [16:05:09]Connected sock=7 [16:05:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 9C 41 0D 01 D3 D6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 2C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DC 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 24 00 00 00 00 07 04 06 00 D8 53 01 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 B5 64 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5F 39 02 00 35 04 06 00 F7 A0 F2 B3 60 B2 13 66 7A 53 36 8A 83 C6 [16:05:09]Write to MH i2c: 01 00 00 8A 25 AF [16:05:09]Write i2c OK [16:05:09]MH_I2C_Read... [16:05:09]Read from MH i2c: 01 [16:05:09]MH_I2C_Read... [16:05:09]Read from MH i2c: 01 07 00 [16:05:09]MH_I2C_Read... [16:05:09]Read from MH i2c: 01 07 00 8A 25 00 00 00 00 00 C4 0C 86 [16:05:09]RasterBufferAndPrint [16:05:09]line [16:05:09]line [16:05:09]line [16:05:09]line [16:05:09]line [16:05:09]written 0, free lines is 3274 [16:05:09]MH_Cut [16:05:09]Write to MH i2c: D1 01 00 91 25 01 88 [16:05:09]Write i2c OK [16:05:09]MH_I2C_Read... [16:05:09]Read from MH i2c: D1 [16:05:09]MH_I2C_Read... [16:05:09]Read from MH i2c: D1 01 00 [16:05:09]MH_I2C_Read... [16:05:09]Read from MH i2c: D1 01 00 91 25 00 87 [16:05:09]Write to MH i2c: 01 00 00 92 25 B7 [16:05:09]Write i2c OK [16:05:09]MH_I2C_Read... [16:05:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 37 2E 47 00 86 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 5F 39 02 00 F4 03 04 00 E2 09 1E 67 B6 04 01 00 00 BD 33 F0 E7 C2 C3 AF 87 [16:05:09]CommunicateWithHost err = 0 [16:05:09]CheckOFDResponse [16:05:09]1017 (14) - 77093643461234 [16:05:09]1041 (16) - 0000000000871745 [16:05:09]1040 (4) - 145759 [16:05:09]1012 (4) - 27.10.2024 09:37 [16:05:09]1206 (1) - 0 [16:05:09]OFD Sender: Remove packet 145759 [16:05:09]ProducePacketName [16:05:09]name=ofd_packets/00145759 [16:05:09]NVStorageDeleteData [16:05:10]OFD Sender: No OFD packet to send [16:05:10]*** Cut start [16:05:10]*** Partial cut [16:05:10]*** CUTSNS_PIN = 1 [16:05:10]*** CUTSNS_PIN = 0 [16:05:10]*** Brake cut motor [16:05:11]Read from MH i2c: 01 [16:05:11]MH_I2C_Read... [16:05:11]*** Stop cut motor [16:05:11]*** Cut end [16:05:11]Read from MH i2c: 01 07 00 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: 01 07 00 92 25 00 00 00 00 00 FF 0F CC [16:05:11]process_action close_receipt done [16:05:11]requested_data is exist [16:05:11]produce_requested_data [16:05:11]requested_item fm.sn is exist - process it [16:05:11]wFMCommunicate request_size=4 [16:05:11]MH_SAM_APDU [16:05:11]CAPDU: 80 11 00 00 [16:05:11]Write to MH i2c: E2 08 00 93 25 80 11 00 00 00 00 00 00 32 [16:05:11]Write i2c OK [16:05:11]MH_I2C_Read... [16:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:11]Read from MH i2c: E2 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 17 00 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 17 00 93 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 85 [16:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:05:11]wFMCommunicate OK [16:05:11]requested_item fd.num is exist - process it [16:05:11]SAM_PROTO_GetFieldsCounters [16:05:11]wFMCommunicate request_size=4 [16:05:11]MH_SAM_APDU [16:05:11]CAPDU: 80 13 00 00 [16:05:11]Write to MH i2c: E2 08 00 94 25 80 13 00 00 00 00 00 00 35 [16:05:11]Write i2c OK [16:05:11]MH_I2C_Read... [16:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:11]Read from MH i2c: E2 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 62 00 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 62 00 94 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [16:05:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 5F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:11]wFMCommunicate OK [16:05:11]SAM_PROTO_GetFieldsCounters done [16:05:11]requested_item shift.num is exist - process it [16:05:11]requested_item shift.opened is exist - process it [16:05:11]req_shift_opened [16:05:11]FM_GetShiftState [16:05:11]SAM_PROTO_GetShiftState [16:05:11]wFMCommunicate request_size=4 [16:05:11]MH_SAM_APDU [16:05:11]CAPDU: 80 13 01 00 [16:05:11]Write to MH i2c: E2 08 00 95 25 80 13 01 00 00 00 00 00 37 [16:05:11]Write i2c OK [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 [16:05:11]MH_I2C_Read... [16:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:11]Read from MH i2c: E2 0E 00 [16:05:11]MH_I2C_Read... [16:05:11]Read from MH i2c: E2 0E 00 95 25 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AF [16:05:11]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:05:11]wFMCommunicate OK [16:05:11]SAM_PROTO_GetShiftState done [16:05:11]FM_GetShiftState done [16:05:11]req_shift_opened done [16:05:11]requested_item shift.open_date is exist - process it [16:05:11]req_shift_open_date [16:05:11]req_shift_open_date done [16:05:11]produce_requested_data done [16:05:11]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145759,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:05:11]process_action_free close_receipt [16:05:11]json_value_free [16:05:11]json_value_free done [16:05:11]process_json_proto returns [16:05:11]Send response to host [16:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145759,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:05:11]free response buf [16:05:11]execute_script done [16:05:11]execute_script returns [16:05:11]free content buf [16:05:11]Sock 9.Close socket [16:05:11]Sock 9.Thread stoped [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:48]accept exits with 10 [16:06:48]New connection [16:06:48]New thread 3066740068 created [16:06:48]Thread 3066596708 joined [16:06:48]Waiting for new connection... [16:06:48] Sock 10.Parse request [16:06:48]Sock 10.Check first char [16:06:48]Sock 10.First char is OK [16:06:48]request: POST /json_proto HTTP/1.0 [16:06:48]Method: POST [16:06:48]URL: /json_proto [16:06:48]Method is POST - this is cgi request [16:06:48]url: /json_proto [16:06:48]query_string will be loaded in cgi processing [16:06:48]execute_cgi json_proto POST (null) [16:06:48]execute_cgi path=json_proto method=POST [16:06:48]POST find Content-Length [16:06:48]Host: 172.17.40.195:8080 [16:06:48]Content-Length: 769 [16:06:48]Content-Type: application/json [16:06:48] [16:06:48]POST finish read [16:06:48]Found Content-Length = 769 [16:06:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:48]execute_script... [16:06: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)160516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:48]POST & json_proto [16:06:48]process_json_proto [16:06:48]json parsed OK: [16:06:48]protocol is kg_v1.0 [16:06:48]action value=close_receipt [16:06:48]process_action close_receipt [16:06:48]cmd_close_receipt [16:06:48]MH_GetDate [16:06:48]Write to MH i2c: F0 00 00 96 25 AA [16:06:48]Write i2c OK [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: F0 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: F0 09 00 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: F0 09 00 96 25 00 1A 65 1E 67 D5 8D 6C 64 E9 [16:06:48]GetLastDocTimeStamp 1730045109 [16:06:48]current date 1730045210 [16:06:48]FM_GetShiftState [16:06:48]SAM_PROTO_GetShiftState [16:06:48]wFMCommunicate request_size=4 [16:06:48]MH_SAM_APDU [16:06:48]CAPDU: 80 13 01 00 [16:06:48]Write to MH i2c: E2 08 00 97 25 80 13 01 00 00 00 00 00 39 [16:06:48]Write i2c OK [16:06:48]MH_I2C_Read... [16:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:48]Read from MH i2c: E2 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 0E 00 [16:06:48]MH_I2C_Read... [16:06:48]Read from MH i2c: E2 0E 00 97 25 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B1 [16:06:48]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:06:48]wFMCommunicate OK [16:06:48]SAM_PROTO_GetShiftState done [16:06:48]FM_GetShiftState done [16:06:48]opened in 1729988959 [16:06:48]opened+sec_in_day 1730075359 [16:06:48]quantity*price = 150056 [16:06:48]sum+1 = 150058 [16:06:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 183 27.10.2024 16:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145760 ФПД: 218782853012135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160650&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145760&fm=218782853012135&tin=02508201610067®Number=0000000000091683&sum=150057 [16:06:49]StoreToDocumentArchive [16:06:49]shift 545 fd 145760 [16:06:49]save to /storage/0545/doc_00145760 [16:06:49]save last doc name /storage/0545/doc_00145760 to /storage/kkm_last_doc_name [16:06:49]save OK [16:06:49]Clear old archive folders... [16:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:49]tlvbuf is 004F6FE0 [16:06:49]SAM_PROTO_ClearQueue [16:06:49]wFMCommunicate request_size=4 [16:06:49]MH_SAM_APDU [16:06:49]CAPDU: 80 09 00 00 [16:06:49]Write to MH i2c: E2 08 00 A4 25 80 09 00 00 00 00 00 00 3B [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:49]Read from MH i2c: E2 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 A4 25 00 90 00 3D [16:06:49]RAPDU: 90 00 [16:06:49]wFMCommunicate OK [16:06:49]SAM_PROTO_ClearQueue done [16:06:49]KKMCreateOFDPacket [16:06:49]OFDProtocolAddRootSTLVToBuf [16:06:49]FM_MakeSignedData [16:06:49]FM_MakeSignedData [16:06:49]SAM_PROTO_SignData [16:06:49]wFMCommunicate request_size=4 [16:06:49]MH_SAM_APDU [16:06:49]CAPDU: 80 0D 01 02 [16:06:49]Write to MH i2c: E2 08 00 A5 25 80 0D 01 02 00 00 00 00 43 [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:49]Read from MH i2c: E2 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 [16:06:49]MH_I2C_Read... [16:06:49]Read from MH i2c: E2 03 00 A5 25 00 90 00 3E [16:06:49]RAPDU: 90 00 [16:06:49]wFMCommunicate OK [16:06:49]wFMCommunicate request_size=255 [16:06:49]MH_SAM_APDU [16:06: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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1A 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 60 39 02 00 35 04 06 00 C6 [16:06:49]Write to MH i2c: E2 02 01 A6 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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1A 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 60 39 02 00 35 04 06 00 C6 00 00 CD [16:06:49]Write i2c OK [16:06:49]MH_I2C_Read... [16:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:50]Read from MH i2c: E2 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 03 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 03 00 A6 25 00 90 00 3F [16:06:50]RAPDU: 90 00 [16:06:50]wFMCommunicate OK [16:06:50]wFMCommunicate request_size=10 [16:06:50]MH_SAM_APDU [16:06:50]CAPDU: 80 0D 02 02 05 FB 5A 3C 9A A7 [16:06:50]Write to MH i2c: E2 0D 00 A7 25 80 0D 02 02 05 00 FB 5A 3C 9A A7 00 00 22 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:50]Read from MH i2c: E2 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 03 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 03 00 A7 25 00 90 00 40 [16:06:50]RAPDU: 90 00 [16:06:50]wFMCommunicate OK [16:06:50]wFMCommunicate request_size=4 [16:06:50]MH_SAM_APDU [16:06:50]CAPDU: 80 0D 03 02 [16:06:50]Write to MH i2c: E2 08 00 A8 25 80 0D 03 02 00 00 00 00 48 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:50]Read from MH i2c: E2 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 0B 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 0B 00 A8 25 00 62 54 2B 8D DE B1 94 9F 90 00 79 [16:06:50]RAPDU: 62 54 2B 8D DE B1 94 9F 90 00 [16:06:50]wFMCommunicate OK [16:06:50]SAM_PROTO_SignData done [16:06:50]FM_MakeSignedData done [16:06:50]CreateOFDProtocolMessage [16:06:50]wFMCommunicate request_size=4 [16:06:50]MH_SAM_APDU [16:06:50]CAPDU: 80 11 00 00 [16:06:50]Write to MH i2c: E2 08 00 A9 25 80 11 00 00 00 00 00 00 48 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:50]Read from MH i2c: E2 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 17 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: E2 17 00 A9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9B [16:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:06:50]wFMCommunicate OK [16:06:50]CreateOFDProtocolMessage done [16:06:50]OFDSenderStorePacket 145760 [16:06:50]StoreOFDPacket docnum=145760 [16:06:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 5E BD 07 01 49 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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1A 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 60 39 02 00 35 04 06 00 C6 FB 5A 3C 9A A7 62 54 2B 8D DE B1 94 9F [16:06:50]CheckFolder [16:06:50]dirname=/storage/ofd_packets [16:06:50]CheckFolder done [16:06:50]ProducePacketName [16:06:50]name=ofd_packets/00145760 [16:06:50]NVStorageSaveData ofd_packets/00145760 [16:06:50]File name is /storage/ofd_packets/00145760 [16:06:50]Write 301 bytes [16:06:50]NVStorageSaveData done [16:06:50]OFDSenderStorePacket done [16:06:50]KKMCreateOFDPacket done [16:06:50]NVStorageSaveData kkm_last_timestamp [16:06:50]File name is /storage/kkm_last_timestamp [16:06:50]Write 4 bytes [16:06:50]NVStorageSaveData done [16:06:50]ExternCall_PrintAddStr [16:06:50]wPrintStart [16:06:50]Write to MH i2c: 01 00 00 AA 25 CF [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 07 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 07 00 AA 25 00 00 00 00 00 FF 0F E4 [16:06:50]RasterBufferAndPrint [16:06:50]line Счет N : (1)160516 [16:06:50]line ИНН: 02508201610067 [16:06:50]line Контрольно-Кассовый Чек [16:06:50]line ПРОДАЖА [16:06:50]line ТРК (МРК, ГНК) : 62 [16:06:50]line Товар: 2710124130 [16:06:50]line Аи-92-К-2 [16:06:50]line 22.430 * 66.90 [16:06:50]line = 1500.57 [16:06:50]line НДС 12% НСП 1% [16:06:50]line > о реализуемом товаре [16:06:50]line ИТОГО: 1500.57 [16:06:50]line НСП 1% : 13.28 [16:06:50]line НДС 12% : 159.35 [16:06:50]line Наличными: 0.00 [16:06:50]line Безнал.: 1500.57 [16:06:50]line Место: АЗС № 126 "Партнер Нефть" [16:06:50]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:06:50]line СНО: Общий режим [16:06:50]line Чек 183 27.10.2024 16:06 [16:06:50]line Смена: 545 ФФД: 1.0 [16:06:50]line ЗНМ: 0300000085 [16:06:50]line РНМ: 0000000000091683 [16:06:50]line Версия ККМ: 001 [16:06:50]line Платежная система: Mbank [16:06:50]line ФМ: 0000000000871745 [16:06:50]line ФД: 145760 [16:06:50]line ФПД: 218782853012135 [16:06:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160650&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145760&fm=218782853012135&tin=02508201610067®Number=0000000000091683&sum=150057 [16:06:50]written 0, free lines is 4095 [16:06:50]OFD Sender: Processing packet 145760 [packets to send 206, broken 205] [16:06:50]ProducePacketName [16:06:50]name=ofd_packets/00145760 [16:06:50]OFD Sender: To server: pG, [16:06:50]CommunicateWithHost lk.salyk.kg:30040 [16:06:50]ConnectInit lk.salyk.kg [16:06:50]Connected sock=9 [16:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 5E BD 07 01 49 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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1A 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 60 39 02 00 35 04 06 00 C6 FB 5A 3C 9A A7 62 54 2B 8D DE B1 94 9F [16:06:50]Write to MH i2c: 01 00 00 D3 25 F8 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 07 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: 01 07 00 D3 25 00 00 00 00 00 E1 0C EC [16:06:50]RasterBufferAndPrint [16:06:50]line [16:06:50]line [16:06:50]line [16:06:50]line [16:06:50]line [16:06:50]written 0, free lines is 3302 [16:06:50]MH_Cut [16:06:50]Write to MH i2c: D1 01 00 DA 25 01 D1 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: D1 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: D1 01 00 [16:06:50]MH_I2C_Read... [16:06:50]Read from MH i2c: D1 01 00 DA 25 00 D0 [16:06:50]Write to MH i2c: 01 00 00 DB 25 00 [16:06:50]Write i2c OK [16:06:50]MH_I2C_Read... [16:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 91 6A 47 00 91 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 60 39 02 00 F4 03 04 00 47 0A 1E 67 B6 04 01 00 00 70 91 11 5D 02 EC 36 CB [16:06:50]CommunicateWithHost err = 0 [16:06:50]CheckOFDResponse [16:06:50]1017 (14) - 77093643461234 [16:06:50]1041 (16) - 0000000000871745 [16:06:50]1040 (4) - 145760 [16:06:50]1012 (4) - 27.10.2024 09:39 [16:06:50]1206 (1) - 0 [16:06:50]OFD Sender: Remove packet 145760 [16:06:50]ProducePacketName [16:06:50]name=ofd_packets/00145760 [16:06:50]NVStorageDeleteData [16:06:51]OFD Sender: No OFD packet to send [16:06:51]*** Cut start [16:06:51]*** Partial cut [16:06:51]*** CUTSNS_PIN = 1 [16:06:51]*** CUTSNS_PIN = 0 [16:06:51]*** Brake cut motor [16:06:52]Read from MH i2c: 01 [16:06:52]MH_I2C_Read... [16:06:52]*** Stop cut motor [16:06:52]*** Cut end [16:06:52]Read from MH i2c: 01 07 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: 01 07 00 DB 25 00 00 00 00 00 FF 0F 15 [16:06:52]process_action close_receipt done [16:06:52]requested_data is exist [16:06:52]produce_requested_data [16:06:52]requested_item fm.sn is exist - process it [16:06:52]wFMCommunicate request_size=4 [16:06:52]MH_SAM_APDU [16:06:52]CAPDU: 80 11 00 00 [16:06:52]Write to MH i2c: E2 08 00 DC 25 80 11 00 00 00 00 00 00 7B [16:06:52]Write i2c OK [16:06:52]MH_I2C_Read... [16:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:52]Read from MH i2c: E2 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 17 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 17 00 DC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 CE [16:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:06:52]wFMCommunicate OK [16:06:52]requested_item fd.num is exist - process it [16:06:52]SAM_PROTO_GetFieldsCounters [16:06:52]wFMCommunicate request_size=4 [16:06:52]MH_SAM_APDU [16:06:52]CAPDU: 80 13 00 00 [16:06:52]Write to MH i2c: E2 08 00 DD 25 80 13 00 00 00 00 00 00 7E [16:06:52]Write i2c OK [16:06:52]MH_I2C_Read... [16:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:52]Read from MH i2c: E2 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 62 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 62 00 DD 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 60 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [16:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 60 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:52]wFMCommunicate OK [16:06:52]SAM_PROTO_GetFieldsCounters done [16:06:52]requested_item shift.num is exist - process it [16:06:52]requested_item shift.opened is exist - process it [16:06:52]req_shift_opened [16:06:52]FM_GetShiftState [16:06:52]SAM_PROTO_GetShiftState [16:06:52]wFMCommunicate request_size=4 [16:06:52]MH_SAM_APDU [16:06:52]CAPDU: 80 13 01 00 [16:06:52]Write to MH i2c: E2 08 00 DE 25 80 13 01 00 00 00 00 00 80 [16:06:52]Write i2c OK [16:06:52]MH_I2C_Read... [16:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:52]Read from MH i2c: E2 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 0E 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: E2 0E 00 DE 25 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F8 [16:06:52]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:06:52]wFMCommunicate OK [16:06:52]SAM_PROTO_GetShiftState done [16:06:52]FM_GetShiftState done [16:06:52]req_shift_opened done [16:06:52]requested_item shift.open_date is exist - process it [16:06:52]req_shift_open_date [16:06:52]req_shift_open_date done [16:06:52]produce_requested_data done [16:06:52]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145760,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:06:52]process_action_free close_receipt [16:06:52]json_value_free [16:06:52]json_value_free done [16:06:52]process_json_proto returns [16:06:52]Send response to host [16:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145760,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:06:52]free response buf [16:06:52]execute_script done [16:06:52]execute_script returns [16:06:52]free content buf [16:06:52]Sock 10.Close socket [16:06:52]Sock 10.Thread stoped [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]accept exits with 7 [16:08:01]New connection [16:08:01]New thread 3066596708 created [16:08:01]Thread 3066740068 joined [16:08:01]Waiting for new connection... [16:08:01] Sock 7.Parse request [16:08:01]Sock 7.Check first char [16:08:01]Sock 7.First char is OK [16:08:01]request: POST /json_proto HTTP/1.0 [16:08:01]Method: POST [16:08:01]URL: /json_proto [16:08:01]Method is POST - this is cgi request [16:08:01]url: /json_proto [16:08:01]query_string will be loaded in cgi processing [16:08:01]execute_cgi json_proto POST (null) [16:08:01]execute_cgi path=json_proto method=POST [16:08:01]POST find Content-Length [16:08:01]Host: 172.17.40.195:8080 [16:08:01]Content-Length: 674 [16:08:01]Content-Type: application/json [16:08:01] [16:08:01]POST finish read [16:08:01]Found Content-Length = 674 [16:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:01]execute_script... [16:08: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)160517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:01]POST & json_proto [16:08:01]process_json_proto [16:08:01]json parsed OK: [16:08:01]protocol is kg_v1.0 [16:08:01]action value=close_receipt [16:08:01]process_action close_receipt [16:08:01]cmd_close_receipt [16:08:01]MH_GetDate [16:08:01]Write to MH i2c: F0 00 00 DF 25 F3 [16:08:01]Write i2c OK [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: F0 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: F0 09 00 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: F0 09 00 DF 25 00 63 65 1E 67 D5 8D 6C 64 7B [16:08:01]GetLastDocTimeStamp 1730045210 [16:08:01]current date 1730045283 [16:08:01]FM_GetShiftState [16:08:01]SAM_PROTO_GetShiftState [16:08:01]wFMCommunicate request_size=4 [16:08:01]MH_SAM_APDU [16:08:01]CAPDU: 80 13 01 00 [16:08:01]Write to MH i2c: E2 08 00 E0 25 80 13 01 00 00 00 00 00 82 [16:08:01]Write i2c OK [16:08:01]MH_I2C_Read... [16:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:01]Read from MH i2c: E2 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: E2 0E 00 [16:08:01]MH_I2C_Read... [16:08:01]Read from MH i2c: E2 0E 00 E0 25 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FA [16:08:01]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:08:01]wFMCommunicate OK [16:08:01]SAM_PROTO_GetShiftState done [16:08:01]FM_GetShiftState done [16:08:01]opened in 1729988959 [16:08:01]opened+sec_in_day 1730075359 [16:08:01]quantity*price = 50063 [16:08:01]sum+1 = 50064 [16:08:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 184 27.10.2024 16:08 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145761 ФПД: 194110061775271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160803&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145761&fm=194110061775271&tin=02508201610067®Number=0000000000091683&sum=50000 [16:08:02]StoreToDocumentArchive [16:08:02]shift 545 fd 145761 [16:08:02]save to /storage/0545/doc_00145761 [16:08:02]save last doc name /storage/0545/doc_00145761 to /storage/kkm_last_doc_name [16:08:02]save OK [16:08:02]Clear old archive folders... [16:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:08:02]tlvbuf is B6EA6D60 [16:08:02]SAM_PROTO_ClearQueue [16:08:02]wFMCommunicate request_size=4 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 09 00 00 [16:08:02]Write to MH i2c: E2 08 00 ED 25 80 09 00 00 00 00 00 00 84 [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 ED 25 00 90 00 86 [16:08:02]RAPDU: 90 00 [16:08:02]wFMCommunicate OK [16:08:02]SAM_PROTO_ClearQueue done [16:08:02]KKMCreateOFDPacket [16:08:02]OFDProtocolAddRootSTLVToBuf [16:08:02]FM_MakeSignedData [16:08:02]FM_MakeSignedData [16:08:02]SAM_PROTO_SignData [16:08:02]wFMCommunicate request_size=4 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 0D 01 02 [16:08:02]Write to MH i2c: E2 08 00 EE 25 80 0D 01 02 00 00 00 00 8C [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 EE 25 00 90 00 87 [16:08:02]RAPDU: 90 00 [16:08:02]wFMCommunicate OK [16:08:02]wFMCommunicate request_size=255 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 63 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 61 39 02 00 35 04 06 00 B0 8A C5 47 [16:08:02]Write to MH i2c: E2 02 01 EF 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 63 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 61 39 02 00 35 04 06 00 B0 8A C5 47 00 00 A2 [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 EF 25 00 90 00 88 [16:08:03]RAPDU: 90 00 [16:08:03]wFMCommunicate OK [16:08:03]wFMCommunicate request_size=7 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 0D 02 02 02 89 A7 [16:08:03]Write to MH i2c: E2 0A 00 F0 25 80 0D 02 02 02 00 89 A7 00 00 C3 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 F0 25 00 90 00 89 [16:08:03]RAPDU: 90 00 [16:08:03]wFMCommunicate OK [16:08:03]wFMCommunicate request_size=4 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 0D 03 02 [16:08:03]Write to MH i2c: E2 08 00 F1 25 80 0D 03 02 00 00 00 00 91 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 0B 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 0B 00 F1 25 00 09 D6 9B 45 AB B1 ED 0B 90 00 A5 [16:08:03]RAPDU: 09 D6 9B 45 AB B1 ED 0B 90 00 [16:08:03]wFMCommunicate OK [16:08:03]SAM_PROTO_SignData done [16:08:03]FM_MakeSignedData done [16:08:03]CreateOFDProtocolMessage [16:08:03]wFMCommunicate request_size=4 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 11 00 00 [16:08:03]Write to MH i2c: E2 08 00 F2 25 80 11 00 00 00 00 00 00 91 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 17 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 17 00 F2 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E4 [16:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:08:03]wFMCommunicate OK [16:08:03]CreateOFDProtocolMessage done [16:08:03]OFDSenderStorePacket 145761 [16:08:03]StoreOFDPacket docnum=145761 [16:08:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 6F 43 04 01 7D 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 63 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 61 39 02 00 35 04 06 00 B0 8A C5 47 89 A7 09 D6 9B 45 AB B1 ED 0B [16:08:03]CheckFolder [16:08:03]dirname=/storage/ofd_packets [16:08:03]CheckFolder done [16:08:03]ProducePacketName [16:08:03]name=ofd_packets/00145761 [16:08:03]NVStorageSaveData ofd_packets/00145761 [16:08:03]File name is /storage/ofd_packets/00145761 [16:08:03]Write 298 bytes [16:08:03]NVStorageSaveData done [16:08:03]OFDSenderStorePacket done [16:08:03]KKMCreateOFDPacket done [16:08:03]NVStorageSaveData kkm_last_timestamp [16:08:03]File name is /storage/kkm_last_timestamp [16:08:03]Write 4 bytes [16:08:03]NVStorageSaveData done [16:08:03]ExternCall_PrintAddStr [16:08:03]wPrintStart [16:08:03]Write to MH i2c: 01 00 00 F3 25 18 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 07 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 07 00 F3 25 00 00 00 00 00 FF 0F 2D [16:08:03]RasterBufferAndPrint [16:08:03]line Счет N : (1)160517 [16:08:03]line ИНН: 02508201610067 [16:08:03]line Контрольно-Кассовый Чек [16:08:03]line ПРОДАЖА [16:08:03]line ТРК (МРК, ГНК) : 21 [16:08:03]line Товар: 2710194210 [16:08:03]line ДТ-К-2 [16:08:03]line 6.570 * 76.20 [16:08:03]line = 500.63 [16:08:03]line НДС 12% НСП 1% [16:08:03]line > о реализуемом товаре [16:08:03]line ОКРУГЛЕНИЕ: -0.63 [16:08:03]line ИТОГО: 500.00 [16:08:03]line Внесено: 500.00 [16:08:03]line СДАЧА: 0.00 [16:08:03]line НСП 1% : 4.43 [16:08:03]line НДС 12% : 53.16 [16:08:03]line Наличными: 500.00 [16:08:03]line Безнал.: 0.00 [16:08:03]line Место: АЗС № 126 "Партнер Нефть" [16:08:03]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:08:03]line СНО: Общий режим [16:08:03]line Чек 184 27.10.2024 16:08 [16:08:03]line Смена: 545 ФФД: 1.0 [16:08:03]line ЗНМ: 0300000085 [16:08:03]line РНМ: 0000000000091683 [16:08:03]line Версия ККМ: 001 [16:08:03]line ФМ: 0000000000871745 [16:08:03]line ФД: 145761 [16:08:03]line ФПД: 194110061775271 [16:08:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160803&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145761&fm=194110061775271&tin=02508201610067®Number=0000000000091683&sum=50000 [16:08:03]OFD Sender: Processing packet 145761 [packets to send 206, broken 205] [16:08:03]ProducePacketName [16:08:03]name=ofd_packets/00145761 [16:08:03]OFD Sender: To server: pG, [16:08:03]CommunicateWithHost lk.salyk.kg:30040 [16:08:03]ConnectInit lk.salyk.kg [16:08:03]written 0, free lines is 4095 [16:08:03]Connected sock=10 [16:08:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 6F 43 04 01 7D 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 63 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 61 39 02 00 35 04 06 00 B0 8A C5 47 89 A7 09 D6 9B 45 AB B1 ED 0B [16:08:03]Write to MH i2c: 01 00 00 1E 26 44 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 07 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 07 00 1E 26 00 00 00 00 00 AF 0C 06 [16:08:03]RasterBufferAndPrint [16:08:03]line [16:08:03]line [16:08:03]line [16:08:03]line [16:08:03]line [16:08:04]written 0, free lines is 3254 [16:08:04]MH_Cut [16:08:04]Write to MH i2c: D1 01 00 25 26 01 1D [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: D1 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: D1 01 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: D1 01 00 25 26 00 1C [16:08:04]Write to MH i2c: 01 00 00 26 26 4C [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 03 B5 47 00 F3 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 61 39 02 00 F4 03 04 00 90 0A 1E 67 B6 04 01 00 00 14 78 8E C7 7F 94 A6 D7 [16:08:04]CommunicateWithHost err = 0 [16:08:04]CheckOFDResponse [16:08:04]1017 (14) - 77093643461234 [16:08:04]1041 (16) - 0000000000871745 [16:08:04]1040 (4) - 145761 [16:08:04]1012 (4) - 27.10.2024 09:40 [16:08:04]1206 (1) - 0 [16:08:04]OFD Sender: Remove packet 145761 [16:08:04]ProducePacketName [16:08:04]name=ofd_packets/00145761 [16:08:04]NVStorageDeleteData [16:08:04]OFD Sender: No OFD packet to send [16:08:04]*** Cut start [16:08:04]*** Partial cut [16:08:04]*** CUTSNS_PIN = 1 [16:08:04]*** CUTSNS_PIN = 0 [16:08:05]*** Brake cut motor [16:08:05]Read from MH i2c: 01 [16:08:05]MH_I2C_Read... [16:08:05]*** Stop cut motor [16:08:05]*** Cut end [16:08:05]Read from MH i2c: 01 07 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: 01 07 00 26 26 00 00 00 00 00 FF 0F 61 [16:08:05]process_action close_receipt done [16:08:05]requested_data is exist [16:08:05]produce_requested_data [16:08:05]requested_item fm.sn is exist - process it [16:08:05]wFMCommunicate request_size=4 [16:08:05]MH_SAM_APDU [16:08:05]CAPDU: 80 11 00 00 [16:08:05]Write to MH i2c: E2 08 00 27 26 80 11 00 00 00 00 00 00 C7 [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:05]Read from MH i2c: E2 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 17 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 17 00 27 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1A [16:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:08:05]wFMCommunicate OK [16:08:05]requested_item fd.num is exist - process it [16:08:05]SAM_PROTO_GetFieldsCounters [16:08:05]wFMCommunicate request_size=4 [16:08:05]MH_SAM_APDU [16:08:05]CAPDU: 80 13 00 00 [16:08:05]Write to MH i2c: E2 08 00 28 26 80 13 00 00 00 00 00 00 CA [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:05]Read from MH i2c: E2 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 62 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 62 00 28 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 61 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [16:08:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 61 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:05]wFMCommunicate OK [16:08:05]SAM_PROTO_GetFieldsCounters done [16:08:05]requested_item shift.num is exist - process it [16:08:05]requested_item shift.opened is exist - process it [16:08:05]req_shift_opened [16:08:05]FM_GetShiftState [16:08:05]SAM_PROTO_GetShiftState [16:08:05]wFMCommunicate request_size=4 [16:08:05]MH_SAM_APDU [16:08:05]CAPDU: 80 13 01 00 [16:08:05]Write to MH i2c: E2 08 00 29 26 80 13 01 00 00 00 00 00 CC [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:05]Read from MH i2c: E2 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 0E 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 0E 00 29 26 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 44 [16:08:05]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:08:05]wFMCommunicate OK [16:08:05]SAM_PROTO_GetShiftState done [16:08:05]FM_GetShiftState done [16:08:05]req_shift_opened done [16:08:05]requested_item shift.open_date is exist - process it [16:08:05]req_shift_open_date [16:08:05]req_shift_open_date done [16:08:05]produce_requested_data done [16:08:05]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145761,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:08:05]process_action_free close_receipt [16:08:05]json_value_free [16:08:05]json_value_free done [16:08:05]process_json_proto returns [16:08:05]Send response to host [16:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145761,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:08:05]free response buf [16:08:05]execute_script done [16:08:05]execute_script returns [16:08:05]free content buf [16:08:05]Sock 7.Close socket [16:08:05]Sock 7.Thread stoped [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:51]accept exits with 9 [16:09:51]New connection [16:09:51]New thread 3066740068 created [16:09:51]Thread 3066596708 joined [16:09:51]Waiting for new connection... [16:09:51] Sock 9.Parse request [16:09:51]Sock 9.Check first char [16:09:51]Sock 9.First char is OK [16:09:51]request: POST /json_proto HTTP/1.0 [16:09:51]Method: POST [16:09:51]URL: /json_proto [16:09:51]Method is POST - this is cgi request [16:09:51]url: /json_proto [16:09:51]query_string will be loaded in cgi processing [16:09:51]execute_cgi json_proto POST (null) [16:09:51]execute_cgi path=json_proto method=POST [16:09:51]POST find Content-Length [16:09:51]Host: 172.17.40.195:8080 [16:09:51]Content-Length: 674 [16:09:51]Content-Type: application/json [16:09:51] [16:09:51]POST finish read [16:09:51]Found Content-Length = 674 [16:09:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:51]execute_script... [16:09: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)160518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:51]POST & json_proto [16:09:51]process_json_proto [16:09:51]json parsed OK: [16:09:51]protocol is kg_v1.0 [16:09:51]action value=close_receipt [16:09:51]process_action close_receipt [16:09:51]cmd_close_receipt [16:09:51]MH_GetDate [16:09:51]Write to MH i2c: F0 00 00 2A 26 3F [16:09:51]Write i2c OK [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: F0 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: F0 09 00 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: F0 09 00 2A 26 00 D1 65 1E 67 D5 8D 6C 64 35 [16:09:51]GetLastDocTimeStamp 1730045283 [16:09:51]current date 1730045393 [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 2B 26 80 13 01 00 00 00 00 00 CE [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 2B 26 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 46 [16:09:51]RAPDU: 09 00 01 5F 89 1D 67 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]opened in 1729988959 [16:09:51]opened+sec_in_day 1730075359 [16:09:51]quantity*price = 70027 [16:09:51]sum+1 = 70029 [16:09:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 185 27.10.2024 16:09 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145762 ФПД: 83351222613167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160953&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145762&fm=83351222613167&tin=02508201610067®Number=0000000000091683&sum=70000 [16:09:52]StoreToDocumentArchive [16:09:52]shift 545 fd 145762 [16:09:52]save to /storage/0545/doc_00145762 [16:09:52]save last doc name /storage/0545/doc_00145762 to /storage/kkm_last_doc_name [16:09:52]save OK [16:09:52]Clear old archive folders... [16:09:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:09:52]tlvbuf is 0048B060 [16:09:52]SAM_PROTO_ClearQueue [16:09:52]wFMCommunicate request_size=4 [16:09:52]MH_SAM_APDU [16:09:52]CAPDU: 80 09 00 00 [16:09:52]Write to MH i2c: E2 08 00 38 26 80 09 00 00 00 00 00 00 D0 [16:09:52]Write i2c OK [16:09:52]MH_I2C_Read... [16:09:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:52]Read from MH i2c: E2 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 03 00 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 03 00 38 26 00 90 00 D2 [16:09:52]RAPDU: 90 00 [16:09:52]wFMCommunicate OK [16:09:52]SAM_PROTO_ClearQueue done [16:09:52]KKMCreateOFDPacket [16:09:52]OFDProtocolAddRootSTLVToBuf [16:09:52]FM_MakeSignedData [16:09:52]FM_MakeSignedData [16:09:52]SAM_PROTO_SignData [16:09:52]wFMCommunicate request_size=4 [16:09:52]MH_SAM_APDU [16:09:52]CAPDU: 80 0D 01 02 [16:09:52]Write to MH i2c: E2 08 00 39 26 80 0D 01 02 00 00 00 00 D8 [16:09:52]Write i2c OK [16:09:52]MH_I2C_Read... [16:09:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:52]Read from MH i2c: E2 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 03 00 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 03 00 39 26 00 90 00 D3 [16:09:52]RAPDU: 90 00 [16:09:52]wFMCommunicate OK [16:09:52]wFMCommunicate request_size=255 [16:09:52]MH_SAM_APDU [16:09: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 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D1 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 62 39 02 00 35 04 06 00 4B CE B8 03 [16:09:52]Write to MH i2c: E2 02 01 3A 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 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D1 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 62 39 02 00 35 04 06 00 4B CE B8 03 00 00 60 [16:09:52]Write i2c OK [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 [16:09:52]MH_I2C_Read... [16:09:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:52]Read from MH i2c: E2 03 00 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 03 00 3A 26 00 90 00 D4 [16:09:52]RAPDU: 90 00 [16:09:52]wFMCommunicate OK [16:09:52]wFMCommunicate request_size=7 [16:09:52]MH_SAM_APDU [16:09:52]CAPDU: 80 0D 02 02 02 F4 AF [16:09:52]Write to MH i2c: E2 0A 00 3B 26 80 0D 02 02 02 00 F4 AF 00 00 82 [16:09:52]Write i2c OK [16:09:52]MH_I2C_Read... [16:09:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:52]Read from MH i2c: E2 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 03 00 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 03 00 3B 26 00 90 00 D5 [16:09:52]RAPDU: 90 00 [16:09:52]wFMCommunicate OK [16:09:52]wFMCommunicate request_size=4 [16:09:52]MH_SAM_APDU [16:09:52]CAPDU: 80 0D 03 02 [16:09:52]Write to MH i2c: E2 08 00 3C 26 80 0D 03 02 00 00 00 00 DD [16:09:52]Write i2c OK [16:09:52]MH_I2C_Read... [16:09:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:52]Read from MH i2c: E2 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 0B 00 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 0B 00 3C 26 00 7E 30 F6 F9 0F 2D FA 94 90 00 45 [16:09:52]RAPDU: 7E 30 F6 F9 0F 2D FA 94 90 00 [16:09:52]wFMCommunicate OK [16:09:52]SAM_PROTO_SignData done [16:09:52]FM_MakeSignedData done [16:09:52]CreateOFDProtocolMessage [16:09:52]wFMCommunicate request_size=4 [16:09:52]MH_SAM_APDU [16:09:52]CAPDU: 80 11 00 00 [16:09:52]Write to MH i2c: E2 08 00 3D 26 80 11 00 00 00 00 00 00 DD [16:09:52]Write i2c OK [16:09:52]MH_I2C_Read... [16:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:53]Read from MH i2c: E2 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: E2 17 00 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: E2 17 00 3D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 30 [16:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:09:53]wFMCommunicate OK [16:09:53]CreateOFDProtocolMessage done [16:09:53]OFDSenderStorePacket 145762 [16:09:53]StoreOFDPacket docnum=145762 [16:09:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 B2 16 04 01 EF 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D1 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 62 39 02 00 35 04 06 00 4B CE B8 03 F4 AF 7E 30 F6 F9 0F 2D FA 94 [16:09:53]CheckFolder [16:09:53]dirname=/storage/ofd_packets [16:09:53]CheckFolder done [16:09:53]ProducePacketName [16:09:53]name=ofd_packets/00145762 [16:09:53]NVStorageSaveData ofd_packets/00145762 [16:09:53]File name is /storage/ofd_packets/00145762 [16:09:53]Write 298 bytes [16:09:53]NVStorageSaveData done [16:09:53]OFDSenderStorePacket done [16:09:53]KKMCreateOFDPacket done [16:09:53]NVStorageSaveData kkm_last_timestamp [16:09:53]File name is /storage/kkm_last_timestamp [16:09:53]Write 4 bytes [16:09:53]NVStorageSaveData done [16:09:53]ExternCall_PrintAddStr [16:09:53]wPrintStart [16:09:53]Write to MH i2c: 01 00 00 3E 26 64 [16:09:53]Write i2c OK [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: 01 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: 01 07 00 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: 01 07 00 3E 26 00 00 00 00 00 FF 0F 79 [16:09:53]RasterBufferAndPrint [16:09:53]line Счет N : (1)160518 [16:09:53]line ИНН: 02508201610067 [16:09:53]line Контрольно-Кассовый Чек [16:09:53]line ПРОДАЖА [16:09:53]line ТРК (МРК, ГНК) : 11 [16:09:53]line Товар: 2710194210 [16:09:53]line ДТ-К-2 [16:09:53]line 9.190 * 76.20 [16:09:53]line = 700.28 [16:09:53]line НДС 12% НСП 1% [16:09:53]line > о реализуемом товаре [16:09:53]line ОКРУГЛЕНИЕ: -0.28 [16:09:53]line ИТОГО: 700.00 [16:09:53]line Внесено: 700.00 [16:09:53]line СДАЧА: 0.00 [16:09:53]line НСП 1% : 6.20 [16:09:53]line НДС 12% : 74.37 [16:09:53]line Наличными: 700.00 [16:09:53]line Безнал.: 0.00 [16:09:53]line Место: АЗС № 126 "Партнер Нефть" [16:09:53]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:09:53]line СНО: Общий режим [16:09:53]line Чек 185 27.10.2024 16:09 [16:09:53]line Смена: 545 ФФД: 1.0 [16:09:53]line ЗНМ: 0300000085 [16:09:53]line РНМ: 0000000000091683 [16:09:53]line Версия ККМ: 001 [16:09:53]line ФМ: 0000000000871745 [16:09:53]line ФД: 145762 [16:09:53]line ФПД: 83351222613167 [16:09:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160953&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145762&fm=83351222613167&tin=02508201610067®Number=0000000000091683&sum=70000 [16:09:53]OFD Sender: Processing packet 145762 [packets to send 206, broken 205] [16:09:53]ProducePacketName [16:09:53]name=ofd_packets/00145762 [16:09:53]OFD Sender: To server: pG, [16:09:53]CommunicateWithHost lk.salyk.kg:30040 [16:09:53]ConnectInit lk.salyk.kg [16:09:53]written 0, free lines is 4095 [16:09:53]Connected sock=10 [16:09:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 B2 16 04 01 EF 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D1 65 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 62 39 02 00 35 04 06 00 4B CE B8 03 F4 AF 7E 30 F6 F9 0F 2D FA 94 [16:09:53]Write to MH i2c: 01 00 00 69 26 8F [16:09:53]Write i2c OK [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: 01 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: 01 07 00 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: 01 07 00 69 26 00 00 00 00 00 AF 0C 51 [16:09:53]RasterBufferAndPrint [16:09:53]line [16:09:53]line [16:09:53]line [16:09:53]line [16:09:53]line [16:09:53]written 0, free lines is 3254 [16:09:53]MH_Cut [16:09:53]Write to MH i2c: D1 01 00 70 26 01 68 [16:09:53]Write i2c OK [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: D1 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: D1 01 00 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: D1 01 00 70 26 00 67 [16:09:53]Write to MH i2c: 01 00 00 71 26 97 [16:09:53]Write i2c OK [16:09:53]MH_I2C_Read... [16:09:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C2 12 47 00 7E 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 62 39 02 00 F4 03 04 00 FE 0A 1E 67 B6 04 01 00 00 EB 13 86 D6 29 33 C1 98 [16:09:53]CommunicateWithHost err = 0 [16:09:53]CheckOFDResponse [16:09:53]1017 (14) - 77093643461234 [16:09:53]1041 (16) - 0000000000871745 [16:09:53]1040 (4) - 145762 [16:09:53]1012 (4) - 27.10.2024 09:42 [16:09:53]1206 (1) - 0 [16:09:53]OFD Sender: Remove packet 145762 [16:09:53]ProducePacketName [16:09:53]name=ofd_packets/00145762 [16:09:53]NVStorageDeleteData [16:09:54]OFD Sender: No OFD packet to send [16:09:54]*** Cut start [16:09:54]*** Partial cut [16:09:54]*** CUTSNS_PIN = 1 [16:09:54]*** CUTSNS_PIN = 0 [16:09:54]*** Brake cut motor [16:09:55]Read from MH i2c: 01 [16:09:55]MH_I2C_Read... [16:09:55]*** Stop cut motor [16:09:55]*** Cut end [16:09:55]Read from MH i2c: 01 07 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: 01 07 00 71 26 00 00 00 00 00 FF 0F AC [16:09:55]process_action close_receipt done [16:09:55]requested_data is exist [16:09:55]produce_requested_data [16:09:55]requested_item fm.sn is exist - process it [16:09:55]wFMCommunicate request_size=4 [16:09:55]MH_SAM_APDU [16:09:55]CAPDU: 80 11 00 00 [16:09:55]Write to MH i2c: E2 08 00 72 26 80 11 00 00 00 00 00 00 12 [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:55]Read from MH i2c: E2 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 17 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 17 00 72 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 65 [16:09:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:09:55]wFMCommunicate OK [16:09:55]requested_item fd.num is exist - process it [16:09:55]SAM_PROTO_GetFieldsCounters [16:09:55]wFMCommunicate request_size=4 [16:09:55]MH_SAM_APDU [16:09:55]CAPDU: 80 13 00 00 [16:09:55]Write to MH i2c: E2 08 00 73 26 80 13 00 00 00 00 00 00 15 [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:55]Read from MH i2c: E2 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 62 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 62 00 73 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 62 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [16:09:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 62 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:55]wFMCommunicate OK [16:09:55]SAM_PROTO_GetFieldsCounters done [16:09:55]requested_item shift.num is exist - process it [16:09:55]requested_item shift.opened is exist - process it [16:09:55]req_shift_opened [16:09:55]FM_GetShiftState [16:09:55]SAM_PROTO_GetShiftState [16:09:55]wFMCommunicate request_size=4 [16:09:55]MH_SAM_APDU [16:09:55]CAPDU: 80 13 01 00 [16:09:55]Write to MH i2c: E2 08 00 74 26 80 13 01 00 00 00 00 00 17 [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:55]Read from MH i2c: E2 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 0E 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 0E 00 74 26 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8F [16:09:55]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:09:55]wFMCommunicate OK [16:09:55]SAM_PROTO_GetShiftState done [16:09:55]FM_GetShiftState done [16:09:55]req_shift_opened done [16:09:55]requested_item shift.open_date is exist - process it [16:09:55]req_shift_open_date [16:09:55]req_shift_open_date done [16:09:55]produce_requested_data done [16:09:55]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145762,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:09:55]process_action_free close_receipt [16:09:55]json_value_free [16:09:55]json_value_free done [16:09:55]process_json_proto returns [16:09:55]Send response to host [16:09:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145762,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:09:55]free response buf [16:09:55]execute_script done [16:09:55]execute_script returns [16:09:55]free content buf [16:09:55]Sock 9.Close socket [16:09:55]Sock 9.Thread stoped [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:26]int [16:14:26]Write to MH i2c: 01 00 00 75 26 9B [16:14:26]*** FLAG_PRN_KEY set [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 07 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 07 00 75 26 00 08 00 00 00 FF 0F B8 [16:14:26]state=0 [16:14:26]Key pressed [16:14:26]Feed [16:14:26]Write to MH i2c: D8 00 00 76 26 73 [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: D8 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: D8 01 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: D8 01 00 76 26 00 74 [16:14:26]int [16:14:26]Write to MH i2c: 01 00 00 77 26 9D [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 07 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 07 00 77 26 00 48 00 00 00 3C 00 28 [16:14:26]state=2 [16:14:26]Key pressed [16:14:26]int [16:14:26]Write to MH i2c: 01 00 00 78 26 9E [16:14:26]*** FLAG_PRN_KEY reset [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 07 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 07 00 78 26 00 00 00 00 00 FD 0F B1 [16:14:26]state=2 [16:14:26]Stop feed [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:13]accept exits with 7 [16:15:13]New connection [16:15:13]New thread 3066596708 created [16:15:13]Thread 3066740068 joined [16:15:13]Waiting for new connection... [16:15:13] Sock 7.Parse request [16:15:13]Sock 7.Check first char [16:15:13]Sock 7.First char is OK [16:15:13]request: POST /json_proto HTTP/1.0 [16:15:13]Method: POST [16:15:13]URL: /json_proto [16:15:13]Method is POST - this is cgi request [16:15:13]url: /json_proto [16:15:13]query_string will be loaded in cgi processing [16:15:13]execute_cgi json_proto POST (null) [16:15:13]execute_cgi path=json_proto method=POST [16:15:13]POST find Content-Length [16:15:13]Host: 172.17.40.195:8080 [16:15:13]Content-Length: 678 [16:15:13]Content-Type: application/json [16:15:13] [16:15:13]POST finish read [16:15:13]Found Content-Length = 678 [16:15:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:13]execute_script... [16:15: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)160520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:13]POST & json_proto [16:15:13]process_json_proto [16:15:13]json parsed OK: [16:15:13]protocol is kg_v1.0 [16:15:13]action value=close_receipt [16:15:13]process_action close_receipt [16:15:13]cmd_close_receipt [16:15:13]MH_GetDate [16:15:13]Write to MH i2c: F0 00 00 79 26 8E [16:15:13]Write i2c OK [16:15:13]MH_I2C_Read... [16:15:13]Read from MH i2c: F0 [16:15:13]MH_I2C_Read... [16:15:13]Read from MH i2c: F0 09 00 [16:15:13]MH_I2C_Read... [16:15:13]Read from MH i2c: F0 09 00 79 26 00 13 67 1E 67 D5 8D 6C 64 C8 [16:15:13]GetLastDocTimeStamp 1730045393 [16:15:13]current date 1730045715 [16:15:13]FM_GetShiftState [16:15:13]SAM_PROTO_GetShiftState [16:15:13]wFMCommunicate request_size=4 [16:15:13]MH_SAM_APDU [16:15:13]CAPDU: 80 13 01 00 [16:15:13]Write to MH i2c: E2 08 00 7A 26 80 13 01 00 00 00 00 00 1D [16:15:13]Write i2c OK [16:15:13]MH_I2C_Read... [16:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:13]Read from MH i2c: E2 [16:15:13]MH_I2C_Read... [16:15:13]Read from MH i2c: E2 0E 00 [16:15:13]MH_I2C_Read... [16:15:13]Read from MH i2c: E2 0E 00 7A 26 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 95 [16:15:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:15:13]wFMCommunicate OK [16:15:13]SAM_PROTO_GetShiftState done [16:15:13]FM_GetShiftState done [16:15:13]opened in 1729988959 [16:15:13]opened+sec_in_day 1730075359 [16:15:13]quantity*price = 80012 [16:15:13]sum+1 = 80013 [16:15:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 186 27.10.2024 16:15 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145763 ФПД: 237893070880502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161515&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145763&fm=237893070880502&tin=02508201610067®Number=0000000000091683&sum=80000 [16:15:14]StoreToDocumentArchive [16:15:14]shift 545 fd 145763 [16:15:14]save to /storage/0545/doc_00145763 [16:15:14]save last doc name /storage/0545/doc_00145763 to /storage/kkm_last_doc_name [16:15:14]save OK [16:15:14]Clear old archive folders... [16:15:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:14]tlvbuf is 00464AC0 [16:15:14]SAM_PROTO_ClearQueue [16:15:14]wFMCommunicate request_size=4 [16:15:14]MH_SAM_APDU [16:15:14]CAPDU: 80 09 00 00 [16:15:14]Write to MH i2c: E2 08 00 87 26 80 09 00 00 00 00 00 00 1F [16:15:14]Write i2c OK [16:15:14]MH_I2C_Read... [16:15:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:14]Read from MH i2c: E2 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 03 00 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 03 00 87 26 00 90 00 21 [16:15:14]RAPDU: 90 00 [16:15:14]wFMCommunicate OK [16:15:14]SAM_PROTO_ClearQueue done [16:15:14]KKMCreateOFDPacket [16:15:14]OFDProtocolAddRootSTLVToBuf [16:15:14]FM_MakeSignedData [16:15:14]FM_MakeSignedData [16:15:14]SAM_PROTO_SignData [16:15:14]wFMCommunicate request_size=4 [16:15:14]MH_SAM_APDU [16:15:14]CAPDU: 80 0D 01 02 [16:15:14]Write to MH i2c: E2 08 00 88 26 80 0D 01 02 00 00 00 00 27 [16:15:14]Write i2c OK [16:15:14]MH_I2C_Read... [16:15:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:14]Read from MH i2c: E2 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 03 00 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 03 00 88 26 00 90 00 22 [16:15:14]RAPDU: 90 00 [16:15:14]wFMCommunicate OK [16:15:14]wFMCommunicate request_size=255 [16:15:14]MH_SAM_APDU [16:15: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 13 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 63 39 02 00 35 04 06 00 D8 [16:15:14]Write to MH i2c: E2 02 01 89 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 13 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 63 39 02 00 35 04 06 00 D8 00 00 F3 [16:15:14]Write i2c OK [16:15:14]MH_I2C_Read... [16:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:14]Read from MH i2c: E2 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 03 00 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 03 00 89 26 00 90 00 23 [16:15:14]RAPDU: 90 00 [16:15:14]wFMCommunicate OK [16:15:14]wFMCommunicate request_size=10 [16:15:14]MH_SAM_APDU [16:15:14]CAPDU: 80 0D 02 02 05 5C CB FB FE F6 [16:15:14]Write to MH i2c: E2 0D 00 8A 26 80 0D 02 02 05 00 5C CB FB FE F6 00 00 4A [16:15:14]Write i2c OK [16:15:14]MH_I2C_Read... [16:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:14]Read from MH i2c: E2 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 03 00 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 03 00 8A 26 00 90 00 24 [16:15:14]RAPDU: 90 00 [16:15:14]wFMCommunicate OK [16:15:14]wFMCommunicate request_size=4 [16:15:14]MH_SAM_APDU [16:15:14]CAPDU: 80 0D 03 02 [16:15:14]Write to MH i2c: E2 08 00 8B 26 80 0D 03 02 00 00 00 00 2C [16:15:14]Write i2c OK [16:15:14]MH_I2C_Read... [16:15:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:14]OFD Sender: No OFD packet to send [16:15:14]Read from MH i2c: E2 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 0B 00 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 0B 00 8B 26 00 44 32 77 3C F4 1D F6 CA 90 00 27 [16:15:14]RAPDU: 44 32 77 3C F4 1D F6 CA 90 00 [16:15:14]wFMCommunicate OK [16:15:14]SAM_PROTO_SignData done [16:15:14]FM_MakeSignedData done [16:15:14]CreateOFDProtocolMessage [16:15:14]wFMCommunicate request_size=4 [16:15:14]MH_SAM_APDU [16:15:14]CAPDU: 80 11 00 00 [16:15:14]Write to MH i2c: E2 08 00 8C 26 80 11 00 00 00 00 00 00 2C [16:15:14]Write i2c OK [16:15:14]MH_I2C_Read... [16:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:14]Read from MH i2c: E2 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 17 00 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: E2 17 00 8C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 7F [16:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:15:14]wFMCommunicate OK [16:15:14]CreateOFDProtocolMessage done [16:15:14]OFDSenderStorePacket 145763 [16:15:14]StoreOFDPacket docnum=145763 [16:15:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 5D AC 07 01 6C 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 13 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 63 39 02 00 35 04 06 00 D8 5C CB FB FE F6 44 32 77 3C F4 1D F6 CA [16:15:14]CheckFolder [16:15:14]dirname=/storage/ofd_packets [16:15:14]CheckFolder done [16:15:14]ProducePacketName [16:15:14]name=ofd_packets/00145763 [16:15:14]NVStorageSaveData ofd_packets/00145763 [16:15:14]File name is /storage/ofd_packets/00145763 [16:15:14]Write 301 bytes [16:15:14]NVStorageSaveData done [16:15:14]OFDSenderStorePacket done [16:15:14]KKMCreateOFDPacket done [16:15:14]NVStorageSaveData kkm_last_timestamp [16:15:14]File name is /storage/kkm_last_timestamp [16:15:14]Write 4 bytes [16:15:14]NVStorageSaveData done [16:15:14]ExternCall_PrintAddStr [16:15:14]wPrintStart [16:15:14]Write to MH i2c: 01 00 00 8D 26 B3 [16:15:14]Write i2c OK [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: 01 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: 01 07 00 [16:15:14]MH_I2C_Read... [16:15:14]Read from MH i2c: 01 07 00 8D 26 00 00 00 00 00 FF 0F C8 [16:15:14]RasterBufferAndPrint [16:15:14]line Счет N : (1)160520 [16:15:14]line ИНН: 02508201610067 [16:15:14]line Контрольно-Кассовый Чек [16:15:14]line ПРОДАЖА [16:15:14]line ТРК (МРК, ГНК) : 32 [16:15:14]line Товар: 2710124130 [16:15:14]line Аи-92-К-2 [16:15:14]line 11.960 * 66.90 [16:15:14]line = 800.12 [16:15:14]line НДС 12% НСП 1% [16:15:14]line > о реализуемом товаре [16:15:14]line ОКРУГЛЕНИЕ: -0.12 [16:15:14]line ИТОГО: 800.00 [16:15:14]line Внесено: 800.00 [16:15:14]line СДАЧА: 0.00 [16:15:14]line НСП 1% : 7.08 [16:15:14]line НДС 12% : 84.97 [16:15:14]line Наличными: 800.00 [16:15:14]line Безнал.: 0.00 [16:15:14]line Место: АЗС № 126 "Партнер Нефть" [16:15:14]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:15:14]line СНО: Общий режим [16:15:14]line Чек 186 27.10.2024 16:15 [16:15:14]line Смена: 545 ФФД: 1.0 [16:15:14]line ЗНМ: 0300000085 [16:15:14]line РНМ: 0000000000091683 [16:15:14]line Версия ККМ: 001 [16:15:14]line ФМ: 0000000000871745 [16:15:14]line ФД: 145763 [16:15:14]line ФПД: 237893070880502 [16:15:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161515&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145763&fm=237893070880502&tin=02508201610067®Number=0000000000091683&sum=80000 [16:15:15]OFD Sender: Processing packet 145763 [packets to send 206, broken 205] [16:15:15]ProducePacketName [16:15:15]name=ofd_packets/00145763 [16:15:15]OFD Sender: To server: pG, [16:15:15]CommunicateWithHost lk.salyk.kg:30040 [16:15:15]ConnectInit lk.salyk.kg [16:15:15]written 0, free lines is 4095 [16:15:15]Connected sock=11 [16:15:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 5D AC 07 01 6C 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 13 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 63 39 02 00 35 04 06 00 D8 5C CB FB FE F6 44 32 77 3C F4 1D F6 CA [16:15:15]Write to MH i2c: 01 00 00 B8 26 DE [16:15:15]Write i2c OK [16:15:15]MH_I2C_Read... [16:15:15]Read from MH i2c: 01 [16:15:15]MH_I2C_Read... [16:15:15]Read from MH i2c: 01 07 00 [16:15:15]MH_I2C_Read... [16:15:15]Read from MH i2c: 01 07 00 B8 26 00 00 00 00 00 C8 0C B9 [16:15:15]RasterBufferAndPrint [16:15:15]line [16:15:15]line [16:15:15]line [16:15:15]line [16:15:15]line [16:15:15]written 0, free lines is 3278 [16:15:15]MH_Cut [16:15:15]Write to MH i2c: D1 01 00 BF 26 01 B7 [16:15:15]Write i2c OK [16:15:15]MH_I2C_Read... [16:15:15]Read from MH i2c: D1 [16:15:15]MH_I2C_Read... [16:15:15]Read from MH i2c: D1 01 00 [16:15:15]MH_I2C_Read... [16:15:15]Read from MH i2c: D1 01 00 BF 26 00 B6 [16:15:15]Write to MH i2c: 01 00 00 C0 26 E6 [16:15:15]Write i2c OK [16:15:15]MH_I2C_Read... [16:15:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 82 A2 47 00 26 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 63 39 02 00 F4 03 04 00 40 0C 1E 67 B6 04 01 00 00 21 74 2B 60 40 E3 04 CE [16:15:15]CommunicateWithHost err = 0 [16:15:15]CheckOFDResponse [16:15:15]1017 (14) - 77093643461234 [16:15:15]1041 (16) - 0000000000871745 [16:15:15]1040 (4) - 145763 [16:15:15]1012 (4) - 27.10.2024 09:47 [16:15:15]1206 (1) - 0 [16:15:15]OFD Sender: Remove packet 145763 [16:15:15]ProducePacketName [16:15:15]name=ofd_packets/00145763 [16:15:15]NVStorageDeleteData [16:15:16]OFD Sender: No OFD packet to send [16:15:16]*** Cut start [16:15:16]*** Partial cut [16:15:16]*** CUTSNS_PIN = 1 [16:15:16]*** CUTSNS_PIN = 0 [16:15:16]*** Brake cut motor [16:15:17]Read from MH i2c: 01 [16:15:17]MH_I2C_Read... [16:15:17]*** Stop cut motor [16:15:17]*** Cut end [16:15:17]Read from MH i2c: 01 07 00 [16:15:17]MH_I2C_Read... [16:15:17]Read from MH i2c: 01 07 00 C0 26 00 00 00 00 00 FF 0F FB [16:15:17]process_action close_receipt done [16:15:17]requested_data is exist [16:15:17]produce_requested_data [16:15:17]requested_item fm.sn is exist - process it [16:15:17]wFMCommunicate request_size=4 [16:15:17]MH_SAM_APDU [16:15:17]CAPDU: 80 11 00 00 [16:15:17]Write to MH i2c: E2 08 00 C1 26 80 11 00 00 00 00 00 00 61 [16:15:17]Write i2c OK [16:15:17]MH_I2C_Read... [16:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:17]Read from MH i2c: E2 [16:15:17]MH_I2C_Read... [16:15:17]Read from MH i2c: E2 17 00 [16:15:17]MH_I2C_Read... [16:15:17]Read from MH i2c: E2 17 00 C1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B4 [16:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:15:17]wFMCommunicate OK [16:15:17]requested_item fd.num is exist - process it [16:15:17]SAM_PROTO_GetFieldsCounters [16:15:17]wFMCommunicate request_size=4 [16:15:17]MH_SAM_APDU [16:15:17]CAPDU: 80 13 00 00 [16:15:17]Write to MH i2c: E2 08 00 C2 26 80 13 00 00 00 00 00 00 64 [16:15:17]Write i2c OK [16:15:17]MH_I2C_Read... [16:15:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:17]Read from MH i2c: E2 [16:15:17]MH_I2C_Read... [16:15:17]Read from MH i2c: E2 62 00 [16:15:17]MH_I2C_Read... [16:15:17]Read from MH i2c: E2 62 00 C2 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 63 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [16:15:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 63 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:17]wFMCommunicate OK [16:15:17]SAM_PROTO_GetFieldsCounters done [16:15:17]requested_item shift.num is exist - process it [16:15:17]requested_item shift.opened is exist - process it [16:15:17]req_shift_opened [16:15:17]FM_GetShiftState [16:15:17]SAM_PROTO_GetShiftState [16:15:17]wFMCommunicate request_size=4 [16:15:17]MH_SAM_APDU [16:15:17]CAPDU: 80 13 01 00 [16:15:17]Write to MH i2c: E2 08 00 C3 26 80 13 01 00 00 00 00 00 66 [16:15:17]Write i2c OK [16:15:17]MH_I2C_Read... [16:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:17]Read from MH i2c: E2 [16:15:17]MH_I2C_Read... [16:15:17]Read from MH i2c: E2 0E 00 [16:15:17]MH_I2C_Read... [16:15:17]Read from MH i2c: E2 0E 00 C3 26 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 DE [16:15:17]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:15:17]wFMCommunicate OK [16:15:17]SAM_PROTO_GetShiftState done [16:15:17]FM_GetShiftState done [16:15:17]req_shift_opened done [16:15:17]requested_item shift.open_date is exist - process it [16:15:17]req_shift_open_date [16:15:17]req_shift_open_date done [16:15:17]produce_requested_data done [16:15:17]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145763,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:15:17]process_action_free close_receipt [16:15:17]json_value_free [16:15:17]json_value_free done [16:15:17]process_json_proto returns [16:15:17]Send response to host [16:15:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145763,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:15:17]free response buf [16:15:17]execute_script done [16:15:17]execute_script returns [16:15:17]free content buf [16:15:17]Sock 7.Close socket [16:15:17]Sock 7.Thread stoped [16:15:19]accept exits with 10 [16:15:19]New connection [16:15:19]New thread 3066740068 created [16:15:19]Thread 3066596708 joined [16:15:19]Waiting for new connection... [16:15:19] Sock 10.Parse request [16:15:19]Sock 10.Check first char [16:15:19]Sock 10.First char is OK [16:15:19]request: POST /json_proto HTTP/1.0 [16:15:19]Method: POST [16:15:19]URL: /json_proto [16:15:19]Method is POST - this is cgi request [16:15:19]url: /json_proto [16:15:19]query_string will be loaded in cgi processing [16:15:19]execute_cgi json_proto POST (null) [16:15:19]execute_cgi path=json_proto method=POST [16:15:19]POST find Content-Length [16:15:19]Host: 172.17.40.195:8080 [16:15:19]Content-Length: 682 [16:15:19]Content-Type: application/json [16:15:19] [16:15:19]POST finish read [16:15:19]Found Content-Length = 682 [16:15:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:19]execute_script... [16:15: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)160519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:19]POST & json_proto [16:15:19]process_json_proto [16:15:19]json parsed OK: [16:15:19]protocol is kg_v1.0 [16:15:19]action value=close_receipt [16:15:19]process_action close_receipt [16:15:19]cmd_close_receipt [16:15:19]MH_GetDate [16:15:19]Write to MH i2c: F0 00 00 C4 26 D9 [16:15:19]Write i2c OK [16:15:19]MH_I2C_Read... [16:15:19]Read from MH i2c: F0 [16:15:19]MH_I2C_Read... [16:15:19]Read from MH i2c: F0 09 00 [16:15:19]MH_I2C_Read... [16:15:19]Read from MH i2c: F0 09 00 C4 26 00 19 67 1E 67 D5 8D 6C 64 19 [16:15:19]GetLastDocTimeStamp 1730045715 [16:15:19]current date 1730045721 [16:15:19]FM_GetShiftState [16:15:19]SAM_PROTO_GetShiftState [16:15:19]wFMCommunicate request_size=4 [16:15:19]MH_SAM_APDU [16:15:19]CAPDU: 80 13 01 00 [16:15:19]Write to MH i2c: E2 08 00 C5 26 80 13 01 00 00 00 00 00 68 [16:15:19]Write i2c OK [16:15:19]MH_I2C_Read... [16:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:19]Read from MH i2c: E2 [16:15:19]MH_I2C_Read... [16:15:19]Read from MH i2c: E2 0E 00 [16:15:19]MH_I2C_Read... [16:15:19]Read from MH i2c: E2 0E 00 C5 26 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E0 [16:15:19]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:15:19]wFMCommunicate OK [16:15:19]SAM_PROTO_GetShiftState done [16:15:19]FM_GetShiftState done [16:15:19]opened in 1729988959 [16:15:19]opened+sec_in_day 1730075359 [16:15:19]quantity*price = 150056 [16:15:19]sum+1 = 150058 [16:15:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 187 27.10.2024 16:15 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145764 ФПД: 15589322096799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161521&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145764&fm=15589322096799&tin=02508201610067®Number=0000000000091683&sum=150000 [16:15:20]StoreToDocumentArchive [16:15:20]shift 545 fd 145764 [16:15:20]save to /storage/0545/doc_00145764 [16:15:20]save last doc name /storage/0545/doc_00145764 to /storage/kkm_last_doc_name [16:15:20]save OK [16:15:20]Clear old archive folders... [16:15:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:20]tlvbuf is 0051A500 [16:15:20]SAM_PROTO_ClearQueue [16:15:20]wFMCommunicate request_size=4 [16:15:20]MH_SAM_APDU [16:15:20]CAPDU: 80 09 00 00 [16:15:20]Write to MH i2c: E2 08 00 D2 26 80 09 00 00 00 00 00 00 6A [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:20]Read from MH i2c: E2 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 D2 26 00 90 00 6C [16:15:20]RAPDU: 90 00 [16:15:20]wFMCommunicate OK [16:15:20]SAM_PROTO_ClearQueue done [16:15:20]KKMCreateOFDPacket [16:15:20]OFDProtocolAddRootSTLVToBuf [16:15:20]FM_MakeSignedData [16:15:20]FM_MakeSignedData [16:15:20]SAM_PROTO_SignData [16:15:20]wFMCommunicate request_size=4 [16:15:20]MH_SAM_APDU [16:15:20]CAPDU: 80 0D 01 02 [16:15:20]Write to MH i2c: E2 08 00 D3 26 80 0D 01 02 00 00 00 00 72 [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:20]Read from MH i2c: E2 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 D3 26 00 90 00 6D [16:15:20]RAPDU: 90 00 [16:15:20]wFMCommunicate OK [16:15:20]wFMCommunicate request_size=255 [16:15:20]MH_SAM_APDU [16:15:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 19 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 64 39 02 00 35 04 06 00 0E [16:15:20]Write to MH i2c: E2 02 01 D4 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 19 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 64 39 02 00 35 04 06 00 0E 00 00 D9 [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:20]Read from MH i2c: E2 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 D4 26 00 90 00 6E [16:15:20]RAPDU: 90 00 [16:15:20]wFMCommunicate OK [16:15:20]wFMCommunicate request_size=10 [16:15:20]MH_SAM_APDU [16:15:20]CAPDU: 80 0D 02 02 05 2D AC 01 80 9F [16:15:20]Write to MH i2c: E2 0D 00 D5 26 80 0D 02 02 05 00 2D AC 01 80 9F 00 00 78 [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:20]Read from MH i2c: E2 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 D5 26 00 90 00 6F [16:15:20]RAPDU: 90 00 [16:15:20]wFMCommunicate OK [16:15:20]wFMCommunicate request_size=4 [16:15:20]MH_SAM_APDU [16:15:20]CAPDU: 80 0D 03 02 [16:15:20]Write to MH i2c: E2 08 00 D6 26 80 0D 03 02 00 00 00 00 77 [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:20]Read from MH i2c: E2 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 0B 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 0B 00 D6 26 00 04 C3 25 63 DB A3 4E 4F 90 00 E2 [16:15:20]RAPDU: 04 C3 25 63 DB A3 4E 4F 90 00 [16:15:20]wFMCommunicate OK [16:15:20]SAM_PROTO_SignData done [16:15:20]FM_MakeSignedData done [16:15:20]CreateOFDProtocolMessage [16:15:20]wFMCommunicate request_size=4 [16:15:20]MH_SAM_APDU [16:15:20]CAPDU: 80 11 00 00 [16:15:20]Write to MH i2c: E2 08 00 D7 26 80 11 00 00 00 00 00 00 77 [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:20]Read from MH i2c: E2 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 17 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 17 00 D7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 CA [16:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:15:20]wFMCommunicate OK [16:15:20]CreateOFDProtocolMessage done [16:15:20]OFDSenderStorePacket 145764 [16:15:20]StoreOFDPacket docnum=145764 [16:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 2C C6 07 01 6D 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 19 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 64 39 02 00 35 04 06 00 0E 2D AC 01 80 9F 04 C3 25 63 DB A3 4E 4F [16:15:20]CheckFolder [16:15:20]dirname=/storage/ofd_packets [16:15:20]CheckFolder done [16:15:20]ProducePacketName [16:15:20]name=ofd_packets/00145764 [16:15:20]NVStorageSaveData ofd_packets/00145764 [16:15:20]File name is /storage/ofd_packets/00145764 [16:15:20]Write 301 bytes [16:15:20]NVStorageSaveData done [16:15:20]OFDSenderStorePacket done [16:15:20]KKMCreateOFDPacket done [16:15:20]NVStorageSaveData kkm_last_timestamp [16:15:20]File name is /storage/kkm_last_timestamp [16:15:20]Write 4 bytes [16:15:20]NVStorageSaveData done [16:15:20]ExternCall_PrintAddStr [16:15:20]wPrintStart [16:15:20]Write to MH i2c: 01 00 00 D8 26 FE [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: 01 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: 01 07 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: 01 07 00 D8 26 00 00 00 00 00 FF 0F 13 [16:15:20]RasterBufferAndPrint [16:15:20]line Счет N : (1)160519 [16:15:20]line ИНН: 02508201610067 [16:15:20]line Контрольно-Кассовый Чек [16:15:20]line ПРОДАЖА [16:15:20]line ТРК (МРК, ГНК) : 52 [16:15:20]line Товар: 2710124130 [16:15:20]line Аи-92-К-2 [16:15:20]line 22.430 * 66.90 [16:15:20]line = 1500.57 [16:15:20]line НДС 12% НСП 1% [16:15:20]line > о реализуемом товаре [16:15:20]line ОКРУГЛЕНИЕ: -0.57 [16:15:20]line ИТОГО: 1500.00 [16:15:20]line Внесено: 1500.00 [16:15:20]line СДАЧА: 0.00 [16:15:20]line НСП 1% : 13.28 [16:15:20]line НДС 12% : 159.35 [16:15:20]line Наличными: 1500.00 [16:15:20]line Безнал.: 0.00 [16:15:20]line Место: АЗС № 126 "Партнер Нефть" [16:15:20]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:15:20]line СНО: Общий режим [16:15:20]line Чек 187 27.10.2024 16:15 [16:15:20]line Смена: 545 ФФД: 1.0 [16:15:20]line ЗНМ: 0300000085 [16:15:20]line РНМ: 0000000000091683 [16:15:20]line Версия ККМ: 001 [16:15:20]line ФМ: 0000000000871745 [16:15:20]line ФД: 145764 [16:15:20]line ФПД: 15589322096799 [16:15:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161521&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145764&fm=15589322096799&tin=02508201610067®Number=0000000000091683&sum=150000 [16:15:21]OFD Sender: Processing packet 145764 [packets to send 206, broken 205] [16:15:21]ProducePacketName [16:15:21]name=ofd_packets/00145764 [16:15:21]OFD Sender: To server: pG, [16:15:21]CommunicateWithHost lk.salyk.kg:30040 [16:15:21]ConnectInit lk.salyk.kg [16:15:21]written 0, free lines is 4095 [16:15:21]Connected sock=11 [16:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 2C C6 07 01 6D 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 19 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 64 39 02 00 35 04 06 00 0E 2D AC 01 80 9F 04 C3 25 63 DB A3 4E 4F [16:15:21]Write to MH i2c: 01 00 00 03 27 2A [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 07 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 07 00 03 27 00 00 00 00 00 B7 0C F4 [16:15:21]RasterBufferAndPrint [16:15:21]line [16:15:21]line [16:15:21]line [16:15:21]line [16:15:21]line [16:15:21]written 0, free lines is 3272 [16:15:21]MH_Cut [16:15:21]Write to MH i2c: D1 01 00 0A 27 01 03 [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: D1 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: D1 01 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: D1 01 00 0A 27 00 02 [16:15:21]Write to MH i2c: 01 00 00 0B 27 32 [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 03 6B 47 00 F8 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 64 39 02 00 F4 03 04 00 46 0C 1E 67 B6 04 01 00 00 41 21 E1 45 23 C6 D6 3A [16:15:21]CommunicateWithHost err = 0 [16:15:21]CheckOFDResponse [16:15:21]1017 (14) - 77093643461234 [16:15:21]1041 (16) - 0000000000871745 [16:15:21]1040 (4) - 145764 [16:15:21]1012 (4) - 27.10.2024 09:47 [16:15:21]1206 (1) - 0 [16:15:21]OFD Sender: Remove packet 145764 [16:15:21]ProducePacketName [16:15:21]name=ofd_packets/00145764 [16:15:21]NVStorageDeleteData [16:15:22]OFD Sender: No OFD packet to send [16:15:22]*** Cut start [16:15:22]*** Partial cut [16:15:22]*** CUTSNS_PIN = 1 [16:15:22]*** CUTSNS_PIN = 0 [16:15:22]*** Brake cut motor [16:15:23]Read from MH i2c: 01 [16:15:23]MH_I2C_Read... [16:15:23]*** Stop cut motor [16:15:23]*** Cut end [16:15:23]Read from MH i2c: 01 07 00 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: 01 07 00 0B 27 00 00 00 00 00 FF 0F 47 [16:15:23]process_action close_receipt done [16:15:23]requested_data is exist [16:15:23]produce_requested_data [16:15:23]requested_item fm.sn is exist - process it [16:15:23]wFMCommunicate request_size=4 [16:15:23]MH_SAM_APDU [16:15:23]CAPDU: 80 11 00 00 [16:15:23]Write to MH i2c: E2 08 00 0C 27 80 11 00 00 00 00 00 00 AD [16:15:23]Write i2c OK [16:15:23]MH_I2C_Read... [16:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:23]Read from MH i2c: E2 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 17 00 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 17 00 0C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 00 [16:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:15:23]wFMCommunicate OK [16:15:23]requested_item fd.num is exist - process it [16:15:23]SAM_PROTO_GetFieldsCounters [16:15:23]wFMCommunicate request_size=4 [16:15:23]MH_SAM_APDU [16:15:23]CAPDU: 80 13 00 00 [16:15:23]Write to MH i2c: E2 08 00 0D 27 80 13 00 00 00 00 00 00 B0 [16:15:23]Write i2c OK [16:15:23]MH_I2C_Read... [16:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:23]Read from MH i2c: E2 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 62 00 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 62 00 0D 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 64 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [16:15:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 64 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:23]wFMCommunicate OK [16:15:23]SAM_PROTO_GetFieldsCounters done [16:15:23]requested_item shift.num is exist - process it [16:15:23]requested_item shift.opened is exist - process it [16:15:23]req_shift_opened [16:15:23]FM_GetShiftState [16:15:23]SAM_PROTO_GetShiftState [16:15:23]wFMCommunicate request_size=4 [16:15:23]MH_SAM_APDU [16:15:23]CAPDU: 80 13 01 00 [16:15:23]Write to MH i2c: E2 08 00 0E 27 80 13 01 00 00 00 00 00 B2 [16:15:23]Write i2c OK [16:15:23]MH_I2C_Read... [16:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:23]Read from MH i2c: E2 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 0E 00 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 0E 00 0E 27 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 2A [16:15:23]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:15:23]wFMCommunicate OK [16:15:23]SAM_PROTO_GetShiftState done [16:15:23]FM_GetShiftState done [16:15:23]req_shift_opened done [16:15:23]requested_item shift.open_date is exist - process it [16:15:23]req_shift_open_date [16:15:23]req_shift_open_date done [16:15:23]produce_requested_data done [16:15:23]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145764,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:15:23]process_action_free close_receipt [16:15:23]json_value_free [16:15:23]json_value_free done [16:15:23]process_json_proto returns [16:15:23]Send response to host [16:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145764,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:15:23]free response buf [16:15:23]execute_script done [16:15:23]execute_script returns [16:15:23]free content buf [16:15:23]Sock 10.Close socket [16:15:23]Sock 10.Thread stoped [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:34]ConnectInit Can't connect to host [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:15]accept exits with 7 [16:18:15]New connection [16:18:15]New thread 3066596708 created [16:18:15]Thread 3066740068 joined [16:18:15]Waiting for new connection... [16:18:15] Sock 7.Parse request [16:18:15]Sock 7.Check first char [16:18:15]Sock 7.First char is OK [16:18:15]request: POST /json_proto HTTP/1.0 [16:18:15]Method: POST [16:18:15]URL: /json_proto [16:18:15]Method is POST - this is cgi request [16:18:15]url: /json_proto [16:18:15]query_string will be loaded in cgi processing [16:18:15]execute_cgi json_proto POST (null) [16:18:15]execute_cgi path=json_proto method=POST [16:18:15]POST find Content-Length [16:18:15]Host: 172.17.40.195:8080 [16:18:15]Content-Length: 682 [16:18:15]Content-Type: application/json [16:18:15] [16:18:15]POST finish read [16:18:15]Found Content-Length = 682 [16:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:15]execute_script... [16:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:15]POST & json_proto [16:18:15]process_json_proto [16:18:15]json parsed OK: [16:18:15]protocol is kg_v1.0 [16:18:15]action value=close_receipt [16:18:15]process_action close_receipt [16:18:15]cmd_close_receipt [16:18:15]MH_GetDate [16:18:15]Write to MH i2c: F0 00 00 0F 27 25 [16:18:15]Write i2c OK [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: F0 [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: F0 09 00 [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: F0 09 00 0F 27 00 C9 67 1E 67 D5 8D 6C 64 15 [16:18:15]GetLastDocTimeStamp 1730045721 [16:18:15]current date 1730045897 [16:18:15]FM_GetShiftState [16:18:15]SAM_PROTO_GetShiftState [16:18:15]wFMCommunicate request_size=4 [16:18:15]MH_SAM_APDU [16:18:15]CAPDU: 80 13 01 00 [16:18:15]Write to MH i2c: E2 08 00 10 27 80 13 01 00 00 00 00 00 B4 [16:18:15]Write i2c OK [16:18:15]MH_I2C_Read... [16:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:15]Read from MH i2c: E2 [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: E2 0E 00 [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: E2 0E 00 10 27 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 2C [16:18:15]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:18:15]wFMCommunicate OK [16:18:15]SAM_PROTO_GetShiftState done [16:18:15]FM_GetShiftState done [16:18:15]opened in 1729988959 [16:18:15]opened+sec_in_day 1730075359 [16:18:15]quantity*price = 100015 [16:18:15]sum+1 = 100017 [16:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 188 27.10.2024 16:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145765 ФПД: 55100326236726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161817&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145765&fm=55100326236726&tin=02508201610067®Number=0000000000091683&sum=100000 [16:18:16]StoreToDocumentArchive [16:18:16]shift 545 fd 145765 [16:18:16]save to /storage/0545/doc_00145765 [16:18:16]save last doc name /storage/0545/doc_00145765 to /storage/kkm_last_doc_name [16:18:16]save OK [16:18:16]Clear old archive folders... [16:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:16]tlvbuf is 004F74F0 [16:18:16]SAM_PROTO_ClearQueue [16:18:16]wFMCommunicate request_size=4 [16:18:16]MH_SAM_APDU [16:18:16]CAPDU: 80 09 00 00 [16:18:16]Write to MH i2c: E2 08 00 1D 27 80 09 00 00 00 00 00 00 B6 [16:18:16]Write i2c OK [16:18:16]MH_I2C_Read... [16:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:16]Read from MH i2c: E2 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 03 00 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 03 00 1D 27 00 90 00 B8 [16:18:16]RAPDU: 90 00 [16:18:16]wFMCommunicate OK [16:18:16]SAM_PROTO_ClearQueue done [16:18:16]KKMCreateOFDPacket [16:18:16]OFDProtocolAddRootSTLVToBuf [16:18:16]FM_MakeSignedData [16:18:16]FM_MakeSignedData [16:18:16]SAM_PROTO_SignData [16:18:16]wFMCommunicate request_size=4 [16:18:16]MH_SAM_APDU [16:18:16]CAPDU: 80 0D 01 02 [16:18:16]Write to MH i2c: E2 08 00 1E 27 80 0D 01 02 00 00 00 00 BE [16:18:16]Write i2c OK [16:18:16]MH_I2C_Read... [16:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:16]Read from MH i2c: E2 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 03 00 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 03 00 1E 27 00 90 00 B9 [16:18:16]RAPDU: 90 00 [16:18:16]wFMCommunicate OK [16:18:16]wFMCommunicate request_size=255 [16:18:16]MH_SAM_APDU [16:18:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 C9 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 65 39 02 00 35 04 06 00 32 [16:18:16]Write to MH i2c: E2 02 01 1F 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 C9 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 65 39 02 00 35 04 06 00 32 00 00 AC [16:18:16]Write i2c OK [16:18:16]MH_I2C_Read... [16:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:16]Read from MH i2c: E2 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 03 00 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 03 00 1F 27 00 90 00 BA [16:18:16]RAPDU: 90 00 [16:18:16]wFMCommunicate OK [16:18:16]wFMCommunicate request_size=10 [16:18:16]MH_SAM_APDU [16:18:16]CAPDU: 80 0D 02 02 05 1D 0B 5F 52 36 [16:18:16]Write to MH i2c: E2 0D 00 20 27 80 0D 02 02 05 00 1D 0B 5F 52 36 00 00 DA [16:18:16]Write i2c OK [16:18:16]MH_I2C_Read... [16:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:16]Read from MH i2c: E2 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 03 00 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 03 00 20 27 00 90 00 BB [16:18:16]RAPDU: 90 00 [16:18:16]wFMCommunicate OK [16:18:16]wFMCommunicate request_size=4 [16:18:16]MH_SAM_APDU [16:18:16]CAPDU: 80 0D 03 02 [16:18:16]Write to MH i2c: E2 08 00 21 27 80 0D 03 02 00 00 00 00 C3 [16:18:16]Write i2c OK [16:18:16]MH_I2C_Read... [16:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:16]Read from MH i2c: E2 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 0B 00 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 0B 00 21 27 00 06 C0 8C 09 B9 E8 12 6F 90 00 41 [16:18:16]RAPDU: 06 C0 8C 09 B9 E8 12 6F 90 00 [16:18:16]wFMCommunicate OK [16:18:16]SAM_PROTO_SignData done [16:18:16]FM_MakeSignedData done [16:18:16]CreateOFDProtocolMessage [16:18:16]wFMCommunicate request_size=4 [16:18:16]MH_SAM_APDU [16:18:16]CAPDU: 80 11 00 00 [16:18:16]Write to MH i2c: E2 08 00 22 27 80 11 00 00 00 00 00 00 C3 [16:18:16]Write i2c OK [16:18:16]MH_I2C_Read... [16:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:16]Read from MH i2c: E2 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 17 00 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: E2 17 00 22 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 16 [16:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:18:16]wFMCommunicate OK [16:18:16]CreateOFDProtocolMessage done [16:18:16]OFDSenderStorePacket 145765 [16:18:16]StoreOFDPacket docnum=145765 [16:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 18 A4 07 01 C3 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 C9 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 65 39 02 00 35 04 06 00 32 1D 0B 5F 52 36 06 C0 8C 09 B9 E8 12 6F [16:18:16]CheckFolder [16:18:16]dirname=/storage/ofd_packets [16:18:16]CheckFolder done [16:18:16]ProducePacketName [16:18:16]name=ofd_packets/00145765 [16:18:16]NVStorageSaveData ofd_packets/00145765 [16:18:16]File name is /storage/ofd_packets/00145765 [16:18:16]Write 301 bytes [16:18:16]NVStorageSaveData done [16:18:16]OFDSenderStorePacket done [16:18:16]KKMCreateOFDPacket done [16:18:16]NVStorageSaveData kkm_last_timestamp [16:18:16]File name is /storage/kkm_last_timestamp [16:18:16]Write 4 bytes [16:18:16]NVStorageSaveData done [16:18:16]ExternCall_PrintAddStr [16:18:16]wPrintStart [16:18:16]Write to MH i2c: 01 00 00 23 27 4A [16:18:16]Write i2c OK [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: 01 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: 01 07 00 [16:18:16]MH_I2C_Read... [16:18:16]Read from MH i2c: 01 07 00 23 27 00 00 00 00 00 FF 0F 5F [16:18:16]RasterBufferAndPrint [16:18:16]line Счет N : (1)160521 [16:18:16]line ИНН: 02508201610067 [16:18:16]line Контрольно-Кассовый Чек [16:18:16]line ПРОДАЖА [16:18:16]line ТРК (МРК, ГНК) : 42 [16:18:16]line Товар: 2710124130 [16:18:16]line Аи-92-К-2 [16:18:16]line 14.950 * 66.90 [16:18:16]line = 1000.16 [16:18:16]line НДС 12% НСП 1% [16:18:16]line > о реализуемом товаре [16:18:16]line ОКРУГЛЕНИЕ: -0.16 [16:18:16]line ИТОГО: 1000.00 [16:18:16]line Внесено: 1000.00 [16:18:16]line СДАЧА: 0.00 [16:18:16]line НСП 1% : 8.85 [16:18:16]line НДС 12% : 106.21 [16:18:16]line Наличными: 1000.00 [16:18:16]line Безнал.: 0.00 [16:18:16]line Место: АЗС № 126 "Партнер Нефть" [16:18:16]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:18:16]line СНО: Общий режим [16:18:16]line Чек 188 27.10.2024 16:18 [16:18:16]line Смена: 545 ФФД: 1.0 [16:18:16]line ЗНМ: 0300000085 [16:18:16]line РНМ: 0000000000091683 [16:18:16]line Версия ККМ: 001 [16:18:16]line ФМ: 0000000000871745 [16:18:16]line ФД: 145765 [16:18:16]line ФПД: 55100326236726 [16:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161817&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145765&fm=55100326236726&tin=02508201610067®Number=0000000000091683&sum=100000 [16:18:17]OFD Sender: Processing packet 145765 [packets to send 206, broken 205] [16:18:17]ProducePacketName [16:18:17]name=ofd_packets/00145765 [16:18:17]OFD Sender: To server: pG, [16:18:17]CommunicateWithHost lk.salyk.kg:30040 [16:18:17]ConnectInit lk.salyk.kg [16:18:17]written 0, free lines is 4095 [16:18:17]Connected sock=6 [16:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 18 A4 07 01 C3 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 C9 67 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 65 39 02 00 35 04 06 00 32 1D 0B 5F 52 36 06 C0 8C 09 B9 E8 12 6F [16:18:17]Write to MH i2c: 01 00 00 4E 27 75 [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: 01 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: 01 07 00 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: 01 07 00 4E 27 00 00 00 00 00 B4 0C 3C [16:18:17]RasterBufferAndPrint [16:18:17]line [16:18:17]line [16:18:17]line [16:18:17]line [16:18:17]line [16:18:17]written 0, free lines is 3258 [16:18:17]MH_Cut [16:18:17]Write to MH i2c: D1 01 00 55 27 01 4E [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: D1 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: D1 01 00 [16:18:17]MH_I2C_Read... [16:18:17]Read from MH i2c: D1 01 00 55 27 00 4D [16:18:17]Write to MH i2c: 01 00 00 56 27 7D [16:18:17]Write i2c OK [16:18:17]MH_I2C_Read... [16:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 0B 66 47 00 E8 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 31 37 34 35 10 04 04 00 65 39 02 00 F4 03 04 00 F6 0C 1E 67 B6 04 01 00 00 B2 14 C4 91 18 1E 72 FF [16:18:17]CommunicateWithHost err = 0 [16:18:17]CheckOFDResponse [16:18:17]1017 (14) - 77093643461234 [16:18:17]1041 (16) - 0000000000871745 [16:18:17]1040 (4) - 145765 [16:18:17]1012 (4) - 27.10.2024 09:50 [16:18:17]1206 (1) - 0 [16:18:17]OFD Sender: Remove packet 145765 [16:18:17]ProducePacketName [16:18:17]name=ofd_packets/00145765 [16:18:17]NVStorageDeleteData [16:18:18]OFD Sender: No OFD packet to send [16:18:18]*** Cut start [16:18:18]*** Partial cut [16:18:18]*** CUTSNS_PIN = 1 [16:18:18]*** CUTSNS_PIN = 0 [16:18:18]*** Brake cut motor [16:18:19]Read from MH i2c: 01 [16:18:19]MH_I2C_Read... [16:18:19]*** Stop cut motor [16:18:19]*** Cut end [16:18:19]Read from MH i2c: 01 07 00 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: 01 07 00 56 27 00 00 00 00 00 FF 0F 92 [16:18:19]process_action close_receipt done [16:18:19]requested_data is exist [16:18:19]produce_requested_data [16:18:19]requested_item fm.sn is exist - process it [16:18:19]wFMCommunicate request_size=4 [16:18:19]MH_SAM_APDU [16:18:19]CAPDU: 80 11 00 00 [16:18:19]Write to MH i2c: E2 08 00 57 27 80 11 00 00 00 00 00 00 F8 [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:19]Read from MH i2c: E2 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: E2 17 00 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: E2 17 00 57 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 4B [16:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:18:19]wFMCommunicate OK [16:18:19]requested_item fd.num is exist - process it [16:18:19]SAM_PROTO_GetFieldsCounters [16:18:19]wFMCommunicate request_size=4 [16:18:19]MH_SAM_APDU [16:18:19]CAPDU: 80 13 00 00 [16:18:19]Write to MH i2c: E2 08 00 58 27 80 13 00 00 00 00 00 00 FB [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:19]Read from MH i2c: E2 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: E2 62 00 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: E2 62 00 58 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 65 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [16:18:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 65 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:19]wFMCommunicate OK [16:18:19]SAM_PROTO_GetFieldsCounters done [16:18:19]requested_item shift.num is exist - process it [16:18:19]requested_item shift.opened is exist - process it [16:18:19]req_shift_opened [16:18:19]FM_GetShiftState [16:18:19]SAM_PROTO_GetShiftState [16:18:19]wFMCommunicate request_size=4 [16:18:19]MH_SAM_APDU [16:18:19]CAPDU: 80 13 01 00 [16:18:19]Write to MH i2c: E2 08 00 59 27 80 13 01 00 00 00 00 00 FD [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:19]Read from MH i2c: E2 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: E2 0E 00 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: E2 0E 00 59 27 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 75 [16:18:19]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:18:19]wFMCommunicate OK [16:18:19]SAM_PROTO_GetShiftState done [16:18:19]FM_GetShiftState done [16:18:19]req_shift_opened done [16:18:19]requested_item shift.open_date is exist - process it [16:18:19]req_shift_open_date [16:18:19]req_shift_open_date done [16:18:19]produce_requested_data done [16:18:19]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145765,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:18:19]process_action_free close_receipt [16:18:19]json_value_free [16:18:19]json_value_free done [16:18:19]process_json_proto returns [16:18:19]Send response to host [16:18:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145765,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:18:19]free response buf [16:18:19]execute_script done [16:18:19]execute_script returns [16:18:19]free content buf [16:18:19]Sock 7.Close socket [16:18:19]Sock 7.Thread stoped [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:27]accept exits with 9 [16:19:27]New connection [16:19:27]New thread 3066740068 created [16:19:27]Thread 3066596708 joined [16:19:27]Waiting for new connection... [16:19:27] Sock 9.Parse request [16:19:27]Sock 9.Check first char [16:19:27]Sock 9.First char is OK [16:19:27]request: POST /json_proto HTTP/1.0 [16:19:27]Method: POST [16:19:27]URL: /json_proto [16:19:27]Method is POST - this is cgi request [16:19:27]url: /json_proto [16:19:27]query_string will be loaded in cgi processing [16:19:27]execute_cgi json_proto POST (null) [16:19:27]execute_cgi path=json_proto method=POST [16:19:27]POST find Content-Length [16:19:27]Host: 172.17.40.195:8080 [16:19:27]Content-Length: 677 [16:19:27]Content-Type: application/json [16:19:27] [16:19:27]POST finish read [16:19:27]Found Content-Length = 677 [16:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:27]execute_script... [16:19: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)160522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:27]POST & json_proto [16:19:27]process_json_proto [16:19:27]json parsed OK: [16:19:27]protocol is kg_v1.0 [16:19:27]action value=close_receipt [16:19:27]process_action close_receipt [16:19:27]cmd_close_receipt [16:19:27]MH_GetDate [16:19:27]Write to MH i2c: F0 00 00 5A 27 70 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: F0 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: F0 09 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: F0 09 00 5A 27 00 12 68 1E 67 D5 8D 6C 64 AA [16:19:27]GetLastDocTimeStamp 1730045897 [16:19:27]current date 1730045970 [16:19:27]FM_GetShiftState [16:19:27]SAM_PROTO_GetShiftState [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 13 01 00 [16:19:27]Write to MH i2c: E2 08 00 5B 27 80 13 01 00 00 00 00 00 FF [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0E 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0E 00 5B 27 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 77 [16:19:27]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:19:27]wFMCommunicate OK [16:19:27]SAM_PROTO_GetShiftState done [16:19:27]FM_GetShiftState done [16:19:27]opened in 1729988959 [16:19:27]opened+sec_in_day 1730075359 [16:19:27]quantity*price = 50041 [16:19:27]sum+1 = 50042 [16:19:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 189 27.10.2024 16:19 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145766 ФПД: 260801406625922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161930&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145766&fm=260801406625922&tin=02508201610067®Number=0000000000091683&sum=50000 [16:19:28]StoreToDocumentArchive [16:19:28]shift 545 fd 145766 [16:19:28]save to /storage/0545/doc_00145766 [16:19:28]save last doc name /storage/0545/doc_00145766 to /storage/kkm_last_doc_name [16:19:28]save OK [16:19:28]Clear old archive folders... [16:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:28]tlvbuf is B6D745F0 [16:19:28]SAM_PROTO_ClearQueue [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 09 00 00 [16:19:28]Write to MH i2c: E2 08 00 68 27 80 09 00 00 00 00 00 00 01 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 68 27 00 90 00 03 [16:19:28]RAPDU: 90 00 [16:19:28]wFMCommunicate OK [16:19:28]SAM_PROTO_ClearQueue done [16:19:28]KKMCreateOFDPacket [16:19:28]OFDProtocolAddRootSTLVToBuf [16:19:28]FM_MakeSignedData [16:19:28]FM_MakeSignedData [16:19:28]SAM_PROTO_SignData [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 0D 01 02 [16:19:28]Write to MH i2c: E2 08 00 69 27 80 0D 01 02 00 00 00 00 09 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 03 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 03 00 69 27 00 90 00 04 [16:19:29]RAPDU: 90 00 [16:19:29]wFMCommunicate OK [16:19:29]wFMCommunicate request_size=255 [16:19:29]MH_SAM_APDU [16:19:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 12 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 66 39 02 00 35 04 06 00 ED [16:19:29]Write to MH i2c: E2 02 01 6A 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 12 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 66 39 02 00 35 04 06 00 ED 00 00 04 [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 03 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 03 00 6A 27 00 90 00 05 [16:19:29]RAPDU: 90 00 [16:19:29]wFMCommunicate OK [16:19:29]wFMCommunicate request_size=10 [16:19:29]MH_SAM_APDU [16:19:29]CAPDU: 80 0D 02 02 05 32 8F 32 E8 82 [16:19:29]Write to MH i2c: E2 0D 00 6B 27 80 0D 02 02 05 00 32 8F 32 E8 82 00 00 73 [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 03 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 03 00 6B 27 00 90 00 06 [16:19:29]RAPDU: 90 00 [16:19:29]wFMCommunicate OK [16:19:29]wFMCommunicate request_size=4 [16:19:29]MH_SAM_APDU [16:19:29]CAPDU: 80 0D 03 02 [16:19:29]Write to MH i2c: E2 08 00 6C 27 80 0D 03 02 00 00 00 00 0E [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 0B 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 0B 00 6C 27 00 AD 82 FC FA FC B9 2E 7B 90 00 92 [16:19:29]RAPDU: AD 82 FC FA FC B9 2E 7B 90 00 [16:19:29]wFMCommunicate OK [16:19:29]SAM_PROTO_SignData done [16:19:29]FM_MakeSignedData done [16:19:29]CreateOFDProtocolMessage [16:19:29]wFMCommunicate request_size=4 [16:19:29]MH_SAM_APDU [16:19:29]CAPDU: 80 11 00 00 [16:19:29]Write to MH i2c: E2 08 00 6D 27 80 11 00 00 00 00 00 00 0E [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 17 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 17 00 6D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 61 [16:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:19:29]wFMCommunicate OK [16:19:29]CreateOFDProtocolMessage done [16:19:29]OFDSenderStorePacket 145766 [16:19:29]StoreOFDPacket docnum=145766 [16:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 67 F5 07 01 60 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 12 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 66 39 02 00 35 04 06 00 ED 32 8F 32 E8 82 AD 82 FC FA FC B9 2E 7B [16:19:29]CheckFolder [16:19:29]dirname=/storage/ofd_packets [16:19:29]CheckFolder done [16:19:29]ProducePacketName [16:19:29]name=ofd_packets/00145766 [16:19:29]NVStorageSaveData ofd_packets/00145766 [16:19:29]File name is /storage/ofd_packets/00145766 [16:19:29]Write 301 bytes [16:19:29]NVStorageSaveData done [16:19:29]OFDSenderStorePacket done [16:19:29]KKMCreateOFDPacket done [16:19:29]NVStorageSaveData kkm_last_timestamp [16:19:29]File name is /storage/kkm_last_timestamp [16:19:29]Write 4 bytes [16:19:29]NVStorageSaveData done [16:19:29]ExternCall_PrintAddStr [16:19:29]wPrintStart [16:19:29]Write to MH i2c: 01 00 00 6E 27 95 [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: 01 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: 01 07 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: 01 07 00 6E 27 00 00 00 00 00 FF 0F AA [16:19:29]RasterBufferAndPrint [16:19:29]line Счет N : (1)160522 [16:19:29]line ИНН: 02508201610067 [16:19:29]line Контрольно-Кассовый Чек [16:19:29]line ПРОДАЖА [16:19:29]line ТРК (МРК, ГНК) : 62 [16:19:29]line Товар: 2710124130 [16:19:29]line Аи-92-К-2 [16:19:29]line 7.480 * 66.90 [16:19:29]line = 500.41 [16:19:29]line НДС 12% НСП 1% [16:19:29]line > о реализуемом товаре [16:19:29]line ОКРУГЛЕНИЕ: -0.41 [16:19:29]line ИТОГО: 500.00 [16:19:29]line Внесено: 500.00 [16:19:29]line СДАЧА: 0.00 [16:19:29]line НСП 1% : 4.43 [16:19:29]line НДС 12% : 53.14 [16:19:29]line Наличными: 500.00 [16:19:29]line Безнал.: 0.00 [16:19:29]line Место: АЗС № 126 "Партнер Нефть" [16:19:29]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:19:29]line СНО: Общий режим [16:19:29]line Чек 189 27.10.2024 16:19 [16:19:29]line Смена: 545 ФФД: 1.0 [16:19:29]line ЗНМ: 0300000085 [16:19:29]line РНМ: 0000000000091683 [16:19:29]line Версия ККМ: 001 [16:19:29]line ФМ: 0000000000871745 [16:19:29]line ФД: 145766 [16:19:29]line ФПД: 260801406625922 [16:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161930&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145766&fm=260801406625922&tin=02508201610067®Number=0000000000091683&sum=50000 [16:19:29]written 0, free lines is 4095 [16:19:29]OFD Sender: Processing packet 145766 [packets to send 206, broken 205] [16:19:29]ProducePacketName [16:19:29]name=ofd_packets/00145766 [16:19:29]OFD Sender: To server: pG, [16:19:29]CommunicateWithHost lk.salyk.kg:30040 [16:19:29]ConnectInit lk.salyk.kg [16:19:29]Connected sock=10 [16:19:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 67 F5 07 01 60 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 12 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 66 39 02 00 35 04 06 00 ED 32 8F 32 E8 82 AD 82 FC FA FC B9 2E 7B [16:19:30]Write to MH i2c: 01 00 00 99 27 C0 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: 01 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: 01 07 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: 01 07 00 99 27 00 00 00 00 00 B9 0C 8C [16:19:30]RasterBufferAndPrint [16:19:30]line [16:19:30]line [16:19:30]line [16:19:30]line [16:19:30]line [16:19:30]written 0, free lines is 3264 [16:19:30]MH_Cut [16:19:30]Write to MH i2c: D1 01 00 A0 27 01 99 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: D1 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: D1 01 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: D1 01 00 A0 27 00 98 [16:19:30]Write to MH i2c: 01 00 00 A1 27 C8 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 05 1A 47 00 3C B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 66 39 02 00 F4 03 04 00 3F 0D 1E 67 B6 04 01 00 00 63 7A 41 13 2F E8 13 F6 [16:19:30]CommunicateWithHost err = 0 [16:19:30]CheckOFDResponse [16:19:30]1017 (14) - 77093643461234 [16:19:30]1041 (16) - 0000000000871745 [16:19:30]1040 (4) - 145766 [16:19:30]1012 (4) - 27.10.2024 09:51 [16:19:30]1206 (1) - 0 [16:19:30]OFD Sender: Remove packet 145766 [16:19:30]ProducePacketName [16:19:30]name=ofd_packets/00145766 [16:19:30]NVStorageDeleteData [16:19:30]OFD Sender: No OFD packet to send [16:19:31]*** Cut start [16:19:31]*** Partial cut [16:19:31]*** CUTSNS_PIN = 1 [16:19:31]*** CUTSNS_PIN = 0 [16:19:31]*** Brake cut motor [16:19:31]Read from MH i2c: 01 [16:19:31]MH_I2C_Read... [16:19:31]*** Stop cut motor [16:19:31]*** Cut end [16:19:31]Read from MH i2c: 01 07 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: 01 07 00 A1 27 00 00 00 00 00 FF 0F DD [16:19:31]process_action close_receipt done [16:19:31]requested_data is exist [16:19:31]produce_requested_data [16:19:31]requested_item fm.sn is exist - process it [16:19:31]wFMCommunicate request_size=4 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 11 00 00 [16:19:31]Write to MH i2c: E2 08 00 A2 27 80 11 00 00 00 00 00 00 43 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 17 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 17 00 A2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 96 [16:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:19:31]wFMCommunicate OK [16:19:31]requested_item fd.num is exist - process it [16:19:31]SAM_PROTO_GetFieldsCounters [16:19:31]wFMCommunicate request_size=4 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 13 00 00 [16:19:31]Write to MH i2c: E2 08 00 A3 27 80 13 00 00 00 00 00 00 46 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 62 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 62 00 A3 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 66 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [16:19:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 66 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:31]wFMCommunicate OK [16:19:31]SAM_PROTO_GetFieldsCounters done [16:19:31]requested_item shift.num is exist - process it [16:19:31]requested_item shift.opened is exist - process it [16:19:31]req_shift_opened [16:19:31]FM_GetShiftState [16:19:31]SAM_PROTO_GetShiftState [16:19:31]wFMCommunicate request_size=4 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 13 01 00 [16:19:31]Write to MH i2c: E2 08 00 A4 27 80 13 01 00 00 00 00 00 48 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0E 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0E 00 A4 27 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C0 [16:19:31]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:19:31]wFMCommunicate OK [16:19:31]SAM_PROTO_GetShiftState done [16:19:31]FM_GetShiftState done [16:19:31]req_shift_opened done [16:19:31]requested_item shift.open_date is exist - process it [16:19:31]req_shift_open_date [16:19:31]req_shift_open_date done [16:19:31]produce_requested_data done [16:19:31]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145766,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:19:31]process_action_free close_receipt [16:19:31]json_value_free [16:19:31]json_value_free done [16:19:31]process_json_proto returns [16:19:31]Send response to host [16:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145766,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:19:31]free response buf [16:19:31]execute_script done [16:19:31]execute_script returns [16:19:31]free content buf [16:19:31]Sock 9.Close socket [16:19:31]Sock 9.Thread stoped [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:38]accept exits with 7 [16:22:38]New connection [16:22:38]New thread 3066596708 created [16:22:38]Thread 3066740068 joined [16:22:38]Waiting for new connection... [16:22:38] Sock 7.Parse request [16:22:38]Sock 7.Check first char [16:22:38]Sock 7.First char is OK [16:22:38]request: POST /json_proto HTTP/1.0 [16:22:38]Method: POST [16:22:38]URL: /json_proto [16:22:38]Method is POST - this is cgi request [16:22:38]url: /json_proto [16:22:38]query_string will be loaded in cgi processing [16:22:38]execute_cgi json_proto POST (null) [16:22:38]execute_cgi path=json_proto method=POST [16:22:38]POST find Content-Length [16:22:38]Host: 172.17.40.195:8080 [16:22:38]Content-Length: 682 [16:22:38]Content-Type: application/json [16:22:38] [16:22:38]POST finish read [16:22:38]Found Content-Length = 682 [16:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:38]execute_script... [16:22: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)160523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:38]POST & json_proto [16:22:38]process_json_proto [16:22:38]json parsed OK: [16:22:38]protocol is kg_v1.0 [16:22:38]action value=close_receipt [16:22:38]process_action close_receipt [16:22:38]cmd_close_receipt [16:22:38]MH_GetDate [16:22:38]Write to MH i2c: F0 00 00 A5 27 BB [16:22:38]Write i2c OK [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: F0 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: F0 09 00 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: F0 09 00 A5 27 00 D0 68 1E 67 D5 8D 6C 64 B3 [16:22:38]GetLastDocTimeStamp 1730045970 [16:22:38]current date 1730046160 [16:22:38]FM_GetShiftState [16:22:38]SAM_PROTO_GetShiftState [16:22:38]wFMCommunicate request_size=4 [16:22:38]MH_SAM_APDU [16:22:38]CAPDU: 80 13 01 00 [16:22:38]Write to MH i2c: E2 08 00 A6 27 80 13 01 00 00 00 00 00 4A [16:22:38]Write i2c OK [16:22:38]MH_I2C_Read... [16:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:38]Read from MH i2c: E2 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: E2 0E 00 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: E2 0E 00 A6 27 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C2 [16:22:38]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:22:38]wFMCommunicate OK [16:22:38]SAM_PROTO_GetShiftState done [16:22:38]FM_GetShiftState done [16:22:38]opened in 1729988959 [16:22:38]opened+sec_in_day 1730075359 [16:22:38]quantity*price = 120018 [16:22:38]sum+1 = 120020 [16:22:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 190 27.10.2024 16:22 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145767 ФПД: 95629613271099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162241&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145767&fm=95629613271099&tin=02508201610067®Number=0000000000091683&sum=120000 [16:22:39]StoreToDocumentArchive [16:22:39]shift 545 fd 145767 [16:22:39]save to /storage/0545/doc_00145767 [16:22:39]save last doc name /storage/0545/doc_00145767 to /storage/kkm_last_doc_name [16:22:39]save OK [16:22:39]Clear old archive folders... [16:22:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:39]tlvbuf is 00437640 [16:22:39]SAM_PROTO_ClearQueue [16:22:39]wFMCommunicate request_size=4 [16:22:39]MH_SAM_APDU [16:22:39]CAPDU: 80 09 00 00 [16:22:39]Write to MH i2c: E2 08 00 B3 27 80 09 00 00 00 00 00 00 4C [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:39]Read from MH i2c: E2 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 03 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 03 00 B3 27 00 90 00 4E [16:22:39]RAPDU: 90 00 [16:22:39]wFMCommunicate OK [16:22:39]SAM_PROTO_ClearQueue done [16:22:39]KKMCreateOFDPacket [16:22:39]OFDProtocolAddRootSTLVToBuf [16:22:39]FM_MakeSignedData [16:22:39]FM_MakeSignedData [16:22:39]SAM_PROTO_SignData [16:22:39]wFMCommunicate request_size=4 [16:22:39]MH_SAM_APDU [16:22:39]CAPDU: 80 0D 01 02 [16:22:39]Write to MH i2c: E2 08 00 B4 27 80 0D 01 02 00 00 00 00 54 [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:39]Read from MH i2c: E2 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 03 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 03 00 B4 27 00 90 00 4F [16:22:39]RAPDU: 90 00 [16:22:39]wFMCommunicate OK [16:22:39]wFMCommunicate request_size=255 [16:22:39]MH_SAM_APDU [16:22: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 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 D1 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 67 39 02 00 35 04 06 00 56 [16:22:39]Write to MH i2c: E2 02 01 B5 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 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 D1 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 67 39 02 00 35 04 06 00 56 00 00 80 [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:40]Read from MH i2c: E2 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 03 00 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 03 00 B5 27 00 90 00 50 [16:22:40]RAPDU: 90 00 [16:22:40]wFMCommunicate OK [16:22:40]wFMCommunicate request_size=10 [16:22:40]MH_SAM_APDU [16:22:40]CAPDU: 80 0D 02 02 05 F9 81 21 08 3B [16:22:40]Write to MH i2c: E2 0D 00 B6 27 80 0D 02 02 05 00 F9 81 21 08 3B 00 00 3F [16:22:40]Write i2c OK [16:22:40]MH_I2C_Read... [16:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:40]Read from MH i2c: E2 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 03 00 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 03 00 B6 27 00 90 00 51 [16:22:40]RAPDU: 90 00 [16:22:40]wFMCommunicate OK [16:22:40]wFMCommunicate request_size=4 [16:22:40]MH_SAM_APDU [16:22:40]CAPDU: 80 0D 03 02 [16:22:40]Write to MH i2c: E2 08 00 B7 27 80 0D 03 02 00 00 00 00 59 [16:22:40]Write i2c OK [16:22:40]MH_I2C_Read... [16:22:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:40]Read from MH i2c: E2 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 0B 00 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 0B 00 B7 27 00 64 CD 9C F5 CB 5A A1 64 90 00 46 [16:22:40]RAPDU: 64 CD 9C F5 CB 5A A1 64 90 00 [16:22:40]wFMCommunicate OK [16:22:40]SAM_PROTO_SignData done [16:22:40]FM_MakeSignedData done [16:22:40]CreateOFDProtocolMessage [16:22:40]wFMCommunicate request_size=4 [16:22:40]MH_SAM_APDU [16:22:40]CAPDU: 80 11 00 00 [16:22:40]Write to MH i2c: E2 08 00 B8 27 80 11 00 00 00 00 00 00 59 [16:22:40]Write i2c OK [16:22:40]MH_I2C_Read... [16:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:40]Read from MH i2c: E2 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 17 00 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 17 00 B8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AC [16:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:22:40]wFMCommunicate OK [16:22:40]CreateOFDProtocolMessage done [16:22:40]OFDSenderStorePacket 145767 [16:22:40]StoreOFDPacket docnum=145767 [16:22:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 EE 7F 07 01 2C 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 D1 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 67 39 02 00 35 04 06 00 56 F9 81 21 08 3B 64 CD 9C F5 CB 5A A1 64 [16:22:40]CheckFolder [16:22:40]dirname=/storage/ofd_packets [16:22:40]CheckFolder done [16:22:40]ProducePacketName [16:22:40]name=ofd_packets/00145767 [16:22:40]NVStorageSaveData ofd_packets/00145767 [16:22:40]File name is /storage/ofd_packets/00145767 [16:22:40]Write 301 bytes [16:22:40]NVStorageSaveData done [16:22:40]OFDSenderStorePacket done [16:22:40]KKMCreateOFDPacket done [16:22:40]NVStorageSaveData kkm_last_timestamp [16:22:40]File name is /storage/kkm_last_timestamp [16:22:40]Write 4 bytes [16:22:40]NVStorageSaveData done [16:22:40]ExternCall_PrintAddStr [16:22:40]wPrintStart [16:22:40]Write to MH i2c: 01 00 00 B9 27 E0 [16:22:40]Write i2c OK [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: 01 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: 01 07 00 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: 01 07 00 B9 27 00 00 00 00 00 FF 0F F5 [16:22:40]RasterBufferAndPrint [16:22:40]line Счет N : (1)160523 [16:22:40]line ИНН: 02508201610067 [16:22:40]line Контрольно-Кассовый Чек [16:22:40]line ПРОДАЖА [16:22:40]line ТРК (МРК, ГНК) : 32 [16:22:40]line Товар: 2710124130 [16:22:40]line Аи-92-К-2 [16:22:40]line 17.940 * 66.90 [16:22:40]line = 1200.19 [16:22:40]line НДС 12% НСП 1% [16:22:40]line > о реализуемом товаре [16:22:40]line ОКРУГЛЕНИЕ: -0.19 [16:22:40]line ИТОГО: 1200.00 [16:22:40]line Внесено: 1200.00 [16:22:40]line СДАЧА: 0.00 [16:22:40]line НСП 1% : 10.62 [16:22:40]line НДС 12% : 127.45 [16:22:40]line Наличными: 1200.00 [16:22:40]line Безнал.: 0.00 [16:22:40]line Место: АЗС № 126 "Партнер Нефть" [16:22:40]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:22:40]line СНО: Общий режим [16:22:40]line Чек 190 27.10.2024 16:22 [16:22:40]line Смена: 545 ФФД: 1.0 [16:22:40]line ЗНМ: 0300000085 [16:22:40]line РНМ: 0000000000091683 [16:22:40]line Версия ККМ: 001 [16:22:40]line ФМ: 0000000000871745 [16:22:40]line ФД: 145767 [16:22:40]line ФПД: 95629613271099 [16:22:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162241&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145767&fm=95629613271099&tin=02508201610067®Number=0000000000091683&sum=120000 [16:22:40]OFD Sender: Processing packet 145767 [packets to send 206, broken 205] [16:22:40]ProducePacketName [16:22:40]name=ofd_packets/00145767 [16:22:40]OFD Sender: To server: pG, [16:22:40]CommunicateWithHost lk.salyk.kg:30040 [16:22:40]ConnectInit lk.salyk.kg [16:22:40]written 0, free lines is 4095 [16:22:41]Connected sock=11 [16:22:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 EE 7F 07 01 2C 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 D1 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 67 39 02 00 35 04 06 00 56 F9 81 21 08 3B 64 CD 9C F5 CB 5A A1 64 [16:22:41]Write to MH i2c: 01 00 00 E4 27 0B [16:22:41]Write i2c OK [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: 01 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: 01 07 00 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: 01 07 00 E4 27 00 00 00 00 00 B3 0C D1 [16:22:41]RasterBufferAndPrint [16:22:41]line [16:22:41]line [16:22:41]line [16:22:41]line [16:22:41]line [16:22:41]written 0, free lines is 3256 [16:22:41]MH_Cut [16:22:41]Write to MH i2c: D1 01 00 EB 27 01 E4 [16:22:41]Write i2c OK [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: D1 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: D1 01 00 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: D1 01 00 EB 27 00 E3 [16:22:41]Write to MH i2c: 01 00 00 EC 27 13 [16:22:41]Write i2c OK [16:22:41]MH_I2C_Read... [16:22:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 0D 27 47 00 06 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 67 39 02 00 F4 03 04 00 FE 0D 1E 67 B6 04 01 00 00 F0 4E 94 9B E7 09 B8 19 [16:22:41]CommunicateWithHost err = 0 [16:22:41]CheckOFDResponse [16:22:41]1017 (14) - 77093643461234 [16:22:41]1041 (16) - 0000000000871745 [16:22:41]1040 (4) - 145767 [16:22:41]1012 (4) - 27.10.2024 09:55 [16:22:41]1206 (1) - 0 [16:22:41]OFD Sender: Remove packet 145767 [16:22:41]ProducePacketName [16:22:41]name=ofd_packets/00145767 [16:22:41]NVStorageDeleteData [16:22:41]OFD Sender: No OFD packet to send [16:22:41]*** Cut start [16:22:41]*** Partial cut [16:22:41]*** CUTSNS_PIN = 1 [16:22:42]*** CUTSNS_PIN = 0 [16:22:42]*** Brake cut motor [16:22:42]Read from MH i2c: 01 [16:22:42]MH_I2C_Read... [16:22:42]*** Stop cut motor [16:22:42]*** Cut end [16:22:42]Read from MH i2c: 01 07 00 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: 01 07 00 EC 27 00 00 00 00 00 FF 0F 28 [16:22:42]process_action close_receipt done [16:22:42]requested_data is exist [16:22:42]produce_requested_data [16:22:42]requested_item fm.sn is exist - process it [16:22:42]wFMCommunicate request_size=4 [16:22:42]MH_SAM_APDU [16:22:42]CAPDU: 80 11 00 00 [16:22:42]Write to MH i2c: E2 08 00 ED 27 80 11 00 00 00 00 00 00 8E [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:42]Read from MH i2c: E2 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 17 00 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 17 00 ED 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E1 [16:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:22:42]wFMCommunicate OK [16:22:42]requested_item fd.num is exist - process it [16:22:42]SAM_PROTO_GetFieldsCounters [16:22:42]wFMCommunicate request_size=4 [16:22:42]MH_SAM_APDU [16:22:42]CAPDU: 80 13 00 00 [16:22:42]Write to MH i2c: E2 08 00 EE 27 80 13 00 00 00 00 00 00 91 [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:42]Read from MH i2c: E2 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 62 00 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 62 00 EE 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 67 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [16:22:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 67 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:42]wFMCommunicate OK [16:22:42]SAM_PROTO_GetFieldsCounters done [16:22:42]requested_item shift.num is exist - process it [16:22:42]requested_item shift.opened is exist - process it [16:22:42]req_shift_opened [16:22:42]FM_GetShiftState [16:22:42]SAM_PROTO_GetShiftState [16:22:42]wFMCommunicate request_size=4 [16:22:42]MH_SAM_APDU [16:22:42]CAPDU: 80 13 01 00 [16:22:42]Write to MH i2c: E2 08 00 EF 27 80 13 01 00 00 00 00 00 93 [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:42]Read from MH i2c: E2 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 0E 00 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: E2 0E 00 EF 27 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0B [16:22:42]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:22:42]wFMCommunicate OK [16:22:42]SAM_PROTO_GetShiftState done [16:22:42]FM_GetShiftState done [16:22:42]req_shift_opened done [16:22:42]requested_item shift.open_date is exist - process it [16:22:42]req_shift_open_date [16:22:42]req_shift_open_date done [16:22:42]produce_requested_data done [16:22:42]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145767,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:22:42]process_action_free close_receipt [16:22:42]json_value_free [16:22:42]json_value_free done [16:22:42]process_json_proto returns [16:22:42]Send response to host [16:22:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145767,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:22:42]free response buf [16:22:42]execute_script done [16:22:42]execute_script returns [16:22:42]free content buf [16:22:42]Sock 7.Close socket [16:22:42]Sock 7.Thread stoped [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]accept exits with 9 [16:23:16]New connection [16:23:16]New thread 3066740068 created [16:23:16]Thread 3066596708 joined [16:23:16]Waiting for new connection... [16:23:16] Sock 9.Parse request [16:23:16]Sock 9.Check first char [16:23:16]Sock 9.First char is OK [16:23:16]request: POST /json_proto HTTP/1.0 [16:23:16]Method: POST [16:23:16]URL: /json_proto [16:23:16]Method is POST - this is cgi request [16:23:16]url: /json_proto [16:23:16]query_string will be loaded in cgi processing [16:23:16]execute_cgi json_proto POST (null) [16:23:16]execute_cgi path=json_proto method=POST [16:23:16]POST find Content-Length [16:23:16]Host: 172.17.40.195:8080 [16:23:16]Content-Length: 766 [16:23:16]Content-Type: application/json [16:23:16] [16:23:16]POST finish read [16:23:16]Found Content-Length = 766 [16:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 170.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:16]execute_script... [16:23: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)160524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 170.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:16]POST & json_proto [16:23:16]process_json_proto [16:23:16]json parsed OK: [16:23:16]protocol is kg_v1.0 [16:23:16]action value=close_receipt [16:23:16]process_action close_receipt [16:23:16]cmd_close_receipt [16:23:16]MH_GetDate [16:23:16]Write to MH i2c: F0 00 00 F0 27 06 [16:23:16]Write i2c OK [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: F0 [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: F0 09 00 [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: F0 09 00 F0 27 00 F6 68 1E 67 D5 8D 6C 64 24 [16:23:16]GetLastDocTimeStamp 1730046161 [16:23:16]current date 1730046198 [16:23:16]FM_GetShiftState [16:23:16]SAM_PROTO_GetShiftState [16:23:16]wFMCommunicate request_size=4 [16:23:16]MH_SAM_APDU [16:23:16]CAPDU: 80 13 01 00 [16:23:16]Write to MH i2c: E2 08 00 F1 27 80 13 01 00 00 00 00 00 95 [16:23:16]Write i2c OK [16:23:16]MH_I2C_Read... [16:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:16]Read from MH i2c: E2 [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: E2 0E 00 [16:23:16]MH_I2C_Read... [16:23:16]Read from MH i2c: E2 0E 00 F1 27 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0D [16:23:16]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:23:16]wFMCommunicate OK [16:23:16]SAM_PROTO_GetShiftState done [16:23:16]FM_GetShiftState done [16:23:16]opened in 1729988959 [16:23:16]opened+sec_in_day 1730075359 [16:23:16]quantity*price = 17059 [16:23:16]sum+1 = 17061 [16:23:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.60 НСП 1% : 1.51 НДС 12% : 18.12 Наличными: 0.00 Безнал.: 170.60 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 191 27.10.2024 16:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145768 ФПД: 218929665166770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162318&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145768&fm=218929665166770&tin=02508201610067®Number=0000000000091683&sum=17060 [16:23:17]StoreToDocumentArchive [16:23:17]shift 545 fd 145768 [16:23:17]save to /storage/0545/doc_00145768 [16:23:17]save last doc name /storage/0545/doc_00145768 to /storage/kkm_last_doc_name [16:23:17]save OK [16:23:17]Clear old archive folders... [16:23:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:17]tlvbuf is 004F74F0 [16:23:17]SAM_PROTO_ClearQueue [16:23:17]wFMCommunicate request_size=4 [16:23:17]MH_SAM_APDU [16:23:17]CAPDU: 80 09 00 00 [16:23:17]Write to MH i2c: E2 08 00 FE 27 80 09 00 00 00 00 00 00 97 [16:23:17]Write i2c OK [16:23:17]MH_I2C_Read... [16:23:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:17]Read from MH i2c: E2 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 03 00 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 03 00 FE 27 00 90 00 99 [16:23:17]RAPDU: 90 00 [16:23:17]wFMCommunicate OK [16:23:17]SAM_PROTO_ClearQueue done [16:23:17]KKMCreateOFDPacket [16:23:17]OFDProtocolAddRootSTLVToBuf [16:23:17]FM_MakeSignedData [16:23:17]FM_MakeSignedData [16:23:17]SAM_PROTO_SignData [16:23:17]wFMCommunicate request_size=4 [16:23:17]MH_SAM_APDU [16:23:17]CAPDU: 80 0D 01 02 [16:23:17]Write to MH i2c: E2 08 00 FF 27 80 0D 01 02 00 00 00 00 9F [16:23:17]Write i2c OK [16:23:17]MH_I2C_Read... [16:23:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:17]Read from MH i2c: E2 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 03 00 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 03 00 FF 27 00 90 00 9A [16:23:17]RAPDU: 90 00 [16:23:17]wFMCommunicate OK [16:23:17]wFMCommunicate request_size=255 [16:23:17]MH_SAM_APDU [16:23: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 32 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 F6 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 68 39 02 00 35 04 06 00 C7 [16:23:17]Write to MH i2c: E2 02 01 00 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 32 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 F6 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 68 39 02 00 35 04 06 00 C7 00 00 77 [16:23:17]Write i2c OK [16:23:17]MH_I2C_Read... [16:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:17]Read from MH i2c: E2 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 03 00 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 03 00 00 28 00 90 00 9C [16:23:17]RAPDU: 90 00 [16:23:17]wFMCommunicate OK [16:23:17]wFMCommunicate request_size=10 [16:23:17]MH_SAM_APDU [16:23:17]CAPDU: 80 0D 02 02 05 1D 88 EC 4D B2 [16:23:17]Write to MH i2c: E2 0D 00 01 28 80 0D 02 02 05 00 1D 88 EC 4D B2 00 00 3D [16:23:17]Write i2c OK [16:23:17]MH_I2C_Read... [16:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:17]Read from MH i2c: E2 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 03 00 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 03 00 01 28 00 90 00 9D [16:23:17]RAPDU: 90 00 [16:23:17]wFMCommunicate OK [16:23:17]wFMCommunicate request_size=4 [16:23:17]MH_SAM_APDU [16:23:17]CAPDU: 80 0D 03 02 [16:23:17]Write to MH i2c: E2 08 00 02 28 80 0D 03 02 00 00 00 00 A5 [16:23:17]Write i2c OK [16:23:17]MH_I2C_Read... [16:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:17]Read from MH i2c: E2 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 0B 00 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 0B 00 02 28 00 A6 0F 38 3A DC 17 4E A2 90 00 B0 [16:23:17]RAPDU: A6 0F 38 3A DC 17 4E A2 90 00 [16:23:17]wFMCommunicate OK [16:23:17]SAM_PROTO_SignData done [16:23:17]FM_MakeSignedData done [16:23:17]CreateOFDProtocolMessage [16:23:17]wFMCommunicate request_size=4 [16:23:17]MH_SAM_APDU [16:23:17]CAPDU: 80 11 00 00 [16:23:17]Write to MH i2c: E2 08 00 03 28 80 11 00 00 00 00 00 00 A5 [16:23:17]Write i2c OK [16:23:17]MH_I2C_Read... [16:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:17]Read from MH i2c: E2 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 17 00 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: E2 17 00 03 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F8 [16:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:23:17]wFMCommunicate OK [16:23:17]CreateOFDProtocolMessage done [16:23:17]OFDSenderStorePacket 145768 [16:23:17]StoreOFDPacket docnum=145768 [16:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BF B8 07 01 77 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 32 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 F6 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 68 39 02 00 35 04 06 00 C7 1D 88 EC 4D B2 A6 0F 38 3A DC 17 4E A2 [16:23:17]CheckFolder [16:23:17]dirname=/storage/ofd_packets [16:23:17]CheckFolder done [16:23:17]ProducePacketName [16:23:17]name=ofd_packets/00145768 [16:23:17]NVStorageSaveData ofd_packets/00145768 [16:23:17]File name is /storage/ofd_packets/00145768 [16:23:17]Write 301 bytes [16:23:17]NVStorageSaveData done [16:23:17]OFDSenderStorePacket done [16:23:17]KKMCreateOFDPacket done [16:23:17]NVStorageSaveData kkm_last_timestamp [16:23:17]File name is /storage/kkm_last_timestamp [16:23:17]Write 4 bytes [16:23:17]NVStorageSaveData done [16:23:17]ExternCall_PrintAddStr [16:23:17]wPrintStart [16:23:17]Write to MH i2c: 01 00 00 04 28 2C [16:23:17]Write i2c OK [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: 01 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: 01 07 00 [16:23:17]MH_I2C_Read... [16:23:17]Read from MH i2c: 01 07 00 04 28 00 00 00 00 00 FF 0F 41 [16:23:17]RasterBufferAndPrint [16:23:17]line Счет N : (1)160524 [16:23:17]line ИНН: 02508201610067 [16:23:17]line Контрольно-Кассовый Чек [16:23:17]line ПРОДАЖА [16:23:17]line ТРК (МРК, ГНК) : 52 [16:23:17]line Товар: 2710124130 [16:23:17]line Аи-92-К-2 [16:23:17]line 2.550 * 66.90 [16:23:17]line = 170.60 [16:23:17]line НДС 12% НСП 1% [16:23:17]line > о реализуемом товаре [16:23:17]line ИТОГО: 170.60 [16:23:17]line НСП 1% : 1.51 [16:23:17]line НДС 12% : 18.12 [16:23:17]line Наличными: 0.00 [16:23:17]line Безнал.: 170.60 [16:23:17]line Место: АЗС № 126 "Партнер Нефть" [16:23:17]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:23:17]line СНО: Общий режим [16:23:17]line Чек 191 27.10.2024 16:23 [16:23:17]line Смена: 545 ФФД: 1.0 [16:23:17]line ЗНМ: 0300000085 [16:23:17]line РНМ: 0000000000091683 [16:23:17]line Версия ККМ: 001 [16:23:17]line Платежная система: Mbank [16:23:17]line ФМ: 0000000000871745 [16:23:17]line ФД: 145768 [16:23:17]line ФПД: 218929665166770 [16:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162318&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145768&fm=218929665166770&tin=02508201610067®Number=0000000000091683&sum=17060 [16:23:17]written 0, free lines is 4095 [16:23:18]OFD Sender: Processing packet 145768 [packets to send 206, broken 205] [16:23:18]ProducePacketName [16:23:18]name=ofd_packets/00145768 [16:23:18]OFD Sender: To server: pG, [16:23:18]CommunicateWithHost lk.salyk.kg:30040 [16:23:18]ConnectInit lk.salyk.kg [16:23:18]Connected sock=10 [16:23:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BF B8 07 01 77 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 32 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 F6 68 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 68 39 02 00 35 04 06 00 C7 1D 88 EC 4D B2 A6 0F 38 3A DC 17 4E A2 [16:23:18]Write to MH i2c: 01 00 00 2D 28 55 [16:23:18]Write i2c OK [16:23:18]MH_I2C_Read... [16:23:18]Read from MH i2c: 01 [16:23:18]MH_I2C_Read... [16:23:18]Read from MH i2c: 01 07 00 [16:23:18]MH_I2C_Read... [16:23:18]Read from MH i2c: 01 07 00 2D 28 00 00 00 00 00 CF 0C 37 [16:23:18]RasterBufferAndPrint [16:23:18]line [16:23:18]line [16:23:18]line [16:23:18]line [16:23:18]line [16:23:18]written 0, free lines is 3285 [16:23:18]MH_Cut [16:23:18]Write to MH i2c: D1 01 00 34 28 01 2E [16:23:18]Write i2c OK [16:23:18]MH_I2C_Read... [16:23:18]Read from MH i2c: D1 [16:23:18]MH_I2C_Read... [16:23:18]Read from MH i2c: D1 01 00 [16:23:18]MH_I2C_Read... [16:23:18]Read from MH i2c: D1 01 00 34 28 00 2D [16:23:18]Write to MH i2c: 01 00 00 35 28 5D [16:23:18]Write i2c OK [16:23:18]MH_I2C_Read... [16:23:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 3C 68 47 00 02 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 68 39 02 00 F4 03 04 00 23 0E 1E 67 B6 04 01 00 00 1C FA 8C 73 E7 37 02 55 [16:23:18]CommunicateWithHost err = 0 [16:23:18]CheckOFDResponse [16:23:18]1017 (14) - 77093643461234 [16:23:18]1041 (16) - 0000000000871745 [16:23:18]1040 (4) - 145768 [16:23:18]1012 (4) - 27.10.2024 09:55 [16:23:18]1206 (1) - 0 [16:23:18]OFD Sender: Remove packet 145768 [16:23:18]ProducePacketName [16:23:18]name=ofd_packets/00145768 [16:23:18]NVStorageDeleteData [16:23:19]OFD Sender: No OFD packet to send [16:23:19]*** Cut start [16:23:19]*** Partial cut [16:23:19]*** CUTSNS_PIN = 1 [16:23:19]*** CUTSNS_PIN = 0 [16:23:19]*** Brake cut motor [16:23:19]Read from MH i2c: 01 [16:23:19]MH_I2C_Read... [16:23:19]*** Stop cut motor [16:23:19]*** Cut end [16:23:19]Read from MH i2c: 01 07 00 [16:23:19]MH_I2C_Read... [16:23:19]Read from MH i2c: 01 07 00 35 28 00 00 00 00 00 FF 0F 72 [16:23:19]process_action close_receipt done [16:23:19]requested_data is exist [16:23:19]produce_requested_data [16:23:19]requested_item fm.sn is exist - process it [16:23:19]wFMCommunicate request_size=4 [16:23:19]MH_SAM_APDU [16:23:19]CAPDU: 80 11 00 00 [16:23:19]Write to MH i2c: E2 08 00 36 28 80 11 00 00 00 00 00 00 D8 [16:23:19]Write i2c OK [16:23:19]MH_I2C_Read... [16:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:19]Read from MH i2c: E2 [16:23:19]MH_I2C_Read... [16:23:19]Read from MH i2c: E2 17 00 [16:23:19]MH_I2C_Read... [16:23:19]Read from MH i2c: E2 17 00 36 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2B [16:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:23:19]wFMCommunicate OK [16:23:19]requested_item fd.num is exist - process it [16:23:19]SAM_PROTO_GetFieldsCounters [16:23:19]wFMCommunicate request_size=4 [16:23:19]MH_SAM_APDU [16:23:19]CAPDU: 80 13 00 00 [16:23:19]Write to MH i2c: E2 08 00 37 28 80 13 00 00 00 00 00 00 DB [16:23:19]Write i2c OK [16:23:19]MH_I2C_Read... [16:23:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:20]Read from MH i2c: E2 [16:23:20]MH_I2C_Read... [16:23:20]Read from MH i2c: E2 62 00 [16:23:20]MH_I2C_Read... [16:23:20]Read from MH i2c: E2 62 00 37 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 68 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [16:23:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 68 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:20]wFMCommunicate OK [16:23:20]SAM_PROTO_GetFieldsCounters done [16:23:20]requested_item shift.num is exist - process it [16:23:20]requested_item shift.opened is exist - process it [16:23:20]req_shift_opened [16:23:20]FM_GetShiftState [16:23:20]SAM_PROTO_GetShiftState [16:23:20]wFMCommunicate request_size=4 [16:23:20]MH_SAM_APDU [16:23:20]CAPDU: 80 13 01 00 [16:23:20]Write to MH i2c: E2 08 00 38 28 80 13 01 00 00 00 00 00 DD [16:23:20]Write i2c OK [16:23:20]MH_I2C_Read... [16:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:20]Read from MH i2c: E2 [16:23:20]MH_I2C_Read... [16:23:20]Read from MH i2c: E2 0E 00 [16:23:20]MH_I2C_Read... [16:23:20]Read from MH i2c: E2 0E 00 38 28 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 55 [16:23:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:23:20]wFMCommunicate OK [16:23:20]SAM_PROTO_GetShiftState done [16:23:20]FM_GetShiftState done [16:23:20]req_shift_opened done [16:23:20]requested_item shift.open_date is exist - process it [16:23:20]req_shift_open_date [16:23:20]req_shift_open_date done [16:23:20]produce_requested_data done [16:23:20]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145768,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:23:20]process_action_free close_receipt [16:23:20]json_value_free [16:23:20]json_value_free done [16:23:20]process_json_proto returns [16:23:20]Send response to host [16:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145768,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:23:20]free response buf [16:23:20]execute_script done [16:23:20]execute_script returns [16:23:20]free content buf [16:23:20]Sock 9.Close socket [16:23:20]Sock 9.Thread stoped [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:23:59]int [16:23:59]Write to MH i2c: 01 00 00 39 28 61 [16:23:59]*** FLAG_PRN_KEY set [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 07 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 07 00 39 28 00 08 00 00 00 FF 0F 7E [16:23:59]state=0 [16:23:59]Key pressed [16:23:59]Feed [16:23:59]Write to MH i2c: D8 00 00 3A 28 39 [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: D8 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: D8 01 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: D8 01 00 3A 28 00 3A [16:23:59]int [16:23:59]Write to MH i2c: 01 00 00 3B 28 63 [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 07 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 07 00 3B 28 00 48 00 00 00 3C 00 EE [16:23:59]state=2 [16:23:59]Key pressed [16:23:59]int [16:23:59]Write to MH i2c: 01 00 00 3C 28 64 [16:23:59]*** FLAG_PRN_KEY reset [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 07 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 07 00 3C 28 00 00 00 00 00 FD 0F 77 [16:23:59]state=2 [16:23:59]Stop feed [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:19]accept exits with 7 [16:25:19]New connection [16:25:19]New thread 3066596708 created [16:25:19]Thread 3066740068 joined [16:25:19]Waiting for new connection... [16:25:19] Sock 7.Parse request [16:25:19]Sock 7.Check first char [16:25:19]Sock 7.First char is OK [16:25:19]request: POST /json_proto HTTP/1.0 [16:25:19]Method: POST [16:25:19]URL: /json_proto [16:25:19]Method is POST - this is cgi request [16:25:19]url: /json_proto [16:25:19]query_string will be loaded in cgi processing [16:25:19]execute_cgi json_proto POST (null) [16:25:19]execute_cgi path=json_proto method=POST [16:25:19]POST find Content-Length [16:25:19]Host: 172.17.40.195:8080 [16:25:19]Content-Length: 769 [16:25:19]Content-Type: application/json [16:25:19] [16:25:19]POST finish read [16:25:19]Found Content-Length = 769 [16:25:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:19]execute_script... [16:25: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)160525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:19]POST & json_proto [16:25:19]process_json_proto [16:25:19]json parsed OK: [16:25:19]protocol is kg_v1.0 [16:25:19]action value=close_receipt [16:25:19]process_action close_receipt [16:25:19]cmd_close_receipt [16:25:19]MH_GetDate [16:25:19]Write to MH i2c: F0 00 00 3D 28 54 [16:25:19]Write i2c OK [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: F0 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: F0 09 00 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: F0 09 00 3D 28 00 72 69 1E 67 D5 8D 6C 64 EF [16:25:19]GetLastDocTimeStamp 1730046198 [16:25:19]current date 1730046322 [16:25:19]FM_GetShiftState [16:25:19]SAM_PROTO_GetShiftState [16:25:19]wFMCommunicate request_size=4 [16:25:19]MH_SAM_APDU [16:25:19]CAPDU: 80 13 01 00 [16:25:19]Write to MH i2c: E2 08 00 3E 28 80 13 01 00 00 00 00 00 E3 [16:25:19]Write i2c OK [16:25:19]MH_I2C_Read... [16:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:19]Read from MH i2c: E2 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: E2 0E 00 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: E2 0E 00 3E 28 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5B [16:25:19]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:25:19]wFMCommunicate OK [16:25:19]SAM_PROTO_GetShiftState done [16:25:19]FM_GetShiftState done [16:25:19]opened in 1729988959 [16:25:19]opened+sec_in_day 1730075359 [16:25:19]quantity*price = 100021 [16:25:19]sum+1 = 100023 [16:25:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 192 27.10.2024 16:25 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145769 ФПД: 59941410204581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162522&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145769&fm=59941410204581&tin=02508201610067®Number=0000000000091683&sum=100022 [16:25:21]StoreToDocumentArchive [16:25:21]shift 545 fd 145769 [16:25:21]save to /storage/0545/doc_00145769 [16:25:21]save last doc name /storage/0545/doc_00145769 to /storage/kkm_last_doc_name [16:25:21]save OK [16:25:21]Clear old archive folders... [16:25:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:21]tlvbuf is 00451D70 [16:25:21]SAM_PROTO_ClearQueue [16:25:21]wFMCommunicate request_size=4 [16:25:21]MH_SAM_APDU [16:25:21]CAPDU: 80 09 00 00 [16:25:21]Write to MH i2c: E2 08 00 4B 28 80 09 00 00 00 00 00 00 E5 [16:25:21]Write i2c OK [16:25:21]MH_I2C_Read... [16:25:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:21]Read from MH i2c: E2 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 03 00 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 03 00 4B 28 00 90 00 E7 [16:25:21]RAPDU: 90 00 [16:25:21]wFMCommunicate OK [16:25:21]SAM_PROTO_ClearQueue done [16:25:21]KKMCreateOFDPacket [16:25:21]OFDProtocolAddRootSTLVToBuf [16:25:21]FM_MakeSignedData [16:25:21]FM_MakeSignedData [16:25:21]SAM_PROTO_SignData [16:25:21]wFMCommunicate request_size=4 [16:25:21]MH_SAM_APDU [16:25:21]CAPDU: 80 0D 01 02 [16:25:21]Write to MH i2c: E2 08 00 4C 28 80 0D 01 02 00 00 00 00 ED [16:25:21]Write i2c OK [16:25:21]MH_I2C_Read... [16:25:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:21]Read from MH i2c: E2 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 03 00 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 03 00 4C 28 00 90 00 E8 [16:25:21]RAPDU: 90 00 [16:25:21]wFMCommunicate OK [16:25:21]wFMCommunicate request_size=255 [16:25:21]MH_SAM_APDU [16:25: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 72 69 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 69 39 02 00 35 04 06 00 36 [16:25:21]Write to MH i2c: E2 02 01 4D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 72 69 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 69 39 02 00 35 04 06 00 36 00 00 E2 [16:25:21]Write i2c OK [16:25:21]MH_I2C_Read... [16:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:21]Read from MH i2c: E2 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 03 00 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 03 00 4D 28 00 90 00 E9 [16:25:21]RAPDU: 90 00 [16:25:21]wFMCommunicate OK [16:25:21]wFMCommunicate request_size=10 [16:25:21]MH_SAM_APDU [16:25:21]CAPDU: 80 0D 02 02 05 84 32 76 6B A5 [16:25:21]Write to MH i2c: E2 0D 00 4E 28 80 0D 02 02 05 00 84 32 76 6B A5 00 00 36 [16:25:21]Write i2c OK [16:25:21]MH_I2C_Read... [16:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:21]Read from MH i2c: E2 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 03 00 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 03 00 4E 28 00 90 00 EA [16:25:21]RAPDU: 90 00 [16:25:21]wFMCommunicate OK [16:25:21]wFMCommunicate request_size=4 [16:25:21]MH_SAM_APDU [16:25:21]CAPDU: 80 0D 03 02 [16:25:21]Write to MH i2c: E2 08 00 4F 28 80 0D 03 02 00 00 00 00 F2 [16:25:21]Write i2c OK [16:25:21]MH_I2C_Read... [16:25:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:21]Read from MH i2c: E2 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 0B 00 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 0B 00 4F 28 00 A5 A7 7B EF 83 6C 54 E8 90 00 D4 [16:25:21]RAPDU: A5 A7 7B EF 83 6C 54 E8 90 00 [16:25:21]wFMCommunicate OK [16:25:21]SAM_PROTO_SignData done [16:25:21]FM_MakeSignedData done [16:25:21]CreateOFDProtocolMessage [16:25:21]wFMCommunicate request_size=4 [16:25:21]MH_SAM_APDU [16:25:21]CAPDU: 80 11 00 00 [16:25:21]Write to MH i2c: E2 08 00 50 28 80 11 00 00 00 00 00 00 F2 [16:25:21]Write i2c OK [16:25:21]MH_I2C_Read... [16:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:21]Read from MH i2c: E2 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 17 00 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: E2 17 00 50 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 45 [16:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:25:21]wFMCommunicate OK [16:25:21]CreateOFDProtocolMessage done [16:25:21]OFDSenderStorePacket 145769 [16:25:21]StoreOFDPacket docnum=145769 [16:25:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E4 BC 07 01 01 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 72 69 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 69 39 02 00 35 04 06 00 36 84 32 76 6B A5 A5 A7 7B EF 83 6C 54 E8 [16:25:21]CheckFolder [16:25:21]dirname=/storage/ofd_packets [16:25:21]CheckFolder done [16:25:21]ProducePacketName [16:25:21]name=ofd_packets/00145769 [16:25:21]NVStorageSaveData ofd_packets/00145769 [16:25:21]File name is /storage/ofd_packets/00145769 [16:25:21]Write 301 bytes [16:25:21]NVStorageSaveData done [16:25:21]OFDSenderStorePacket done [16:25:21]KKMCreateOFDPacket done [16:25:21]NVStorageSaveData kkm_last_timestamp [16:25:21]File name is /storage/kkm_last_timestamp [16:25:21]Write 4 bytes [16:25:21]NVStorageSaveData done [16:25:21]ExternCall_PrintAddStr [16:25:21]wPrintStart [16:25:21]Write to MH i2c: 01 00 00 51 28 79 [16:25:21]Write i2c OK [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: 01 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: 01 07 00 [16:25:21]MH_I2C_Read... [16:25:21]Read from MH i2c: 01 07 00 51 28 00 00 00 00 00 FF 0F 8E [16:25:21]RasterBufferAndPrint [16:25:21]line Счет N : (1)160525 [16:25:21]line ИНН: 02508201610067 [16:25:21]line Контрольно-Кассовый Чек [16:25:21]line ПРОДАЖА [16:25:21]line ТРК (МРК, ГНК) : 43 [16:25:21]line Товар: 2710124500 [16:25:21]line Аи-95-К-3 [16:25:21]line 13.480 * 74.20 [16:25:21]line = 1000.22 [16:25:21]line НДС 12% НСП 1% [16:25:21]line > о реализуемом товаре [16:25:21]line ИТОГО: 1000.22 [16:25:21]line НСП 1% : 8.85 [16:25:21]line НДС 12% : 106.22 [16:25:21]line Наличными: 0.00 [16:25:21]line Безнал.: 1000.22 [16:25:21]line Место: АЗС № 126 "Партнер Нефть" [16:25:21]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:25:21]line СНО: Общий режим [16:25:21]line Чек 192 27.10.2024 16:25 [16:25:21]line Смена: 545 ФФД: 1.0 [16:25:21]line ЗНМ: 0300000085 [16:25:21]line РНМ: 0000000000091683 [16:25:21]line Версия ККМ: 001 [16:25:21]line Платежная система: Mbank [16:25:21]line ФМ: 0000000000871745 [16:25:21]line ФД: 145769 [16:25:21]line ФПД: 59941410204581 [16:25:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162522&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145769&fm=59941410204581&tin=02508201610067®Number=0000000000091683&sum=100022 [16:25:21]written 0, free lines is 4095 [16:25:21]OFD Sender: Processing packet 145769 [packets to send 206, broken 205] [16:25:21]ProducePacketName [16:25:21]name=ofd_packets/00145769 [16:25:21]OFD Sender: To server: pG, [16:25:21]CommunicateWithHost lk.salyk.kg:30040 [16:25:21]ConnectInit lk.salyk.kg [16:25:21]Connected sock=9 [16:25:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E4 BC 07 01 01 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 72 69 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 69 39 02 00 35 04 06 00 36 84 32 76 6B A5 A5 A7 7B EF 83 6C 54 E8 [16:25:22]Write to MH i2c: 01 00 00 7A 28 A2 [16:25:22]Write i2c OK [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: 01 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: 01 07 00 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: 01 07 00 7A 28 00 00 00 00 00 E3 0C 98 [16:25:22]RasterBufferAndPrint [16:25:22]line [16:25:22]line [16:25:22]line [16:25:22]line [16:25:22]line [16:25:22]written 0, free lines is 3305 [16:25:22]MH_Cut [16:25:22]Write to MH i2c: D1 01 00 81 28 01 7B [16:25:22]Write i2c OK [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: D1 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: D1 01 00 [16:25:22]MH_I2C_Read... [16:25:22]Read from MH i2c: D1 01 00 81 28 00 7A [16:25:22]Write to MH i2c: 01 00 00 82 28 AA [16:25:22]Write i2c OK [16:25:22]MH_I2C_Read... [16:25:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C0 EA 47 00 77 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 69 39 02 00 F4 03 04 00 9F 0E 1E 67 B6 04 01 00 00 18 AA FD E9 1D 5A 0B 26 [16:25:22]CommunicateWithHost err = 0 [16:25:22]CheckOFDResponse [16:25:22]1017 (14) - 77093643461234 [16:25:22]1041 (16) - 0000000000871745 [16:25:22]1040 (4) - 145769 [16:25:22]1012 (4) - 27.10.2024 09:57 [16:25:22]1206 (1) - 0 [16:25:22]OFD Sender: Remove packet 145769 [16:25:22]ProducePacketName [16:25:22]name=ofd_packets/00145769 [16:25:22]NVStorageDeleteData [16:25:22]OFD Sender: No OFD packet to send [16:25:22]*** Cut start [16:25:22]*** Partial cut [16:25:22]*** CUTSNS_PIN = 1 [16:25:22]*** CUTSNS_PIN = 0 [16:25:23]*** Brake cut motor [16:25:23]Read from MH i2c: 01 [16:25:23]MH_I2C_Read... [16:25:23]*** Stop cut motor [16:25:23]*** Cut end [16:25:23]Read from MH i2c: 01 07 00 [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: 01 07 00 82 28 00 00 00 00 00 FF 0F BF [16:25:23]process_action close_receipt done [16:25:23]requested_data is exist [16:25:23]produce_requested_data [16:25:23]requested_item fm.sn is exist - process it [16:25:23]wFMCommunicate request_size=4 [16:25:23]MH_SAM_APDU [16:25:23]CAPDU: 80 11 00 00 [16:25:23]Write to MH i2c: E2 08 00 83 28 80 11 00 00 00 00 00 00 25 [16:25:23]Write i2c OK [16:25:23]MH_I2C_Read... [16:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:23]Read from MH i2c: E2 [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: E2 17 00 [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: E2 17 00 83 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 78 [16:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:25:23]wFMCommunicate OK [16:25:23]requested_item fd.num is exist - process it [16:25:23]SAM_PROTO_GetFieldsCounters [16:25:23]wFMCommunicate request_size=4 [16:25:23]MH_SAM_APDU [16:25:23]CAPDU: 80 13 00 00 [16:25:23]Write to MH i2c: E2 08 00 84 28 80 13 00 00 00 00 00 00 28 [16:25:23]Write i2c OK [16:25:23]MH_I2C_Read... [16:25:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:23]Read from MH i2c: E2 [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: E2 62 00 [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: E2 62 00 84 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 69 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [16:25:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 69 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:23]wFMCommunicate OK [16:25:23]SAM_PROTO_GetFieldsCounters done [16:25:23]requested_item shift.num is exist - process it [16:25:23]requested_item shift.opened is exist - process it [16:25:23]req_shift_opened [16:25:23]FM_GetShiftState [16:25:23]SAM_PROTO_GetShiftState [16:25:23]wFMCommunicate request_size=4 [16:25:23]MH_SAM_APDU [16:25:23]CAPDU: 80 13 01 00 [16:25:23]Write to MH i2c: E2 08 00 85 28 80 13 01 00 00 00 00 00 2A [16:25:23]Write i2c OK [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: E2 [16:25:23]MH_I2C_Read... [16:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:23]Read from MH i2c: E2 0E 00 [16:25:23]MH_I2C_Read... [16:25:23]Read from MH i2c: E2 0E 00 85 28 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A2 [16:25:23]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:25:23]wFMCommunicate OK [16:25:23]SAM_PROTO_GetShiftState done [16:25:23]FM_GetShiftState done [16:25:23]req_shift_opened done [16:25:23]requested_item shift.open_date is exist - process it [16:25:23]req_shift_open_date [16:25:23]req_shift_open_date done [16:25:23]produce_requested_data done [16:25:23]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145769,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:25:23]process_action_free close_receipt [16:25:23]json_value_free [16:25:23]json_value_free done [16:25:23]process_json_proto returns [16:25:23]Send response to host [16:25:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145769,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:25:23]free response buf [16:25:23]execute_script done [16:25:23]execute_script returns [16:25:23]free content buf [16:25:23]Sock 7.Close socket [16:25:23]Sock 7.Thread stoped [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:08]accept exits with 10 [16:27:08]New connection [16:27:08]New thread 3066740068 created [16:27:08]Thread 3066596708 joined [16:27:08]Waiting for new connection... [16:27:08] Sock 10.Parse request [16:27:08]Sock 10.Check first char [16:27:08]Sock 10.First char is OK [16:27:08]request: POST /json_proto HTTP/1.0 [16:27:08]Method: POST [16:27:08]URL: /json_proto [16:27:08]Method is POST - this is cgi request [16:27:08]url: /json_proto [16:27:08]query_string will be loaded in cgi processing [16:27:08]execute_cgi json_proto POST (null) [16:27:08]execute_cgi path=json_proto method=POST [16:27:08]POST find Content-Length [16:27:08]Host: 172.17.40.195:8080 [16:27:08]Content-Length: 754 [16:27:08]Content-Type: application/json [16:27:08] [16:27:08]POST finish read [16:27:08]Found Content-Length = 754 [16:27:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101069", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:08]execute_script... [16:27: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)160526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101069", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:08]POST & json_proto [16:27:08]process_json_proto [16:27:08]json parsed OK: [16:27:08]protocol is kg_v1.0 [16:27:08]action value=close_receipt [16:27:08]process_action close_receipt [16:27:08]cmd_close_receipt [16:27:08]MH_GetDate [16:27:08]Write to MH i2c: F0 00 00 86 28 9D [16:27:08]Write i2c OK [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: F0 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: F0 09 00 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: F0 09 00 86 28 00 DE 69 1E 67 D5 8D 6C 64 A4 [16:27:08]GetLastDocTimeStamp 1730046322 [16:27:08]current date 1730046430 [16:27:08]FM_GetShiftState [16:27:08]SAM_PROTO_GetShiftState [16:27:08]wFMCommunicate request_size=4 [16:27:08]MH_SAM_APDU [16:27:08]CAPDU: 80 13 01 00 [16:27:08]Write to MH i2c: E2 08 00 87 28 80 13 01 00 00 00 00 00 2C [16:27:08]Write i2c OK [16:27:08]MH_I2C_Read... [16:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:08]Read from MH i2c: E2 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: E2 0E 00 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: E2 0E 00 87 28 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A4 [16:27:08]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:27:08]wFMCommunicate OK [16:27:08]SAM_PROTO_GetShiftState done [16:27:08]FM_GetShiftState done [16:27:08]opened in 1729988959 [16:27:08]opened+sec_in_day 1730075359 [16:27:08]quantity*price = 0 [16:27:08]sum+1 = 1 [16:27:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 193 27.10.2024 16:27 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: ТК ГПНА Online 30101069 ФМ: 0000000000871745 ФД: 145770 ФПД: 233104669206029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162711&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145770&fm=233104669206029&tin=02508201610067®Number=0000000000091683&sum=0 [16:27:09]StoreToDocumentArchive [16:27:09]shift 545 fd 145770 [16:27:09]save to /storage/0545/doc_00145770 [16:27:09]save last doc name /storage/0545/doc_00145770 to /storage/kkm_last_doc_name [16:27:09]save OK [16:27:09]Clear old archive folders... [16:27:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:09]tlvbuf is 003FB720 [16:27:09]SAM_PROTO_ClearQueue [16:27:09]wFMCommunicate request_size=4 [16:27:09]MH_SAM_APDU [16:27:09]CAPDU: 80 09 00 00 [16:27:09]Write to MH i2c: E2 08 00 94 28 80 09 00 00 00 00 00 00 2E [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:09]Read from MH i2c: E2 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 03 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 03 00 94 28 00 90 00 30 [16:27:09]RAPDU: 90 00 [16:27:09]wFMCommunicate OK [16:27:09]SAM_PROTO_ClearQueue done [16:27:09]KKMCreateOFDPacket [16:27:09]OFDProtocolAddRootSTLVToBuf [16:27:09]FM_MakeSignedData [16:27:09]FM_MakeSignedData [16:27:09]SAM_PROTO_SignData [16:27:09]wFMCommunicate request_size=4 [16:27:09]MH_SAM_APDU [16:27:09]CAPDU: 80 0D 01 02 [16:27:09]Write to MH i2c: E2 08 00 95 28 80 0D 01 02 00 00 00 00 36 [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:09]Read from MH i2c: E2 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 03 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 03 00 95 28 00 90 00 31 [16:27:09]RAPDU: 90 00 [16:27:09]wFMCommunicate OK [16:27:09]wFMCommunicate request_size=255 [16:27:09]MH_SAM_APDU [16:27:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 DF 69 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6A 39 02 00 35 04 06 00 D4 [16:27:09]Write to MH i2c: E2 02 01 96 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 DF 69 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6A 39 02 00 35 04 06 00 D4 00 00 A0 [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:10]Read from MH i2c: E2 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 03 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 03 00 96 28 00 90 00 32 [16:27:10]RAPDU: 90 00 [16:27:10]wFMCommunicate OK [16:27:10]wFMCommunicate request_size=10 [16:27:10]MH_SAM_APDU [16:27:10]CAPDU: 80 0D 02 02 05 01 E9 00 E6 0D [16:27:10]Write to MH i2c: E2 0D 00 97 28 80 0D 02 02 05 00 01 E9 00 E6 0D 00 00 20 [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:10]Read from MH i2c: E2 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 03 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 03 00 97 28 00 90 00 33 [16:27:10]RAPDU: 90 00 [16:27:10]wFMCommunicate OK [16:27:10]wFMCommunicate request_size=4 [16:27:10]MH_SAM_APDU [16:27:10]CAPDU: 80 0D 03 02 [16:27:10]Write to MH i2c: E2 08 00 98 28 80 0D 03 02 00 00 00 00 3B [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:10]Read from MH i2c: E2 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 0B 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 0B 00 98 28 00 06 60 B0 4E 10 DE FC FC 90 00 86 [16:27:10]RAPDU: 06 60 B0 4E 10 DE FC FC 90 00 [16:27:10]wFMCommunicate OK [16:27:10]SAM_PROTO_SignData done [16:27:10]FM_MakeSignedData done [16:27:10]CreateOFDProtocolMessage [16:27:10]wFMCommunicate request_size=4 [16:27:10]MH_SAM_APDU [16:27:10]CAPDU: 80 11 00 00 [16:27:10]Write to MH i2c: E2 08 00 99 28 80 11 00 00 00 00 00 00 3B [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:10]Read from MH i2c: E2 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 17 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 17 00 99 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8E [16:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:27:10]wFMCommunicate OK [16:27:10]CreateOFDProtocolMessage done [16:27:10]OFDSenderStorePacket 145770 [16:27:10]StoreOFDPacket docnum=145770 [16:27:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 04 06 07 01 6C 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 DF 69 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6A 39 02 00 35 04 06 00 D4 01 E9 00 E6 0D 06 60 B0 4E 10 DE FC FC [16:27:10]CheckFolder [16:27:10]dirname=/storage/ofd_packets [16:27:10]CheckFolder done [16:27:10]ProducePacketName [16:27:10]name=ofd_packets/00145770 [16:27:10]NVStorageSaveData ofd_packets/00145770 [16:27:10]File name is /storage/ofd_packets/00145770 [16:27:10]Write 301 bytes [16:27:10]NVStorageSaveData done [16:27:10]OFDSenderStorePacket done [16:27:10]KKMCreateOFDPacket done [16:27:10]NVStorageSaveData kkm_last_timestamp [16:27:10]File name is /storage/kkm_last_timestamp [16:27:10]Write 4 bytes [16:27:10]NVStorageSaveData done [16:27:10]ExternCall_PrintAddStr [16:27:10]wPrintStart [16:27:10]Write to MH i2c: 01 00 00 9A 28 C2 [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 07 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 07 00 9A 28 00 00 00 00 00 FF 0F D7 [16:27:10]RasterBufferAndPrint [16:27:10]line Счет N : (1)160526 [16:27:10]line ИНН: 02508201610067 [16:27:10]line Контрольно-Кассовый Чек [16:27:10]line ПРОДАЖА [16:27:10]line ТРК (МРК, ГНК) : 32 [16:27:10]line Товар: 2710124130 [16:27:10]line Аи-92-К-2 [16:27:10]line 10.000 * 0.00 [16:27:10]line = 0.00 [16:27:10]line НДС 12% НСП 1% [16:27:10]line > о реализуемом товаре [16:27:10]line ИТОГО: 0.00 [16:27:10]line НСП 1% : 0.00 [16:27:10]line НДС 12% : 0.00 [16:27:10]line Наличными: 0.00 [16:27:10]line Безнал.: 0.00 [16:27:10]line Место: АЗС № 126 "Партнер Нефть" [16:27:10]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:27:10]line СНО: Общий режим [16:27:10]line Чек 193 27.10.2024 16:27 [16:27:10]line Смена: 545 ФФД: 1.0 [16:27:10]line ЗНМ: 0300000085 [16:27:10]line РНМ: 0000000000091683 [16:27:10]line Версия ККМ: 001 [16:27:10]line Талоны: ТК ГПНА Online [16:27:10]line 30101069 [16:27:10]line ФМ: 0000000000871745 [16:27:10]line ФД: 145770 [16:27:10]line ФПД: 233104669206029 [16:27:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162711&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145770&fm=233104669206029&tin=02508201610067®Number=0000000000091683&sum=0 [16:27:10]written 0, free lines is 4095 [16:27:10]OFD Sender: Processing packet 145770 [packets to send 206, broken 205] [16:27:10]ProducePacketName [16:27:10]name=ofd_packets/00145770 [16:27:10]OFD Sender: To server: pG, [16:27:10]CommunicateWithHost lk.salyk.kg:30040 [16:27:10]ConnectInit lk.salyk.kg [16:27:10]Connected sock=9 [16:27:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 04 06 07 01 6C 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 DF 69 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6A 39 02 00 35 04 06 00 D4 01 E9 00 E6 0D 06 60 B0 4E 10 DE FC FC [16:27:10]Write to MH i2c: 01 00 00 C4 28 EC [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 07 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: 01 07 00 C4 28 00 00 00 00 00 BB 0C BA [16:27:10]RasterBufferAndPrint [16:27:10]line [16:27:10]line [16:27:10]line [16:27:10]line [16:27:10]line [16:27:10]written 0, free lines is 3264 [16:27:10]MH_Cut [16:27:10]Write to MH i2c: D1 01 00 CB 28 01 C5 [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: D1 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: D1 01 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: D1 01 00 CB 28 00 C4 [16:27:10]Write to MH i2c: 01 00 00 CC 28 F4 [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A9 4A 47 00 DF 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 31 37 34 35 10 04 04 00 6A 39 02 00 F4 03 04 00 0B 0F 1E 67 B6 04 01 00 00 D3 3E 37 27 05 09 0E A8 [16:27:10]CommunicateWithHost err = 0 [16:27:10]CheckOFDResponse [16:27:10]1017 (14) - 77093643461234 [16:27:10]1041 (16) - 0000000000871745 [16:27:10]1040 (4) - 145770 [16:27:10]1012 (4) - 27.10.2024 09:59 [16:27:10]1206 (1) - 0 [16:27:10]OFD Sender: Remove packet 145770 [16:27:10]ProducePacketName [16:27:10]name=ofd_packets/00145770 [16:27:10]NVStorageDeleteData [16:27:11]OFD Sender: No OFD packet to send [16:27:11]*** Cut start [16:27:11]*** Partial cut [16:27:11]*** CUTSNS_PIN = 1 [16:27:11]*** CUTSNS_PIN = 0 [16:27:11]*** Brake cut motor [16:27:12]Read from MH i2c: 01 [16:27:12]MH_I2C_Read... [16:27:12]*** Stop cut motor [16:27:12]*** Cut end [16:27:12]Read from MH i2c: 01 07 00 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: 01 07 00 CC 28 00 00 00 00 00 FF 0F 09 [16:27:12]process_action close_receipt done [16:27:12]requested_data is exist [16:27:12]produce_requested_data [16:27:12]requested_item fm.sn is exist - process it [16:27:12]wFMCommunicate request_size=4 [16:27:12]MH_SAM_APDU [16:27:12]CAPDU: 80 11 00 00 [16:27:12]Write to MH i2c: E2 08 00 CD 28 80 11 00 00 00 00 00 00 6F [16:27:12]Write i2c OK [16:27:12]MH_I2C_Read... [16:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:12]Read from MH i2c: E2 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: E2 17 00 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: E2 17 00 CD 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C2 [16:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:27:12]wFMCommunicate OK [16:27:12]requested_item fd.num is exist - process it [16:27:12]SAM_PROTO_GetFieldsCounters [16:27:12]wFMCommunicate request_size=4 [16:27:12]MH_SAM_APDU [16:27:12]CAPDU: 80 13 00 00 [16:27:12]Write to MH i2c: E2 08 00 CE 28 80 13 00 00 00 00 00 00 72 [16:27:12]Write i2c OK [16:27:12]MH_I2C_Read... [16:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:12]Read from MH i2c: E2 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: E2 62 00 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: E2 62 00 CE 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [16:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:12]wFMCommunicate OK [16:27:12]SAM_PROTO_GetFieldsCounters done [16:27:12]requested_item shift.num is exist - process it [16:27:12]requested_item shift.opened is exist - process it [16:27:12]req_shift_opened [16:27:12]FM_GetShiftState [16:27:12]SAM_PROTO_GetShiftState [16:27:12]wFMCommunicate request_size=4 [16:27:12]MH_SAM_APDU [16:27:12]CAPDU: 80 13 01 00 [16:27:12]Write to MH i2c: E2 08 00 CF 28 80 13 01 00 00 00 00 00 74 [16:27:12]Write i2c OK [16:27:12]MH_I2C_Read... [16:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:12]Read from MH i2c: E2 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: E2 0E 00 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: E2 0E 00 CF 28 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EC [16:27:12]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:27:12]wFMCommunicate OK [16:27:12]SAM_PROTO_GetShiftState done [16:27:12]FM_GetShiftState done [16:27:12]req_shift_opened done [16:27:12]requested_item shift.open_date is exist - process it [16:27:12]req_shift_open_date [16:27:12]req_shift_open_date done [16:27:12]produce_requested_data done [16:27:12]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145770,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:27:12]process_action_free close_receipt [16:27:12]json_value_free [16:27:12]json_value_free done [16:27:12]process_json_proto returns [16:27:12]Send response to host [16:27:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145770,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:27:12]free response buf [16:27:12]execute_script done [16:27:12]execute_script returns [16:27:12]free content buf [16:27:12]Sock 10.Close socket [16:27:12]Sock 10.Thread stoped [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]accept exits with 7 [16:28:51]New connection [16:28:51]New thread 3066596708 created [16:28:51]Thread 3066740068 joined [16:28:51]Waiting for new connection... [16:28:51] Sock 7.Parse request [16:28:51]Sock 7.Check first char [16:28:51]Sock 7.First char is OK [16:28:51]request: POST /json_proto HTTP/1.0 [16:28:51]Method: POST [16:28:51]URL: /json_proto [16:28:51]Method is POST - this is cgi request [16:28:51]url: /json_proto [16:28:51]query_string will be loaded in cgi processing [16:28:51]execute_cgi json_proto POST (null) [16:28:51]execute_cgi path=json_proto method=POST [16:28:51]POST find Content-Length [16:28:51]Host: 172.17.40.195:8080 [16:28:51]Content-Length: 984 [16:28:51]Content-Type: application/json [16:28:51] [16:28:51]POST finish read [16:28:51]Found Content-Length = 984 [16:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 21.250, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.25 \u0441\u043E\u043C", "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:51]execute_script... [16:28: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)160527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 21.250, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.25 \u0441\u043E\u043C", "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:51]POST & json_proto [16:28:51]process_json_proto [16:28:51]json parsed OK: [16:28:51]protocol is kg_v1.0 [16:28:51]action value=close_receipt [16:28:51]process_action close_receipt [16:28:51]cmd_close_receipt [16:28:51]MH_GetDate [16:28:51]Write to MH i2c: F0 00 00 D0 28 E7 [16:28:51]Write i2c OK [16:28:51]MH_I2C_Read... [16:28:51]Read from MH i2c: F0 [16:28:51]MH_I2C_Read... [16:28:51]Read from MH i2c: F0 09 00 [16:28:51]MH_I2C_Read... [16:28:51]Read from MH i2c: F0 09 00 D0 28 00 45 6A 1E 67 D5 8D 6C 64 56 [16:28:51]GetLastDocTimeStamp 1730046431 [16:28:51]current date 1730046533 [16:28:51]FM_GetShiftState [16:28:51]SAM_PROTO_GetShiftState [16:28:51]wFMCommunicate request_size=4 [16:28:51]MH_SAM_APDU [16:28:51]CAPDU: 80 13 01 00 [16:28:51]Write to MH i2c: E2 08 00 D1 28 80 13 01 00 00 00 00 00 76 [16:28:51]Write i2c OK [16:28:51]MH_I2C_Read... [16:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:51]Read from MH i2c: E2 [16:28:51]MH_I2C_Read... [16:28:51]Read from MH i2c: E2 0E 00 [16:28:51]MH_I2C_Read... [16:28:51]Read from MH i2c: E2 0E 00 D1 28 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EE [16:28:51]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:28:51]wFMCommunicate OK [16:28:51]SAM_PROTO_GetShiftState done [16:28:51]FM_GetShiftState done [16:28:51]opened in 1729988959 [16:28:51]opened+sec_in_day 1730075359 [16:28:51]quantity*price = 140037 [16:28:51]sum+1 = 140039 [16:28:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 194 27.10.2024 16:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-92 номер 126 сэкономлено 21.25 сом ФМ: 0000000000871745 ФД: 145771 ФПД: 261242666870953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162853&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145771&fm=261242666870953&tin=02508201610067®Number=0000000000091683&sum=140000 [16:28:52]StoreToDocumentArchive [16:28:52]shift 545 fd 145771 [16:28:52]save to /storage/0545/doc_00145771 [16:28:52]save last doc name /storage/0545/doc_00145771 to /storage/kkm_last_doc_name [16:28:52]save OK [16:28:52]Clear old archive folders... [16:28:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:52]tlvbuf is 00410F90 [16:28:52]SAM_PROTO_ClearQueue [16:28:52]wFMCommunicate request_size=4 [16:28:52]MH_SAM_APDU [16:28:52]CAPDU: 80 09 00 00 [16:28:52]Write to MH i2c: E2 08 00 DE 28 80 09 00 00 00 00 00 00 78 [16:28:52]Write i2c OK [16:28:52]MH_I2C_Read... [16:28:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:52]Read from MH i2c: E2 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 03 00 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 03 00 DE 28 00 90 00 7A [16:28:52]RAPDU: 90 00 [16:28:52]wFMCommunicate OK [16:28:52]SAM_PROTO_ClearQueue done [16:28:52]KKMCreateOFDPacket [16:28:52]OFDProtocolAddRootSTLVToBuf [16:28:52]FM_MakeSignedData [16:28:52]FM_MakeSignedData [16:28:52]SAM_PROTO_SignData [16:28:52]wFMCommunicate request_size=4 [16:28:52]MH_SAM_APDU [16:28:52]CAPDU: 80 0D 01 02 [16:28:52]Write to MH i2c: E2 08 00 DF 28 80 0D 01 02 00 00 00 00 80 [16:28:52]Write i2c OK [16:28:52]MH_I2C_Read... [16:28:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:52]Read from MH i2c: E2 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 03 00 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 03 00 DF 28 00 90 00 7B [16:28:52]RAPDU: 90 00 [16:28:52]wFMCommunicate OK [16:28:52]wFMCommunicate request_size=255 [16:28:52]MH_SAM_APDU [16:28: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 32 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 45 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6B 39 02 00 35 04 06 00 ED [16:28:52]Write to MH i2c: E2 02 01 E0 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 32 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 45 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6B 39 02 00 35 04 06 00 ED 00 00 C0 [16:28:52]Write i2c OK [16:28:52]MH_I2C_Read... [16:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:52]Read from MH i2c: E2 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 03 00 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 03 00 E0 28 00 90 00 7C [16:28:52]RAPDU: 90 00 [16:28:52]wFMCommunicate OK [16:28:52]wFMCommunicate request_size=10 [16:28:52]MH_SAM_APDU [16:28:52]CAPDU: 80 0D 02 02 05 99 4C 5B E8 A9 [16:28:52]Write to MH i2c: E2 0D 00 E1 28 80 0D 02 02 05 00 99 4C 5B E8 A9 00 00 5E [16:28:52]Write i2c OK [16:28:52]MH_I2C_Read... [16:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:52]Read from MH i2c: E2 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 03 00 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 03 00 E1 28 00 90 00 7D [16:28:52]RAPDU: 90 00 [16:28:52]wFMCommunicate OK [16:28:52]wFMCommunicate request_size=4 [16:28:52]MH_SAM_APDU [16:28:52]CAPDU: 80 0D 03 02 [16:28:52]Write to MH i2c: E2 08 00 E2 28 80 0D 03 02 00 00 00 00 85 [16:28:52]Write i2c OK [16:28:52]MH_I2C_Read... [16:28:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:52]Read from MH i2c: E2 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 0B 00 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 0B 00 E2 28 00 DD 40 5D B8 EC 77 47 51 90 00 B3 [16:28:52]RAPDU: DD 40 5D B8 EC 77 47 51 90 00 [16:28:52]wFMCommunicate OK [16:28:52]SAM_PROTO_SignData done [16:28:52]FM_MakeSignedData done [16:28:52]CreateOFDProtocolMessage [16:28:52]wFMCommunicate request_size=4 [16:28:52]MH_SAM_APDU [16:28:52]CAPDU: 80 11 00 00 [16:28:52]Write to MH i2c: E2 08 00 E3 28 80 11 00 00 00 00 00 00 85 [16:28:52]Write i2c OK [16:28:52]MH_I2C_Read... [16:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:52]Read from MH i2c: E2 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 17 00 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: E2 17 00 E3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D8 [16:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:28:52]wFMCommunicate OK [16:28:52]CreateOFDProtocolMessage done [16:28:52]OFDSenderStorePacket 145771 [16:28:52]StoreOFDPacket docnum=145771 [16:28:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 50 A2 07 01 65 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 45 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6B 39 02 00 35 04 06 00 ED 99 4C 5B E8 A9 DD 40 5D B8 EC 77 47 51 [16:28:52]CheckFolder [16:28:52]dirname=/storage/ofd_packets [16:28:52]CheckFolder done [16:28:52]ProducePacketName [16:28:52]name=ofd_packets/00145771 [16:28:52]NVStorageSaveData ofd_packets/00145771 [16:28:52]File name is /storage/ofd_packets/00145771 [16:28:52]Write 301 bytes [16:28:52]NVStorageSaveData done [16:28:52]OFDSenderStorePacket done [16:28:52]KKMCreateOFDPacket done [16:28:52]NVStorageSaveData kkm_last_timestamp [16:28:52]File name is /storage/kkm_last_timestamp [16:28:52]Write 4 bytes [16:28:52]NVStorageSaveData done [16:28:52]ExternCall_PrintAddStr [16:28:52]wPrintStart [16:28:52]Write to MH i2c: 01 00 00 E4 28 0C [16:28:52]Write i2c OK [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: 01 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: 01 07 00 [16:28:52]MH_I2C_Read... [16:28:52]Read from MH i2c: 01 07 00 E4 28 00 00 00 00 00 FF 0F 21 [16:28:52]RasterBufferAndPrint [16:28:52]line Счет N : (1)160527 [16:28:52]line ИНН: 02508201610067 [16:28:52]line Контрольно-Кассовый Чек [16:28:52]line ПРОДАЖА [16:28:52]line ТРК (МРК, ГНК) : 62 [16:28:52]line Товар: 2710124130 [16:28:52]line Аи-92-К-2 [16:28:52]line 21.250 * 65.90 [16:28:52]line = 1400.38 [16:28:52]line НДС 12% НСП 1% [16:28:52]line > о реализуемом товаре [16:28:52]line ОКРУГЛЕНИЕ: -0.38 [16:28:52]line ИТОГО: 1400.00 [16:28:52]line Внесено: 1400.00 [16:28:52]line СДАЧА: 0.00 [16:28:52]line НСП 1% : 12.39 [16:28:52]line НДС 12% : 148.71 [16:28:52]line Наличными: 1400.00 [16:28:52]line Безнал.: 0.00 [16:28:52]line Место: АЗС № 126 "Партнер Нефть" [16:28:52]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:28:52]line СНО: Общий режим [16:28:52]line Чек 194 27.10.2024 16:28 [16:28:52]line Смена: 545 ФФД: 1.0 [16:28:52]line ЗНМ: 0300000085 [16:28:52]line РНМ: 0000000000091683 [16:28:52]line Версия ККМ: 001 [16:28:52]line [16:28:52]line Дисконтная программа [16:28:52]line АИ-92 [16:28:52]line номер 126 [16:28:52]line сэкономлено 21.25 сом [16:28:52]line ФМ: 0000000000871745 [16:28:52]line ФД: 145771 [16:28:52]line ФПД: 261242666870953 [16:28:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162853&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145771&fm=261242666870953&tin=02508201610067®Number=0000000000091683&sum=140000 [16:28:53]OFD Sender: Processing packet 145771 [packets to send 206, broken 205] [16:28:53]ProducePacketName [16:28:53]name=ofd_packets/00145771 [16:28:53]OFD Sender: To server: pG, [16:28:53]CommunicateWithHost lk.salyk.kg:30040 [16:28:53]ConnectInit lk.salyk.kg [16:28:53]written 0, free lines is 4095 [16:28:53]Connected sock=11 [16:28:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 50 A2 07 01 65 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 45 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6B 39 02 00 35 04 06 00 ED 99 4C 5B E8 A9 DD 40 5D B8 EC 77 47 51 [16:28:53]Write to MH i2c: 01 00 00 14 29 3D [16:28:53]Write i2c OK [16:28:53]MH_I2C_Read... [16:28:53]Read from MH i2c: 01 [16:28:53]MH_I2C_Read... [16:28:53]Read from MH i2c: 01 07 00 [16:28:53]MH_I2C_Read... [16:28:53]Read from MH i2c: 01 07 00 14 29 00 00 00 00 00 5D 0C AD [16:28:53]RasterBufferAndPrint [16:28:53]line [16:28:53]line [16:28:53]line [16:28:53]line [16:28:53]line [16:28:53]written 0, free lines is 3171 [16:28:53]MH_Cut [16:28:53]Write to MH i2c: D1 01 00 1B 29 01 16 [16:28:53]Write i2c OK [16:28:53]MH_I2C_Read... [16:28:53]Read from MH i2c: D1 [16:28:53]MH_I2C_Read... [16:28:53]Read from MH i2c: D1 01 00 [16:28:53]MH_I2C_Read... [16:28:53]Read from MH i2c: D1 01 00 1B 29 00 15 [16:28:53]Write to MH i2c: 01 00 00 1C 29 45 [16:28:53]Write i2c OK [16:28:53]MH_I2C_Read... [16:28:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 94 BD 47 00 14 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6B 39 02 00 F4 03 04 00 72 0F 1E 67 B6 04 01 00 00 43 2B 8F BC D4 B8 15 83 [16:28:53]CommunicateWithHost err = 0 [16:28:53]CheckOFDResponse [16:28:53]1017 (14) - 77093643461234 [16:28:53]1041 (16) - 0000000000871745 [16:28:53]1040 (4) - 145771 [16:28:53]1012 (4) - 27.10.2024 10:01 [16:28:53]1206 (1) - 0 [16:28:53]OFD Sender: Remove packet 145771 [16:28:53]ProducePacketName [16:28:53]name=ofd_packets/00145771 [16:28:53]NVStorageDeleteData [16:28:54]OFD Sender: No OFD packet to send [16:28:54]*** Cut start [16:28:54]*** Partial cut [16:28:54]*** CUTSNS_PIN = 1 [16:28:54]*** CUTSNS_PIN = 0 [16:28:54]*** Brake cut motor [16:28:55]Read from MH i2c: 01 [16:28:55]MH_I2C_Read... [16:28:55]*** Stop cut motor [16:28:55]*** Cut end [16:28:55]Read from MH i2c: 01 07 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: 01 07 00 1C 29 00 00 00 00 00 FF 0F 5A [16:28:55]process_action close_receipt done [16:28:55]requested_data is exist [16:28:55]produce_requested_data [16:28:55]requested_item fm.sn is exist - process it [16:28:55]wFMCommunicate request_size=4 [16:28:55]MH_SAM_APDU [16:28:55]CAPDU: 80 11 00 00 [16:28:55]Write to MH i2c: E2 08 00 1D 29 80 11 00 00 00 00 00 00 C0 [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:55]Read from MH i2c: E2 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 17 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 17 00 1D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 13 [16:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:28:55]wFMCommunicate OK [16:28:55]requested_item fd.num is exist - process it [16:28:55]SAM_PROTO_GetFieldsCounters [16:28:55]wFMCommunicate request_size=4 [16:28:55]MH_SAM_APDU [16:28:55]CAPDU: 80 13 00 00 [16:28:55]Write to MH i2c: E2 08 00 1E 29 80 13 00 00 00 00 00 00 C3 [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:55]Read from MH i2c: E2 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 62 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 62 00 1E 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [16:28:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:55]wFMCommunicate OK [16:28:55]SAM_PROTO_GetFieldsCounters done [16:28:55]requested_item shift.num is exist - process it [16:28:55]requested_item shift.opened is exist - process it [16:28:55]req_shift_opened [16:28:55]FM_GetShiftState [16:28:55]SAM_PROTO_GetShiftState [16:28:55]wFMCommunicate request_size=4 [16:28:55]MH_SAM_APDU [16:28:55]CAPDU: 80 13 01 00 [16:28:55]Write to MH i2c: E2 08 00 1F 29 80 13 01 00 00 00 00 00 C5 [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:55]Read from MH i2c: E2 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 0E 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 0E 00 1F 29 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3D [16:28:55]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:28:55]wFMCommunicate OK [16:28:55]SAM_PROTO_GetShiftState done [16:28:55]FM_GetShiftState done [16:28:55]req_shift_opened done [16:28:55]requested_item shift.open_date is exist - process it [16:28:55]req_shift_open_date [16:28:55]req_shift_open_date done [16:28:55]produce_requested_data done [16:28:55]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145771,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:28:55]process_action_free close_receipt [16:28:55]json_value_free [16:28:55]json_value_free done [16:28:55]process_json_proto returns [16:28:55]Send response to host [16:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145771,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:28:55]free response buf [16:28:55]execute_script done [16:28:55]execute_script returns [16:28:55]free content buf [16:28:55]Sock 7.Close socket [16:28:55]Sock 7.Thread stoped [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:45]accept exits with 9 [16:29:45]New connection [16:29:45]New thread 3066740068 created [16:29:45]Thread 3066596708 joined [16:29:45]Waiting for new connection... [16:29:45] Sock 9.Parse request [16:29:45]Sock 9.Check first char [16:29:45]Sock 9.First char is OK [16:29:45]request: POST /json_proto HTTP/1.0 [16:29:45]Method: POST [16:29:45]URL: /json_proto [16:29:45]Method is POST - this is cgi request [16:29:45]url: /json_proto [16:29:45]query_string will be loaded in cgi processing [16:29:45]execute_cgi json_proto POST (null) [16:29:45]execute_cgi path=json_proto method=POST [16:29:45]POST find Content-Length [16:29:45]Host: 172.17.40.195:8080 [16:29:45]Content-Length: 766 [16:29:45]Content-Type: application/json [16:29:45] [16:29:45]POST finish read [16:29:45]Found Content-Length = 766 [16:29:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.560, "sum" : 486.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 486.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:45]execute_script... [16: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)160529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.560, "sum" : 486.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 486.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:45]POST & json_proto [16:29:45]process_json_proto [16:29:45]json parsed OK: [16:29:45]protocol is kg_v1.0 [16:29:45]action value=close_receipt [16:29:45]process_action close_receipt [16:29:45]cmd_close_receipt [16:29:45]MH_GetDate [16:29:45]Write to MH i2c: F0 00 00 20 29 38 [16:29:45]Write i2c OK [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: F0 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: F0 09 00 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: F0 09 00 20 29 00 7B 6A 1E 67 D5 8D 6C 64 DD [16:29:45]GetLastDocTimeStamp 1730046533 [16:29:45]current date 1730046587 [16:29:45]FM_GetShiftState [16:29:45]SAM_PROTO_GetShiftState [16:29:45]wFMCommunicate request_size=4 [16:29:45]MH_SAM_APDU [16:29:45]CAPDU: 80 13 01 00 [16:29:45]Write to MH i2c: E2 08 00 21 29 80 13 01 00 00 00 00 00 C7 [16:29:45]Write i2c OK [16:29:45]MH_I2C_Read... [16:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:45]Read from MH i2c: E2 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: E2 0E 00 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: E2 0E 00 21 29 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3F [16:29:45]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:29:45]wFMCommunicate OK [16:29:45]SAM_PROTO_GetShiftState done [16:29:45]FM_GetShiftState done [16:29:45]opened in 1729988959 [16:29:45]opened+sec_in_day 1730075359 [16:29:45]quantity*price = 48675 [16:29:45]sum+1 = 48676 [16:29:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 486.75 НСП 1% : 4.31 НДС 12% : 51.69 Наличными: 0.00 Безнал.: 486.75 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 195 27.10.2024 16:29 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145772 ФПД: 78770052727455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162947&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145772&fm=78770052727455&tin=02508201610067®Number=0000000000091683&sum=48675 [16:29:46]StoreToDocumentArchive [16:29:46]shift 545 fd 145772 [16:29:46]save to /storage/0545/doc_00145772 [16:29:46]save last doc name /storage/0545/doc_00145772 to /storage/kkm_last_doc_name [16:29:46]save OK [16:29:46]Clear old archive folders... [16:29:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:46]tlvbuf is B6EA63D0 [16:29:46]SAM_PROTO_ClearQueue [16:29:46]wFMCommunicate request_size=4 [16:29:46]MH_SAM_APDU [16:29:46]CAPDU: 80 09 00 00 [16:29:46]Write to MH i2c: E2 08 00 2E 29 80 09 00 00 00 00 00 00 C9 [16:29:46]Write i2c OK [16:29:46]MH_I2C_Read... [16:29:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:46]Read from MH i2c: E2 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 2E 29 00 90 00 CB [16:29:46]RAPDU: 90 00 [16:29:46]wFMCommunicate OK [16:29:46]SAM_PROTO_ClearQueue done [16:29:46]KKMCreateOFDPacket [16:29:46]OFDProtocolAddRootSTLVToBuf [16:29:46]FM_MakeSignedData [16:29:46]FM_MakeSignedData [16:29:46]SAM_PROTO_SignData [16:29:46]wFMCommunicate request_size=4 [16:29:46]MH_SAM_APDU [16:29:46]CAPDU: 80 0D 01 02 [16:29:46]Write to MH i2c: E2 08 00 2F 29 80 0D 01 02 00 00 00 00 D1 [16:29:46]Write i2c OK [16:29:46]MH_I2C_Read... [16:29:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:46]Read from MH i2c: E2 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 2F 29 00 90 00 CC [16:29:46]RAPDU: 90 00 [16:29:46]wFMCommunicate OK [16:29:46]wFMCommunicate request_size=255 [16:29:46]MH_SAM_APDU [16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 23 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 BE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 7B 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6C 39 02 00 35 04 06 00 47 [16:29:46]Write to MH i2c: E2 02 01 30 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 23 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 BE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 7B 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6C 39 02 00 35 04 06 00 47 00 00 86 [16:29:46]Write i2c OK [16:29:46]MH_I2C_Read... [16:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:46]Read from MH i2c: E2 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 30 29 00 90 00 CD [16:29:46]RAPDU: 90 00 [16:29:46]wFMCommunicate OK [16:29:46]wFMCommunicate request_size=10 [16:29:46]MH_SAM_APDU [16:29:46]CAPDU: 80 0D 02 02 05 A4 15 03 02 9F [16:29:46]Write to MH i2c: E2 0D 00 31 29 80 0D 02 02 05 00 A4 15 03 02 9F 00 00 3B [16:29:46]Write i2c OK [16:29:46]MH_I2C_Read... [16:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:46]Read from MH i2c: E2 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 31 29 00 90 00 CE [16:29:46]RAPDU: 90 00 [16:29:46]wFMCommunicate OK [16:29:46]wFMCommunicate request_size=4 [16:29:46]MH_SAM_APDU [16:29:46]CAPDU: 80 0D 03 02 [16:29:46]Write to MH i2c: E2 08 00 32 29 80 0D 03 02 00 00 00 00 D6 [16:29:46]Write i2c OK [16:29:46]MH_I2C_Read... [16:29:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:46]Read from MH i2c: E2 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 0B 00 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 0B 00 32 29 00 41 7A DA 28 29 60 35 0C 90 00 5E [16:29:46]RAPDU: 41 7A DA 28 29 60 35 0C 90 00 [16:29:46]wFMCommunicate OK [16:29:46]SAM_PROTO_SignData done [16:29:46]FM_MakeSignedData done [16:29:46]CreateOFDProtocolMessage [16:29:46]wFMCommunicate request_size=4 [16:29:46]MH_SAM_APDU [16:29:46]CAPDU: 80 11 00 00 [16:29:46]Write to MH i2c: E2 08 00 33 29 80 11 00 00 00 00 00 00 D6 [16:29:46]Write i2c OK [16:29:46]MH_I2C_Read... [16:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:46]Read from MH i2c: E2 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 17 00 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 17 00 33 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 29 [16:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:29:46]wFMCommunicate OK [16:29:46]CreateOFDProtocolMessage done [16:29:46]OFDSenderStorePacket 145772 [16:29:46]StoreOFDPacket docnum=145772 [16:29:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 10 22 07 01 EE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 23 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 BE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 7B 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6C 39 02 00 35 04 06 00 47 A4 15 03 02 9F 41 7A DA 28 29 60 35 0C [16:29:46]CheckFolder [16:29:46]dirname=/storage/ofd_packets [16:29:46]CheckFolder done [16:29:46]ProducePacketName [16:29:46]name=ofd_packets/00145772 [16:29:46]NVStorageSaveData ofd_packets/00145772 [16:29:46]File name is /storage/ofd_packets/00145772 [16:29:46]Write 301 bytes [16:29:46]NVStorageSaveData done [16:29:46]OFDSenderStorePacket done [16:29:46]KKMCreateOFDPacket done [16:29:46]NVStorageSaveData kkm_last_timestamp [16:29:46]File name is /storage/kkm_last_timestamp [16:29:46]Write 4 bytes [16:29:46]NVStorageSaveData done [16:29:46]ExternCall_PrintAddStr [16:29:46]wPrintStart [16:29:46]Write to MH i2c: 01 00 00 34 29 5D [16:29:46]Write i2c OK [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: 01 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: 01 07 00 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: 01 07 00 34 29 00 00 00 00 00 FF 0F 72 [16:29:46]RasterBufferAndPrint [16:29:46]line Счет N : (1)160529 [16:29:46]line ИНН: 02508201610067 [16:29:46]line Контрольно-Кассовый Чек [16:29:46]line ПРОДАЖА [16:29:46]line ТРК (МРК, ГНК) : 33 [16:29:46]line Товар: 2710124500 [16:29:46]line Аи-95-К-3 [16:29:46]line 6.560 * 74.20 [16:29:46]line = 486.75 [16:29:46]line НДС 12% НСП 1% [16:29:46]line > о реализуемом товаре [16:29:46]line ИТОГО: 486.75 [16:29:46]line НСП 1% : 4.31 [16:29:46]line НДС 12% : 51.69 [16:29:46]line Наличными: 0.00 [16:29:46]line Безнал.: 486.75 [16:29:46]line Место: АЗС № 126 "Партнер Нефть" [16:29:46]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:29:46]line СНО: Общий режим [16:29:46]line Чек 195 27.10.2024 16:29 [16:29:46]line Смена: 545 ФФД: 1.0 [16:29:46]line ЗНМ: 0300000085 [16:29:46]line РНМ: 0000000000091683 [16:29:46]line Версия ККМ: 001 [16:29:46]line Платежная система: Mbank [16:29:46]line ФМ: 0000000000871745 [16:29:46]line ФД: 145772 [16:29:46]line ФПД: 78770052727455 [16:29:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162947&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145772&fm=78770052727455&tin=02508201610067®Number=0000000000091683&sum=48675 [16:29:46]written 0, free lines is 4095 [16:29:46]OFD Sender: Processing packet 145772 [packets to send 206, broken 205] [16:29:46]ProducePacketName [16:29:46]name=ofd_packets/00145772 [16:29:46]OFD Sender: To server: pG, [16:29:46]CommunicateWithHost lk.salyk.kg:30040 [16:29:46]ConnectInit lk.salyk.kg [16:29:46]Connected sock=10 [16:29:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 10 22 07 01 EE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 23 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 BE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 7B 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6C 39 02 00 35 04 06 00 47 A4 15 03 02 9F 41 7A DA 28 29 60 35 0C [16:29:47]Write to MH i2c: 01 00 00 5D 29 86 [16:29:47]Write i2c OK [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: 01 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: 01 07 00 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: 01 07 00 5D 29 00 00 00 00 00 DE 0C 77 [16:29:47]RasterBufferAndPrint [16:29:47]line [16:29:47]line [16:29:47]line [16:29:47]line [16:29:47]line [16:29:47]written 0, free lines is 3303 [16:29:47]MH_Cut [16:29:47]Write to MH i2c: D1 01 00 64 29 01 5F [16:29:47]Write i2c OK [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: D1 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: D1 01 00 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: D1 01 00 64 29 00 5E [16:29:47]Write to MH i2c: 01 00 00 65 29 8E [16:29:47]Write i2c OK [16:29:47]MH_I2C_Read... [16:29:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C7 48 47 00 F6 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6C 39 02 00 F4 03 04 00 A8 0F 1E 67 B6 04 01 00 00 D6 C3 B1 56 80 CF A2 D0 [16:29:47]CommunicateWithHost err = 0 [16:29:47]CheckOFDResponse [16:29:47]1017 (14) - 77093643461234 [16:29:47]1041 (16) - 0000000000871745 [16:29:47]1040 (4) - 145772 [16:29:47]1012 (4) - 27.10.2024 10:02 [16:29:47]1206 (1) - 0 [16:29:47]OFD Sender: Remove packet 145772 [16:29:47]ProducePacketName [16:29:47]name=ofd_packets/00145772 [16:29:47]NVStorageDeleteData [16:29:47]OFD Sender: No OFD packet to send [16:29:48]*** Cut start [16:29:48]*** Partial cut [16:29:48]*** CUTSNS_PIN = 1 [16:29:48]*** CUTSNS_PIN = 0 [16:29:48]*** Brake cut motor [16:29:48]Read from MH i2c: 01 [16:29:48]MH_I2C_Read... [16:29:48]*** Stop cut motor [16:29:48]*** Cut end [16:29:48]Read from MH i2c: 01 07 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: 01 07 00 65 29 00 00 00 00 00 FF 0F A3 [16:29:48]process_action close_receipt done [16:29:48]requested_data is exist [16:29:48]produce_requested_data [16:29:48]requested_item fm.sn is exist - process it [16:29:48]wFMCommunicate request_size=4 [16:29:48]MH_SAM_APDU [16:29:48]CAPDU: 80 11 00 00 [16:29:48]Write to MH i2c: E2 08 00 66 29 80 11 00 00 00 00 00 00 09 [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:48]Read from MH i2c: E2 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 17 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 17 00 66 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 5C [16:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:29:48]wFMCommunicate OK [16:29:48]requested_item fd.num is exist - process it [16:29:48]SAM_PROTO_GetFieldsCounters [16:29:48]wFMCommunicate request_size=4 [16:29:48]MH_SAM_APDU [16:29:48]CAPDU: 80 13 00 00 [16:29:48]Write to MH i2c: E2 08 00 67 29 80 13 00 00 00 00 00 00 0C [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:48]Read from MH i2c: E2 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 62 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 62 00 67 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [16:29:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:48]wFMCommunicate OK [16:29:48]SAM_PROTO_GetFieldsCounters done [16:29:48]requested_item shift.num is exist - process it [16:29:48]requested_item shift.opened is exist - process it [16:29:48]req_shift_opened [16:29:48]FM_GetShiftState [16:29:48]SAM_PROTO_GetShiftState [16:29:48]wFMCommunicate request_size=4 [16:29:48]MH_SAM_APDU [16:29:48]CAPDU: 80 13 01 00 [16:29:48]Write to MH i2c: E2 08 00 68 29 80 13 01 00 00 00 00 00 0E [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:48]Read from MH i2c: E2 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 0E 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 0E 00 68 29 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 86 [16:29:48]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:29:48]wFMCommunicate OK [16:29:48]SAM_PROTO_GetShiftState done [16:29:48]FM_GetShiftState done [16:29:48]req_shift_opened done [16:29:48]requested_item shift.open_date is exist - process it [16:29:48]req_shift_open_date [16:29:48]req_shift_open_date done [16:29:48]produce_requested_data done [16:29:48]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145772,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:29:48]process_action_free close_receipt [16:29:48]json_value_free [16:29:48]json_value_free done [16:29:48]process_json_proto returns [16:29:48]Send response to host [16:29:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145772,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:29:48]free response buf [16:29:48]execute_script done [16:29:48]execute_script returns [16:29:48]free content buf [16:29:48]Sock 9.Close socket [16:29:48]Sock 9.Thread stoped [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:29]accept exits with 7 [16:30:29]New connection [16:30:29]New thread 3066596708 created [16:30:29]Thread 3066740068 joined [16:30:29]Waiting for new connection... [16:30:29] Sock 7.Parse request [16:30:29]Sock 7.Check first char [16:30:29]Sock 7.First char is OK [16:30:29]request: POST /json_proto HTTP/1.0 [16:30:29]Method: POST [16:30:29]URL: /json_proto [16:30:29]Method is POST - this is cgi request [16:30:29]url: /json_proto [16:30:29]query_string will be loaded in cgi processing [16:30:29]execute_cgi json_proto POST (null) [16:30:29]execute_cgi path=json_proto method=POST [16:30:29]POST find Content-Length [16:30:29]Host: 172.17.40.195:8080 [16:30:29]Content-Length: 769 [16:30:29]Content-Type: application/json [16:30:29] [16:30:29]POST finish read [16:30:29]Found Content-Length = 769 [16:30:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:29]execute_script... [16: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)160528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:29]POST & json_proto [16:30:29]process_json_proto [16:30:29]json parsed OK: [16:30:29]protocol is kg_v1.0 [16:30:29]action value=close_receipt [16:30:29]process_action close_receipt [16:30:29]cmd_close_receipt [16:30:29]MH_GetDate [16:30:29]Write to MH i2c: F0 00 00 69 29 81 [16:30:29]Write i2c OK [16:30:29]MH_I2C_Read... [16:30:29]Read from MH i2c: F0 [16:30:29]MH_I2C_Read... [16:30:29]Read from MH i2c: F0 09 00 [16:30:29]MH_I2C_Read... [16:30:29]Read from MH i2c: F0 09 00 69 29 00 A7 6A 1E 67 D5 8D 6C 64 52 [16:30:29]GetLastDocTimeStamp 1730046587 [16:30:29]current date 1730046631 [16:30:29]FM_GetShiftState [16:30:29]SAM_PROTO_GetShiftState [16:30:29]wFMCommunicate request_size=4 [16:30:29]MH_SAM_APDU [16:30:29]CAPDU: 80 13 01 00 [16:30:29]Write to MH i2c: E2 08 00 6A 29 80 13 01 00 00 00 00 00 10 [16:30:29]Write i2c OK [16:30:29]MH_I2C_Read... [16:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:29]Read from MH i2c: E2 [16:30:29]MH_I2C_Read... [16:30:29]Read from MH i2c: E2 0E 00 [16:30:29]MH_I2C_Read... [16:30:29]Read from MH i2c: E2 0E 00 6A 29 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 88 [16:30:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:30:29]wFMCommunicate OK [16:30:29]SAM_PROTO_GetShiftState done [16:30:29]FM_GetShiftState done [16:30:29]opened in 1729988959 [16:30:29]opened+sec_in_day 1730075359 [16:30:29]quantity*price = 300064 [16:30:29]sum+1 = 300066 [16:30:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 196 27.10.2024 16:30 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145773 ФПД: 146229510378939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163031&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145773&fm=146229510378939&tin=02508201610067®Number=0000000000091683&sum=300065 [16:30:30]StoreToDocumentArchive [16:30:30]shift 545 fd 145773 [16:30:30]save to /storage/0545/doc_00145773 [16:30:30]save last doc name /storage/0545/doc_00145773 to /storage/kkm_last_doc_name [16:30:30]save OK [16:30:30]Clear old archive folders... [16:30:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:30]tlvbuf is 0048A810 [16:30:30]SAM_PROTO_ClearQueue [16:30:30]wFMCommunicate request_size=4 [16:30:30]MH_SAM_APDU [16:30:30]CAPDU: 80 09 00 00 [16:30:30]Write to MH i2c: E2 08 00 77 29 80 09 00 00 00 00 00 00 12 [16:30:30]Write i2c OK [16:30:30]MH_I2C_Read... [16:30:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:30]Read from MH i2c: E2 [16:30:30]MH_I2C_Read... [16:30:30]Read from MH i2c: E2 03 00 [16:30:30]MH_I2C_Read... [16:30:30]Read from MH i2c: E2 03 00 77 29 00 90 00 14 [16:30:30]RAPDU: 90 00 [16:30:30]wFMCommunicate OK [16:30:30]SAM_PROTO_ClearQueue done [16:30:30]KKMCreateOFDPacket [16:30:30]OFDProtocolAddRootSTLVToBuf [16:30:30]FM_MakeSignedData [16:30:30]FM_MakeSignedData [16:30:30]SAM_PROTO_SignData [16:30:30]wFMCommunicate request_size=4 [16:30:30]MH_SAM_APDU [16:30:30]CAPDU: 80 0D 01 02 [16:30:30]Write to MH i2c: E2 08 00 78 29 80 0D 01 02 00 00 00 00 1A [16:30:30]Write i2c OK [16:30:30]MH_I2C_Read... [16:30:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:30]Read from MH i2c: E2 [16:30:30]MH_I2C_Read... [16:30:30]Read from MH i2c: E2 03 00 [16:30:30]MH_I2C_Read... [16:30:30]Read from MH i2c: E2 03 00 78 29 00 90 00 15 [16:30:30]RAPDU: 90 00 [16:30:30]wFMCommunicate OK [16:30:30]wFMCommunicate request_size=255 [16:30:30]MH_SAM_APDU [16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 A7 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6D 39 02 00 35 04 06 00 84 [16:30:30]Write to MH i2c: E2 02 01 79 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 A7 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6D 39 02 00 35 04 06 00 84 00 00 07 [16:30:30]Write i2c OK [16:30:30]MH_I2C_Read... [16:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:31]Read from MH i2c: E2 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: E2 03 00 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: E2 03 00 79 29 00 90 00 16 [16:30:31]RAPDU: 90 00 [16:30:31]wFMCommunicate OK [16:30:31]wFMCommunicate request_size=10 [16:30:31]MH_SAM_APDU [16:30:31]CAPDU: 80 0D 02 02 05 FE B6 05 95 BB [16:30:31]Write to MH i2c: E2 0D 00 7A 29 80 0D 02 02 05 00 FE B6 05 95 BB 00 00 30 [16:30:31]Write i2c OK [16:30:31]MH_I2C_Read... [16:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:31]Read from MH i2c: E2 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: E2 03 00 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: E2 03 00 7A 29 00 90 00 17 [16:30:31]RAPDU: 90 00 [16:30:31]wFMCommunicate OK [16:30:31]wFMCommunicate request_size=4 [16:30:31]MH_SAM_APDU [16:30:31]CAPDU: 80 0D 03 02 [16:30:31]Write to MH i2c: E2 08 00 7B 29 80 0D 03 02 00 00 00 00 1F [16:30:31]Write i2c OK [16:30:31]MH_I2C_Read... [16:30:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:31]Read from MH i2c: E2 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: E2 0B 00 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: E2 0B 00 7B 29 00 CB 38 3B 2F 83 94 B1 9A 90 00 EF [16:30:31]RAPDU: CB 38 3B 2F 83 94 B1 9A 90 00 [16:30:31]wFMCommunicate OK [16:30:31]SAM_PROTO_SignData done [16:30:31]FM_MakeSignedData done [16:30:31]CreateOFDProtocolMessage [16:30:31]wFMCommunicate request_size=4 [16:30:31]MH_SAM_APDU [16:30:31]CAPDU: 80 11 00 00 [16:30:31]Write to MH i2c: E2 08 00 7C 29 80 11 00 00 00 00 00 00 1F [16:30:31]Write i2c OK [16:30:31]MH_I2C_Read... [16:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:31]Read from MH i2c: E2 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: E2 17 00 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: E2 17 00 7C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 72 [16:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:30:31]wFMCommunicate OK [16:30:31]CreateOFDProtocolMessage done [16:30:31]OFDSenderStorePacket 145773 [16:30:31]StoreOFDPacket docnum=145773 [16:30:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 88 83 07 01 69 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 A7 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6D 39 02 00 35 04 06 00 84 FE B6 05 95 BB CB 38 3B 2F 83 94 B1 9A [16:30:31]CheckFolder [16:30:31]dirname=/storage/ofd_packets [16:30:31]CheckFolder done [16:30:31]ProducePacketName [16:30:31]name=ofd_packets/00145773 [16:30:31]NVStorageSaveData ofd_packets/00145773 [16:30:31]File name is /storage/ofd_packets/00145773 [16:30:31]Write 301 bytes [16:30:31]NVStorageSaveData done [16:30:31]OFDSenderStorePacket done [16:30:31]KKMCreateOFDPacket done [16:30:31]NVStorageSaveData kkm_last_timestamp [16:30:31]File name is /storage/kkm_last_timestamp [16:30:31]Write 4 bytes [16:30:31]NVStorageSaveData done [16:30:31]ExternCall_PrintAddStr [16:30:31]wPrintStart [16:30:31]Write to MH i2c: 01 00 00 7D 29 A6 [16:30:31]Write i2c OK [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: 01 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: 01 07 00 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: 01 07 00 7D 29 00 00 00 00 00 FF 0F BB [16:30:31]RasterBufferAndPrint [16:30:31]line Счет N : (1)160528 [16:30:31]line ИНН: 02508201610067 [16:30:31]line Контрольно-Кассовый Чек [16:30:31]line ПРОДАЖА [16:30:31]line ТРК (МРК, ГНК) : 53 [16:30:31]line Товар: 2710124500 [16:30:31]line Аи-95-К-3 [16:30:31]line 40.440 * 74.20 [16:30:31]line = 3000.65 [16:30:31]line НДС 12% НСП 1% [16:30:31]line > о реализуемом товаре [16:30:31]line ИТОГО: 3000.65 [16:30:31]line НСП 1% : 26.55 [16:30:31]line НДС 12% : 318.65 [16:30:31]line Наличными: 0.00 [16:30:31]line Безнал.: 3000.65 [16:30:31]line Место: АЗС № 126 "Партнер Нефть" [16:30:31]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:30:31]line СНО: Общий режим [16:30:31]line Чек 196 27.10.2024 16:30 [16:30:31]line Смена: 545 ФФД: 1.0 [16:30:31]line ЗНМ: 0300000085 [16:30:31]line РНМ: 0000000000091683 [16:30:31]line Версия ККМ: 001 [16:30:31]line Платежная система: Mbank [16:30:31]line ФМ: 0000000000871745 [16:30:31]line ФД: 145773 [16:30:31]line ФПД: 146229510378939 [16:30:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163031&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145773&fm=146229510378939&tin=02508201610067®Number=0000000000091683&sum=300065 [16:30:31]written 0, free lines is 4095 [16:30:31]OFD Sender: Processing packet 145773 [packets to send 206, broken 205] [16:30:31]ProducePacketName [16:30:31]name=ofd_packets/00145773 [16:30:31]OFD Sender: To server: pG, [16:30:31]CommunicateWithHost lk.salyk.kg:30040 [16:30:31]ConnectInit lk.salyk.kg [16:30:31]Connected sock=10 [16:30:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 88 83 07 01 69 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 A7 6A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6D 39 02 00 35 04 06 00 84 FE B6 05 95 BB CB 38 3B 2F 83 94 B1 9A [16:30:31]Write to MH i2c: 01 00 00 A6 29 CF [16:30:31]Write i2c OK [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: 01 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: 01 07 00 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: 01 07 00 A6 29 00 00 00 00 00 DE 0C C0 [16:30:31]RasterBufferAndPrint [16:30:31]line [16:30:31]line [16:30:31]line [16:30:31]line [16:30:31]line [16:30:31]written 0, free lines is 3300 [16:30:31]MH_Cut [16:30:31]Write to MH i2c: D1 01 00 AD 29 01 A8 [16:30:31]Write i2c OK [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: D1 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: D1 01 00 [16:30:31]MH_I2C_Read... [16:30:31]Read from MH i2c: D1 01 00 AD 29 00 A7 [16:30:31]Write to MH i2c: 01 00 00 AE 29 D7 [16:30:31]Write i2c OK [16:30:31]MH_I2C_Read... [16:30:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 EE 91 47 00 92 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6D 39 02 00 F4 03 04 00 D4 0F 1E 67 B6 04 01 00 00 6A 0F 03 46 95 E5 3B 42 [16:30:31]CommunicateWithHost err = 0 [16:30:31]CheckOFDResponse [16:30:31]1017 (14) - 77093643461234 [16:30:31]1041 (16) - 0000000000871745 [16:30:31]1040 (4) - 145773 [16:30:31]1012 (4) - 27.10.2024 10:03 [16:30:31]1206 (1) - 0 [16:30:31]OFD Sender: Remove packet 145773 [16:30:31]ProducePacketName [16:30:31]name=ofd_packets/00145773 [16:30:31]NVStorageDeleteData [16:30:32]OFD Sender: No OFD packet to send [16:30:32]*** Cut start [16:30:32]*** Partial cut [16:30:32]*** CUTSNS_PIN = 1 [16:30:32]*** CUTSNS_PIN = 0 [16:30:32]*** Brake cut motor [16:30:33]Read from MH i2c: 01 [16:30:33]MH_I2C_Read... [16:30:33]*** Stop cut motor [16:30:33]*** Cut end [16:30:33]Read from MH i2c: 01 07 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 AE 29 00 00 00 00 00 FF 0F EC [16:30:33]process_action close_receipt done [16:30:33]requested_data is exist [16:30:33]produce_requested_data [16:30:33]requested_item fm.sn is exist - process it [16:30:33]wFMCommunicate request_size=4 [16:30:33]MH_SAM_APDU [16:30:33]CAPDU: 80 11 00 00 [16:30:33]Write to MH i2c: E2 08 00 AF 29 80 11 00 00 00 00 00 00 52 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 [16:30:33]MH_I2C_Read... [16:30:33]int [16:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:33]*** FLAG_PRN_KEY set [16:30:33]Read from MH i2c: E2 17 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 17 00 AF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A5 [16:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:30:33]wFMCommunicate OK [16:30:33]requested_item fd.num is exist - process it [16:30:33]SAM_PROTO_GetFieldsCounters [16:30:33]wFMCommunicate request_size=4 [16:30:33]MH_SAM_APDU [16:30:33]CAPDU: 80 13 00 00 [16:30:33]Write to MH i2c: E2 08 00 B0 29 80 13 00 00 00 00 00 00 55 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:33]Read from MH i2c: E2 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 62 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 62 00 B0 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [16:30:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:33]wFMCommunicate OK [16:30:33]SAM_PROTO_GetFieldsCounters done [16:30:33]requested_item shift.num is exist - process it [16:30:33]requested_item shift.opened is exist - process it [16:30:33]req_shift_opened [16:30:33]FM_GetShiftState [16:30:33]SAM_PROTO_GetShiftState [16:30:33]wFMCommunicate request_size=4 [16:30:33]MH_SAM_APDU [16:30:33]CAPDU: 80 13 01 00 [16:30:33]Write to MH i2c: 01 00 00 B1 29 DA [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 B1 29 00 08 00 00 00 FF 0F F7 [16:30:33]state=0 [16:30:33]Key pressed [16:30:33]Feed [16:30:33]Write to MH i2c: D8 00 00 B2 29 B2 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: D8 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: D8 01 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: D8 01 00 B2 29 00 B3 [16:30:33]Write to MH i2c: E2 08 00 B3 29 80 13 01 00 00 00 00 00 59 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]int [16:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:33]Read from MH i2c: E2 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 0E 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 0E 00 B3 29 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D1 [16:30:33]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:30:33]wFMCommunicate OK [16:30:33]SAM_PROTO_GetShiftState done [16:30:33]FM_GetShiftState done [16:30:33]req_shift_opened done [16:30:33]requested_item shift.open_date is exist - process it [16:30:33]req_shift_open_date [16:30:33]req_shift_open_date done [16:30:33]produce_requested_data done [16:30:33]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145773,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:30:33]process_action_free close_receipt [16:30:33]json_value_free [16:30:33]json_value_free done [16:30:33]process_json_proto returns [16:30:33]Send response to host [16:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145773,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:30:33]free response buf [16:30:33]execute_script done [16:30:33]execute_script returns [16:30:33]free content buf [16:30:33]Sock 7.Close socket [16:30:33]Sock 7.Thread stoped [16:30:33]Write to MH i2c: 01 00 00 B4 29 DD [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 B4 29 00 48 00 00 00 3C 00 68 [16:30:33]state=2 [16:30:33]Key pressed [16:30:33]int [16:30:33]Write to MH i2c: 01 00 00 B5 29 DE [16:30:33]*** FLAG_PRN_KEY reset [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 B5 29 00 00 00 00 00 F8 0F EC [16:30:33]state=2 [16:30:33]Stop feed [16:30:33]int [16:30:33]Write to MH i2c: 01 00 00 B6 29 DF [16:30:33]*** FLAG_PRN_KEY set [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 B6 29 00 08 00 00 00 FF 0F FC [16:30:33]state=0 [16:30:33]Key pressed [16:30:33]Feed [16:30:33]Write to MH i2c: D8 00 00 B7 29 B7 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: D8 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: D8 01 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: D8 01 00 B7 29 00 B8 [16:30:33]int [16:30:33]Write to MH i2c: 01 00 00 B8 29 E1 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 B8 29 00 48 00 00 00 3C 00 6C [16:30:33]state=2 [16:30:33]Key pressed [16:30:33]int [16:30:33]Write to MH i2c: 01 00 00 B9 29 E2 [16:30:33]*** FLAG_PRN_KEY reset [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 B9 29 00 00 00 00 00 FD 0F F5 [16:30:33]state=2 [16:30:33]Stop feed [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]accept exits with 9 [16:33:07]New connection [16:33:07]New thread 3066740068 created [16:33:07]Thread 3066596708 joined [16:33:07]Waiting for new connection... [16:33:07] Sock 9.Parse request [16:33:07]Sock 9.Check first char [16:33:07]Sock 9.First char is OK [16:33:07]request: POST /json_proto HTTP/1.0 [16:33:07]Method: POST [16:33:07]URL: /json_proto [16:33:07]Method is POST - this is cgi request [16:33:07]url: /json_proto [16:33:07]query_string will be loaded in cgi processing [16:33:07]execute_cgi json_proto POST (null) [16:33:07]execute_cgi path=json_proto method=POST [16:33:07]POST find Content-Length [16:33:07]Host: 172.17.40.195:8080 [16:33:07]Content-Length: 767 [16:33:07]Content-Type: application/json [16:33:07] [16:33:07]POST finish read [16:33:07]Found Content-Length = 767 [16:33:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:07]execute_script... [16:33: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)160530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:07]POST & json_proto [16:33:07]process_json_proto [16:33:07]json parsed OK: [16:33:07]protocol is kg_v1.0 [16:33:07]action value=close_receipt [16:33:07]process_action close_receipt [16:33:07]cmd_close_receipt [16:33:07]MH_GetDate [16:33:07]Write to MH i2c: F0 00 00 BA 29 D2 [16:33:07]Write i2c OK [16:33:07]MH_I2C_Read... [16:33:07]Read from MH i2c: F0 [16:33:07]MH_I2C_Read... [16:33:07]Read from MH i2c: F0 09 00 [16:33:07]MH_I2C_Read... [16:33:07]Read from MH i2c: F0 09 00 BA 29 00 45 6B 1E 67 D5 8D 6C 64 42 [16:33:07]GetLastDocTimeStamp 1730046631 [16:33:07]current date 1730046789 [16:33:07]FM_GetShiftState [16:33:07]SAM_PROTO_GetShiftState [16:33:07]wFMCommunicate request_size=4 [16:33:07]MH_SAM_APDU [16:33:07]CAPDU: 80 13 01 00 [16:33:07]Write to MH i2c: E2 08 00 BB 29 80 13 01 00 00 00 00 00 61 [16:33:07]Write i2c OK [16:33:07]MH_I2C_Read... [16:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:07]Read from MH i2c: E2 [16:33:07]MH_I2C_Read... [16:33:07]Read from MH i2c: E2 0E 00 [16:33:07]MH_I2C_Read... [16:33:07]Read from MH i2c: E2 0E 00 BB 29 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D9 [16:33:07]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:33:07]wFMCommunicate OK [16:33:07]SAM_PROTO_GetShiftState done [16:33:07]FM_GetShiftState done [16:33:07]opened in 1729988959 [16:33:07]opened+sec_in_day 1730075359 [16:33:07]quantity*price = 70044 [16:33:07]sum+1 = 70045 [16:33:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 197 27.10.2024 16:33 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145774 ФПД: 71159568734624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163309&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145774&fm=71159568734624&tin=02508201610067®Number=0000000000091683&sum=70044 [16:33:08]StoreToDocumentArchive [16:33:08]shift 545 fd 145774 [16:33:08]save to /storage/0545/doc_00145774 [16:33:08]save last doc name /storage/0545/doc_00145774 to /storage/kkm_last_doc_name [16:33:08]save OK [16:33:08]Clear old archive folders... [16:33:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:08]tlvbuf is 00405430 [16:33:08]SAM_PROTO_ClearQueue [16:33:08]wFMCommunicate request_size=4 [16:33:08]MH_SAM_APDU [16:33:08]CAPDU: 80 09 00 00 [16:33:08]Write to MH i2c: E2 08 00 C8 29 80 09 00 00 00 00 00 00 63 [16:33:08]Write i2c OK [16:33:08]MH_I2C_Read... [16:33:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:08]Read from MH i2c: E2 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 03 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 03 00 C8 29 00 90 00 65 [16:33:08]RAPDU: 90 00 [16:33:08]wFMCommunicate OK [16:33:08]SAM_PROTO_ClearQueue done [16:33:08]KKMCreateOFDPacket [16:33:08]OFDProtocolAddRootSTLVToBuf [16:33:08]FM_MakeSignedData [16:33:08]FM_MakeSignedData [16:33:08]SAM_PROTO_SignData [16:33:08]wFMCommunicate request_size=4 [16:33:08]MH_SAM_APDU [16:33:08]CAPDU: 80 0D 01 02 [16:33:08]Write to MH i2c: E2 08 00 C9 29 80 0D 01 02 00 00 00 00 6B [16:33:08]Write i2c OK [16:33:08]MH_I2C_Read... [16:33:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:08]Read from MH i2c: E2 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 03 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 03 00 C9 29 00 90 00 66 [16:33:08]RAPDU: 90 00 [16:33:08]wFMCommunicate OK [16:33:08]wFMCommunicate request_size=255 [16:33:08]MH_SAM_APDU [16:33: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 45 6B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6E 39 02 00 35 04 06 00 40 [16:33:08]Write to MH i2c: E2 02 01 CA 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 45 6B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6E 39 02 00 35 04 06 00 40 00 00 67 [16:33:08]Write i2c OK [16:33:08]MH_I2C_Read... [16:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:08]Read from MH i2c: E2 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 03 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 03 00 CA 29 00 90 00 67 [16:33:08]RAPDU: 90 00 [16:33:08]wFMCommunicate OK [16:33:08]wFMCommunicate request_size=10 [16:33:08]MH_SAM_APDU [16:33:08]CAPDU: 80 0D 02 02 05 B8 20 D1 19 A0 [16:33:08]Write to MH i2c: E2 0D 00 CB 29 80 0D 02 02 05 00 B8 20 D1 19 A0 00 00 DA [16:33:08]Write i2c OK [16:33:08]MH_I2C_Read... [16:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:08]Read from MH i2c: E2 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 03 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 03 00 CB 29 00 90 00 68 [16:33:08]RAPDU: 90 00 [16:33:08]wFMCommunicate OK [16:33:08]wFMCommunicate request_size=4 [16:33:08]MH_SAM_APDU [16:33:08]CAPDU: 80 0D 03 02 [16:33:08]Write to MH i2c: E2 08 00 CC 29 80 0D 03 02 00 00 00 00 70 [16:33:08]Write i2c OK [16:33:08]MH_I2C_Read... [16:33:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:08]Read from MH i2c: E2 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 0B 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 0B 00 CC 29 00 AC 33 EE 33 01 87 27 BD 90 00 DD [16:33:08]RAPDU: AC 33 EE 33 01 87 27 BD 90 00 [16:33:08]wFMCommunicate OK [16:33:08]SAM_PROTO_SignData done [16:33:08]FM_MakeSignedData done [16:33:08]CreateOFDProtocolMessage [16:33:08]wFMCommunicate request_size=4 [16:33:08]MH_SAM_APDU [16:33:08]CAPDU: 80 11 00 00 [16:33:08]Write to MH i2c: E2 08 00 CD 29 80 11 00 00 00 00 00 00 70 [16:33:08]Write i2c OK [16:33:08]MH_I2C_Read... [16:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:08]Read from MH i2c: E2 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 17 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 17 00 CD 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C3 [16:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:33:08]wFMCommunicate OK [16:33:08]CreateOFDProtocolMessage done [16:33:08]OFDSenderStorePacket 145774 [16:33:08]StoreOFDPacket docnum=145774 [16:33:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1E CB 07 01 B9 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 45 6B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6E 39 02 00 35 04 06 00 40 B8 20 D1 19 A0 AC 33 EE 33 01 87 27 BD [16:33:08]CheckFolder [16:33:08]dirname=/storage/ofd_packets [16:33:08]CheckFolder done [16:33:08]ProducePacketName [16:33:08]name=ofd_packets/00145774 [16:33:08]NVStorageSaveData ofd_packets/00145774 [16:33:08]File name is /storage/ofd_packets/00145774 [16:33:08]Write 301 bytes [16:33:08]NVStorageSaveData done [16:33:08]OFDSenderStorePacket done [16:33:08]KKMCreateOFDPacket done [16:33:08]NVStorageSaveData kkm_last_timestamp [16:33:08]File name is /storage/kkm_last_timestamp [16:33:08]Write 4 bytes [16:33:08]NVStorageSaveData done [16:33:08]OFD Sender: Processing packet 145774 [packets to send 206, broken 205] [16:33:08]ProducePacketName [16:33:08]name=ofd_packets/00145774 [16:33:08]OFD Sender: To server: pG, [16:33:08]CommunicateWithHost lk.salyk.kg:30040 [16:33:08]ConnectInit lk.salyk.kg [16:33:08]ExternCall_PrintAddStr [16:33:08]wPrintStart [16:33:08]Write to MH i2c: 01 00 00 CE 29 F7 [16:33:08]Write i2c OK [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: 01 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: 01 07 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: 01 07 00 CE 29 00 00 00 00 00 FF 0F 0C [16:33:08]RasterBufferAndPrint [16:33:08]line Счет N : (1)160530 [16:33:08]line ИНН: 02508201610067 [16:33:08]line Контрольно-Кассовый Чек [16:33:08]line ПРОДАЖА [16:33:08]line ТРК (МРК, ГНК) : 32 [16:33:08]line Товар: 2710124130 [16:33:08]line Аи-92-К-2 [16:33:08]line 10.470 * 66.90 [16:33:08]line = 700.44 [16:33:08]line НДС 12% НСП 1% [16:33:08]line > о реализуемом товаре [16:33:08]line ИТОГО: 700.44 [16:33:08]line НСП 1% : 6.20 [16:33:08]line НДС 12% : 74.38 [16:33:08]line Наличными: 0.00 [16:33:08]line Безнал.: 700.44 [16:33:08]line Место: АЗС № 126 "Партнер Нефть" [16:33:08]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:33:08]line СНО: Общий режим [16:33:08]line Чек 197 27.10.2024 16:33 [16:33:08]line Смена: 545 ФФД: 1.0 [16:33:08]line ЗНМ: 0300000085 [16:33:08]line РНМ: 0000000000091683 [16:33:08]line Версия ККМ: 001 [16:33:08]line Платежная система: Mbank [16:33:08]line ФМ: 0000000000871745 [16:33:08]line ФД: 145774 [16:33:08]line ФПД: 71159568734624 [16:33:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163309&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145774&fm=71159568734624&tin=02508201610067®Number=0000000000091683&sum=70044 [16:33:09]Connected sock=11 [16:33:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1E CB 07 01 B9 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 45 6B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6E 39 02 00 35 04 06 00 40 B8 20 D1 19 A0 AC 33 EE 33 01 87 27 BD [16:33:09]written 0, free lines is 4095 [16:33:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 89 42 47 00 47 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6E 39 02 00 F4 03 04 00 72 10 1E 67 B6 04 01 00 00 8E 37 24 95 50 EF 30 C2 [16:33:09]CommunicateWithHost err = 0 [16:33:09]CheckOFDResponse [16:33:09]1017 (14) - 77093643461234 [16:33:09]1041 (16) - 0000000000871745 [16:33:09]1040 (4) - 145774 [16:33:09]1012 (4) - 27.10.2024 10:05 [16:33:09]1206 (1) - 0 [16:33:09]OFD Sender: Remove packet 145774 [16:33:09]ProducePacketName [16:33:09]name=ofd_packets/00145774 [16:33:09]NVStorageDeleteData [16:33:09]Write to MH i2c: 01 00 00 F7 29 20 [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: 01 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: 01 07 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: 01 07 00 F7 29 00 00 00 00 00 D7 0C 0A [16:33:09]RasterBufferAndPrint [16:33:09]line [16:33:09]line [16:33:09]line [16:33:09]line [16:33:09]line [16:33:09]written 0, free lines is 3292 [16:33:09]MH_Cut [16:33:09]Write to MH i2c: D1 01 00 FE 29 01 F9 [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: D1 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: D1 01 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: D1 01 00 FE 29 00 F8 [16:33:09]Write to MH i2c: 01 00 00 FF 29 28 [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]OFD Sender: No OFD packet to send [16:33:10]*** Cut start [16:33:10]*** Partial cut [16:33:10]*** CUTSNS_PIN = 1 [16:33:10]*** CUTSNS_PIN = 0 [16:33:10]*** Brake cut motor [16:33:10]Read from MH i2c: 01 [16:33:10]MH_I2C_Read... [16:33:10]*** Stop cut motor [16:33:10]*** Cut end [16:33:10]Read from MH i2c: 01 07 00 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: 01 07 00 FF 29 00 00 00 00 00 FF 0F 3D [16:33:10]process_action close_receipt done [16:33:10]requested_data is exist [16:33:10]produce_requested_data [16:33:10]requested_item fm.sn is exist - process it [16:33:10]wFMCommunicate request_size=4 [16:33:10]MH_SAM_APDU [16:33:10]CAPDU: 80 11 00 00 [16:33:10]Write to MH i2c: E2 08 00 00 2A 80 11 00 00 00 00 00 00 A4 [16:33:10]Write i2c OK [16:33:10]MH_I2C_Read... [16:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:10]Read from MH i2c: E2 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: E2 17 00 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: E2 17 00 00 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F7 [16:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:33:10]wFMCommunicate OK [16:33:10]requested_item fd.num is exist - process it [16:33:10]SAM_PROTO_GetFieldsCounters [16:33:10]wFMCommunicate request_size=4 [16:33:10]MH_SAM_APDU [16:33:10]CAPDU: 80 13 00 00 [16:33:10]Write to MH i2c: E2 08 00 01 2A 80 13 00 00 00 00 00 00 A7 [16:33:10]Write i2c OK [16:33:10]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 62 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 62 00 01 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [16:33:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:11]wFMCommunicate OK [16:33:11]SAM_PROTO_GetFieldsCounters done [16:33:11]requested_item shift.num is exist - process it [16:33:11]requested_item shift.opened is exist - process it [16:33:11]req_shift_opened [16:33:11]FM_GetShiftState [16:33:11]SAM_PROTO_GetShiftState [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 13 01 00 [16:33:11]Write to MH i2c: E2 08 00 02 2A 80 13 01 00 00 00 00 00 A9 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 0E 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 0E 00 02 2A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 21 [16:33:11]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:33:11]wFMCommunicate OK [16:33:11]SAM_PROTO_GetShiftState done [16:33:11]FM_GetShiftState done [16:33:11]req_shift_opened done [16:33:11]requested_item shift.open_date is exist - process it [16:33:11]req_shift_open_date [16:33:11]req_shift_open_date done [16:33:11]produce_requested_data done [16:33:11]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145774,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:33:11]process_action_free close_receipt [16:33:11]json_value_free [16:33:11]json_value_free done [16:33:11]process_json_proto returns [16:33:11]Send response to host [16:33:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145774,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:33:11]free response buf [16:33:11]execute_script done [16:33:11]execute_script returns [16:33:11]free content buf [16:33:11]Sock 9.Close socket [16:33:11]Sock 9.Thread stoped [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:09]accept exits with 7 [16:37:09]New connection [16:37:09]New thread 3066596708 created [16:37:09]Thread 3066740068 joined [16:37:09]Waiting for new connection... [16:37:09] Sock 7.Parse request [16:37:09]Sock 7.Check first char [16:37:09]Sock 7.First char is OK [16:37:09]request: POST /json_proto HTTP/1.0 [16:37:09]Method: POST [16:37:09]URL: /json_proto [16:37:09]Method is POST - this is cgi request [16:37:09]url: /json_proto [16:37:09]query_string will be loaded in cgi processing [16:37:09]execute_cgi json_proto POST (null) [16:37:09]execute_cgi path=json_proto method=POST [16:37:09]POST find Content-Length [16:37:09]Host: 172.17.40.195:8080 [16:37:09]Content-Length: 678 [16:37:09]Content-Type: application/json [16:37:09] [16:37:09]POST finish read [16:37:09]Found Content-Length = 678 [16:37:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:09]execute_script... [16:37: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)160531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:09]POST & json_proto [16:37:09]process_json_proto [16:37:09]json parsed OK: [16:37:09]protocol is kg_v1.0 [16:37:09]action value=close_receipt [16:37:09]process_action close_receipt [16:37:09]cmd_close_receipt [16:37:09]MH_GetDate [16:37:09]Write to MH i2c: F0 00 00 03 2A 1C [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: F0 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: F0 09 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: F0 09 00 03 2A 00 37 6C 1E 67 D5 8D 6C 64 7F [16:37:09]GetLastDocTimeStamp 1730046789 [16:37:09]current date 1730047031 [16:37:09]FM_GetShiftState [16:37:09]SAM_PROTO_GetShiftState [16:37:09]wFMCommunicate request_size=4 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 13 01 00 [16:37:09]Write to MH i2c: E2 08 00 04 2A 80 13 01 00 00 00 00 00 AB [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 0E 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 0E 00 04 2A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 23 [16:37:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:37:09]wFMCommunicate OK [16:37:09]SAM_PROTO_GetShiftState done [16:37:09]FM_GetShiftState done [16:37:09]opened in 1729988959 [16:37:09]opened+sec_in_day 1730075359 [16:37:09]quantity*price = 80012 [16:37:09]sum+1 = 80013 [16:37:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 198 27.10.2024 16:37 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145775 ФПД: 278318985337028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163711&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145775&fm=278318985337028&tin=02508201610067®Number=0000000000091683&sum=80000 [16:37:10]StoreToDocumentArchive [16:37:10]shift 545 fd 145775 [16:37:10]save to /storage/0545/doc_00145775 [16:37:10]save last doc name /storage/0545/doc_00145775 to /storage/kkm_last_doc_name [16:37:10]save OK [16:37:10]Clear old archive folders... [16:37:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:10]tlvbuf is 00419790 [16:37:10]SAM_PROTO_ClearQueue [16:37:10]wFMCommunicate request_size=4 [16:37:10]MH_SAM_APDU [16:37:10]CAPDU: 80 09 00 00 [16:37:10]Write to MH i2c: E2 08 00 11 2A 80 09 00 00 00 00 00 00 AD [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:10]Read from MH i2c: E2 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 03 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 03 00 11 2A 00 90 00 AF [16:37:10]RAPDU: 90 00 [16:37:10]wFMCommunicate OK [16:37:10]SAM_PROTO_ClearQueue done [16:37:10]KKMCreateOFDPacket [16:37:10]OFDProtocolAddRootSTLVToBuf [16:37:10]FM_MakeSignedData [16:37:10]FM_MakeSignedData [16:37:10]SAM_PROTO_SignData [16:37:10]wFMCommunicate request_size=4 [16:37:10]MH_SAM_APDU [16:37:10]CAPDU: 80 0D 01 02 [16:37:10]Write to MH i2c: E2 08 00 12 2A 80 0D 01 02 00 00 00 00 B5 [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:10]Read from MH i2c: E2 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 03 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 03 00 12 2A 00 90 00 B0 [16:37:10]RAPDU: 90 00 [16:37:10]wFMCommunicate OK [16:37:10]wFMCommunicate request_size=255 [16:37:10]MH_SAM_APDU [16:37: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 37 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6F 39 02 00 35 04 06 00 FD [16:37:10]Write to MH i2c: E2 02 01 13 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 37 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6F 39 02 00 35 04 06 00 FD 00 00 E7 [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:10]Read from MH i2c: E2 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 03 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 03 00 13 2A 00 90 00 B1 [16:37:10]RAPDU: 90 00 [16:37:10]wFMCommunicate OK [16:37:10]wFMCommunicate request_size=10 [16:37:10]MH_SAM_APDU [16:37:10]CAPDU: 80 0D 02 02 05 21 30 41 58 C4 [16:37:10]Write to MH i2c: E2 0D 00 14 2A 80 0D 02 02 05 00 21 30 41 58 C4 00 00 70 [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:10]Read from MH i2c: E2 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 03 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 03 00 14 2A 00 90 00 B2 [16:37:10]RAPDU: 90 00 [16:37:10]wFMCommunicate OK [16:37:10]wFMCommunicate request_size=4 [16:37:10]MH_SAM_APDU [16:37:10]CAPDU: 80 0D 03 02 [16:37:10]Write to MH i2c: E2 08 00 15 2A 80 0D 03 02 00 00 00 00 BA [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:11]Read from MH i2c: E2 [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: E2 0B 00 [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: E2 0B 00 15 2A 00 3B 40 CC 41 A7 F0 E9 42 90 00 05 [16:37:11]RAPDU: 3B 40 CC 41 A7 F0 E9 42 90 00 [16:37:11]wFMCommunicate OK [16:37:11]SAM_PROTO_SignData done [16:37:11]FM_MakeSignedData done [16:37:11]CreateOFDProtocolMessage [16:37:11]wFMCommunicate request_size=4 [16:37:11]MH_SAM_APDU [16:37:11]CAPDU: 80 11 00 00 [16:37:11]Write to MH i2c: E2 08 00 16 2A 80 11 00 00 00 00 00 00 BA [16:37:11]Write i2c OK [16:37:11]MH_I2C_Read... [16:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:11]Read from MH i2c: E2 [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: E2 17 00 [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: E2 17 00 16 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0D [16:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:37:11]wFMCommunicate OK [16:37:11]CreateOFDProtocolMessage done [16:37:11]OFDSenderStorePacket 145775 [16:37:11]StoreOFDPacket docnum=145775 [16:37:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 36 CD 07 01 36 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 37 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6F 39 02 00 35 04 06 00 FD 21 30 41 58 C4 3B 40 CC 41 A7 F0 E9 42 [16:37:11]CheckFolder [16:37:11]dirname=/storage/ofd_packets [16:37:11]CheckFolder done [16:37:11]ProducePacketName [16:37:11]name=ofd_packets/00145775 [16:37:11]NVStorageSaveData ofd_packets/00145775 [16:37:11]File name is /storage/ofd_packets/00145775 [16:37:11]Write 301 bytes [16:37:11]NVStorageSaveData done [16:37:11]OFDSenderStorePacket done [16:37:11]KKMCreateOFDPacket done [16:37:11]NVStorageSaveData kkm_last_timestamp [16:37:11]File name is /storage/kkm_last_timestamp [16:37:11]Write 4 bytes [16:37:11]NVStorageSaveData done [16:37:11]ExternCall_PrintAddStr [16:37:11]wPrintStart [16:37:11]Write to MH i2c: 01 00 00 17 2A 41 [16:37:11]Write i2c OK [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: 01 [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: 01 07 00 [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: 01 07 00 17 2A 00 00 00 00 00 FF 0F 56 [16:37:11]RasterBufferAndPrint [16:37:11]line Счет N : (1)160531 [16:37:11]line ИНН: 02508201610067 [16:37:11]line Контрольно-Кассовый Чек [16:37:11]line ПРОДАЖА [16:37:11]line ТРК (МРК, ГНК) : 52 [16:37:11]line Товар: 2710124130 [16:37:11]line Аи-92-К-2 [16:37:11]line 11.960 * 66.90 [16:37:11]line = 800.12 [16:37:11]line НДС 12% НСП 1% [16:37:11]line > о реализуемом товаре [16:37:11]line ОКРУГЛЕНИЕ: -0.12 [16:37:11]line ИТОГО: 800.00 [16:37:11]line Внесено: 800.00 [16:37:11]line СДАЧА: 0.00 [16:37:11]line НСП 1% : 7.08 [16:37:11]line НДС 12% : 84.97 [16:37:11]line Наличными: 800.00 [16:37:11]line Безнал.: 0.00 [16:37:11]line Место: АЗС № 126 "Партнер Нефть" [16:37:11]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:37:11]line СНО: Общий режим [16:37:11]line Чек 198 27.10.2024 16:37 [16:37:11]line Смена: 545 ФФД: 1.0 [16:37:11]line ЗНМ: 0300000085 [16:37:11]line РНМ: 0000000000091683 [16:37:11]line Версия ККМ: 001 [16:37:11]line ФМ: 0000000000871745 [16:37:11]line ФД: 145775 [16:37:11]line ФПД: 278318985337028 [16:37:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163711&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145775&fm=278318985337028&tin=02508201610067®Number=0000000000091683&sum=80000 [16:37:11]OFD Sender: Processing packet 145775 [packets to send 206, broken 205] [16:37:11]ProducePacketName [16:37:11]name=ofd_packets/00145775 [16:37:11]OFD Sender: To server: pG, [16:37:11]CommunicateWithHost lk.salyk.kg:30040 [16:37:11]ConnectInit lk.salyk.kg [16:37:11]written 0, free lines is 4095 [16:37:11]Connected sock=10 [16:37:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 36 CD 07 01 36 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 37 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 6F 39 02 00 35 04 06 00 FD 21 30 41 58 C4 3B 40 CC 41 A7 F0 E9 42 [16:37:11]Write to MH i2c: 01 00 00 42 2A 6C [16:37:11]Write i2c OK [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: 01 [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: 01 07 00 [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: 01 07 00 42 2A 00 00 00 00 00 B5 0C 34 [16:37:11]RasterBufferAndPrint [16:37:11]line [16:37:11]line [16:37:11]line [16:37:11]line [16:37:11]line [16:37:11]written 0, free lines is 3260 [16:37:11]MH_Cut [16:37:11]Write to MH i2c: D1 01 00 49 2A 01 45 [16:37:11]Write i2c OK [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: D1 [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: D1 01 00 [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: D1 01 00 49 2A 00 44 [16:37:11]Write to MH i2c: 01 00 00 4A 2A 74 [16:37:11]Write i2c OK [16:37:11]MH_I2C_Read... [16:37:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 0E 48 47 00 B6 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 31 37 34 35 10 04 04 00 6F 39 02 00 F4 03 04 00 65 11 1E 67 B6 04 01 00 00 C9 B8 9C 95 B2 5F 80 42 [16:37:12]CommunicateWithHost err = 0 [16:37:12]CheckOFDResponse [16:37:12]1017 (14) - 77093643461234 [16:37:12]1041 (16) - 0000000000871745 [16:37:12]1040 (4) - 145775 [16:37:12]1012 (4) - 27.10.2024 10:09 [16:37:12]1206 (1) - 0 [16:37:12]OFD Sender: Remove packet 145775 [16:37:12]ProducePacketName [16:37:12]name=ofd_packets/00145775 [16:37:12]NVStorageDeleteData [16:37:12]OFD Sender: No OFD packet to send [16:37:12]*** Cut start [16:37:12]*** Partial cut [16:37:12]*** CUTSNS_PIN = 1 [16:37:12]*** CUTSNS_PIN = 0 [16:37:12]*** Brake cut motor [16:37:13]Read from MH i2c: 01 [16:37:13]MH_I2C_Read... [16:37:13]*** Stop cut motor [16:37:13]*** Cut end [16:37:13]Read from MH i2c: 01 07 00 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: 01 07 00 4A 2A 00 00 00 00 00 FF 0F 89 [16:37:13]process_action close_receipt done [16:37:13]requested_data is exist [16:37:13]produce_requested_data [16:37:13]requested_item fm.sn is exist - process it [16:37:13]wFMCommunicate request_size=4 [16:37:13]MH_SAM_APDU [16:37:13]CAPDU: 80 11 00 00 [16:37:13]Write to MH i2c: E2 08 00 4B 2A 80 11 00 00 00 00 00 00 EF [16:37:13]Write i2c OK [16:37:13]MH_I2C_Read... [16:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:13]Read from MH i2c: E2 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: E2 17 00 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: E2 17 00 4B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 42 [16:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:37:13]wFMCommunicate OK [16:37:13]requested_item fd.num is exist - process it [16:37:13]SAM_PROTO_GetFieldsCounters [16:37:13]wFMCommunicate request_size=4 [16:37:13]MH_SAM_APDU [16:37:13]CAPDU: 80 13 00 00 [16:37:13]Write to MH i2c: E2 08 00 4C 2A 80 13 00 00 00 00 00 00 F2 [16:37:13]Write i2c OK [16:37:13]MH_I2C_Read... [16:37:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:13]Read from MH i2c: E2 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: E2 62 00 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: E2 62 00 4C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [16:37:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 6F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:13]wFMCommunicate OK [16:37:13]SAM_PROTO_GetFieldsCounters done [16:37:13]requested_item shift.num is exist - process it [16:37:13]requested_item shift.opened is exist - process it [16:37:13]req_shift_opened [16:37:13]FM_GetShiftState [16:37:13]SAM_PROTO_GetShiftState [16:37:13]wFMCommunicate request_size=4 [16:37:13]MH_SAM_APDU [16:37:13]CAPDU: 80 13 01 00 [16:37:13]Write to MH i2c: E2 08 00 4D 2A 80 13 01 00 00 00 00 00 F4 [16:37:13]Write i2c OK [16:37:13]MH_I2C_Read... [16:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:13]Read from MH i2c: E2 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: E2 0E 00 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: E2 0E 00 4D 2A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6C [16:37:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:37:13]wFMCommunicate OK [16:37:13]SAM_PROTO_GetShiftState done [16:37:13]FM_GetShiftState done [16:37:13]req_shift_opened done [16:37:13]requested_item shift.open_date is exist - process it [16:37:13]req_shift_open_date [16:37:13]req_shift_open_date done [16:37:13]produce_requested_data done [16:37:13]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145775,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:37:13]process_action_free close_receipt [16:37:13]json_value_free [16:37:13]json_value_free done [16:37:13]process_json_proto returns [16:37:13]Send response to host [16:37:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145775,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:37:13]free response buf [16:37:13]execute_script done [16:37:13]execute_script returns [16:37:13]free content buf [16:37:13]Sock 7.Close socket [16:37:13]Sock 7.Thread stoped [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:38:58]accept exits with 9 [16:38:58]New connection [16:38:58]New thread 3066740068 created [16:38:58]Thread 3066596708 joined [16:38:58]Waiting for new connection... [16:38:58] Sock 9.Parse request [16:38:58]Sock 9.Check first char [16:38:58]Sock 9.First char is OK [16:38:58]request: POST /json_proto HTTP/1.0 [16:38:58]Method: POST [16:38:58]URL: /json_proto [16:38:58]Method is POST - this is cgi request [16:38:58]url: /json_proto [16:38:58]query_string will be loaded in cgi processing [16:38:58]execute_cgi json_proto POST (null) [16:38:58]execute_cgi path=json_proto method=POST [16:38:58]POST find Content-Length [16:38:58]Host: 172.17.40.195:8080 [16:38:58]Content-Length: 679 [16:38:58]Content-Type: application/json [16:38:58] [16:38:58]POST finish read [16:38:58]Found Content-Length = 679 [16:38:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 47.250, "sum" : 3600.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3600.00, "total" : 3600.00, "payments": [ { "type": 0, "sum" : 3600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:58]execute_script... [16:38: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)160532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 47.250, "sum" : 3600.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3600.00, "total" : 3600.00, "payments": [ { "type": 0, "sum" : 3600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:58]POST & json_proto [16:38:58]process_json_proto [16:38:58]json parsed OK: [16:38:58]protocol is kg_v1.0 [16:38:58]action value=close_receipt [16:38:58]process_action close_receipt [16:38:58]cmd_close_receipt [16:38:58]MH_GetDate [16:38:58]Write to MH i2c: F0 00 00 4E 2A 67 [16:38:58]Write i2c OK [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: F0 [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: F0 09 00 [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: F0 09 00 4E 2A 00 A5 6C 1E 67 D5 8D 6C 64 38 [16:38:58]GetLastDocTimeStamp 1730047031 [16:38:58]current date 1730047141 [16:38:58]FM_GetShiftState [16:38:58]SAM_PROTO_GetShiftState [16:38:58]wFMCommunicate request_size=4 [16:38:58]MH_SAM_APDU [16:38:58]CAPDU: 80 13 01 00 [16:38:58]Write to MH i2c: E2 08 00 4F 2A 80 13 01 00 00 00 00 00 F6 [16:38:58]Write i2c OK [16:38:58]MH_I2C_Read... [16:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:58]Read from MH i2c: E2 [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: E2 0E 00 [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: E2 0E 00 4F 2A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6E [16:38:58]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:38:58]wFMCommunicate OK [16:38:58]SAM_PROTO_GetShiftState done [16:38:58]FM_GetShiftState done [16:38:58]opened in 1729988959 [16:38:58]opened+sec_in_day 1730075359 [16:38:58]quantity*price = 360045 [16:38:58]sum+1 = 360046 [16:38:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 3600.00 Внесено: 3600.00 СДАЧА: 0.00 НСП 1% : 31.86 НДС 12% : 382.35 Наличными: 3600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 199 27.10.2024 16:39 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145776 ФПД: 253126738295587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163901&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145776&fm=253126738295587&tin=02508201610067®Number=0000000000091683&sum=360000 [16:38:59]StoreToDocumentArchive [16:38:59]shift 545 fd 145776 [16:38:59]save to /storage/0545/doc_00145776 [16:38:59]save last doc name /storage/0545/doc_00145776 to /storage/kkm_last_doc_name [16:38:59]save OK [16:38:59]Clear old archive folders... [16:38:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:38:59]tlvbuf is B6EA6DF0 [16:38:59]SAM_PROTO_ClearQueue [16:38:59]wFMCommunicate request_size=4 [16:38:59]MH_SAM_APDU [16:38:59]CAPDU: 80 09 00 00 [16:38:59]Write to MH i2c: E2 08 00 5C 2A 80 09 00 00 00 00 00 00 F8 [16:38:59]Write i2c OK [16:38:59]MH_I2C_Read... [16:39:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:00]Read from MH i2c: E2 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 03 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [16:39:00]RAPDU: 90 00 [16:39:00]wFMCommunicate OK [16:39:00]SAM_PROTO_ClearQueue done [16:39:00]KKMCreateOFDPacket [16:39:00]OFDProtocolAddRootSTLVToBuf [16:39:00]FM_MakeSignedData [16:39:00]FM_MakeSignedData [16:39:00]SAM_PROTO_SignData [16:39:00]wFMCommunicate request_size=4 [16:39:00]MH_SAM_APDU [16:39:00]CAPDU: 80 0D 01 02 [16:39:00]Write to MH i2c: E2 08 00 5D 2A 80 0D 01 02 00 00 00 00 00 [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:00]Read from MH i2c: E2 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 03 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 03 00 5D 2A 00 90 00 FB [16:39:00]RAPDU: 90 00 [16:39:00]wFMCommunicate OK [16:39:00]wFMCommunicate request_size=255 [16:39:00]MH_SAM_APDU [16:39: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 32 FF 03 08 00 03 92 B8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 40 7E 05 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 A5 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 70 39 02 00 35 04 06 00 E6 37 A9 51 [16:39:00]Write to MH i2c: E2 02 01 5E 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 92 B8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 40 7E 05 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 A5 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 70 39 02 00 35 04 06 00 E6 37 A9 51 00 00 AD [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:00]Read from MH i2c: E2 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 03 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 03 00 5E 2A 00 90 00 FC [16:39:00]RAPDU: 90 00 [16:39:00]wFMCommunicate OK [16:39:00]wFMCommunicate request_size=7 [16:39:00]MH_SAM_APDU [16:39:00]CAPDU: 80 0D 02 02 02 BB 23 [16:39:00]Write to MH i2c: E2 0A 00 5F 2A 80 0D 02 02 02 00 BB 23 00 00 E5 [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:00]Read from MH i2c: E2 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 03 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 03 00 5F 2A 00 90 00 FD [16:39:00]RAPDU: 90 00 [16:39:00]wFMCommunicate OK [16:39:00]wFMCommunicate request_size=4 [16:39:00]MH_SAM_APDU [16:39:00]CAPDU: 80 0D 03 02 [16:39:00]Write to MH i2c: E2 08 00 60 2A 80 0D 03 02 00 00 00 00 05 [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:00]Read from MH i2c: E2 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 0B 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 0B 00 60 2A 00 51 4C 01 1D ED F5 5D BB 90 00 BB [16:39:00]RAPDU: 51 4C 01 1D ED F5 5D BB 90 00 [16:39:00]wFMCommunicate OK [16:39:00]SAM_PROTO_SignData done [16:39:00]FM_MakeSignedData done [16:39:00]CreateOFDProtocolMessage [16:39:00]wFMCommunicate request_size=4 [16:39:00]MH_SAM_APDU [16:39:00]CAPDU: 80 11 00 00 [16:39:00]Write to MH i2c: E2 08 00 61 2A 80 11 00 00 00 00 00 00 05 [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:00]Read from MH i2c: E2 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 17 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 17 00 61 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 58 [16:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:39:00]wFMCommunicate OK [16:39:00]CreateOFDProtocolMessage done [16:39:00]OFDSenderStorePacket 145776 [16:39:00]StoreOFDPacket docnum=145776 [16:39:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 03 9E 04 01 BF 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 32 FF 03 08 00 03 92 B8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 40 7E 05 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 A5 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 70 39 02 00 35 04 06 00 E6 37 A9 51 BB 23 51 4C 01 1D ED F5 5D BB [16:39:00]CheckFolder [16:39:00]dirname=/storage/ofd_packets [16:39:00]CheckFolder done [16:39:00]ProducePacketName [16:39:00]name=ofd_packets/00145776 [16:39:00]NVStorageSaveData ofd_packets/00145776 [16:39:00]File name is /storage/ofd_packets/00145776 [16:39:00]Write 298 bytes [16:39:00]NVStorageSaveData done [16:39:00]OFDSenderStorePacket done [16:39:00]KKMCreateOFDPacket done [16:39:00]NVStorageSaveData kkm_last_timestamp [16:39:00]File name is /storage/kkm_last_timestamp [16:39:00]Write 4 bytes [16:39:00]NVStorageSaveData done [16:39:00]ExternCall_PrintAddStr [16:39:00]wPrintStart [16:39:00]Write to MH i2c: 01 00 00 62 2A 8C [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 62 2A 00 00 00 00 00 FF 0F A1 [16:39:00]RasterBufferAndPrint [16:39:00]line Счет N : (1)160532 [16:39:00]line ИНН: 02508201610067 [16:39:00]line Контрольно-Кассовый Чек [16:39:00]line ПРОДАЖА [16:39:00]line ТРК (МРК, ГНК) : 21 [16:39:00]line Товар: 2710194210 [16:39:00]line ДТ-К-2 [16:39:00]line 47.250 * 76.20 [16:39:00]line = 3600.45 [16:39:00]line НДС 12% НСП 1% [16:39:00]line > о реализуемом товаре [16:39:00]line ОКРУГЛЕНИЕ: -0.45 [16:39:00]line ИТОГО: 3600.00 [16:39:00]line Внесено: 3600.00 [16:39:00]line СДАЧА: 0.00 [16:39:00]line НСП 1% : 31.86 [16:39:00]line НДС 12% : 382.35 [16:39:00]line Наличными: 3600.00 [16:39:00]line Безнал.: 0.00 [16:39:00]line Место: АЗС № 126 "Партнер Нефть" [16:39:00]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:39:00]line СНО: Общий режим [16:39:00]line Чек 199 27.10.2024 16:39 [16:39:00]line Смена: 545 ФФД: 1.0 [16:39:00]line ЗНМ: 0300000085 [16:39:00]line РНМ: 0000000000091683 [16:39:00]line Версия ККМ: 001 [16:39:00]line ФМ: 0000000000871745 [16:39:00]line ФД: 145776 [16:39:00]line ФПД: 253126738295587 [16:39:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163901&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145776&fm=253126738295587&tin=02508201610067®Number=0000000000091683&sum=360000 [16:39:00]OFD Sender: Processing packet 145776 [packets to send 206, broken 205] [16:39:00]ProducePacketName [16:39:00]name=ofd_packets/00145776 [16:39:00]OFD Sender: To server: pG, [16:39:00]CommunicateWithHost lk.salyk.kg:30040 [16:39:00]ConnectInit lk.salyk.kg [16:39:00]written 0, free lines is 4095 [16:39:01]Connected sock=10 [16:39:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 03 9E 04 01 BF 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 32 FF 03 08 00 03 92 B8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 40 7E 05 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 A5 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 70 39 02 00 35 04 06 00 E6 37 A9 51 BB 23 51 4C 01 1D ED F5 5D BB [16:39:01]Write to MH i2c: 01 00 00 8D 2A B7 [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: 01 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: 01 07 00 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: 01 07 00 8D 2A 00 00 00 00 00 B7 0C 81 [16:39:01]RasterBufferAndPrint [16:39:01]line [16:39:01]line [16:39:01]line [16:39:01]line [16:39:01]line [16:39:01]written 0, free lines is 3259 [16:39:01]MH_Cut [16:39:01]Write to MH i2c: D1 01 00 94 2A 01 90 [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: D1 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: D1 01 00 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: D1 01 00 94 2A 00 8F [16:39:01]Write to MH i2c: 01 00 00 95 2A BF [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 CE C6 47 00 51 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 31 37 34 35 10 04 04 00 70 39 02 00 F4 03 04 00 D2 11 1E 67 B6 04 01 00 00 D3 81 B3 2C 58 E0 99 0B [16:39:01]CommunicateWithHost err = 0 [16:39:01]CheckOFDResponse [16:39:01]1017 (14) - 77093643461234 [16:39:01]1041 (16) - 0000000000871745 [16:39:01]1040 (4) - 145776 [16:39:01]1012 (4) - 27.10.2024 10:11 [16:39:01]1206 (1) - 0 [16:39:01]OFD Sender: Remove packet 145776 [16:39:01]ProducePacketName [16:39:01]name=ofd_packets/00145776 [16:39:01]NVStorageDeleteData [16:39:01]OFD Sender: No OFD packet to send [16:39:02]*** Cut start [16:39:02]*** Partial cut [16:39:02]*** CUTSNS_PIN = 1 [16:39:02]*** CUTSNS_PIN = 0 [16:39:02]*** Brake cut motor [16:39:02]Read from MH i2c: 01 [16:39:02]MH_I2C_Read... [16:39:02]*** Stop cut motor [16:39:02]*** Cut end [16:39:02]Read from MH i2c: 01 07 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: 01 07 00 95 2A 00 00 00 00 00 FF 0F D4 [16:39:02]process_action close_receipt done [16:39:02]requested_data is exist [16:39:02]produce_requested_data [16:39:02]requested_item fm.sn is exist - process it [16:39:02]wFMCommunicate request_size=4 [16:39:02]MH_SAM_APDU [16:39:02]CAPDU: 80 11 00 00 [16:39:02]Write to MH i2c: E2 08 00 96 2A 80 11 00 00 00 00 00 00 3A [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:02]Read from MH i2c: E2 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 17 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 17 00 96 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8D [16:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:39:02]wFMCommunicate OK [16:39:02]requested_item fd.num is exist - process it [16:39:02]SAM_PROTO_GetFieldsCounters [16:39:02]wFMCommunicate request_size=4 [16:39:02]MH_SAM_APDU [16:39:02]CAPDU: 80 13 00 00 [16:39:02]Write to MH i2c: E2 08 00 97 2A 80 13 00 00 00 00 00 00 3D [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:02]Read from MH i2c: E2 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 62 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 62 00 97 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 70 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [16:39:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 70 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:02]wFMCommunicate OK [16:39:02]SAM_PROTO_GetFieldsCounters done [16:39:02]requested_item shift.num is exist - process it [16:39:02]requested_item shift.opened is exist - process it [16:39:02]req_shift_opened [16:39:02]FM_GetShiftState [16:39:02]SAM_PROTO_GetShiftState [16:39:02]wFMCommunicate request_size=4 [16:39:02]MH_SAM_APDU [16:39:02]CAPDU: 80 13 01 00 [16:39:02]Write to MH i2c: E2 08 00 98 2A 80 13 01 00 00 00 00 00 3F [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:02]Read from MH i2c: E2 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 0E 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 0E 00 98 2A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B7 [16:39:02]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:39:02]wFMCommunicate OK [16:39:02]SAM_PROTO_GetShiftState done [16:39:02]FM_GetShiftState done [16:39:02]req_shift_opened done [16:39:02]requested_item shift.open_date is exist - process it [16:39:02]req_shift_open_date [16:39:02]req_shift_open_date done [16:39:02]produce_requested_data done [16:39:02]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145776,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:39:02]process_action_free close_receipt [16:39:02]json_value_free [16:39:02]json_value_free done [16:39:02]process_json_proto returns [16:39:02]Send response to host [16:39:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145776,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:39:02]free response buf [16:39:02]execute_script done [16:39:02]execute_script returns [16:39:02]free content buf [16:39:02]Sock 9.Close socket [16:39:02]Sock 9.Thread stoped [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:21]accept exits with 7 [16:40:21]New connection [16:40:21]New thread 3066596708 created [16:40:21]Thread 3066740068 joined [16:40:21]Waiting for new connection... [16:40:21] Sock 7.Parse request [16:40:21]Sock 7.Check first char [16:40:21]Sock 7.First char is OK [16:40:21]request: POST /json_proto HTTP/1.0 [16:40:21]Method: POST [16:40:21]URL: /json_proto [16:40:21]Method is POST - this is cgi request [16:40:21]url: /json_proto [16:40:21]query_string will be loaded in cgi processing [16:40:21]execute_cgi json_proto POST (null) [16:40:21]execute_cgi path=json_proto method=POST [16:40:21]POST find Content-Length [16:40:21]Host: 172.17.40.195:8080 [16:40:21]Content-Length: 816 [16:40:21]Content-Type: application/json [16:40:21] [16:40:21]POST finish read [16:40:21]Found Content-Length = 816 [16:40:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:21]execute_script... [16:40: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)160533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:21]POST & json_proto [16:40:21]process_json_proto [16:40:21]json parsed OK: [16:40:21]protocol is kg_v1.0 [16:40:21]action value=close_receipt [16:40:21]process_action close_receipt [16:40:21]cmd_close_receipt [16:40:21]MH_GetDate [16:40:21]Write to MH i2c: F0 00 00 99 2A B2 [16:40:21]Write i2c OK [16:40:21]MH_I2C_Read... [16:40:21]Read from MH i2c: F0 [16:40:21]MH_I2C_Read... [16:40:21]Read from MH i2c: F0 09 00 [16:40:21]MH_I2C_Read... [16:40:21]Read from MH i2c: F0 09 00 99 2A 00 F8 6C 1E 67 D5 8D 6C 64 D6 [16:40:21]GetLastDocTimeStamp 1730047141 [16:40:21]current date 1730047224 [16:40:21]FM_GetShiftState [16:40:21]SAM_PROTO_GetShiftState [16:40:21]wFMCommunicate request_size=4 [16:40:21]MH_SAM_APDU [16:40:21]CAPDU: 80 13 01 00 [16:40:21]Write to MH i2c: E2 08 00 9A 2A 80 13 01 00 00 00 00 00 41 [16:40:21]Write i2c OK [16:40:21]MH_I2C_Read... [16:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:21]Read from MH i2c: E2 [16:40:21]MH_I2C_Read... [16:40:21]Read from MH i2c: E2 0E 00 [16:40:21]MH_I2C_Read... [16:40:21]Read from MH i2c: E2 0E 00 9A 2A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B9 [16:40:21]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:40:21]wFMCommunicate OK [16:40:21]SAM_PROTO_GetShiftState done [16:40:21]FM_GetShiftState done [16:40:21]opened in 1729988959 [16:40:21]opened+sec_in_day 1730075359 [16:40:21]quantity*price = 100050 [16:40:21]sum+1 = 100052 [16:40:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 200 27.10.2024 16:40 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871745 ФД: 145777 ФПД: 107512694941345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164024&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145777&fm=107512694941345&tin=02508201610067®Number=0000000000091683&sum=100051 [16:40:22]StoreToDocumentArchive [16:40:22]shift 545 fd 145777 [16:40:22]save to /storage/0545/doc_00145777 [16:40:22]save last doc name /storage/0545/doc_00145777 to /storage/kkm_last_doc_name [16:40:22]save OK [16:40:22]Clear old archive folders... [16:40:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:40:22]tlvbuf is 0044CC00 [16:40:22]SAM_PROTO_ClearQueue [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 09 00 00 [16:40:22]Write to MH i2c: E2 08 00 A7 2A 80 09 00 00 00 00 00 00 43 [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 03 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 03 00 A7 2A 00 90 00 45 [16:40:22]RAPDU: 90 00 [16:40:22]wFMCommunicate OK [16:40:22]SAM_PROTO_ClearQueue done [16:40:22]KKMCreateOFDPacket [16:40:22]OFDProtocolAddRootSTLVToBuf [16:40:22]FM_MakeSignedData [16:40:22]FM_MakeSignedData [16:40:22]SAM_PROTO_SignData [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 0D 01 02 [16:40:22]Write to MH i2c: E2 08 00 A8 2A 80 0D 01 02 00 00 00 00 4B [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 A8 2A 00 90 00 46 [16:40:23]RAPDU: 90 00 [16:40:23]wFMCommunicate OK [16:40:23]wFMCommunicate request_size=255 [16:40:23]MH_SAM_APDU [16:40: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F8 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 71 39 02 00 35 04 06 00 61 C8 3F FD [16:40:23]Write to MH i2c: E2 02 01 A9 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F8 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 71 39 02 00 35 04 06 00 61 C8 3F FD 00 00 1A [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 A9 2A 00 90 00 47 [16:40:23]RAPDU: 90 00 [16:40:23]wFMCommunicate OK [16:40:23]wFMCommunicate request_size=7 [16:40:23]MH_SAM_APDU [16:40:23]CAPDU: 80 0D 02 02 02 A6 A1 [16:40:23]Write to MH i2c: E2 0A 00 AA 2A 80 0D 02 02 02 00 A6 A1 00 00 99 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 03 00 AA 2A 00 90 00 48 [16:40:23]RAPDU: 90 00 [16:40:23]wFMCommunicate OK [16:40:23]wFMCommunicate request_size=4 [16:40:23]MH_SAM_APDU [16:40:23]CAPDU: 80 0D 03 02 [16:40:23]Write to MH i2c: E2 08 00 AB 2A 80 0D 03 02 00 00 00 00 50 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 0B 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 0B 00 AB 2A 00 27 C5 5B 37 19 04 F1 5D 90 00 3A [16:40:23]RAPDU: 27 C5 5B 37 19 04 F1 5D 90 00 [16:40:23]wFMCommunicate OK [16:40:23]SAM_PROTO_SignData done [16:40:23]FM_MakeSignedData done [16:40:23]CreateOFDProtocolMessage [16:40:23]wFMCommunicate request_size=4 [16:40:23]MH_SAM_APDU [16:40:23]CAPDU: 80 11 00 00 [16:40:23]Write to MH i2c: E2 08 00 AC 2A 80 11 00 00 00 00 00 00 50 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 17 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 17 00 AC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A3 [16:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:40:23]wFMCommunicate OK [16:40:23]CreateOFDProtocolMessage done [16:40:23]OFDSenderStorePacket 145777 [16:40:23]StoreOFDPacket docnum=145777 [16:40:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 3F AE 04 01 DE 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F8 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 71 39 02 00 35 04 06 00 61 C8 3F FD A6 A1 27 C5 5B 37 19 04 F1 5D [16:40:23]CheckFolder [16:40:23]dirname=/storage/ofd_packets [16:40:23]CheckFolder done [16:40:23]ProducePacketName [16:40:23]name=ofd_packets/00145777 [16:40:23]NVStorageSaveData ofd_packets/00145777 [16:40:23]File name is /storage/ofd_packets/00145777 [16:40:23]Write 298 bytes [16:40:23]NVStorageSaveData done [16:40:23]OFDSenderStorePacket done [16:40:23]KKMCreateOFDPacket done [16:40:23]NVStorageSaveData kkm_last_timestamp [16:40:23]File name is /storage/kkm_last_timestamp [16:40:23]Write 4 bytes [16:40:23]NVStorageSaveData done [16:40:23]ExternCall_PrintAddStr [16:40:23]wPrintStart [16:40:23]Write to MH i2c: 01 00 00 AD 2A D7 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: 01 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: 01 07 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: 01 07 00 AD 2A 00 00 00 00 00 FF 0F EC [16:40:23]RasterBufferAndPrint [16:40:23]line Счет N : (1)160533 [16:40:23]line ИНН: 02508201610067 [16:40:23]line Контрольно-Кассовый Чек [16:40:23]line ПРОДАЖА [16:40:23]line ТРК (МРК, ГНК) : 11 [16:40:23]line Товар: 2710194210 [16:40:23]line ДТ-К-2 [16:40:23]line 13.130 * 76.20 [16:40:23]line = 1000.51 [16:40:23]line НДС 12% НСП 1% [16:40:23]line > о реализуемом товаре [16:40:23]line ИТОГО: 1000.51 [16:40:23]line НСП 1% : 8.85 [16:40:23]line НДС 12% : 106.25 [16:40:23]line Наличными: 0.00 [16:40:23]line Безнал.: 1000.51 [16:40:23]line Место: АЗС № 126 "Партнер Нефть" [16:40:23]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:40:23]line СНО: Общий режим [16:40:23]line Чек 200 27.10.2024 16:40 [16:40:23]line Смена: 545 ФФД: 1.0 [16:40:23]line ЗНМ: 0300000085 [16:40:23]line РНМ: 0000000000091683 [16:40:23]line Версия ККМ: 001 [16:40:23]line Платежная система: Бакай Банк [16:40:23]line ФМ: 0000000000871745 [16:40:23]line ФД: 145777 [16:40:23]line ФПД: 107512694941345 [16:40:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164024&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145777&fm=107512694941345&tin=02508201610067®Number=0000000000091683&sum=100051 [16:40:23]OFD Sender: Processing packet 145777 [packets to send 206, broken 205] [16:40:23]ProducePacketName [16:40:23]name=ofd_packets/00145777 [16:40:23]OFD Sender: To server: pG, [16:40:23]CommunicateWithHost lk.salyk.kg:30040 [16:40:23]ConnectInit lk.salyk.kg [16:40:23]written 0, free lines is 4095 [16:40:23]Connected sock=10 [16:40:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 3F AE 04 01 DE 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F8 6C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 71 39 02 00 35 04 06 00 61 C8 3F FD A6 A1 27 C5 5B 37 19 04 F1 5D [16:40:24]Write to MH i2c: 01 00 00 D7 2A 01 [16:40:24]Write i2c OK [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: 01 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: 01 07 00 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: 01 07 00 D7 2A 00 00 00 00 00 C3 0C D7 [16:40:24]RasterBufferAndPrint [16:40:24]line [16:40:24]line [16:40:24]line [16:40:24]line [16:40:24]line [16:40:24]written 0, free lines is 3272 [16:40:24]MH_Cut [16:40:24]Write to MH i2c: D1 01 00 DE 2A 01 DA [16:40:24]Write i2c OK [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: D1 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: D1 01 00 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: D1 01 00 DE 2A 00 D9 [16:40:24]Write to MH i2c: 01 00 00 DF 2A 09 [16:40:24]Write i2c OK [16:40:24]MH_I2C_Read... [16:40:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 06 A7 47 00 9C B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 71 39 02 00 F4 03 04 00 25 12 1E 67 B6 04 01 00 00 E0 97 98 0C AE 02 8F AD [16:40:24]CommunicateWithHost err = 0 [16:40:24]CheckOFDResponse [16:40:24]1017 (14) - 77093643461234 [16:40:24]1041 (16) - 0000000000871745 [16:40:24]1040 (4) - 145777 [16:40:24]1012 (4) - 27.10.2024 10:12 [16:40:24]1206 (1) - 0 [16:40:24]OFD Sender: Remove packet 145777 [16:40:24]ProducePacketName [16:40:24]name=ofd_packets/00145777 [16:40:24]NVStorageDeleteData [16:40:24]OFD Sender: No OFD packet to send [16:40:25]*** Cut start [16:40:25]*** Partial cut [16:40:25]*** CUTSNS_PIN = 1 [16:40:25]*** CUTSNS_PIN = 0 [16:40:25]*** Brake cut motor [16:40:25]Read from MH i2c: 01 [16:40:25]MH_I2C_Read... [16:40:25]*** Stop cut motor [16:40:25]*** Cut end [16:40:25]Read from MH i2c: 01 07 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: 01 07 00 DF 2A 00 00 00 00 00 FF 0F 1E [16:40:25]process_action close_receipt done [16:40:25]requested_data is exist [16:40:25]produce_requested_data [16:40:25]requested_item fm.sn is exist - process it [16:40:25]wFMCommunicate request_size=4 [16:40:25]MH_SAM_APDU [16:40:25]CAPDU: 80 11 00 00 [16:40:25]Write to MH i2c: E2 08 00 E0 2A 80 11 00 00 00 00 00 00 84 [16:40:25]Write i2c OK [16:40:25]MH_I2C_Read... [16:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:25]Read from MH i2c: E2 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 17 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 17 00 E0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D7 [16:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:40:25]wFMCommunicate OK [16:40:25]requested_item fd.num is exist - process it [16:40:25]SAM_PROTO_GetFieldsCounters [16:40:25]wFMCommunicate request_size=4 [16:40:25]MH_SAM_APDU [16:40:25]CAPDU: 80 13 00 00 [16:40:25]Write to MH i2c: E2 08 00 E1 2A 80 13 00 00 00 00 00 00 87 [16:40:25]Write i2c OK [16:40:25]MH_I2C_Read... [16:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:25]Read from MH i2c: E2 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 62 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 62 00 E1 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 71 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [16:40:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 71 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:25]wFMCommunicate OK [16:40:25]SAM_PROTO_GetFieldsCounters done [16:40:25]requested_item shift.num is exist - process it [16:40:25]requested_item shift.opened is exist - process it [16:40:25]req_shift_opened [16:40:25]FM_GetShiftState [16:40:25]SAM_PROTO_GetShiftState [16:40:25]wFMCommunicate request_size=4 [16:40:25]MH_SAM_APDU [16:40:25]CAPDU: 80 13 01 00 [16:40:25]Write to MH i2c: E2 08 00 E2 2A 80 13 01 00 00 00 00 00 89 [16:40:25]Write i2c OK [16:40:25]MH_I2C_Read... [16:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:25]Read from MH i2c: E2 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 0E 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 0E 00 E2 2A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 01 [16:40:25]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:40:25]wFMCommunicate OK [16:40:25]SAM_PROTO_GetShiftState done [16:40:25]FM_GetShiftState done [16:40:25]req_shift_opened done [16:40:25]requested_item shift.open_date is exist - process it [16:40:25]req_shift_open_date [16:40:25]req_shift_open_date done [16:40:25]produce_requested_data done [16:40:25]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145777,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:40:25]process_action_free close_receipt [16:40:25]json_value_free [16:40:25]json_value_free done [16:40:25]process_json_proto returns [16:40:25]Send response to host [16:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145777,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:40:25]free response buf [16:40:25]execute_script done [16:40:25]execute_script returns [16:40:25]free content buf [16:40:25]Sock 7.Close socket [16:40:25]Sock 7.Thread stoped [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:03]accept exits with 9 [16:48:03]New connection [16:48:03]New thread 3066740068 created [16:48:03]Thread 3066596708 joined [16:48:03]Waiting for new connection... [16:48:03] Sock 9.Parse request [16:48:03]Sock 9.Check first char [16:48:03]Sock 9.First char is OK [16:48:03]request: POST /json_proto HTTP/1.0 [16:48:03]Method: POST [16:48:03]URL: /json_proto [16:48:03]Method is POST - this is cgi request [16:48:03]url: /json_proto [16:48:03]query_string will be loaded in cgi processing [16:48:03]execute_cgi json_proto POST (null) [16:48:03]execute_cgi path=json_proto method=POST [16:48:03]POST find Content-Length [16:48:03]Host: 172.17.40.195:8080 [16:48:03]Content-Length: 679 [16:48:03]Content-Type: application/json [16:48:03] [16:48:03]POST finish read [16:48:03]Found Content-Length = 679 [16:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:03]execute_script... [16: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)160534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:03]POST & json_proto [16:48:03]process_json_proto [16:48:03]json parsed OK: [16:48:03]protocol is kg_v1.0 [16:48:03]action value=close_receipt [16:48:03]process_action close_receipt [16:48:03]cmd_close_receipt [16:48:03]MH_GetDate [16:48:03]Write to MH i2c: F0 00 00 E3 2A FC [16:48:03]Write i2c OK [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: F0 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: F0 09 00 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: F0 09 00 E3 2A 00 C5 6E 1E 67 D5 8D 6C 64 EF [16:48:03]GetLastDocTimeStamp 1730047224 [16:48:03]current date 1730047685 [16:48:03]FM_GetShiftState [16:48:03]SAM_PROTO_GetShiftState [16:48:03]wFMCommunicate request_size=4 [16:48:03]MH_SAM_APDU [16:48:03]CAPDU: 80 13 01 00 [16:48:03]Write to MH i2c: E2 08 00 E4 2A 80 13 01 00 00 00 00 00 8B [16:48:03]Write i2c OK [16:48:03]MH_I2C_Read... [16:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:03]Read from MH i2c: E2 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: E2 0E 00 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: E2 0E 00 E4 2A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 03 [16:48:03]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:48:03]wFMCommunicate OK [16:48:03]SAM_PROTO_GetShiftState done [16:48:03]FM_GetShiftState done [16:48:03]opened in 1729988959 [16:48:03]opened+sec_in_day 1730075359 [16:48:03]quantity*price = 160020 [16:48:03]sum+1 = 160021 [16:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 201 27.10.2024 16:48 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145778 ФПД: 211269517043102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164805&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145778&fm=211269517043102&tin=02508201610067®Number=0000000000091683&sum=160000 [16:48:04]StoreToDocumentArchive [16:48:04]shift 545 fd 145778 [16:48:04]save to /storage/0545/doc_00145778 [16:48:04]save last doc name /storage/0545/doc_00145778 to /storage/kkm_last_doc_name [16:48:04]save OK [16:48:04]Clear old archive folders... [16:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:48:04]tlvbuf is 00437960 [16:48:04]SAM_PROTO_ClearQueue [16:48:04]wFMCommunicate request_size=4 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 09 00 00 [16:48:04]Write to MH i2c: E2 08 00 F1 2A 80 09 00 00 00 00 00 00 8D [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 F1 2A 00 90 00 8F [16:48:04]RAPDU: 90 00 [16:48:04]wFMCommunicate OK [16:48:04]SAM_PROTO_ClearQueue done [16:48:04]KKMCreateOFDPacket [16:48:04]OFDProtocolAddRootSTLVToBuf [16:48:04]FM_MakeSignedData [16:48:04]FM_MakeSignedData [16:48:04]SAM_PROTO_SignData [16:48:04]wFMCommunicate request_size=4 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 0D 01 02 [16:48:04]Write to MH i2c: E2 08 00 F2 2A 80 0D 01 02 00 00 00 00 95 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 F2 2A 00 90 00 90 [16:48:04]RAPDU: 90 00 [16:48:04]wFMCommunicate OK [16:48:04]wFMCommunicate request_size=255 [16:48:04]MH_SAM_APDU [16:48: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 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 C5 6E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 72 39 02 00 35 04 06 00 C0 26 04 83 [16:48:04]Write to MH i2c: E2 02 01 F3 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 C5 6E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 72 39 02 00 35 04 06 00 C0 26 04 83 00 00 87 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:05]Read from MH i2c: E2 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 03 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 03 00 F3 2A 00 90 00 91 [16:48:05]RAPDU: 90 00 [16:48:05]wFMCommunicate OK [16:48:05]wFMCommunicate request_size=7 [16:48:05]MH_SAM_APDU [16:48:05]CAPDU: 80 0D 02 02 02 E5 9E [16:48:05]Write to MH i2c: E2 0A 00 F4 2A 80 0D 02 02 02 00 E5 9E 00 00 1F [16:48:05]Write i2c OK [16:48:05]MH_I2C_Read... [16:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:05]Read from MH i2c: E2 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 03 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 03 00 F4 2A 00 90 00 92 [16:48:05]RAPDU: 90 00 [16:48:05]wFMCommunicate OK [16:48:05]wFMCommunicate request_size=4 [16:48:05]MH_SAM_APDU [16:48:05]CAPDU: 80 0D 03 02 [16:48:05]Write to MH i2c: E2 08 00 F5 2A 80 0D 03 02 00 00 00 00 9A [16:48:05]Write i2c OK [16:48:05]MH_I2C_Read... [16:48:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:05]Read from MH i2c: E2 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 0B 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 0B 00 F5 2A 00 4B D8 90 7A 3E 65 F5 8B 90 00 EB [16:48:05]RAPDU: 4B D8 90 7A 3E 65 F5 8B 90 00 [16:48:05]wFMCommunicate OK [16:48:05]SAM_PROTO_SignData done [16:48:05]FM_MakeSignedData done [16:48:05]CreateOFDProtocolMessage [16:48:05]wFMCommunicate request_size=4 [16:48:05]MH_SAM_APDU [16:48:05]CAPDU: 80 11 00 00 [16:48:05]Write to MH i2c: E2 08 00 F6 2A 80 11 00 00 00 00 00 00 9A [16:48:05]Write i2c OK [16:48:05]MH_I2C_Read... [16:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:05]Read from MH i2c: E2 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 17 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 17 00 F6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 ED [16:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:48:05]wFMCommunicate OK [16:48:05]CreateOFDProtocolMessage done [16:48:05]OFDSenderStorePacket 145778 [16:48:05]StoreOFDPacket docnum=145778 [16:48:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 58 27 04 01 A2 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 C5 6E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 72 39 02 00 35 04 06 00 C0 26 04 83 E5 9E 4B D8 90 7A 3E 65 F5 8B [16:48:05]CheckFolder [16:48:05]dirname=/storage/ofd_packets [16:48:05]CheckFolder done [16:48:05]ProducePacketName [16:48:05]name=ofd_packets/00145778 [16:48:05]NVStorageSaveData ofd_packets/00145778 [16:48:05]File name is /storage/ofd_packets/00145778 [16:48:05]Write 298 bytes [16:48:05]NVStorageSaveData done [16:48:05]OFDSenderStorePacket done [16:48:05]KKMCreateOFDPacket done [16:48:05]NVStorageSaveData kkm_last_timestamp [16:48:05]File name is /storage/kkm_last_timestamp [16:48:05]Write 4 bytes [16:48:05]NVStorageSaveData done [16:48:05]ExternCall_PrintAddStr [16:48:05]wPrintStart [16:48:05]Write to MH i2c: 01 00 00 F7 2A 21 [16:48:05]Write i2c OK [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: 01 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: 01 07 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: 01 07 00 F7 2A 00 00 00 00 00 FF 0F 36 [16:48:05]RasterBufferAndPrint [16:48:05]line Счет N : (1)160534 [16:48:05]line ИНН: 02508201610067 [16:48:05]line Контрольно-Кассовый Чек [16:48:05]line ПРОДАЖА [16:48:05]line ТРК (МРК, ГНК) : 21 [16:48:05]line Товар: 2710194210 [16:48:05]line ДТ-К-2 [16:48:05]line 21.000 * 76.20 [16:48:05]line = 1600.20 [16:48:05]line НДС 12% НСП 1% [16:48:05]line > о реализуемом товаре [16:48:05]line ОКРУГЛЕНИЕ: -0.20 [16:48:05]line ИТОГО: 1600.00 [16:48:05]line Внесено: 1600.00 [16:48:05]line СДАЧА: 0.00 [16:48:05]line НСП 1% : 14.16 [16:48:05]line НДС 12% : 169.93 [16:48:05]line Наличными: 1600.00 [16:48:05]line Безнал.: 0.00 [16:48:05]line Место: АЗС № 126 "Партнер Нефть" [16:48:05]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:48:05]line СНО: Общий режим [16:48:05]line Чек 201 27.10.2024 16:48 [16:48:05]line Смена: 545 ФФД: 1.0 [16:48:05]line ЗНМ: 0300000085 [16:48:05]line РНМ: 0000000000091683 [16:48:05]line Версия ККМ: 001 [16:48:05]line ФМ: 0000000000871745 [16:48:05]line ФД: 145778 [16:48:05]line ФПД: 211269517043102 [16:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164805&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145778&fm=211269517043102&tin=02508201610067®Number=0000000000091683&sum=160000 [16:48:05]OFD Sender: Processing packet 145778 [packets to send 206, broken 205] [16:48:05]ProducePacketName [16:48:05]name=ofd_packets/00145778 [16:48:05]OFD Sender: To server: pG, [16:48:05]CommunicateWithHost lk.salyk.kg:30040 [16:48:05]ConnectInit lk.salyk.kg [16:48:05]written 0, free lines is 4095 [16:48:05]Connected sock=10 [16: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 31 37 34 35 0C 01 00 00 58 27 04 01 A2 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 C5 6E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 72 39 02 00 35 04 06 00 C0 26 04 83 E5 9E 4B D8 90 7A 3E 65 F5 8B [16:48:06]Write to MH i2c: 01 00 00 22 2B 4D [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: 01 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: 01 07 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: 01 07 00 22 2B 00 00 00 00 00 B7 0C 17 [16:48:06]RasterBufferAndPrint [16:48:06]line [16:48:06]line [16:48:06]line [16:48:06]line [16:48:06]line [16:48:06]written 0, free lines is 3262 [16:48:06]MH_Cut [16:48:06]Write to MH i2c: D1 01 00 29 2B 01 26 [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: D1 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: D1 01 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: D1 01 00 29 2B 00 25 [16:48:06]Write to MH i2c: 01 00 00 2A 2B 55 [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 B2 A7 47 00 64 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 72 39 02 00 F4 03 04 00 F3 13 1E 67 B6 04 01 00 00 FF 88 1F 7F 19 90 D2 BA [16:48:06]CommunicateWithHost err = 0 [16:48:06]CheckOFDResponse [16:48:06]1017 (14) - 77093643461234 [16:48:06]1041 (16) - 0000000000871745 [16:48:06]1040 (4) - 145778 [16:48:06]1012 (4) - 27.10.2024 10:20 [16:48:06]1206 (1) - 0 [16:48:06]OFD Sender: Remove packet 145778 [16:48:06]ProducePacketName [16:48:06]name=ofd_packets/00145778 [16:48:06]NVStorageDeleteData [16:48:06]OFD Sender: No OFD packet to send [16:48:06]*** Cut start [16:48:06]*** Partial cut [16:48:06]*** CUTSNS_PIN = 1 [16:48:06]*** CUTSNS_PIN = 0 [16:48:07]*** Brake cut motor [16:48:07]Read from MH i2c: 01 [16:48:07]MH_I2C_Read... [16:48:07]*** Stop cut motor [16:48:07]*** Cut end [16:48:07]Read from MH i2c: 01 07 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: 01 07 00 2A 2B 00 00 00 00 00 FF 0F 6A [16:48:07]process_action close_receipt done [16:48:07]requested_data is exist [16:48:07]produce_requested_data [16:48:07]requested_item fm.sn is exist - process it [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 11 00 00 [16:48:07]Write to MH i2c: E2 08 00 2B 2B 80 11 00 00 00 00 00 00 D0 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 17 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 17 00 2B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 23 [16:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:48:07]wFMCommunicate OK [16:48:07]requested_item fd.num is exist - process it [16:48:07]SAM_PROTO_GetFieldsCounters [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 13 00 00 [16:48:07]Write to MH i2c: E2 08 00 2C 2B 80 13 00 00 00 00 00 00 D3 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 62 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 62 00 2C 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 72 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [16: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 72 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:07]wFMCommunicate OK [16:48:07]SAM_PROTO_GetFieldsCounters done [16:48:07]requested_item shift.num is exist - process it [16:48:07]requested_item shift.opened is exist - process it [16:48:07]req_shift_opened [16:48:07]FM_GetShiftState [16:48:07]SAM_PROTO_GetShiftState [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 13 01 00 [16:48:07]Write to MH i2c: E2 08 00 2D 2B 80 13 01 00 00 00 00 00 D5 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 0E 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 0E 00 2D 2B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4D [16:48:07]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:48:07]wFMCommunicate OK [16:48:07]SAM_PROTO_GetShiftState done [16:48:07]FM_GetShiftState done [16:48:07]req_shift_opened done [16:48:07]requested_item shift.open_date is exist - process it [16:48:07]req_shift_open_date [16:48:07]req_shift_open_date done [16:48:07]produce_requested_data done [16:48:07]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145778,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:48:07]process_action_free close_receipt [16:48:07]json_value_free [16:48:07]json_value_free done [16:48:07]process_json_proto returns [16:48:07]Send response to host [16:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145778,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:48:07]free response buf [16:48:07]execute_script done [16:48:07]execute_script returns [16:48:07]free content buf [16:48:07]Sock 9.Close socket [16:48:07]Sock 9.Thread stoped [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:01]int [16:57:01]Write to MH i2c: 01 00 00 2E 2B 59 [16:57:01]*** FLAG_PRN_KEY set [16:57:01]Write i2c OK [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 07 00 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 07 00 2E 2B 00 08 00 00 00 FF 0F 76 [16:57:01]state=0 [16:57:01]Key pressed [16:57:01]Feed [16:57:01]Write to MH i2c: D8 00 00 2F 2B 31 [16:57:01]Write i2c OK [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: D8 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: D8 01 00 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: D8 01 00 2F 2B 00 32 [16:57:01]int [16:57:01]Write to MH i2c: 01 00 00 30 2B 5B [16:57:01]Write i2c OK [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 07 00 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 07 00 30 2B 00 48 00 00 00 3C 00 E6 [16:57:01]state=2 [16:57:01]Key pressed [16:57:01]int [16:57:01]Write to MH i2c: 01 00 00 31 2B 5C [16:57:01]*** FLAG_PRN_KEY reset [16:57:01]Write i2c OK [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 07 00 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: 01 07 00 31 2B 00 00 00 00 00 F7 0F 69 [16:57:01]state=2 [16:57:01]Stop feed [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:34]accept exits with 7 [16:57:34]New connection [16:57:34]New thread 3066596708 created [16:57:34]Thread 3066740068 joined [16:57:34]Waiting for new connection... [16:57:34] Sock 7.Parse request [16:57:34]Sock 7.Check first char [16:57:34]Sock 7.First char is OK [16:57:34]request: POST /json_proto HTTP/1.0 [16:57:34]Method: POST [16:57:34]URL: /json_proto [16:57:34]Method is POST - this is cgi request [16:57:34]url: /json_proto [16:57:34]query_string will be loaded in cgi processing [16:57:34]execute_cgi json_proto POST (null) [16:57:34]execute_cgi path=json_proto method=POST [16:57:34]POST find Content-Length [16:57:34]Host: 172.17.40.195:8080 [16:57:34]Content-Length: 677 [16:57:34]Content-Type: application/json [16:57:34] [16:57:34]POST finish read [16:57:34]Found Content-Length = 677 [16:57:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:57:34]execute_script... [16:57:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:57:34]POST & json_proto [16:57:34]process_json_proto [16:57:34]json parsed OK: [16:57:34]protocol is kg_v1.0 [16:57:34]action value=close_receipt [16:57:34]process_action close_receipt [16:57:34]cmd_close_receipt [16:57:34]MH_GetDate [16:57:34]Write to MH i2c: F0 00 00 32 2B 4C [16:57:34]Write i2c OK [16:57:34]MH_I2C_Read... [16:57:34]Read from MH i2c: F0 [16:57:34]MH_I2C_Read... [16:57:34]Read from MH i2c: F0 09 00 [16:57:34]MH_I2C_Read... [16:57:34]Read from MH i2c: F0 09 00 32 2B 00 00 71 1E 67 D5 8D 6C 64 7D [16:57:34]GetLastDocTimeStamp 1730047685 [16:57:34]current date 1730048256 [16:57:34]FM_GetShiftState [16:57:34]SAM_PROTO_GetShiftState [16:57:34]wFMCommunicate request_size=4 [16:57:34]MH_SAM_APDU [16:57:34]CAPDU: 80 13 01 00 [16:57:34]Write to MH i2c: E2 08 00 33 2B 80 13 01 00 00 00 00 00 DB [16:57:34]Write i2c OK [16:57:34]MH_I2C_Read... [16:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:34]Read from MH i2c: E2 [16:57:34]MH_I2C_Read... [16:57:34]Read from MH i2c: E2 0E 00 [16:57:34]MH_I2C_Read... [16:57:34]Read from MH i2c: E2 0E 00 33 2B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 53 [16:57:34]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:57:34]wFMCommunicate OK [16:57:34]SAM_PROTO_GetShiftState done [16:57:34]FM_GetShiftState done [16:57:34]opened in 1729988959 [16:57:34]opened+sec_in_day 1730075359 [16:57:34]quantity*price = 50010 [16:57:34]sum+1 = 50012 [16:57:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 202 27.10.2024 16:57 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145779 ФПД: 190427255235179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165736&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145779&fm=190427255235179&tin=02508201610067®Number=0000000000091683&sum=50000 [16:57:35]StoreToDocumentArchive [16:57:35]shift 545 fd 145779 [16:57:35]save to /storage/0545/doc_00145779 [16:57:35]save last doc name /storage/0545/doc_00145779 to /storage/kkm_last_doc_name [16:57:35]save OK [16:57:35]Clear old archive folders... [16:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:35]tlvbuf is 0045AC90 [16:57:35]SAM_PROTO_ClearQueue [16:57:35]wFMCommunicate request_size=4 [16:57:35]MH_SAM_APDU [16:57:35]CAPDU: 80 09 00 00 [16:57:35]Write to MH i2c: E2 08 00 40 2B 80 09 00 00 00 00 00 00 DD [16:57:35]Write i2c OK [16:57:35]MH_I2C_Read... [16:57:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:35]Read from MH i2c: E2 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 40 2B 00 90 00 DF [16:57:35]RAPDU: 90 00 [16:57:35]wFMCommunicate OK [16:57:35]SAM_PROTO_ClearQueue done [16:57:35]KKMCreateOFDPacket [16:57:35]OFDProtocolAddRootSTLVToBuf [16:57:35]FM_MakeSignedData [16:57:35]FM_MakeSignedData [16:57:35]SAM_PROTO_SignData [16:57:35]wFMCommunicate request_size=4 [16:57:35]MH_SAM_APDU [16:57:35]CAPDU: 80 0D 01 02 [16:57:35]Write to MH i2c: E2 08 00 41 2B 80 0D 01 02 00 00 00 00 E5 [16:57:35]Write i2c OK [16:57:35]MH_I2C_Read... [16:57:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:35]Read from MH i2c: E2 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 41 2B 00 90 00 E0 [16:57:35]RAPDU: 90 00 [16:57:35]wFMCommunicate OK [16:57:35]wFMCommunicate request_size=255 [16:57:35]MH_SAM_APDU [16:57:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 00 71 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 73 39 02 00 35 04 06 00 AD [16:57:35]Write to MH i2c: E2 02 01 42 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 00 71 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 73 39 02 00 35 04 06 00 AD 00 00 8A [16:57:35]Write i2c OK [16:57:35]MH_I2C_Read... [16:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:35]Read from MH i2c: E2 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 42 2B 00 90 00 E1 [16:57:35]RAPDU: 90 00 [16:57:35]wFMCommunicate OK [16:57:35]wFMCommunicate request_size=10 [16:57:35]MH_SAM_APDU [16:57:35]CAPDU: 80 0D 02 02 05 31 4C E7 62 6B [16:57:35]Write to MH i2c: E2 0D 00 43 2B 80 0D 02 02 05 00 31 4C E7 62 6B 00 00 23 [16:57:35]Write i2c OK [16:57:35]MH_I2C_Read... [16:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:36]Read from MH i2c: E2 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: E2 03 00 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: E2 03 00 43 2B 00 90 00 E2 [16:57:36]RAPDU: 90 00 [16:57:36]wFMCommunicate OK [16:57:36]wFMCommunicate request_size=4 [16:57:36]MH_SAM_APDU [16:57:36]CAPDU: 80 0D 03 02 [16:57:36]Write to MH i2c: E2 08 00 44 2B 80 0D 03 02 00 00 00 00 EA [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:36]Read from MH i2c: E2 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: E2 0B 00 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: E2 0B 00 44 2B 00 44 2A CC B2 A8 4B 54 6C 90 00 8A [16:57:36]RAPDU: 44 2A CC B2 A8 4B 54 6C 90 00 [16:57:36]wFMCommunicate OK [16:57:36]SAM_PROTO_SignData done [16:57:36]FM_MakeSignedData done [16:57:36]CreateOFDProtocolMessage [16:57:36]wFMCommunicate request_size=4 [16:57:36]MH_SAM_APDU [16:57:36]CAPDU: 80 11 00 00 [16:57:36]Write to MH i2c: E2 08 00 45 2B 80 11 00 00 00 00 00 00 EA [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:36]Read from MH i2c: E2 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: E2 17 00 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: E2 17 00 45 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3D [16:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:57:36]wFMCommunicate OK [16:57:36]CreateOFDProtocolMessage done [16:57:36]OFDSenderStorePacket 145779 [16:57:36]StoreOFDPacket docnum=145779 [16:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 88 C7 07 01 A8 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 00 71 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 73 39 02 00 35 04 06 00 AD 31 4C E7 62 6B 44 2A CC B2 A8 4B 54 6C [16:57:36]CheckFolder [16:57:36]dirname=/storage/ofd_packets [16:57:36]CheckFolder done [16:57:36]ProducePacketName [16:57:36]name=ofd_packets/00145779 [16:57:36]NVStorageSaveData ofd_packets/00145779 [16:57:36]File name is /storage/ofd_packets/00145779 [16:57:36]Write 301 bytes [16:57:36]NVStorageSaveData done [16:57:36]OFDSenderStorePacket done [16:57:36]KKMCreateOFDPacket done [16:57:36]NVStorageSaveData kkm_last_timestamp [16:57:36]File name is /storage/kkm_last_timestamp [16:57:36]Write 4 bytes [16:57:36]NVStorageSaveData done [16:57:36]ExternCall_PrintAddStr [16:57:36]wPrintStart [16:57:36]Write to MH i2c: 01 00 00 46 2B 71 [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 07 00 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 07 00 46 2B 00 00 00 00 00 FF 0F 86 [16:57:36]RasterBufferAndPrint [16:57:36]line Счет N : (1)160535 [16:57:36]line ИНН: 02508201610067 [16:57:36]line Контрольно-Кассовый Чек [16:57:36]line ПРОДАЖА [16:57:36]line ТРК (МРК, ГНК) : 53 [16:57:36]line Товар: 2710124500 [16:57:36]line Аи-95-К-3 [16:57:36]line 6.740 * 74.20 [16:57:36]line = 500.11 [16:57:36]line НДС 12% НСП 1% [16:57:36]line > о реализуемом товаре [16:57:36]line ОКРУГЛЕНИЕ: -0.11 [16:57:36]line ИТОГО: 500.00 [16:57:36]line Внесено: 500.00 [16:57:36]line СДАЧА: 0.00 [16:57:36]line НСП 1% : 4.43 [16:57:36]line НДС 12% : 53.11 [16:57:36]line Наличными: 500.00 [16:57:36]line Безнал.: 0.00 [16:57:36]line Место: АЗС № 126 "Партнер Нефть" [16:57:36]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:57:36]line СНО: Общий режим [16:57:36]line Чек 202 27.10.2024 16:57 [16:57:36]line Смена: 545 ФФД: 1.0 [16:57:36]line ЗНМ: 0300000085 [16:57:36]line РНМ: 0000000000091683 [16:57:36]line Версия ККМ: 001 [16:57:36]line ФМ: 0000000000871745 [16:57:36]line ФД: 145779 [16:57:36]line ФПД: 190427255235179 [16:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165736&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145779&fm=190427255235179&tin=02508201610067®Number=0000000000091683&sum=50000 [16:57:36]OFD Sender: Processing packet 145779 [packets to send 206, broken 205] [16:57:36]ProducePacketName [16:57:36]name=ofd_packets/00145779 [16:57:36]OFD Sender: To server: pG, [16:57:36]CommunicateWithHost lk.salyk.kg:30040 [16:57:36]ConnectInit lk.salyk.kg [16:57:36]written 0, free lines is 4095 [16:57:36]Connected sock=10 [16:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 88 C7 07 01 A8 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 00 71 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 73 39 02 00 35 04 06 00 AD 31 4C E7 62 6B 44 2A CC B2 A8 4B 54 6C [16:57:36]Write to MH i2c: 01 00 00 71 2B 9C [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 07 00 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 07 00 71 2B 00 00 00 00 00 A7 0C 56 [16:57:36]RasterBufferAndPrint [16:57:36]line [16:57:36]line [16:57:36]line [16:57:36]line [16:57:36]line [16:57:36]written 0, free lines is 3245 [16:57:36]MH_Cut [16:57:36]Write to MH i2c: D1 01 00 78 2B 01 75 [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: D1 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: D1 01 00 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: D1 01 00 78 2B 00 74 [16:57:36]Write to MH i2c: 01 00 00 79 2B A4 [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A5 0B 47 00 AE 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 73 39 02 00 F4 03 04 00 2E 16 1E 67 B6 04 01 00 00 11 76 67 A4 F0 D9 B5 A3 [16:57:37]CommunicateWithHost err = 0 [16:57:37]CheckOFDResponse [16:57:37]1017 (14) - 77093643461234 [16:57:37]1041 (16) - 0000000000871745 [16:57:37]1040 (4) - 145779 [16:57:37]1012 (4) - 27.10.2024 10:30 [16:57:37]1206 (1) - 0 [16:57:37]OFD Sender: Remove packet 145779 [16:57:37]ProducePacketName [16:57:37]name=ofd_packets/00145779 [16:57:37]NVStorageDeleteData [16:57:37]OFD Sender: No OFD packet to send [16:57:37]*** Cut start [16:57:37]*** Partial cut [16:57:37]*** CUTSNS_PIN = 1 [16:57:37]*** CUTSNS_PIN = 0 [16:57:37]*** Brake cut motor [16:57:38]Read from MH i2c: 01 [16:57:38]MH_I2C_Read... [16:57:38]*** Stop cut motor [16:57:38]*** Cut end [16:57:38]Read from MH i2c: 01 07 00 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: 01 07 00 79 2B 00 00 00 00 00 FF 0F B9 [16:57:38]process_action close_receipt done [16:57:38]requested_data is exist [16:57:38]produce_requested_data [16:57:38]requested_item fm.sn is exist - process it [16:57:38]wFMCommunicate request_size=4 [16:57:38]MH_SAM_APDU [16:57:38]CAPDU: 80 11 00 00 [16:57:38]Write to MH i2c: E2 08 00 7A 2B 80 11 00 00 00 00 00 00 1F [16:57:38]Write i2c OK [16:57:38]MH_I2C_Read... [16:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:38]Read from MH i2c: E2 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 17 00 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 17 00 7A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 72 [16:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:57:38]wFMCommunicate OK [16:57:38]requested_item fd.num is exist - process it [16:57:38]SAM_PROTO_GetFieldsCounters [16:57:38]wFMCommunicate request_size=4 [16:57:38]MH_SAM_APDU [16:57:38]CAPDU: 80 13 00 00 [16:57:38]Write to MH i2c: E2 08 00 7B 2B 80 13 00 00 00 00 00 00 22 [16:57:38]Write i2c OK [16:57:38]MH_I2C_Read... [16:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:38]Read from MH i2c: E2 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 62 00 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 62 00 7B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 73 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [16:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 73 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:38]wFMCommunicate OK [16:57:38]SAM_PROTO_GetFieldsCounters done [16:57:38]requested_item shift.num is exist - process it [16:57:38]requested_item shift.opened is exist - process it [16:57:38]req_shift_opened [16:57:38]FM_GetShiftState [16:57:38]SAM_PROTO_GetShiftState [16:57:38]wFMCommunicate request_size=4 [16:57:38]MH_SAM_APDU [16:57:38]CAPDU: 80 13 01 00 [16:57:38]Write to MH i2c: E2 08 00 7C 2B 80 13 01 00 00 00 00 00 24 [16:57:38]Write i2c OK [16:57:38]MH_I2C_Read... [16:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:38]Read from MH i2c: E2 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 0E 00 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 0E 00 7C 2B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9C [16:57:38]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:57:38]wFMCommunicate OK [16:57:38]SAM_PROTO_GetShiftState done [16:57:38]FM_GetShiftState done [16:57:38]req_shift_opened done [16:57:38]requested_item shift.open_date is exist - process it [16:57:38]req_shift_open_date [16:57:38]req_shift_open_date done [16:57:38]produce_requested_data done [16:57:38]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145779,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:57:38]process_action_free close_receipt [16:57:38]json_value_free [16:57:38]json_value_free done [16:57:38]process_json_proto returns [16:57:38]Send response to host [16:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145779,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:57:38]free response buf [16:57:38]execute_script done [16:57:38]execute_script returns [16:57:38]free content buf [16:57:38]Sock 7.Close socket [16:57:38]Sock 7.Thread stoped [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:03]accept exits with 9 [16:58:03]New connection [16:58:03]New thread 3066740068 created [16:58:03]Thread 3066596708 joined [16:58:03]Waiting for new connection... [16:58:03] Sock 9.Parse request [16:58:03]Sock 9.Check first char [16:58:03]Sock 9.First char is OK [16:58:03]request: POST /json_proto HTTP/1.0 [16:58:03]Method: POST [16:58:03]URL: /json_proto [16:58:03]Method is POST - this is cgi request [16:58:03]url: /json_proto [16:58:03]query_string will be loaded in cgi processing [16:58:03]execute_cgi json_proto POST (null) [16:58:03]execute_cgi path=json_proto method=POST [16:58:03]POST find Content-Length [16:58:03]Host: 172.17.40.195:8080 [16:58:03]Content-Length: 677 [16:58:03]Content-Type: application/json [16:58:03] [16:58:03]POST finish read [16:58:03]Found Content-Length = 677 [16:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:03]execute_script... [16:58: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)160536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:03]POST & json_proto [16:58:03]process_json_proto [16:58:03]json parsed OK: [16:58:03]protocol is kg_v1.0 [16:58:03]action value=close_receipt [16:58:03]process_action close_receipt [16:58:03]cmd_close_receipt [16:58:03]MH_GetDate [16:58:03]Write to MH i2c: F0 00 00 7D 2B 97 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: F0 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: F0 09 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: F0 09 00 7D 2B 00 1E 71 1E 67 D5 8D 6C 64 E6 [16:58:03]GetLastDocTimeStamp 1730048256 [16:58:03]current date 1730048286 [16:58:03]FM_GetShiftState [16:58:03]SAM_PROTO_GetShiftState [16:58:03]wFMCommunicate request_size=4 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 13 01 00 [16:58:03]Write to MH i2c: E2 08 00 7E 2B 80 13 01 00 00 00 00 00 26 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 0E 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 0E 00 7E 2B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9E [16:58:03]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:58:03]wFMCommunicate OK [16:58:03]SAM_PROTO_GetShiftState done [16:58:03]FM_GetShiftState done [16:58:03]opened in 1729988959 [16:58:03]opened+sec_in_day 1730075359 [16:58:03]quantity*price = 60009 [16:58:03]sum+1 = 60010 [16:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 203 27.10.2024 16:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145780 ФПД: 219705144632135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165806&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145780&fm=219705144632135&tin=02508201610067®Number=0000000000091683&sum=60000 [16:58:04]StoreToDocumentArchive [16:58:04]shift 545 fd 145780 [16:58:04]save to /storage/0545/doc_00145780 [16:58:04]save last doc name /storage/0545/doc_00145780 to /storage/kkm_last_doc_name [16:58:04]save OK [16:58:04]Clear old archive folders... [16:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:04]tlvbuf is 004110A0 [16:58:04]SAM_PROTO_ClearQueue [16:58:04]wFMCommunicate request_size=4 [16:58:04]MH_SAM_APDU [16:58:04]CAPDU: 80 09 00 00 [16:58:04]Write to MH i2c: E2 08 00 8B 2B 80 09 00 00 00 00 00 00 28 [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:04]Read from MH i2c: E2 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 03 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 03 00 8B 2B 00 90 00 2A [16:58:04]RAPDU: 90 00 [16:58:04]wFMCommunicate OK [16:58:04]SAM_PROTO_ClearQueue done [16:58:04]KKMCreateOFDPacket [16:58:04]OFDProtocolAddRootSTLVToBuf [16:58:04]FM_MakeSignedData [16:58:04]FM_MakeSignedData [16:58:04]SAM_PROTO_SignData [16:58:04]wFMCommunicate request_size=4 [16:58:04]MH_SAM_APDU [16:58:04]CAPDU: 80 0D 01 02 [16:58:04]Write to MH i2c: E2 08 00 8C 2B 80 0D 01 02 00 00 00 00 30 [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:04]Read from MH i2c: E2 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 03 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 03 00 8C 2B 00 90 00 2B [16:58:04]RAPDU: 90 00 [16:58:04]wFMCommunicate OK [16:58:04]wFMCommunicate request_size=255 [16:58:04]MH_SAM_APDU [16:58:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 1E 71 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 74 39 02 00 35 04 06 00 C7 [16:58:04]Write to MH i2c: E2 02 01 8D 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 1E 71 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 74 39 02 00 35 04 06 00 C7 00 00 13 [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 8D 2B 00 90 00 2C [16:58:05]RAPDU: 90 00 [16:58:05]wFMCommunicate OK [16:58:05]wFMCommunicate request_size=10 [16:58:05]MH_SAM_APDU [16:58:05]CAPDU: 80 0D 02 02 05 D2 17 19 E3 47 [16:58:05]Write to MH i2c: E2 0D 00 8E 2B 80 0D 02 02 05 00 D2 17 19 E3 47 00 00 69 [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 8E 2B 00 90 00 2D [16:58:05]RAPDU: 90 00 [16:58:05]wFMCommunicate OK [16:58:05]wFMCommunicate request_size=4 [16:58:05]MH_SAM_APDU [16:58:05]CAPDU: 80 0D 03 02 [16:58:05]Write to MH i2c: E2 08 00 8F 2B 80 0D 03 02 00 00 00 00 35 [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 0B 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 0B 00 8F 2B 00 76 86 3E AF E6 07 00 F3 90 00 FF [16:58:05]RAPDU: 76 86 3E AF E6 07 00 F3 90 00 [16:58:05]wFMCommunicate OK [16:58:05]SAM_PROTO_SignData done [16:58:05]FM_MakeSignedData done [16:58:05]CreateOFDProtocolMessage [16:58:05]wFMCommunicate request_size=4 [16:58:05]MH_SAM_APDU [16:58:05]CAPDU: 80 11 00 00 [16:58:05]Write to MH i2c: E2 08 00 90 2B 80 11 00 00 00 00 00 00 35 [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 17 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 17 00 90 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 88 [16:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:58:05]wFMCommunicate OK [16:58:05]CreateOFDProtocolMessage done [16:58:05]OFDSenderStorePacket 145780 [16:58:05]StoreOFDPacket docnum=145780 [16:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F7 0F 07 01 F2 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 1E 71 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 74 39 02 00 35 04 06 00 C7 D2 17 19 E3 47 76 86 3E AF E6 07 00 F3 [16:58:05]CheckFolder [16:58:05]dirname=/storage/ofd_packets [16:58:05]CheckFolder done [16:58:05]ProducePacketName [16:58:05]name=ofd_packets/00145780 [16:58:05]NVStorageSaveData ofd_packets/00145780 [16:58:05]File name is /storage/ofd_packets/00145780 [16:58:05]Write 301 bytes [16:58:05]NVStorageSaveData done [16:58:05]OFDSenderStorePacket done [16:58:05]KKMCreateOFDPacket done [16:58:05]NVStorageSaveData kkm_last_timestamp [16:58:05]File name is /storage/kkm_last_timestamp [16:58:05]Write 4 bytes [16:58:05]NVStorageSaveData done [16:58:05]ExternCall_PrintAddStr [16:58:05]wPrintStart [16:58:05]Write to MH i2c: 01 00 00 91 2B BC [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: 01 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: 01 07 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: 01 07 00 91 2B 00 00 00 00 00 FF 0F D1 [16:58:05]RasterBufferAndPrint [16:58:05]line Счет N : (1)160536 [16:58:05]line ИНН: 02508201610067 [16:58:05]line Контрольно-Кассовый Чек [16:58:05]line ПРОДАЖА [16:58:05]line ТРК (МРК, ГНК) : 42 [16:58:05]line Товар: 2710124130 [16:58:05]line Аи-92-К-2 [16:58:05]line 8.970 * 66.90 [16:58:05]line = 600.09 [16:58:05]line НДС 12% НСП 1% [16:58:05]line > о реализуемом товаре [16:58:05]line ОКРУГЛЕНИЕ: -0.09 [16:58:05]line ИТОГО: 600.00 [16:58:05]line Внесено: 600.00 [16:58:05]line СДАЧА: 0.00 [16:58:05]line НСП 1% : 5.31 [16:58:05]line НДС 12% : 63.73 [16:58:05]line Наличными: 600.00 [16:58:05]line Безнал.: 0.00 [16:58:05]line Место: АЗС № 126 "Партнер Нефть" [16:58:05]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [16:58:05]line СНО: Общий режим [16:58:05]line Чек 203 27.10.2024 16:58 [16:58:05]line Смена: 545 ФФД: 1.0 [16:58:05]line ЗНМ: 0300000085 [16:58:05]line РНМ: 0000000000091683 [16:58:05]line Версия ККМ: 001 [16:58:05]line ФМ: 0000000000871745 [16:58:05]line ФД: 145780 [16:58:05]line ФПД: 219705144632135 [16:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165806&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145780&fm=219705144632135&tin=02508201610067®Number=0000000000091683&sum=60000 [16:58:05]OFD Sender: Processing packet 145780 [packets to send 206, broken 205] [16:58:05]ProducePacketName [16:58:05]name=ofd_packets/00145780 [16:58:05]OFD Sender: To server: pG, [16:58:05]CommunicateWithHost lk.salyk.kg:30040 [16:58:05]ConnectInit lk.salyk.kg [16:58:05]written 0, free lines is 4095 [16:58:05]Connected sock=10 [16:58:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F7 0F 07 01 F2 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 1E 71 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 74 39 02 00 35 04 06 00 C7 D2 17 19 E3 47 76 86 3E AF E6 07 00 F3 [16:58:06]Write to MH i2c: 01 00 00 BC 2B E7 [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: 01 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: 01 07 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: 01 07 00 BC 2B 00 00 00 00 00 B3 0C AD [16:58:06]RasterBufferAndPrint [16:58:06]line [16:58:06]line [16:58:06]line [16:58:06]line [16:58:06]line [16:58:06]written 0, free lines is 3257 [16:58:06]MH_Cut [16:58:06]Write to MH i2c: D1 01 00 C3 2B 01 C0 [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: D1 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: D1 01 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: D1 01 00 C3 2B 00 BF [16:58:06]Write to MH i2c: 01 00 00 C4 2B EF [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 7A ED 47 00 62 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 74 39 02 00 F4 03 04 00 4B 16 1E 67 B6 04 01 00 00 B8 07 E1 90 6C F3 25 0C [16:58:06]CommunicateWithHost err = 0 [16:58:06]CheckOFDResponse [16:58:06]1017 (14) - 77093643461234 [16:58:06]1041 (16) - 0000000000871745 [16:58:06]1040 (4) - 145780 [16:58:06]1012 (4) - 27.10.2024 10:30 [16:58:06]1206 (1) - 0 [16:58:06]OFD Sender: Remove packet 145780 [16:58:06]ProducePacketName [16:58:06]name=ofd_packets/00145780 [16:58:06]NVStorageDeleteData [16:58:06]OFD Sender: No OFD packet to send [16:58:07]*** Cut start [16:58:07]*** Partial cut [16:58:07]*** CUTSNS_PIN = 1 [16:58:07]*** CUTSNS_PIN = 0 [16:58:07]*** Brake cut motor [16:58:07]Read from MH i2c: 01 [16:58:07]MH_I2C_Read... [16:58:07]*** Stop cut motor [16:58:07]*** Cut end [16:58:07]Read from MH i2c: 01 07 00 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: 01 07 00 C4 2B 00 00 00 00 00 FF 0F 04 [16:58:07]process_action close_receipt done [16:58:07]requested_data is exist [16:58:07]produce_requested_data [16:58:07]requested_item fm.sn is exist - process it [16:58:07]wFMCommunicate request_size=4 [16:58:07]MH_SAM_APDU [16:58:07]CAPDU: 80 11 00 00 [16:58:07]Write to MH i2c: E2 08 00 C5 2B 80 11 00 00 00 00 00 00 6A [16:58:07]Write i2c OK [16:58:07]MH_I2C_Read... [16:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:07]Read from MH i2c: E2 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 17 00 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 17 00 C5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BD [16:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [16:58:07]wFMCommunicate OK [16:58:07]requested_item fd.num is exist - process it [16:58:07]SAM_PROTO_GetFieldsCounters [16:58:07]wFMCommunicate request_size=4 [16:58:07]MH_SAM_APDU [16:58:07]CAPDU: 80 13 00 00 [16:58:07]Write to MH i2c: E2 08 00 C6 2B 80 13 00 00 00 00 00 00 6D [16:58:07]Write i2c OK [16:58:07]MH_I2C_Read... [16:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:07]Read from MH i2c: E2 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 62 00 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 62 00 C6 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 74 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [16:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 74 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:07]wFMCommunicate OK [16:58:07]SAM_PROTO_GetFieldsCounters done [16:58:07]requested_item shift.num is exist - process it [16:58:07]requested_item shift.opened is exist - process it [16:58:07]req_shift_opened [16:58:07]FM_GetShiftState [16:58:07]SAM_PROTO_GetShiftState [16:58:07]wFMCommunicate request_size=4 [16:58:07]MH_SAM_APDU [16:58:07]CAPDU: 80 13 01 00 [16:58:07]Write to MH i2c: E2 08 00 C7 2B 80 13 01 00 00 00 00 00 6F [16:58:07]Write i2c OK [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 [16:58:07]MH_I2C_Read... [16:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:07]Read from MH i2c: E2 0E 00 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 0E 00 C7 2B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E7 [16:58:07]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [16:58:07]wFMCommunicate OK [16:58:07]SAM_PROTO_GetShiftState done [16:58:07]FM_GetShiftState done [16:58:07]req_shift_opened done [16:58:07]requested_item shift.open_date is exist - process it [16:58:07]req_shift_open_date [16:58:07]req_shift_open_date done [16:58:07]produce_requested_data done [16:58:07]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145780,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [16:58:07]process_action_free close_receipt [16:58:07]json_value_free [16:58:07]json_value_free done [16:58:07]process_json_proto returns [16:58:07]Send response to host [16:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145780,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [16:58:07]free response buf [16:58:07]execute_script done [16:58:07]execute_script returns [16:58:07]free content buf [16:58:07]Sock 9.Close socket [16:58:07]Sock 9.Thread stoped [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:22]accept exits with 7 [17:06:22]New connection [17:06:22]New thread 3066596708 created [17:06:22]Thread 3066740068 joined [17:06:22]Waiting for new connection... [17:06:22] Sock 7.Parse request [17:06:22]Sock 7.Check first char [17:06:22]Sock 7.First char is OK [17:06:22]request: POST /json_proto HTTP/1.0 [17:06:22]Method: POST [17:06:22]URL: /json_proto [17:06:22]Method is POST - this is cgi request [17:06:22]url: /json_proto [17:06:22]query_string will be loaded in cgi processing [17:06:22]execute_cgi json_proto POST (null) [17:06:22]execute_cgi path=json_proto method=POST [17:06:22]POST find Content-Length [17:06:22]Host: 172.17.40.195:8080 [17:06:22]Content-Length: 677 [17:06:22]Content-Type: application/json [17:06:22] [17:06:22]POST finish read [17:06:22]Found Content-Length = 677 [17:06:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:22]execute_script... [17:06: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)160537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:22]POST & json_proto [17:06:22]process_json_proto [17:06:22]json parsed OK: [17:06:22]protocol is kg_v1.0 [17:06:22]action value=close_receipt [17:06:22]process_action close_receipt [17:06:22]cmd_close_receipt [17:06:22]MH_GetDate [17:06:22]Write to MH i2c: F0 00 00 C8 2B E2 [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: F0 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: F0 09 00 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: F0 09 00 C8 2B 00 11 73 1E 67 D5 8D 6C 64 26 [17:06:22]GetLastDocTimeStamp 1730048286 [17:06:22]current date 1730048785 [17:06:22]FM_GetShiftState [17:06:22]SAM_PROTO_GetShiftState [17:06:22]wFMCommunicate request_size=4 [17:06:22]MH_SAM_APDU [17:06:22]CAPDU: 80 13 01 00 [17:06:22]Write to MH i2c: E2 08 00 C9 2B 80 13 01 00 00 00 00 00 71 [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:22]Read from MH i2c: E2 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 0E 00 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 0E 00 C9 2B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E9 [17:06:22]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:06:22]wFMCommunicate OK [17:06:22]SAM_PROTO_GetShiftState done [17:06:22]FM_GetShiftState done [17:06:22]opened in 1729988959 [17:06:22]opened+sec_in_day 1730075359 [17:06:22]quantity*price = 60009 [17:06:22]sum+1 = 60010 [17:06:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 204 27.10.2024 17:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145781 ФПД: 98867817170281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170625&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145781&fm=98867817170281&tin=02508201610067®Number=0000000000091683&sum=60000 [17:06:23]StoreToDocumentArchive [17:06:23]shift 545 fd 145781 [17:06:23]save to /storage/0545/doc_00145781 [17:06:23]save last doc name /storage/0545/doc_00145781 to /storage/kkm_last_doc_name [17:06:23]save OK [17:06:23]Clear old archive folders... [17:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:23]tlvbuf is 004115F0 [17:06:23]SAM_PROTO_ClearQueue [17:06:23]wFMCommunicate request_size=4 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 09 00 00 [17:06:23]Write to MH i2c: E2 08 00 D6 2B 80 09 00 00 00 00 00 00 73 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 D6 2B 00 90 00 75 [17:06:23]RAPDU: 90 00 [17:06:23]wFMCommunicate OK [17:06:23]SAM_PROTO_ClearQueue done [17:06:23]KKMCreateOFDPacket [17:06:23]OFDProtocolAddRootSTLVToBuf [17:06:23]FM_MakeSignedData [17:06:23]FM_MakeSignedData [17:06:23]SAM_PROTO_SignData [17:06:23]wFMCommunicate request_size=4 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 0D 01 02 [17:06:23]Write to MH i2c: E2 08 00 D7 2B 80 0D 01 02 00 00 00 00 7B [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 D7 2B 00 90 00 76 [17:06:23]RAPDU: 90 00 [17:06:23]wFMCommunicate OK [17:06:23]wFMCommunicate request_size=255 [17:06:23]MH_SAM_APDU [17:06: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 11 73 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 75 39 02 00 35 04 06 00 59 [17:06:23]Write to MH i2c: E2 02 01 D8 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 11 73 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 75 39 02 00 35 04 06 00 59 00 00 E7 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:24]Read from MH i2c: E2 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 03 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 03 00 D8 2B 00 90 00 77 [17:06:24]RAPDU: 90 00 [17:06:24]wFMCommunicate OK [17:06:24]wFMCommunicate request_size=10 [17:06:24]MH_SAM_APDU [17:06:24]CAPDU: 80 0D 02 02 05 EB 75 1F 45 69 [17:06:24]Write to MH i2c: E2 0D 00 D9 2B 80 0D 02 02 05 00 EB 75 1F 45 69 00 00 B5 [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:24]Read from MH i2c: E2 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 03 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 03 00 D9 2B 00 90 00 78 [17:06:24]RAPDU: 90 00 [17:06:24]wFMCommunicate OK [17:06:24]wFMCommunicate request_size=4 [17:06:24]MH_SAM_APDU [17:06:24]CAPDU: 80 0D 03 02 [17:06:24]Write to MH i2c: E2 08 00 DA 2B 80 0D 03 02 00 00 00 00 80 [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:24]Read from MH i2c: E2 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 0B 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 0B 00 DA 2B 00 48 0D A8 8B 59 D5 73 73 90 00 1D [17:06:24]RAPDU: 48 0D A8 8B 59 D5 73 73 90 00 [17:06:24]wFMCommunicate OK [17:06:24]SAM_PROTO_SignData done [17:06:24]FM_MakeSignedData done [17:06:24]CreateOFDProtocolMessage [17:06:24]wFMCommunicate request_size=4 [17:06:24]MH_SAM_APDU [17:06:24]CAPDU: 80 11 00 00 [17:06:24]Write to MH i2c: E2 08 00 DB 2B 80 11 00 00 00 00 00 00 80 [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:24]Read from MH i2c: E2 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 17 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: E2 17 00 DB 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D3 [17:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:06:24]wFMCommunicate OK [17:06:24]CreateOFDProtocolMessage done [17:06:24]OFDSenderStorePacket 145781 [17:06:24]StoreOFDPacket docnum=145781 [17:06:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DA 2E 07 01 EE 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 11 73 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 75 39 02 00 35 04 06 00 59 EB 75 1F 45 69 48 0D A8 8B 59 D5 73 73 [17:06:24]CheckFolder [17:06:24]dirname=/storage/ofd_packets [17:06:24]CheckFolder done [17:06:24]ProducePacketName [17:06:24]name=ofd_packets/00145781 [17:06:24]NVStorageSaveData ofd_packets/00145781 [17:06:24]File name is /storage/ofd_packets/00145781 [17:06:24]Write 301 bytes [17:06:24]NVStorageSaveData done [17:06:24]OFDSenderStorePacket done [17:06:24]KKMCreateOFDPacket done [17:06:24]NVStorageSaveData kkm_last_timestamp [17:06:24]File name is /storage/kkm_last_timestamp [17:06:24]Write 4 bytes [17:06:24]NVStorageSaveData done [17:06:24]ExternCall_PrintAddStr [17:06:24]wPrintStart [17:06:24]Write to MH i2c: 01 00 00 DC 2B 07 [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: 01 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: 01 07 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: 01 07 00 DC 2B 00 00 00 00 00 FF 0F 1C [17:06:24]RasterBufferAndPrint [17:06:24]line Счет N : (1)160537 [17:06:24]line ИНН: 02508201610067 [17:06:24]line Контрольно-Кассовый Чек [17:06:24]line ПРОДАЖА [17:06:24]line ТРК (МРК, ГНК) : 42 [17:06:24]line Товар: 2710124130 [17:06:24]line Аи-92-К-2 [17:06:24]line 8.970 * 66.90 [17:06:24]line = 600.09 [17:06:24]line НДС 12% НСП 1% [17:06:24]line > о реализуемом товаре [17:06:24]line ОКРУГЛЕНИЕ: -0.09 [17:06:24]line ИТОГО: 600.00 [17:06:24]line Внесено: 600.00 [17:06:24]line СДАЧА: 0.00 [17:06:24]line НСП 1% : 5.31 [17:06:24]line НДС 12% : 63.73 [17:06:24]line Наличными: 600.00 [17:06:24]line Безнал.: 0.00 [17:06:24]line Место: АЗС № 126 "Партнер Нефть" [17:06:24]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:06:24]line СНО: Общий режим [17:06:24]line Чек 204 27.10.2024 17:06 [17:06:24]line Смена: 545 ФФД: 1.0 [17:06:24]line ЗНМ: 0300000085 [17:06:24]line РНМ: 0000000000091683 [17:06:24]line Версия ККМ: 001 [17:06:24]line ФМ: 0000000000871745 [17:06:24]line ФД: 145781 [17:06:24]line ФПД: 98867817170281 [17:06:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170625&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145781&fm=98867817170281&tin=02508201610067®Number=0000000000091683&sum=60000 [17:06:24]written 0, free lines is 4095 [17:06:24]OFD Sender: Processing packet 145781 [packets to send 206, broken 205] [17:06:24]ProducePacketName [17:06:24]name=ofd_packets/00145781 [17:06:24]OFD Sender: To server: pG, [17:06:24]CommunicateWithHost lk.salyk.kg:30040 [17:06:24]ConnectInit lk.salyk.kg [17:06:24]Connected sock=10 [17:06:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DA 2E 07 01 EE 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 11 73 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 75 39 02 00 35 04 06 00 59 EB 75 1F 45 69 48 0D A8 8B 59 D5 73 73 [17:06:25]Write to MH i2c: 01 00 00 07 2C 33 [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: 01 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: 01 07 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: 01 07 00 07 2C 00 00 00 00 00 AD 0C F3 [17:06:25]RasterBufferAndPrint [17:06:25]line [17:06:25]line [17:06:25]line [17:06:25]line [17:06:25]line [17:06:25]written 0, free lines is 3251 [17:06:25]MH_Cut [17:06:25]Write to MH i2c: D1 01 00 0E 2C 01 0C [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: D1 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: D1 01 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: D1 01 00 0E 2C 00 0B [17:06:25]Write to MH i2c: 01 00 00 0F 2C 3B [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 18 6B 47 00 D0 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 75 39 02 00 F4 03 04 00 3E 18 1E 67 B6 04 01 00 00 AA 2F 93 C0 BF 91 82 21 [17:06:25]CommunicateWithHost err = 0 [17:06:25]CheckOFDResponse [17:06:25]1017 (14) - 77093643461234 [17:06:25]1041 (16) - 0000000000871745 [17:06:25]1040 (4) - 145781 [17:06:25]1012 (4) - 27.10.2024 10:38 [17:06:25]1206 (1) - 0 [17:06:25]OFD Sender: Remove packet 145781 [17:06:25]ProducePacketName [17:06:25]name=ofd_packets/00145781 [17:06:25]NVStorageDeleteData [17:06:25]OFD Sender: No OFD packet to send [17:06:25]*** Cut start [17:06:25]*** Partial cut [17:06:25]*** CUTSNS_PIN = 1 [17:06:25]*** CUTSNS_PIN = 0 [17:06:26]*** Brake cut motor [17:06:26]Read from MH i2c: 01 [17:06:26]MH_I2C_Read... [17:06:26]*** Stop cut motor [17:06:26]*** Cut end [17:06:26]Read from MH i2c: 01 07 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: 01 07 00 0F 2C 00 00 00 00 00 FF 0F 50 [17:06:26]process_action close_receipt done [17:06:26]requested_data is exist [17:06:26]produce_requested_data [17:06:26]requested_item fm.sn is exist - process it [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 11 00 00 [17:06:26]Write to MH i2c: E2 08 00 10 2C 80 11 00 00 00 00 00 00 B6 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 17 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 17 00 10 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 09 [17:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:06:26]wFMCommunicate OK [17:06:26]requested_item fd.num is exist - process it [17:06:26]SAM_PROTO_GetFieldsCounters [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 13 00 00 [17:06:26]Write to MH i2c: E2 08 00 11 2C 80 13 00 00 00 00 00 00 B9 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 62 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 62 00 11 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 75 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [17:06:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 75 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:26]wFMCommunicate OK [17:06:26]SAM_PROTO_GetFieldsCounters done [17:06:26]requested_item shift.num is exist - process it [17:06:26]requested_item shift.opened is exist - process it [17:06:26]req_shift_opened [17:06:26]FM_GetShiftState [17:06:26]SAM_PROTO_GetShiftState [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 13 01 00 [17:06:26]Write to MH i2c: E2 08 00 12 2C 80 13 01 00 00 00 00 00 BB [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0E 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0E 00 12 2C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 33 [17:06:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:06:26]wFMCommunicate OK [17:06:26]SAM_PROTO_GetShiftState done [17:06:26]FM_GetShiftState done [17:06:26]req_shift_opened done [17:06:26]requested_item shift.open_date is exist - process it [17:06:26]req_shift_open_date [17:06:26]req_shift_open_date done [17:06:26]produce_requested_data done [17:06:26]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145781,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:06:26]process_action_free close_receipt [17:06:26]json_value_free [17:06:26]json_value_free done [17:06:26]process_json_proto returns [17:06:26]Send response to host [17:06:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145781,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:06:26]free response buf [17:06:26]execute_script done [17:06:26]execute_script returns [17:06:26]free content buf [17:06:26]Sock 7.Close socket [17:06:26]Sock 7.Thread stoped [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:55]accept exits with 9 [17:10:55]New connection [17:10:55]New thread 3066740068 created [17:10:55]Thread 3066596708 joined [17:10:55]Waiting for new connection... [17:10:55] Sock 9.Parse request [17:10:55]Sock 9.Check first char [17:10:55]Sock 9.First char is OK [17:10:55]request: POST /json_proto HTTP/1.0 [17:10:55]Method: POST [17:10:55]URL: /json_proto [17:10:55]Method is POST - this is cgi request [17:10:55]url: /json_proto [17:10:55]query_string will be loaded in cgi processing [17:10:55]execute_cgi json_proto POST (null) [17:10:55]execute_cgi path=json_proto method=POST [17:10:55]POST find Content-Length [17:10:55]Host: 172.17.40.195:8080 [17:10:55]Content-Length: 984 [17:10:55]Content-Type: application/json [17:10:55] [17:10:55]POST finish read [17:10:55]Found Content-Length = 984 [17:10:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 50.340, "sum" : 3710.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.17 \u0441\u043E\u043C", "deposit" : 3710.00, "total" : 3710.00, "payments": [ { "type": 0, "sum" : 3710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:55]execute_script... [17:10: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)160539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 50.340, "sum" : 3710.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.17 \u0441\u043E\u043C", "deposit" : 3710.00, "total" : 3710.00, "payments": [ { "type": 0, "sum" : 3710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:55]POST & json_proto [17:10:55]process_json_proto [17:10:55]json parsed OK: [17:10:55]protocol is kg_v1.0 [17:10:55]action value=close_receipt [17:10:55]process_action close_receipt [17:10:55]cmd_close_receipt [17:10:55]MH_GetDate [17:10:55]Write to MH i2c: F0 00 00 13 2C 2E [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 09 00 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: F0 09 00 13 2C 00 22 74 1E 67 D5 8D 6C 64 84 [17:10:55]GetLastDocTimeStamp 1730048785 [17:10:55]current date 1730049058 [17:10:55]FM_GetShiftState [17:10:55]SAM_PROTO_GetShiftState [17:10:55]wFMCommunicate request_size=4 [17:10:55]MH_SAM_APDU [17:10:55]CAPDU: 80 13 01 00 [17:10:55]Write to MH i2c: E2 08 00 14 2C 80 13 01 00 00 00 00 00 BD [17:10:55]Write i2c OK [17:10:55]MH_I2C_Read... [17:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:55]Read from MH i2c: E2 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 0E 00 [17:10:55]MH_I2C_Read... [17:10:55]Read from MH i2c: E2 0E 00 14 2C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 35 [17:10:55]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:10:55]wFMCommunicate OK [17:10:55]SAM_PROTO_GetShiftState done [17:10:55]FM_GetShiftState done [17:10:55]opened in 1729988959 [17:10:55]opened+sec_in_day 1730075359 [17:10:55]quantity*price = 371005 [17:10:55]sum+1 = 371007 [17:10:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 3710.00 Внесено: 3710.00 СДАЧА: 0.00 НСП 1% : 32.83 НДС 12% : 393.99 Наличными: 3710.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 205 27.10.2024 17:10 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-95 номер 126 сэкономлено 25.17 сом ФМ: 0000000000871745 ФД: 145782 ФПД: 17521695202117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171058&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145782&fm=17521695202117&tin=02508201610067®Number=0000000000091683&sum=371000 [17:10:56]StoreToDocumentArchive [17:10:56]shift 545 fd 145782 [17:10:56]save to /storage/0545/doc_00145782 [17:10:56]save last doc name /storage/0545/doc_00145782 to /storage/kkm_last_doc_name [17:10:56]save OK [17:10:56]Clear old archive folders... [17:10:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:56]tlvbuf is 004110F0 [17:10:56]SAM_PROTO_ClearQueue [17:10:56]wFMCommunicate request_size=4 [17:10:56]MH_SAM_APDU [17:10:56]CAPDU: 80 09 00 00 [17:10:56]Write to MH i2c: E2 08 00 21 2C 80 09 00 00 00 00 00 00 BF [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 21 2C 00 90 00 C1 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]SAM_PROTO_ClearQueue done [17:10:57]KKMCreateOFDPacket [17:10:57]OFDProtocolAddRootSTLVToBuf [17:10:57]FM_MakeSignedData [17:10:57]FM_MakeSignedData [17:10:57]SAM_PROTO_SignData [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 01 02 [17:10:57]Write to MH i2c: E2 08 00 22 2C 80 0D 01 02 00 00 00 00 C7 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 22 2C 00 90 00 C2 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=255 [17:10:57]MH_SAM_APDU [17:10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 C4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 3E A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 99 00 00 00 00 07 04 06 00 38 A9 05 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 22 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 76 39 02 00 35 04 06 00 0F [17:10:57]Write to MH i2c: E2 02 01 23 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 C4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 3E A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 99 00 00 00 00 07 04 06 00 38 A9 05 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 22 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 76 39 02 00 35 04 06 00 0F 00 00 05 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 23 2C 00 90 00 C3 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=10 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 02 02 05 EF 96 6B 1B 45 [17:10:57]Write to MH i2c: E2 0D 00 24 2C 80 0D 02 02 05 00 EF 96 6B 1B 45 00 00 24 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 24 2C 00 90 00 C4 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 03 02 [17:10:57]Write to MH i2c: E2 08 00 25 2C 80 0D 03 02 00 00 00 00 CC [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 0B 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 0B 00 25 2C 00 03 AC 5F 35 6C 88 6B 85 90 00 F4 [17:10:57]RAPDU: 03 AC 5F 35 6C 88 6B 85 90 00 [17:10:57]wFMCommunicate OK [17:10:57]SAM_PROTO_SignData done [17:10:57]FM_MakeSignedData done [17:10:57]CreateOFDProtocolMessage [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 11 00 00 [17:10:57]Write to MH i2c: E2 08 00 26 2C 80 11 00 00 00 00 00 00 CC [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 17 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 17 00 26 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1F [17:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:10:57]wFMCommunicate OK [17:10:57]CreateOFDProtocolMessage done [17:10:57]OFDSenderStorePacket 145782 [17:10:57]StoreOFDPacket docnum=145782 [17:10:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CB 12 07 01 C7 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 C4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 3E A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 99 00 00 00 00 07 04 06 00 38 A9 05 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 22 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 76 39 02 00 35 04 06 00 0F EF 96 6B 1B 45 03 AC 5F 35 6C 88 6B 85 [17:10:57]CheckFolder [17:10:57]dirname=/storage/ofd_packets [17:10:57]CheckFolder done [17:10:57]ProducePacketName [17:10:57]name=ofd_packets/00145782 [17:10:57]NVStorageSaveData ofd_packets/00145782 [17:10:57]File name is /storage/ofd_packets/00145782 [17:10:57]Write 301 bytes [17:10:57]NVStorageSaveData done [17:10:57]OFDSenderStorePacket done [17:10:57]KKMCreateOFDPacket done [17:10:57]NVStorageSaveData kkm_last_timestamp [17:10:57]File name is /storage/kkm_last_timestamp [17:10:57]Write 4 bytes [17:10:57]NVStorageSaveData done [17:10:57]ExternCall_PrintAddStr [17:10:57]wPrintStart [17:10:57]Write to MH i2c: 01 00 00 27 2C 53 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 07 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 07 00 27 2C 00 00 00 00 00 FF 0F 68 [17:10:57]RasterBufferAndPrint [17:10:57]line Счет N : (1)160539 [17:10:57]line ИНН: 02508201610067 [17:10:57]line Контрольно-Кассовый Чек [17:10:57]line ПРОДАЖА [17:10:57]line ТРК (МРК, ГНК) : 53 [17:10:57]line Товар: 2710124500 [17:10:57]line Аи-95-К-3 [17:10:57]line 50.340 * 73.70 [17:10:57]line = 3710.06 [17:10:57]line НДС 12% НСП 1% [17:10:57]line > о реализуемом товаре [17:10:57]line ОКРУГЛЕНИЕ: -0.06 [17:10:57]line ИТОГО: 3710.00 [17:10:57]line Внесено: 3710.00 [17:10:57]line СДАЧА: 0.00 [17:10:57]line НСП 1% : 32.83 [17:10:57]line НДС 12% : 393.99 [17:10:57]line Наличными: 3710.00 [17:10:57]line Безнал.: 0.00 [17:10:57]line Место: АЗС № 126 "Партнер Нефть" [17:10:57]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:10:57]line СНО: Общий режим [17:10:57]line Чек 205 27.10.2024 17:10 [17:10:57]line Смена: 545 ФФД: 1.0 [17:10:57]line ЗНМ: 0300000085 [17:10:57]line РНМ: 0000000000091683 [17:10:57]line Версия ККМ: 001 [17:10:57]line [17:10:57]line Дисконтная программа [17:10:57]line АИ-95 [17:10:57]line номер 126 [17:10:57]line сэкономлено 25.17 сом [17:10:57]line ФМ: 0000000000871745 [17:10:57]line ФД: 145782 [17:10:57]line ФПД: 17521695202117 [17:10:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171058&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145782&fm=17521695202117&tin=02508201610067®Number=0000000000091683&sum=371000 [17:10:57]OFD Sender: Processing packet 145782 [packets to send 206, broken 205] [17:10:57]ProducePacketName [17:10:57]name=ofd_packets/00145782 [17:10:57]OFD Sender: To server: pG, [17:10:57]CommunicateWithHost lk.salyk.kg:30040 [17:10:57]ConnectInit lk.salyk.kg [17:10:57]written 0, free lines is 4095 [17:10:58]Connected sock=10 [17:10:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CB 12 07 01 C7 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 C4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 3E A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 99 00 00 00 00 07 04 06 00 38 A9 05 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 22 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 76 39 02 00 35 04 06 00 0F EF 96 6B 1B 45 03 AC 5F 35 6C 88 6B 85 [17:10:58]Write to MH i2c: 01 00 00 57 2C 83 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 57 2C 00 00 00 00 00 4E 0C E4 [17:10:58]RasterBufferAndPrint [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]written 0, free lines is 3154 [17:10:58]MH_Cut [17:10:58]Write to MH i2c: D1 01 00 5E 2C 01 5C [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 01 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 01 00 5E 2C 00 5B [17:10:58]Write to MH i2c: 01 00 00 5F 2C 8B [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 5B 66 47 00 4D 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 76 39 02 00 F4 03 04 00 4F 19 1E 67 B6 04 01 00 00 C3 0D A0 F3 68 EE 9F E1 [17:10:58]CommunicateWithHost err = 0 [17:10:58]CheckOFDResponse [17:10:58]1017 (14) - 77093643461234 [17:10:58]1041 (16) - 0000000000871745 [17:10:58]1040 (4) - 145782 [17:10:58]1012 (4) - 27.10.2024 10:43 [17:10:58]1206 (1) - 0 [17:10:58]OFD Sender: Remove packet 145782 [17:10:58]ProducePacketName [17:10:58]name=ofd_packets/00145782 [17:10:58]NVStorageDeleteData [17:10:58]OFD Sender: No OFD packet to send [17:10:59]*** Cut start [17:10:59]*** Partial cut [17:10:59]*** CUTSNS_PIN = 1 [17:10:59]*** CUTSNS_PIN = 0 [17:10:59]*** Brake cut motor [17:10:59]Read from MH i2c: 01 [17:10:59]MH_I2C_Read... [17:10:59]*** Stop cut motor [17:10:59]*** Cut end [17:10:59]Read from MH i2c: 01 07 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: 01 07 00 5F 2C 00 00 00 00 00 FF 0F A0 [17:10:59]process_action close_receipt done [17:10:59]requested_data is exist [17:10:59]produce_requested_data [17:10:59]requested_item fm.sn is exist - process it [17:10:59]wFMCommunicate request_size=4 [17:10:59]MH_SAM_APDU [17:10:59]CAPDU: 80 11 00 00 [17:10:59]Write to MH i2c: E2 08 00 60 2C 80 11 00 00 00 00 00 00 06 [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:59]Read from MH i2c: E2 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 17 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 17 00 60 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 59 [17:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:10:59]wFMCommunicate OK [17:10:59]requested_item fd.num is exist - process it [17:10:59]SAM_PROTO_GetFieldsCounters [17:10:59]wFMCommunicate request_size=4 [17:10:59]MH_SAM_APDU [17:10:59]CAPDU: 80 13 00 00 [17:10:59]Write to MH i2c: E2 08 00 61 2C 80 13 00 00 00 00 00 00 09 [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:11:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:00]Read from MH i2c: E2 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 62 00 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 62 00 61 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 76 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [17:11:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 76 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:00]wFMCommunicate OK [17:11:00]SAM_PROTO_GetFieldsCounters done [17:11:00]requested_item shift.num is exist - process it [17:11:00]requested_item shift.opened is exist - process it [17:11:00]req_shift_opened [17:11:00]FM_GetShiftState [17:11:00]SAM_PROTO_GetShiftState [17:11:00]wFMCommunicate request_size=4 [17:11:00]MH_SAM_APDU [17:11:00]CAPDU: 80 13 01 00 [17:11:00]Write to MH i2c: E2 08 00 62 2C 80 13 01 00 00 00 00 00 0B [17:11:00]Write i2c OK [17:11:00]MH_I2C_Read... [17:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:00]Read from MH i2c: E2 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 0E 00 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 0E 00 62 2C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 83 [17:11:00]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:11:00]wFMCommunicate OK [17:11:00]SAM_PROTO_GetShiftState done [17:11:00]FM_GetShiftState done [17:11:00]req_shift_opened done [17:11:00]requested_item shift.open_date is exist - process it [17:11:00]req_shift_open_date [17:11:00]req_shift_open_date done [17:11:00]produce_requested_data done [17:11:00]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145782,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:11:00]process_action_free close_receipt [17:11:00]json_value_free [17:11:00]json_value_free done [17:11:00]process_json_proto returns [17:11:00]Send response to host [17:11:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145782,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:11:00]free response buf [17:11:00]execute_script done [17:11:00]execute_script returns [17:11:00]free content buf [17:11:00]Sock 9.Close socket [17:11:00]Sock 9.Thread stoped [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:09]accept exits with 7 [17:11:09]New connection [17:11:09]New thread 3066596708 created [17:11:09]Thread 3066740068 joined [17:11:09]Waiting for new connection... [17:11:09] Sock 7.Parse request [17:11:09]Sock 7.Check first char [17:11:09]Sock 7.First char is OK [17:11:09]request: POST /json_proto HTTP/1.0 [17:11:09]Method: POST [17:11:09]URL: /json_proto [17:11:09]Method is POST - this is cgi request [17:11:09]url: /json_proto [17:11:09]query_string will be loaded in cgi processing [17:11:09]execute_cgi json_proto POST (null) [17:11:09]execute_cgi path=json_proto method=POST [17:11:09]POST find Content-Length [17:11:09]Host: 172.17.40.195:8080 [17:11:09]Content-Length: 767 [17:11:09]Content-Type: application/json [17:11:09] [17:11:09]POST finish read [17:11:09]Found Content-Length = 767 [17:11:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:09]execute_script... [17:11: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)160538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:09]POST & json_proto [17:11:09]process_json_proto [17:11:09]json parsed OK: [17:11:09]protocol is kg_v1.0 [17:11:09]action value=close_receipt [17:11:09]process_action close_receipt [17:11:09]cmd_close_receipt [17:11:09]MH_GetDate [17:11:09]Write to MH i2c: F0 00 00 63 2C 7E [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: F0 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: F0 09 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: F0 09 00 63 2C 00 2F 74 1E 67 D5 8D 6C 64 E1 [17:11:09]GetLastDocTimeStamp 1730049058 [17:11:09]current date 1730049071 [17:11:09]FM_GetShiftState [17:11:09]SAM_PROTO_GetShiftState [17:11:09]wFMCommunicate request_size=4 [17:11:09]MH_SAM_APDU [17:11:09]CAPDU: 80 13 01 00 [17:11:09]Write to MH i2c: E2 08 00 64 2C 80 13 01 00 00 00 00 00 0D [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:09]Read from MH i2c: E2 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 0E 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 0E 00 64 2C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 85 [17:11:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:11:09]wFMCommunicate OK [17:11:09]SAM_PROTO_GetShiftState done [17:11:09]FM_GetShiftState done [17:11:09]opened in 1729988959 [17:11:09]opened+sec_in_day 1730075359 [17:11:09]quantity*price = 762000 [17:11:09]sum+1 = 762001 [17:11:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 0.00 Безнал.: 7620.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 206 27.10.2024 17:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145783 ФПД: 128866739527406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171112&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145783&fm=128866739527406&tin=02508201610067®Number=0000000000091683&sum=762000 [17:11:10]StoreToDocumentArchive [17:11:10]shift 545 fd 145783 [17:11:10]save to /storage/0545/doc_00145783 [17:11:10]save last doc name /storage/0545/doc_00145783 to /storage/kkm_last_doc_name [17:11:10]save OK [17:11:10]Clear old archive folders... [17:11:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:11:10]tlvbuf is 004869F0 [17:11:10]SAM_PROTO_ClearQueue [17:11:10]wFMCommunicate request_size=4 [17:11:10]MH_SAM_APDU [17:11:10]CAPDU: 80 09 00 00 [17:11:10]Write to MH i2c: E2 08 00 71 2C 80 09 00 00 00 00 00 00 0F [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:10]Read from MH i2c: E2 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: E2 03 00 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: E2 03 00 71 2C 00 90 00 11 [17:11:10]RAPDU: 90 00 [17:11:10]wFMCommunicate OK [17:11:10]SAM_PROTO_ClearQueue done [17:11:10]KKMCreateOFDPacket [17:11:10]OFDProtocolAddRootSTLVToBuf [17:11:10]FM_MakeSignedData [17:11:10]FM_MakeSignedData [17:11:10]SAM_PROTO_SignData [17:11:10]wFMCommunicate request_size=4 [17:11:10]MH_SAM_APDU [17:11:10]CAPDU: 80 0D 01 02 [17:11:10]Write to MH i2c: E2 08 00 72 2C 80 0D 01 02 00 00 00 00 17 [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:10]Read from MH i2c: E2 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: E2 03 00 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: E2 03 00 72 2C 00 90 00 12 [17:11:10]RAPDU: 90 00 [17:11:10]wFMCommunicate OK [17:11:10]wFMCommunicate request_size=255 [17:11:10]MH_SAM_APDU [17:11:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 30 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 77 39 02 00 35 04 06 00 75 34 20 3B [17:11:10]Write to MH i2c: E2 02 01 73 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 30 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 77 39 02 00 35 04 06 00 75 34 20 3B 00 00 C2 [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 73 2C 00 90 00 13 [17:11:11]RAPDU: 90 00 [17:11:11]wFMCommunicate OK [17:11:11]wFMCommunicate request_size=7 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 0D 02 02 02 9E EE [17:11:11]Write to MH i2c: E2 0A 00 74 2C 80 0D 02 02 02 00 9E EE 00 00 AA [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 74 2C 00 90 00 14 [17:11:11]RAPDU: 90 00 [17:11:11]wFMCommunicate OK [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 0D 03 02 [17:11:11]Write to MH i2c: E2 08 00 75 2C 80 0D 03 02 00 00 00 00 1C [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 0B 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 0B 00 75 2C 00 55 DB 9E F2 B2 0C FB 4C 90 00 E2 [17:11:11]RAPDU: 55 DB 9E F2 B2 0C FB 4C 90 00 [17:11:11]wFMCommunicate OK [17:11:11]SAM_PROTO_SignData done [17:11:11]FM_MakeSignedData done [17:11:11]CreateOFDProtocolMessage [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 11 00 00 [17:11:11]Write to MH i2c: E2 08 00 76 2C 80 11 00 00 00 00 00 00 1C [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 17 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 17 00 76 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6F [17:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:11:11]wFMCommunicate OK [17:11:11]CreateOFDProtocolMessage done [17:11:11]OFDSenderStorePacket 145783 [17:11:11]StoreOFDPacket docnum=145783 [17:11:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 8B 40 04 01 F0 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 30 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 77 39 02 00 35 04 06 00 75 34 20 3B 9E EE 55 DB 9E F2 B2 0C FB 4C [17:11:11]CheckFolder [17:11:11]dirname=/storage/ofd_packets [17:11:11]CheckFolder done [17:11:11]ProducePacketName [17:11:11]name=ofd_packets/00145783 [17:11:11]NVStorageSaveData ofd_packets/00145783 [17:11:11]File name is /storage/ofd_packets/00145783 [17:11:11]Write 298 bytes [17:11:11]NVStorageSaveData done [17:11:11]OFDSenderStorePacket done [17:11:11]KKMCreateOFDPacket done [17:11:11]NVStorageSaveData kkm_last_timestamp [17:11:11]File name is /storage/kkm_last_timestamp [17:11:11]Write 4 bytes [17:11:11]NVStorageSaveData done [17:11:11]ExternCall_PrintAddStr [17:11:11]wPrintStart [17:11:11]Write to MH i2c: 01 00 00 77 2C A3 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 77 2C 00 00 00 00 00 FF 0F B8 [17:11:11]RasterBufferAndPrint [17:11:11]line Счет N : (1)160538 [17:11:11]line ИНН: 02508201610067 [17:11:11]line Контрольно-Кассовый Чек [17:11:11]line ПРОДАЖА [17:11:11]line ТРК (МРК, ГНК) : 11 [17:11:11]line Товар: 2710194210 [17:11:11]line ДТ-К-2 [17:11:11]line 100.000 * 76.20 [17:11:11]line = 7620.00 [17:11:11]line НДС 12% НСП 1% [17:11:11]line > о реализуемом товаре [17:11:11]line ИТОГО: 7620.00 [17:11:11]line НСП 1% : 67.43 [17:11:11]line НДС 12% : 809.20 [17:11:11]line Наличными: 0.00 [17:11:11]line Безнал.: 7620.00 [17:11:11]line Место: АЗС № 126 "Партнер Нефть" [17:11:11]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:11:11]line СНО: Общий режим [17:11:11]line Чек 206 27.10.2024 17:11 [17:11:11]line Смена: 545 ФФД: 1.0 [17:11:11]line ЗНМ: 0300000085 [17:11:11]line РНМ: 0000000000091683 [17:11:11]line Версия ККМ: 001 [17:11:11]line Платежная система: Mbank [17:11:11]line ФМ: 0000000000871745 [17:11:11]line ФД: 145783 [17:11:11]line ФПД: 128866739527406 [17:11:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171112&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145783&fm=128866739527406&tin=02508201610067®Number=0000000000091683&sum=762000 [17:11:11]OFD Sender: Processing packet 145783 [packets to send 206, broken 205] [17:11:11]ProducePacketName [17:11:11]name=ofd_packets/00145783 [17:11:11]OFD Sender: To server: pG, [17:11:11]CommunicateWithHost lk.salyk.kg:30040 [17:11:11]ConnectInit lk.salyk.kg [17:11:11]written 0, free lines is 4095 [17:11:11]Connected sock=10 [17:11:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 8B 40 04 01 F0 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A0 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 30 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 77 39 02 00 35 04 06 00 75 34 20 3B 9E EE 55 DB 9E F2 B2 0C FB 4C [17:11:11]Write to MH i2c: 01 00 00 A0 2C CC [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 A0 2C 00 00 00 00 00 D7 0C B6 [17:11:11]RasterBufferAndPrint [17:11:11]line [17:11:11]line [17:11:11]line [17:11:11]line [17:11:11]line [17:11:11]written 0, free lines is 3295 [17:11:11]MH_Cut [17:11:11]Write to MH i2c: D1 01 00 A7 2C 01 A5 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: D1 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: D1 01 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: D1 01 00 A7 2C 00 A4 [17:11:11]Write to MH i2c: 01 00 00 A8 2C D4 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E6 0A 47 00 0B AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 77 39 02 00 F4 03 04 00 5D 19 1E 67 B6 04 01 00 00 AE DE 6B 04 AF 94 9E 4D [17:11:12]CommunicateWithHost err = 0 [17:11:12]CheckOFDResponse [17:11:12]1017 (14) - 77093643461234 [17:11:12]1041 (16) - 0000000000871745 [17:11:12]1040 (4) - 145783 [17:11:12]1012 (4) - 27.10.2024 10:43 [17:11:12]1206 (1) - 0 [17:11:12]OFD Sender: Remove packet 145783 [17:11:12]ProducePacketName [17:11:12]name=ofd_packets/00145783 [17:11:12]NVStorageDeleteData [17:11:12]OFD Sender: No OFD packet to send [17:11:12]*** Cut start [17:11:12]*** Partial cut [17:11:12]*** CUTSNS_PIN = 1 [17:11:12]*** CUTSNS_PIN = 0 [17:11:13]*** Brake cut motor [17:11:13]Read from MH i2c: 01 [17:11:13]MH_I2C_Read... [17:11:13]*** Stop cut motor [17:11:13]*** Cut end [17:11:13]Read from MH i2c: 01 07 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: 01 07 00 A8 2C 00 00 00 00 00 FF 0F E9 [17:11:13]process_action close_receipt done [17:11:13]requested_data is exist [17:11:13]produce_requested_data [17:11:13]requested_item fm.sn is exist - process it [17:11:13]wFMCommunicate request_size=4 [17:11:13]MH_SAM_APDU [17:11:13]CAPDU: 80 11 00 00 [17:11:13]Write to MH i2c: E2 08 00 A9 2C 80 11 00 00 00 00 00 00 4F [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:13]Read from MH i2c: E2 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 17 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 17 00 A9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A2 [17:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:11:13]wFMCommunicate OK [17:11:13]requested_item fd.num is exist - process it [17:11:13]SAM_PROTO_GetFieldsCounters [17:11:13]wFMCommunicate request_size=4 [17:11:13]MH_SAM_APDU [17:11:13]CAPDU: 80 13 00 00 [17:11:13]Write to MH i2c: E2 08 00 AA 2C 80 13 00 00 00 00 00 00 52 [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:13]Read from MH i2c: E2 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 62 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 62 00 AA 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 77 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [17:11:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 77 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:13]wFMCommunicate OK [17:11:13]SAM_PROTO_GetFieldsCounters done [17:11:13]requested_item shift.num is exist - process it [17:11:13]requested_item shift.opened is exist - process it [17:11:13]req_shift_opened [17:11:13]FM_GetShiftState [17:11:13]SAM_PROTO_GetShiftState [17:11:13]wFMCommunicate request_size=4 [17:11:13]MH_SAM_APDU [17:11:13]CAPDU: 80 13 01 00 [17:11:13]Write to MH i2c: E2 08 00 AB 2C 80 13 01 00 00 00 00 00 54 [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:13]Read from MH i2c: E2 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 0E 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 0E 00 AB 2C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CC [17:11:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:11:13]wFMCommunicate OK [17:11:13]SAM_PROTO_GetShiftState done [17:11:13]FM_GetShiftState done [17:11:13]req_shift_opened done [17:11:13]requested_item shift.open_date is exist - process it [17:11:13]req_shift_open_date [17:11:13]req_shift_open_date done [17:11:13]produce_requested_data done [17:11:13]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145783,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:11:13]process_action_free close_receipt [17:11:13]json_value_free [17:11:13]json_value_free done [17:11:13]process_json_proto returns [17:11:13]Send response to host [17:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145783,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:11:13]free response buf [17:11:13]execute_script done [17:11:13]execute_script returns [17:11:13]free content buf [17:11:13]Sock 7.Close socket [17:11:13]Sock 7.Thread stoped [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:24]int [17:11:24]Write to MH i2c: 01 00 00 AC 2C D8 [17:11:24]*** FLAG_PRN_KEY set [17:11:24]Write i2c OK [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: 01 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: 01 07 00 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: 01 07 00 AC 2C 00 08 00 00 00 FF 0F F5 [17:11:24]state=0 [17:11:24]Key pressed [17:11:24]Feed [17:11:24]Write to MH i2c: D8 00 00 AD 2C B0 [17:11:24]Write i2c OK [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: D8 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: D8 01 00 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: D8 01 00 AD 2C 00 B1 [17:11:24]int [17:11:24]Write to MH i2c: 01 00 00 AE 2C DA [17:11:24]Write i2c OK [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: 01 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: 01 07 00 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: 01 07 00 AE 2C 00 48 00 00 00 3C 00 65 [17:11:24]state=2 [17:11:24]Key pressed [17:11:24]int [17:11:24]Write to MH i2c: 01 00 00 AF 2C DB [17:11:24]*** FLAG_PRN_KEY reset [17:11:24]Write i2c OK [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: 01 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: 01 07 00 [17:11:24]MH_I2C_Read... [17:11:24]Read from MH i2c: 01 07 00 AF 2C 00 00 00 00 00 FF 0F F0 [17:11:24]state=2 [17:11:24]Stop feed [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:09]accept exits with 9 [17:14:09]New connection [17:14:09]New thread 3066740068 created [17:14:09]Thread 3066596708 joined [17:14:09]Waiting for new connection... [17:14:09] Sock 9.Parse request [17:14:09]Sock 9.Check first char [17:14:09]Sock 9.First char is OK [17:14:09]request: POST /json_proto HTTP/1.0 [17:14:09]Method: POST [17:14:09]URL: /json_proto [17:14:09]Method is POST - this is cgi request [17:14:09]url: /json_proto [17:14:09]query_string will be loaded in cgi processing [17:14:09]execute_cgi json_proto POST (null) [17:14:09]execute_cgi path=json_proto method=POST [17:14:09]POST find Content-Length [17:14:09]Host: 172.17.40.195:8080 [17:14:09]Content-Length: 682 [17:14:09]Content-Type: application/json [17:14:09] [17:14:09]POST finish read [17:14:09]Found Content-Length = 682 [17:14:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:09]execute_script... [17:14: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)160540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:09]POST & json_proto [17:14:09]process_json_proto [17:14:09]json parsed OK: [17:14:09]protocol is kg_v1.0 [17:14:09]action value=close_receipt [17:14:09]process_action close_receipt [17:14:09]cmd_close_receipt [17:14:09]MH_GetDate [17:14:09]Write to MH i2c: F0 00 00 B0 2C CB [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: F0 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: F0 09 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: F0 09 00 B0 2C 00 E3 74 1E 67 D5 8D 6C 64 E2 [17:14:09]GetLastDocTimeStamp 1730049072 [17:14:09]current date 1730049251 [17:14:09]FM_GetShiftState [17:14:09]SAM_PROTO_GetShiftState [17:14:09]wFMCommunicate request_size=4 [17:14:09]MH_SAM_APDU [17:14:09]CAPDU: 80 13 01 00 [17:14:09]Write to MH i2c: E2 08 00 B1 2C 80 13 01 00 00 00 00 00 5A [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 0E 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 0E 00 B1 2C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D2 [17:14:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:14:09]wFMCommunicate OK [17:14:09]SAM_PROTO_GetShiftState done [17:14:09]FM_GetShiftState done [17:14:09]opened in 1729988959 [17:14:09]opened+sec_in_day 1730075359 [17:14:09]quantity*price = 100015 [17:14:09]sum+1 = 100017 [17:14:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 207 27.10.2024 17:14 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145784 ФПД: 66361089603657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171411&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145784&fm=66361089603657&tin=02508201610067®Number=0000000000091683&sum=100000 [17:14:10]StoreToDocumentArchive [17:14:10]shift 545 fd 145784 [17:14:10]save to /storage/0545/doc_00145784 [17:14:10]save last doc name /storage/0545/doc_00145784 to /storage/kkm_last_doc_name [17:14:10]save OK [17:14:10]Clear old archive folders... [17:14:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:10]tlvbuf is 004111F0 [17:14:10]SAM_PROTO_ClearQueue [17:14:10]wFMCommunicate request_size=4 [17:14:10]MH_SAM_APDU [17:14:10]CAPDU: 80 09 00 00 [17:14:10]Write to MH i2c: E2 08 00 BE 2C 80 09 00 00 00 00 00 00 5C [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:10]Read from MH i2c: E2 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 03 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 03 00 BE 2C 00 90 00 5E [17:14:10]RAPDU: 90 00 [17:14:10]wFMCommunicate OK [17:14:10]SAM_PROTO_ClearQueue done [17:14:10]KKMCreateOFDPacket [17:14:10]OFDProtocolAddRootSTLVToBuf [17:14:10]FM_MakeSignedData [17:14:10]FM_MakeSignedData [17:14:10]SAM_PROTO_SignData [17:14:10]wFMCommunicate request_size=4 [17:14:10]MH_SAM_APDU [17:14:10]CAPDU: 80 0D 01 02 [17:14:10]Write to MH i2c: E2 08 00 BF 2C 80 0D 01 02 00 00 00 00 64 [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:10]Read from MH i2c: E2 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 03 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 03 00 BF 2C 00 90 00 5F [17:14:10]RAPDU: 90 00 [17:14:10]wFMCommunicate OK [17:14:10]wFMCommunicate request_size=255 [17:14:10]MH_SAM_APDU [17:14: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 E3 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 78 39 02 00 35 04 06 00 3C [17:14:10]Write to MH i2c: E2 02 01 C0 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 E3 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 78 39 02 00 35 04 06 00 3C 00 00 A9 [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:10]Read from MH i2c: E2 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 03 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 03 00 C0 2C 00 90 00 60 [17:14:10]RAPDU: 90 00 [17:14:10]wFMCommunicate OK [17:14:10]wFMCommunicate request_size=10 [17:14:10]MH_SAM_APDU [17:14:10]CAPDU: 80 0D 02 02 05 5A E5 2C 38 49 [17:14:10]Write to MH i2c: E2 0D 00 C1 2C 80 0D 02 02 05 00 5A E5 2C 38 49 00 00 5D [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:10]Read from MH i2c: E2 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 03 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 03 00 C1 2C 00 90 00 61 [17:14:10]RAPDU: 90 00 [17:14:10]wFMCommunicate OK [17:14:10]wFMCommunicate request_size=4 [17:14:10]MH_SAM_APDU [17:14:10]CAPDU: 80 0D 03 02 [17:14:10]Write to MH i2c: E2 08 00 C2 2C 80 0D 03 02 00 00 00 00 69 [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:10]Read from MH i2c: E2 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 0B 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 0B 00 C2 2C 00 35 8F 9F EF 66 EE 45 1B 90 00 70 [17:14:10]RAPDU: 35 8F 9F EF 66 EE 45 1B 90 00 [17:14:10]wFMCommunicate OK [17:14:10]SAM_PROTO_SignData done [17:14:10]FM_MakeSignedData done [17:14:10]CreateOFDProtocolMessage [17:14:10]wFMCommunicate request_size=4 [17:14:10]MH_SAM_APDU [17:14:10]CAPDU: 80 11 00 00 [17:14:10]Write to MH i2c: E2 08 00 C3 2C 80 11 00 00 00 00 00 00 69 [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:10]Read from MH i2c: E2 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 17 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 17 00 C3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BC [17:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:14:10]wFMCommunicate OK [17:14:10]CreateOFDProtocolMessage done [17:14:10]OFDSenderStorePacket 145784 [17:14:10]StoreOFDPacket docnum=145784 [17:14:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E1 C7 07 01 FB FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 E3 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 78 39 02 00 35 04 06 00 3C 5A E5 2C 38 49 35 8F 9F EF 66 EE 45 1B [17:14:10]CheckFolder [17:14:10]dirname=/storage/ofd_packets [17:14:10]CheckFolder done [17:14:10]ProducePacketName [17:14:10]name=ofd_packets/00145784 [17:14:10]NVStorageSaveData ofd_packets/00145784 [17:14:10]File name is /storage/ofd_packets/00145784 [17:14:10]Write 301 bytes [17:14:10]NVStorageSaveData done [17:14:10]OFDSenderStorePacket done [17:14:10]KKMCreateOFDPacket done [17:14:10]NVStorageSaveData kkm_last_timestamp [17:14:10]File name is /storage/kkm_last_timestamp [17:14:10]Write 4 bytes [17:14:10]NVStorageSaveData done [17:14:10]ExternCall_PrintAddStr [17:14:10]wPrintStart [17:14:10]Write to MH i2c: 01 00 00 C4 2C F0 [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: 01 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: 01 07 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: 01 07 00 C4 2C 00 00 00 00 00 FF 0F 05 [17:14:10]RasterBufferAndPrint [17:14:10]line Счет N : (1)160540 [17:14:10]line ИНН: 02508201610067 [17:14:10]line Контрольно-Кассовый Чек [17:14:10]line ПРОДАЖА [17:14:10]line ТРК (МРК, ГНК) : 42 [17:14:10]line Товар: 2710124130 [17:14:10]line Аи-92-К-2 [17:14:10]line 14.950 * 66.90 [17:14:10]line = 1000.16 [17:14:10]line НДС 12% НСП 1% [17:14:10]line > о реализуемом товаре [17:14:10]line ОКРУГЛЕНИЕ: -0.16 [17:14:10]line ИТОГО: 1000.00 [17:14:10]line Внесено: 1000.00 [17:14:10]line СДАЧА: 0.00 [17:14:10]line НСП 1% : 8.85 [17:14:10]line НДС 12% : 106.21 [17:14:10]line Наличными: 1000.00 [17:14:10]line Безнал.: 0.00 [17:14:10]line Место: АЗС № 126 "Партнер Нефть" [17:14:10]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:14:10]line СНО: Общий режим [17:14:10]line Чек 207 27.10.2024 17:14 [17:14:10]line Смена: 545 ФФД: 1.0 [17:14:10]line ЗНМ: 0300000085 [17:14:10]line РНМ: 0000000000091683 [17:14:10]line Версия ККМ: 001 [17:14:10]line ФМ: 0000000000871745 [17:14:10]line ФД: 145784 [17:14:10]line ФПД: 66361089603657 [17:14:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171411&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145784&fm=66361089603657&tin=02508201610067®Number=0000000000091683&sum=100000 [17:14:11]OFD Sender: Processing packet 145784 [packets to send 206, broken 205] [17:14:11]ProducePacketName [17:14:11]name=ofd_packets/00145784 [17:14:11]OFD Sender: To server: pG, [17:14:11]CommunicateWithHost lk.salyk.kg:30040 [17:14:11]ConnectInit lk.salyk.kg [17:14:11]written 0, free lines is 4095 [17:14:11]Connected sock=11 [17:14:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E1 C7 07 01 FB FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 E3 74 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 78 39 02 00 35 04 06 00 3C 5A E5 2C 38 49 35 8F 9F EF 66 EE 45 1B [17:14:11]Write to MH i2c: 01 00 00 EF 2C 1B [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: 01 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: 01 07 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: 01 07 00 EF 2C 00 00 00 00 00 B9 0C E7 [17:14:11]RasterBufferAndPrint [17:14:11]line [17:14:11]line [17:14:11]line [17:14:11]line [17:14:11]line [17:14:11]written 0, free lines is 3262 [17:14:11]MH_Cut [17:14:11]Write to MH i2c: D1 01 00 F6 2C 01 F4 [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: D1 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: D1 01 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: D1 01 00 F6 2C 00 F3 [17:14:11]Write to MH i2c: 01 00 00 F7 2C 23 [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 F7 42 47 00 78 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 31 37 34 35 10 04 04 00 78 39 02 00 F4 03 04 00 10 1A 1E 67 B6 04 01 00 00 B1 CC 4B CA D1 B8 18 60 [17:14:11]CommunicateWithHost err = 0 [17:14:11]CheckOFDResponse [17:14:11]1017 (14) - 77093643461234 [17:14:11]1041 (16) - 0000000000871745 [17:14:11]1040 (4) - 145784 [17:14:11]1012 (4) - 27.10.2024 10:46 [17:14:11]1206 (1) - 0 [17:14:11]OFD Sender: Remove packet 145784 [17:14:11]ProducePacketName [17:14:11]name=ofd_packets/00145784 [17:14:11]NVStorageDeleteData [17:14:12]OFD Sender: No OFD packet to send [17:14:12]*** Cut start [17:14:12]*** Partial cut [17:14:12]*** CUTSNS_PIN = 1 [17:14:12]*** CUTSNS_PIN = 0 [17:14:12]*** Brake cut motor [17:14:12]Read from MH i2c: 01 [17:14:12]MH_I2C_Read... [17:14:12]*** Stop cut motor [17:14:12]*** Cut end [17:14:12]Read from MH i2c: 01 07 00 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: 01 07 00 F7 2C 00 00 00 00 00 FF 0F 38 [17:14:12]process_action close_receipt done [17:14:12]requested_data is exist [17:14:12]produce_requested_data [17:14:12]requested_item fm.sn is exist - process it [17:14:12]wFMCommunicate request_size=4 [17:14:12]MH_SAM_APDU [17:14:12]CAPDU: 80 11 00 00 [17:14:12]Write to MH i2c: E2 08 00 F8 2C 80 11 00 00 00 00 00 00 9E [17:14:12]Write i2c OK [17:14:12]MH_I2C_Read... [17:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:13]Read from MH i2c: E2 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 17 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 17 00 F8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F1 [17:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:14:13]wFMCommunicate OK [17:14:13]requested_item fd.num is exist - process it [17:14:13]SAM_PROTO_GetFieldsCounters [17:14:13]wFMCommunicate request_size=4 [17:14:13]MH_SAM_APDU [17:14:13]CAPDU: 80 13 00 00 [17:14:13]Write to MH i2c: E2 08 00 F9 2C 80 13 00 00 00 00 00 00 A1 [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:13]Read from MH i2c: E2 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 62 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 62 00 F9 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 78 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [17:14:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 78 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:13]wFMCommunicate OK [17:14:13]SAM_PROTO_GetFieldsCounters done [17:14:13]requested_item shift.num is exist - process it [17:14:13]requested_item shift.opened is exist - process it [17:14:13]req_shift_opened [17:14:13]FM_GetShiftState [17:14:13]SAM_PROTO_GetShiftState [17:14:13]wFMCommunicate request_size=4 [17:14:13]MH_SAM_APDU [17:14:13]CAPDU: 80 13 01 00 [17:14:13]Write to MH i2c: E2 08 00 FA 2C 80 13 01 00 00 00 00 00 A3 [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:13]Read from MH i2c: E2 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 0E 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 0E 00 FA 2C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1B [17:14:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:14:13]wFMCommunicate OK [17:14:13]SAM_PROTO_GetShiftState done [17:14:13]FM_GetShiftState done [17:14:13]req_shift_opened done [17:14:13]requested_item shift.open_date is exist - process it [17:14:13]req_shift_open_date [17:14:13]req_shift_open_date done [17:14:13]produce_requested_data done [17:14:13]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145784,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:14:13]process_action_free close_receipt [17:14:13]json_value_free [17:14:13]json_value_free done [17:14:13]process_json_proto returns [17:14:13]Send response to host [17:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145784,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:14:13]free response buf [17:14:13]execute_script done [17:14:13]execute_script returns [17:14:13]free content buf [17:14:13]Sock 9.Close socket [17:14:13]Sock 9.Thread stoped [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:40]accept exits with 7 [17:20:40]New connection [17:20:40]New thread 3066596708 created [17:20:40]Thread 3066740068 joined [17:20:40]Waiting for new connection... [17:20:40] Sock 7.Parse request [17:20:40]Sock 7.Check first char [17:20:40]Sock 7.First char is OK [17:20:40]request: POST /json_proto HTTP/1.0 [17:20:40]Method: POST [17:20:40]URL: /json_proto [17:20:40]Method is POST - this is cgi request [17:20:40]url: /json_proto [17:20:40]query_string will be loaded in cgi processing [17:20:40]execute_cgi json_proto POST (null) [17:20:40]execute_cgi path=json_proto method=POST [17:20:40]POST find Content-Length [17:20:40]Host: 172.17.40.195:8080 [17:20:40]Content-Length: 984 [17:20:40]Content-Type: application/json [17:20:40] [17:20:40]POST finish read [17:20:40]Found Content-Length = 984 [17:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:40]execute_script... [17:20: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)160541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:40]POST & json_proto [17:20:40]process_json_proto [17:20:40]json parsed OK: [17:20:40]protocol is kg_v1.0 [17:20:40]action value=close_receipt [17:20:40]process_action close_receipt [17:20:40]cmd_close_receipt [17:20:40]MH_GetDate [17:20:40]Write to MH i2c: F0 00 00 FB 2C 16 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: F0 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: F0 09 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: F0 09 00 FB 2C 00 6A 76 1E 67 D5 8D 6C 64 B6 [17:20:40]GetLastDocTimeStamp 1730049251 [17:20:40]current date 1730049642 [17:20:40]FM_GetShiftState [17:20:40]SAM_PROTO_GetShiftState [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 13 01 00 [17:20:40]Write to MH i2c: E2 08 00 FC 2C 80 13 01 00 00 00 00 00 A5 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 0E 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 0E 00 FC 2C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1D [17:20:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:20:40]wFMCommunicate OK [17:20:40]SAM_PROTO_GetShiftState done [17:20:40]FM_GetShiftState done [17:20:40]opened in 1729988959 [17:20:40]opened+sec_in_day 1730075359 [17:20:40]quantity*price = 200006 [17:20:40]sum+1 = 200008 [17:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 208 27.10.2024 17:20 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-92 номер 126 сэкономлено 30.35 сом ФМ: 0000000000871745 ФД: 145785 ФПД: 64349922069149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172042&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145785&fm=64349922069149&tin=02508201610067®Number=0000000000091683&sum=200000 [17:20:41]StoreToDocumentArchive [17:20:41]shift 545 fd 145785 [17:20:41]save to /storage/0545/doc_00145785 [17:20:41]save last doc name /storage/0545/doc_00145785 to /storage/kkm_last_doc_name [17:20:41]save OK [17:20:41]Clear old archive folders... [17:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:41]tlvbuf is B6EA6CE0 [17:20:41]SAM_PROTO_ClearQueue [17:20:41]wFMCommunicate request_size=4 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 09 00 00 [17:20:41]Write to MH i2c: E2 08 00 09 2D 80 09 00 00 00 00 00 00 A8 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 09 2D 00 90 00 AA [17:20:41]RAPDU: 90 00 [17:20:41]wFMCommunicate OK [17:20:41]SAM_PROTO_ClearQueue done [17:20:41]KKMCreateOFDPacket [17:20:41]OFDProtocolAddRootSTLVToBuf [17:20:41]FM_MakeSignedData [17:20:41]FM_MakeSignedData [17:20:41]SAM_PROTO_SignData [17:20:41]wFMCommunicate request_size=4 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 0D 01 02 [17:20:41]Write to MH i2c: E2 08 00 0A 2D 80 0D 01 02 00 00 00 00 B0 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 0A 2D 00 90 00 AB [17:20:41]RAPDU: 90 00 [17:20:41]wFMCommunicate OK [17:20:41]wFMCommunicate request_size=255 [17:20:41]MH_SAM_APDU [17:20: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 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 F8 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 D0 00 00 00 F4 03 04 00 6A 76 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 79 39 02 00 35 04 06 00 3A [17:20:41]Write to MH i2c: E2 02 01 0B 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 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 F8 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 D0 00 00 00 F4 03 04 00 6A 76 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 79 39 02 00 35 04 06 00 3A 00 00 0B [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 0B 2D 00 90 00 AC [17:20:41]RAPDU: 90 00 [17:20:41]wFMCommunicate OK [17:20:41]wFMCommunicate request_size=10 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 0D 02 02 05 86 A2 3F 0A 9D [17:20:41]Write to MH i2c: E2 0D 00 0C 2D 80 0D 02 02 05 00 86 A2 3F 0A 9D 00 00 CB [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 0C 2D 00 90 00 AD [17:20:41]RAPDU: 90 00 [17:20:41]wFMCommunicate OK [17:20:41]wFMCommunicate request_size=4 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 0D 03 02 [17:20:41]Write to MH i2c: E2 08 00 0D 2D 80 0D 03 02 00 00 00 00 B5 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 0B 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 0B 00 0D 2D 00 F9 BC FD 31 E0 75 5A 9C 90 00 E4 [17:20:41]RAPDU: F9 BC FD 31 E0 75 5A 9C 90 00 [17:20:41]wFMCommunicate OK [17:20:41]SAM_PROTO_SignData done [17:20:41]FM_MakeSignedData done [17:20:41]CreateOFDProtocolMessage [17:20:41]wFMCommunicate request_size=4 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 11 00 00 [17:20:41]Write to MH i2c: E2 08 00 0E 2D 80 11 00 00 00 00 00 00 B5 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 17 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 17 00 0E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 08 [17:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:20:41]wFMCommunicate OK [17:20:41]CreateOFDProtocolMessage done [17:20:41]OFDSenderStorePacket 145785 [17:20:41]StoreOFDPacket docnum=145785 [17:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 8E 6E 07 01 5C 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 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 F8 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 D0 00 00 00 F4 03 04 00 6A 76 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 79 39 02 00 35 04 06 00 3A 86 A2 3F 0A 9D F9 BC FD 31 E0 75 5A 9C [17:20:41]CheckFolder [17:20:41]dirname=/storage/ofd_packets [17:20:41]CheckFolder done [17:20:41]ProducePacketName [17:20:41]name=ofd_packets/00145785 [17:20:41]NVStorageSaveData ofd_packets/00145785 [17:20:41]File name is /storage/ofd_packets/00145785 [17:20:41]Write 301 bytes [17:20:41]NVStorageSaveData done [17:20:41]OFDSenderStorePacket done [17:20:41]KKMCreateOFDPacket done [17:20:41]NVStorageSaveData kkm_last_timestamp [17:20:41]File name is /storage/kkm_last_timestamp [17:20:41]Write 4 bytes [17:20:41]NVStorageSaveData done [17:20:41]ExternCall_PrintAddStr [17:20:41]wPrintStart [17:20:41]Write to MH i2c: 01 00 00 0F 2D 3C [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 0F 2D 00 00 00 00 00 FF 0F 51 [17:20:41]RasterBufferAndPrint [17:20:41]line Счет N : (1)160541 [17:20:41]line ИНН: 02508201610067 [17:20:41]line Контрольно-Кассовый Чек [17:20:41]line ПРОДАЖА [17:20:41]line ТРК (МРК, ГНК) : 32 [17:20:41]line Товар: 2710124130 [17:20:41]line Аи-92-К-2 [17:20:41]line 30.350 * 65.90 [17:20:41]line = 2000.07 [17:20:41]line НДС 12% НСП 1% [17:20:41]line > о реализуемом товаре [17:20:41]line ОКРУГЛЕНИЕ: -0.07 [17:20:41]line ИТОГО: 2000.00 [17:20:41]line Внесено: 2000.00 [17:20:41]line СДАЧА: 0.00 [17:20:41]line НСП 1% : 17.70 [17:20:41]line НДС 12% : 212.40 [17:20:41]line Наличными: 2000.00 [17:20:41]line Безнал.: 0.00 [17:20:41]line Место: АЗС № 126 "Партнер Нефть" [17:20:41]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:20:41]line СНО: Общий режим [17:20:41]line Чек 208 27.10.2024 17:20 [17:20:41]line Смена: 545 ФФД: 1.0 [17:20:41]line ЗНМ: 0300000085 [17:20:41]line РНМ: 0000000000091683 [17:20:41]line Версия ККМ: 001 [17:20:41]line [17:20:41]line Дисконтная программа [17:20:41]line АИ-92 [17:20:41]line номер 126 [17:20:41]line сэкономлено 30.35 сом [17:20:41]line ФМ: 0000000000871745 [17:20:41]line ФД: 145785 [17:20:41]line ФПД: 64349922069149 [17:20:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172042&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145785&fm=64349922069149&tin=02508201610067®Number=0000000000091683&sum=200000 [17:20:42]OFD Sender: Processing packet 145785 [packets to send 206, broken 205] [17:20:42]ProducePacketName [17:20:42]name=ofd_packets/00145785 [17:20:42]OFD Sender: To server: pG, [17:20:42]CommunicateWithHost lk.salyk.kg:30040 [17:20:42]ConnectInit lk.salyk.kg [17:20:42]written 0, free lines is 4095 [17:20:42]Connected sock=10 [17:20:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 8E 6E 07 01 5C 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 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 F8 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 D0 00 00 00 F4 03 04 00 6A 76 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 79 39 02 00 35 04 06 00 3A 86 A2 3F 0A 9D F9 BC FD 31 E0 75 5A 9C [17:20:42]Write to MH i2c: 01 00 00 3F 2D 6C [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: 01 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: 01 07 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: 01 07 00 3F 2D 00 00 00 00 00 54 0C D3 [17:20:42]RasterBufferAndPrint [17:20:42]line [17:20:42]line [17:20:42]line [17:20:42]line [17:20:42]line [17:20:42]written 0, free lines is 3161 [17:20:42]MH_Cut [17:20:42]Write to MH i2c: D1 01 00 46 2D 01 45 [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: D1 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: D1 01 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: D1 01 00 46 2D 00 44 [17:20:42]Write to MH i2c: 01 00 00 47 2D 74 [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 76 8B 47 00 E0 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 31 37 34 35 10 04 04 00 79 39 02 00 F4 03 04 00 97 1B 1E 67 B6 04 01 00 00 CE AD BF CE 33 93 6F 7A [17:20:42]CommunicateWithHost err = 0 [17:20:42]CheckOFDResponse [17:20:42]1017 (14) - 77093643461234 [17:20:42]1041 (16) - 0000000000871745 [17:20:42]1040 (4) - 145785 [17:20:42]1012 (4) - 27.10.2024 10:53 [17:20:42]1206 (1) - 0 [17:20:42]OFD Sender: Remove packet 145785 [17:20:42]ProducePacketName [17:20:42]name=ofd_packets/00145785 [17:20:42]NVStorageDeleteData [17:20:43]OFD Sender: No OFD packet to send [17:20:43]*** Cut start [17:20:43]*** Partial cut [17:20:43]*** CUTSNS_PIN = 1 [17:20:43]*** CUTSNS_PIN = 0 [17:20:43]*** Brake cut motor [17:20:44]Read from MH i2c: 01 [17:20:44]MH_I2C_Read... [17:20:44]*** Stop cut motor [17:20:44]*** Cut end [17:20:44]Read from MH i2c: 01 07 00 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: 01 07 00 47 2D 00 00 00 00 00 FF 0F 89 [17:20:44]process_action close_receipt done [17:20:44]requested_data is exist [17:20:44]produce_requested_data [17:20:44]requested_item fm.sn is exist - process it [17:20:44]wFMCommunicate request_size=4 [17:20:44]MH_SAM_APDU [17:20:44]CAPDU: 80 11 00 00 [17:20:44]Write to MH i2c: E2 08 00 48 2D 80 11 00 00 00 00 00 00 EF [17:20:44]Write i2c OK [17:20:44]MH_I2C_Read... [17:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:44]Read from MH i2c: E2 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 17 00 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 17 00 48 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 42 [17:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:20:44]wFMCommunicate OK [17:20:44]requested_item fd.num is exist - process it [17:20:44]SAM_PROTO_GetFieldsCounters [17:20:44]wFMCommunicate request_size=4 [17:20:44]MH_SAM_APDU [17:20:44]CAPDU: 80 13 00 00 [17:20:44]Write to MH i2c: E2 08 00 49 2D 80 13 00 00 00 00 00 00 F2 [17:20:44]Write i2c OK [17:20:44]MH_I2C_Read... [17:20:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:44]Read from MH i2c: E2 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 62 00 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 62 00 49 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 79 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [17:20:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 79 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:44]wFMCommunicate OK [17:20:44]SAM_PROTO_GetFieldsCounters done [17:20:44]requested_item shift.num is exist - process it [17:20:44]requested_item shift.opened is exist - process it [17:20:44]req_shift_opened [17:20:44]FM_GetShiftState [17:20:44]SAM_PROTO_GetShiftState [17:20:44]wFMCommunicate request_size=4 [17:20:44]MH_SAM_APDU [17:20:44]CAPDU: 80 13 01 00 [17:20:44]Write to MH i2c: E2 08 00 4A 2D 80 13 01 00 00 00 00 00 F4 [17:20:44]Write i2c OK [17:20:44]MH_I2C_Read... [17:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:44]Read from MH i2c: E2 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 0E 00 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 0E 00 4A 2D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6C [17:20:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:20:44]wFMCommunicate OK [17:20:44]SAM_PROTO_GetShiftState done [17:20:44]FM_GetShiftState done [17:20:44]req_shift_opened done [17:20:44]requested_item shift.open_date is exist - process it [17:20:44]req_shift_open_date [17:20:44]req_shift_open_date done [17:20:44]produce_requested_data done [17:20:44]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145785,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:20:44]process_action_free close_receipt [17:20:44]json_value_free [17:20:44]json_value_free done [17:20:44]process_json_proto returns [17:20:44]Send response to host [17:20:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145785,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:20:44]free response buf [17:20:44]execute_script done [17:20:44]execute_script returns [17:20:44]free content buf [17:20:44]Sock 7.Close socket [17:20:44]Sock 7.Thread stoped [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:21]accept exits with 9 [17:22:21]New connection [17:22:21]New thread 3066740068 created [17:22:21]Thread 3066596708 joined [17:22:21]Waiting for new connection... [17:22:21] Sock 9.Parse request [17:22:21]Sock 9.Check first char [17:22:21]Sock 9.First char is OK [17:22:21]request: POST /json_proto HTTP/1.0 [17:22:21]Method: POST [17:22:21]URL: /json_proto [17:22:21]Method is POST - this is cgi request [17:22:21]url: /json_proto [17:22:21]query_string will be loaded in cgi processing [17:22:21]execute_cgi json_proto POST (null) [17:22:21]execute_cgi path=json_proto method=POST [17:22:21]POST find Content-Length [17:22:21]Host: 172.17.40.195:8080 [17:22:21]Content-Length: 766 [17:22:21]Content-Type: application/json [17:22:21] [17:22:21]POST finish read [17:22:21]Found Content-Length = 766 [17:22:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:21]execute_script... [17:22: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)160543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:21]POST & json_proto [17:22:21]process_json_proto [17:22:21]json parsed OK: [17:22:21]protocol is kg_v1.0 [17:22:21]action value=close_receipt [17:22:21]process_action close_receipt [17:22:21]cmd_close_receipt [17:22:21]MH_GetDate [17:22:21]Write to MH i2c: F0 00 00 4B 2D 67 [17:22:21]Write i2c OK [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: F0 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: F0 09 00 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: F0 09 00 4B 2D 00 D0 76 1E 67 D5 8D 6C 64 6D [17:22:21]GetLastDocTimeStamp 1730049642 [17:22:21]current date 1730049744 [17:22:21]FM_GetShiftState [17:22:21]SAM_PROTO_GetShiftState [17:22:21]wFMCommunicate request_size=4 [17:22:21]MH_SAM_APDU [17:22:21]CAPDU: 80 13 01 00 [17:22:21]Write to MH i2c: E2 08 00 4C 2D 80 13 01 00 00 00 00 00 F6 [17:22:21]Write i2c OK [17:22:21]MH_I2C_Read... [17:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:21]Read from MH i2c: E2 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 0E 00 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 0E 00 4C 2D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6E [17:22:21]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:22:21]wFMCommunicate OK [17:22:21]SAM_PROTO_GetShiftState done [17:22:21]FM_GetShiftState done [17:22:21]opened in 1729988959 [17:22:21]opened+sec_in_day 1730075359 [17:22:21]quantity*price = 50041 [17:22:21]sum+1 = 50042 [17:22:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 209 27.10.2024 17:22 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145786 ФПД: 152996396756272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172224&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145786&fm=152996396756272&tin=02508201610067®Number=0000000000091683&sum=50041 [17:22:23]StoreToDocumentArchive [17:22:23]shift 545 fd 145786 [17:22:23]save to /storage/0545/doc_00145786 [17:22:23]save last doc name /storage/0545/doc_00145786 to /storage/kkm_last_doc_name [17:22:23]save OK [17:22:23]Clear old archive folders... [17:22:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:23]tlvbuf is 00403530 [17:22:23]SAM_PROTO_ClearQueue [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 09 00 00 [17:22:23]Write to MH i2c: E2 08 00 59 2D 80 09 00 00 00 00 00 00 F8 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 59 2D 00 90 00 FA [17:22:23]RAPDU: 90 00 [17:22:23]wFMCommunicate OK [17:22:23]SAM_PROTO_ClearQueue done [17:22:23]KKMCreateOFDPacket [17:22:23]OFDProtocolAddRootSTLVToBuf [17:22:23]FM_MakeSignedData [17:22:23]FM_MakeSignedData [17:22:23]SAM_PROTO_SignData [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 0D 01 02 [17:22:23]Write to MH i2c: E2 08 00 5A 2D 80 0D 01 02 00 00 00 00 00 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 5A 2D 00 90 00 FB [17:22:23]RAPDU: 90 00 [17:22:23]wFMCommunicate OK [17:22:23]wFMCommunicate request_size=255 [17:22:23]MH_SAM_APDU [17:22: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D0 76 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7A 39 02 00 35 04 06 00 8B [17:22:23]Write to MH i2c: E2 02 01 5B 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D0 76 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7A 39 02 00 35 04 06 00 8B 00 00 DF [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 5B 2D 00 90 00 FC [17:22:23]RAPDU: 90 00 [17:22:23]wFMCommunicate OK [17:22:23]wFMCommunicate request_size=10 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 0D 02 02 05 26 3F E1 6D 30 [17:22:23]Write to MH i2c: E2 0D 00 5C 2D 80 0D 02 02 05 00 26 3F E1 6D 30 00 00 F0 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 5C 2D 00 90 00 FD [17:22:23]RAPDU: 90 00 [17:22:23]wFMCommunicate OK [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 0D 03 02 [17:22:23]Write to MH i2c: E2 08 00 5D 2D 80 0D 03 02 00 00 00 00 05 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]OFD Sender: No OFD packet to send [17:22:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0B 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0B 00 5D 2D 00 F1 41 0E F2 AD 08 C6 45 90 00 F8 [17:22:23]RAPDU: F1 41 0E F2 AD 08 C6 45 90 00 [17:22:23]wFMCommunicate OK [17:22:23]SAM_PROTO_SignData done [17:22:23]FM_MakeSignedData done [17:22:23]CreateOFDProtocolMessage [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 11 00 00 [17:22:23]Write to MH i2c: E2 08 00 5E 2D 80 11 00 00 00 00 00 00 05 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 17 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 17 00 5E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 58 [17:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:22:23]wFMCommunicate OK [17:22:23]CreateOFDProtocolMessage done [17:22:23]OFDSenderStorePacket 145786 [17:22:23]StoreOFDPacket docnum=145786 [17:22:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 05 DF 07 01 CB 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D0 76 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7A 39 02 00 35 04 06 00 8B 26 3F E1 6D 30 F1 41 0E F2 AD 08 C6 45 [17:22:23]CheckFolder [17:22:23]dirname=/storage/ofd_packets [17:22:23]CheckFolder done [17:22:23]ProducePacketName [17:22:23]name=ofd_packets/00145786 [17:22:23]NVStorageSaveData ofd_packets/00145786 [17:22:23]File name is /storage/ofd_packets/00145786 [17:22:23]Write 301 bytes [17:22:23]NVStorageSaveData done [17:22:23]OFDSenderStorePacket done [17:22:23]KKMCreateOFDPacket done [17:22:23]NVStorageSaveData kkm_last_timestamp [17:22:23]File name is /storage/kkm_last_timestamp [17:22:23]Write 4 bytes [17:22:23]NVStorageSaveData done [17:22:23]ExternCall_PrintAddStr [17:22:23]wPrintStart [17:22:23]Write to MH i2c: 01 00 00 5F 2D 8C [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: 01 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: 01 07 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: 01 07 00 5F 2D 00 00 00 00 00 FF 0F A1 [17:22:23]RasterBufferAndPrint [17:22:23]line Счет N : (1)160543 [17:22:23]line ИНН: 02508201610067 [17:22:23]line Контрольно-Кассовый Чек [17:22:23]line ПРОДАЖА [17:22:23]line ТРК (МРК, ГНК) : 42 [17:22:23]line Товар: 2710124130 [17:22:23]line Аи-92-К-2 [17:22:23]line 7.480 * 66.90 [17:22:23]line = 500.41 [17:22:23]line НДС 12% НСП 1% [17:22:23]line > о реализуемом товаре [17:22:23]line ИТОГО: 500.41 [17:22:23]line НСП 1% : 4.43 [17:22:23]line НДС 12% : 53.14 [17:22:23]line Наличными: 0.00 [17:22:23]line Безнал.: 500.41 [17:22:23]line Место: АЗС № 126 "Партнер Нефть" [17:22:23]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:22:23]line СНО: Общий режим [17:22:23]line Чек 209 27.10.2024 17:22 [17:22:23]line Смена: 545 ФФД: 1.0 [17:22:23]line ЗНМ: 0300000085 [17:22:23]line РНМ: 0000000000091683 [17:22:23]line Версия ККМ: 001 [17:22:23]line Платежная система: Mbank [17:22:23]line ФМ: 0000000000871745 [17:22:23]line ФД: 145786 [17:22:23]line ФПД: 152996396756272 [17:22:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172224&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145786&fm=152996396756272&tin=02508201610067®Number=0000000000091683&sum=50041 [17:22:23]OFD Sender: Processing packet 145786 [packets to send 206, broken 205] [17:22:23]ProducePacketName [17:22:23]name=ofd_packets/00145786 [17:22:23]OFD Sender: To server: pG, [17:22:23]CommunicateWithHost lk.salyk.kg:30040 [17:22:23]ConnectInit lk.salyk.kg [17:22:23]written 0, free lines is 4095 [17:22:24]Connected sock=10 [17:22:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 05 DF 07 01 CB 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D0 76 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7A 39 02 00 35 04 06 00 8B 26 3F E1 6D 30 F1 41 0E F2 AD 08 C6 45 [17:22:24]Write to MH i2c: 01 00 00 88 2D B5 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 07 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 07 00 88 2D 00 00 00 00 00 D8 0C A0 [17:22:24]RasterBufferAndPrint [17:22:24]line [17:22:24]line [17:22:24]line [17:22:24]line [17:22:24]line [17:22:24]written 0, free lines is 3294 [17:22:24]MH_Cut [17:22:24]Write to MH i2c: D1 01 00 8F 2D 01 8E [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: D1 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: D1 01 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: D1 01 00 8F 2D 00 8D [17:22:24]Write to MH i2c: 01 00 00 90 2D BD [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 BB 32 47 00 01 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7A 39 02 00 F4 03 04 00 FD 1B 1E 67 B6 04 01 00 00 EC 0A C7 BE D4 9A AB 09 [17:22:24]CommunicateWithHost err = 0 [17:22:24]CheckOFDResponse [17:22:24]1017 (14) - 77093643461234 [17:22:24]1041 (16) - 0000000000871745 [17:22:24]1040 (4) - 145786 [17:22:24]1012 (4) - 27.10.2024 10:54 [17:22:24]1206 (1) - 0 [17:22:24]OFD Sender: Remove packet 145786 [17:22:24]ProducePacketName [17:22:24]name=ofd_packets/00145786 [17:22:24]NVStorageDeleteData [17:22:25]OFD Sender: No OFD packet to send [17:22:25]*** Cut start [17:22:25]*** Partial cut [17:22:25]*** CUTSNS_PIN = 1 [17:22:25]*** CUTSNS_PIN = 0 [17:22:25]*** Brake cut motor [17:22:25]Read from MH i2c: 01 [17:22:25]MH_I2C_Read... [17:22:25]*** Stop cut motor [17:22:25]*** Cut end [17:22:25]Read from MH i2c: 01 07 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 07 00 90 2D 00 00 00 00 00 FF 0F D2 [17:22:25]process_action close_receipt done [17:22:25]requested_data is exist [17:22:25]produce_requested_data [17:22:25]requested_item fm.sn is exist - process it [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 11 00 00 [17:22:25]Write to MH i2c: E2 08 00 91 2D 80 11 00 00 00 00 00 00 38 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 17 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 17 00 91 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8B [17:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:22:25]wFMCommunicate OK [17:22:25]requested_item fd.num is exist - process it [17:22:25]SAM_PROTO_GetFieldsCounters [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 13 00 00 [17:22:25]Write to MH i2c: E2 08 00 92 2D 80 13 00 00 00 00 00 00 3B [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 62 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 62 00 92 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [17:22:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:26]wFMCommunicate OK [17:22:26]SAM_PROTO_GetFieldsCounters done [17:22:26]requested_item shift.num is exist - process it [17:22:26]requested_item shift.opened is exist - process it [17:22:26]req_shift_opened [17:22:26]FM_GetShiftState [17:22:26]SAM_PROTO_GetShiftState [17:22:26]wFMCommunicate request_size=4 [17:22:26]MH_SAM_APDU [17:22:26]CAPDU: 80 13 01 00 [17:22:26]Write to MH i2c: E2 08 00 93 2D 80 13 01 00 00 00 00 00 3D [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 0E 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 0E 00 93 2D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B5 [17:22:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:22:26]wFMCommunicate OK [17:22:26]SAM_PROTO_GetShiftState done [17:22:26]FM_GetShiftState done [17:22:26]req_shift_opened done [17:22:26]requested_item shift.open_date is exist - process it [17:22:26]req_shift_open_date [17:22:26]req_shift_open_date done [17:22:26]produce_requested_data done [17:22:26]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145786,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:22:26]process_action_free close_receipt [17:22:26]json_value_free [17:22:26]json_value_free done [17:22:26]process_json_proto returns [17:22:26]Send response to host [17:22:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145786,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:22:26]free response buf [17:22:26]execute_script done [17:22:26]execute_script returns [17:22:26]free content buf [17:22:26]Sock 9.Close socket [17:22:26]Sock 9.Thread stoped [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:16]accept exits with 7 [17:25:16]New connection [17:25:16]New thread 3066596708 created [17:25:16]Thread 3066740068 joined [17:25:16]Waiting for new connection... [17:25:16] Sock 7.Parse request [17:25:16]Sock 7.Check first char [17:25:16]Sock 7.First char is OK [17:25:16]request: POST /json_proto HTTP/1.0 [17:25:16]Method: POST [17:25:16]URL: /json_proto [17:25:16]Method is POST - this is cgi request [17:25:16]url: /json_proto [17:25:16]query_string will be loaded in cgi processing [17:25:16]execute_cgi json_proto POST (null) [17:25:16]execute_cgi path=json_proto method=POST [17:25:16]POST find Content-Length [17:25:16]Host: 172.17.40.195:8080 [17:25:16]Content-Length: 767 [17:25:16]Content-Type: application/json [17:25:16] [17:25:16]POST finish read [17:25:16]Found Content-Length = 767 [17:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:16]execute_script... [17:25:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:16]POST & json_proto [17:25:16]process_json_proto [17:25:16]json parsed OK: [17:25:16]protocol is kg_v1.0 [17:25:16]action value=close_receipt [17:25:16]process_action close_receipt [17:25:16]cmd_close_receipt [17:25:16]MH_GetDate [17:25:16]Write to MH i2c: F0 00 00 94 2D B0 [17:25:16]Write i2c OK [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: F0 [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: F0 09 00 [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: F0 09 00 94 2D 00 7F 77 1E 67 D5 8D 6C 64 66 [17:25:16]GetLastDocTimeStamp 1730049744 [17:25:16]current date 1730049919 [17:25:16]FM_GetShiftState [17:25:16]SAM_PROTO_GetShiftState [17:25:16]wFMCommunicate request_size=4 [17:25:16]MH_SAM_APDU [17:25:16]CAPDU: 80 13 01 00 [17:25:16]Write to MH i2c: E2 08 00 95 2D 80 13 01 00 00 00 00 00 3F [17:25:16]Write i2c OK [17:25:16]MH_I2C_Read... [17:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:16]Read from MH i2c: E2 [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: E2 0E 00 [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: E2 0E 00 95 2D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B7 [17:25:16]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:25:16]wFMCommunicate OK [17:25:16]SAM_PROTO_GetShiftState done [17:25:16]FM_GetShiftState done [17:25:16]opened in 1729988959 [17:25:16]opened+sec_in_day 1730075359 [17:25:16]quantity*price = 66900 [17:25:16]sum+1 = 66901 [17:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 0.00 Безнал.: 669.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 210 27.10.2024 17:25 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145787 ФПД: 79287080289059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172519&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145787&fm=79287080289059&tin=02508201610067®Number=0000000000091683&sum=66900 [17:25:18]StoreToDocumentArchive [17:25:18]shift 545 fd 145787 [17:25:18]save to /storage/0545/doc_00145787 [17:25:18]save last doc name /storage/0545/doc_00145787 to /storage/kkm_last_doc_name [17:25:18]save OK [17:25:18]Clear old archive folders... [17:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:18]tlvbuf is 004033C0 [17:25:18]SAM_PROTO_ClearQueue [17:25:18]wFMCommunicate request_size=4 [17:25:18]MH_SAM_APDU [17:25:18]CAPDU: 80 09 00 00 [17:25:18]Write to MH i2c: E2 08 00 A2 2D 80 09 00 00 00 00 00 00 41 [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:18]Read from MH i2c: E2 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 03 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 03 00 A2 2D 00 90 00 43 [17:25:18]RAPDU: 90 00 [17:25:18]wFMCommunicate OK [17:25:18]SAM_PROTO_ClearQueue done [17:25:18]KKMCreateOFDPacket [17:25:18]OFDProtocolAddRootSTLVToBuf [17:25:18]FM_MakeSignedData [17:25:18]FM_MakeSignedData [17:25:18]SAM_PROTO_SignData [17:25:18]wFMCommunicate request_size=4 [17:25:18]MH_SAM_APDU [17:25:18]CAPDU: 80 0D 01 02 [17:25:18]Write to MH i2c: E2 08 00 A3 2D 80 0D 01 02 00 00 00 00 49 [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:18]Read from MH i2c: E2 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 03 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 03 00 A3 2D 00 90 00 44 [17:25:18]RAPDU: 90 00 [17:25:18]wFMCommunicate OK [17:25:18]wFMCommunicate request_size=255 [17:25:18]MH_SAM_APDU [17:25: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 7F 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7B 39 02 00 35 04 06 00 48 [17:25:18]Write to MH i2c: E2 02 01 A4 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 7F 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7B 39 02 00 35 04 06 00 48 00 00 6E [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:18]Read from MH i2c: E2 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 03 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 03 00 A4 2D 00 90 00 45 [17:25:18]RAPDU: 90 00 [17:25:18]wFMCommunicate OK [17:25:18]wFMCommunicate request_size=10 [17:25:18]MH_SAM_APDU [17:25:18]CAPDU: 80 0D 02 02 05 1C 76 41 83 23 [17:25:18]Write to MH i2c: E2 0D 00 A5 2D 80 0D 02 02 05 00 1C 76 41 83 23 00 00 CF [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:18]Read from MH i2c: E2 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 03 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 03 00 A5 2D 00 90 00 46 [17:25:18]RAPDU: 90 00 [17:25:18]wFMCommunicate OK [17:25:18]wFMCommunicate request_size=4 [17:25:18]MH_SAM_APDU [17:25:18]CAPDU: 80 0D 03 02 [17:25:18]Write to MH i2c: E2 08 00 A6 2D 80 0D 03 02 00 00 00 00 4E [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:18]Read from MH i2c: E2 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 0B 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 0B 00 A6 2D 00 0A 46 A6 70 39 D3 EF 4C 90 00 FC [17:25:18]RAPDU: 0A 46 A6 70 39 D3 EF 4C 90 00 [17:25:18]wFMCommunicate OK [17:25:18]SAM_PROTO_SignData done [17:25:18]FM_MakeSignedData done [17:25:18]CreateOFDProtocolMessage [17:25:18]wFMCommunicate request_size=4 [17:25:18]MH_SAM_APDU [17:25:18]CAPDU: 80 11 00 00 [17:25:18]Write to MH i2c: E2 08 00 A7 2D 80 11 00 00 00 00 00 00 4E [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:18]Read from MH i2c: E2 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 17 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 17 00 A7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A1 [17:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:25:18]wFMCommunicate OK [17:25:18]CreateOFDProtocolMessage done [17:25:18]OFDSenderStorePacket 145787 [17:25:18]StoreOFDPacket docnum=145787 [17:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 06 9D 07 01 4A DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 7F 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7B 39 02 00 35 04 06 00 48 1C 76 41 83 23 0A 46 A6 70 39 D3 EF 4C [17:25:18]CheckFolder [17:25:18]dirname=/storage/ofd_packets [17:25:18]CheckFolder done [17:25:18]ProducePacketName [17:25:18]name=ofd_packets/00145787 [17:25:18]NVStorageSaveData ofd_packets/00145787 [17:25:18]File name is /storage/ofd_packets/00145787 [17:25:18]Write 301 bytes [17:25:18]NVStorageSaveData done [17:25:18]OFDSenderStorePacket done [17:25:18]KKMCreateOFDPacket done [17:25:18]NVStorageSaveData kkm_last_timestamp [17:25:18]File name is /storage/kkm_last_timestamp [17:25:18]Write 4 bytes [17:25:18]NVStorageSaveData done [17:25:18]ExternCall_PrintAddStr [17:25:18]wPrintStart [17:25:18]Write to MH i2c: 01 00 00 A8 2D D5 [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: 01 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: 01 07 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: 01 07 00 A8 2D 00 00 00 00 00 FF 0F EA [17:25:18]RasterBufferAndPrint [17:25:18]line Счет N : (1)160545 [17:25:18]line ИНН: 02508201610067 [17:25:18]line Контрольно-Кассовый Чек [17:25:18]line ПРОДАЖА [17:25:18]line ТРК (МРК, ГНК) : 62 [17:25:18]line Товар: 2710124130 [17:25:18]line Аи-92-К-2 [17:25:18]line 10.000 * 66.90 [17:25:18]line = 669.00 [17:25:18]line НДС 12% НСП 1% [17:25:18]line > о реализуемом товаре [17:25:18]line ИТОГО: 669.00 [17:25:18]line НСП 1% : 5.92 [17:25:18]line НДС 12% : 71.04 [17:25:18]line Наличными: 0.00 [17:25:18]line Безнал.: 669.00 [17:25:18]line Место: АЗС № 126 "Партнер Нефть" [17:25:18]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:25:18]line СНО: Общий режим [17:25:18]line Чек 210 27.10.2024 17:25 [17:25:18]line Смена: 545 ФФД: 1.0 [17:25:18]line ЗНМ: 0300000085 [17:25:18]line РНМ: 0000000000091683 [17:25:18]line Версия ККМ: 001 [17:25:18]line Платежная система: Mbank [17:25:18]line ФМ: 0000000000871745 [17:25:18]line ФД: 145787 [17:25:18]line ФПД: 79287080289059 [17:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172519&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145787&fm=79287080289059&tin=02508201610067®Number=0000000000091683&sum=66900 [17:25:18]OFD Sender: Processing packet 145787 [packets to send 206, broken 205] [17:25:18]ProducePacketName [17:25:18]name=ofd_packets/00145787 [17:25:18]OFD Sender: To server: pG, [17:25:18]CommunicateWithHost lk.salyk.kg:30040 [17:25:18]ConnectInit lk.salyk.kg [17:25:18]written 0, free lines is 4095 [17:25:19]Connected sock=10 [17:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 06 9D 07 01 4A DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 7F 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7B 39 02 00 35 04 06 00 48 1C 76 41 83 23 0A 46 A6 70 39 D3 EF 4C [17:25:19]Write to MH i2c: 01 00 00 D1 2D FE [17:25:19]Write i2c OK [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: 01 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: 01 07 00 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: 01 07 00 D1 2D 00 00 00 00 00 E1 0C F2 [17:25:19]RasterBufferAndPrint [17:25:19]line [17:25:19]line [17:25:19]line [17:25:19]line [17:25:19]line [17:25:19]written 0, free lines is 3302 [17:25:19]MH_Cut [17:25:19]Write to MH i2c: D1 01 00 D8 2D 01 D7 [17:25:19]Write i2c OK [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: D1 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: D1 01 00 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: D1 01 00 D8 2D 00 D6 [17:25:19]Write to MH i2c: 01 00 00 D9 2D 06 [17:25:19]Write i2c OK [17:25:19]MH_I2C_Read... [17:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 15 BD 47 00 5E 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7B 39 02 00 F4 03 04 00 AC 1C 1E 67 B6 04 01 00 00 11 8C 0A 3C 91 02 40 60 [17:25:19]CommunicateWithHost err = 0 [17:25:19]CheckOFDResponse [17:25:19]1017 (14) - 77093643461234 [17:25:19]1041 (16) - 0000000000871745 [17:25:19]1040 (4) - 145787 [17:25:19]1012 (4) - 27.10.2024 10:57 [17:25:19]1206 (1) - 0 [17:25:19]OFD Sender: Remove packet 145787 [17:25:19]ProducePacketName [17:25:19]name=ofd_packets/00145787 [17:25:19]NVStorageDeleteData [17:25:19]OFD Sender: No OFD packet to send [17:25:20]*** Cut start [17:25:20]*** Partial cut [17:25:20]*** CUTSNS_PIN = 1 [17:25:20]*** CUTSNS_PIN = 0 [17:25:20]*** Brake cut motor [17:25:20]Read from MH i2c: 01 [17:25:20]MH_I2C_Read... [17:25:20]*** Stop cut motor [17:25:20]*** Cut end [17:25:20]Read from MH i2c: 01 07 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: 01 07 00 D9 2D 00 00 00 00 00 FF 0F 1B [17:25:20]process_action close_receipt done [17:25:20]requested_data is exist [17:25:20]produce_requested_data [17:25:20]requested_item fm.sn is exist - process it [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 11 00 00 [17:25:20]Write to MH i2c: E2 08 00 DA 2D 80 11 00 00 00 00 00 00 81 [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 17 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 17 00 DA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D4 [17:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:25:20]wFMCommunicate OK [17:25:20]requested_item fd.num is exist - process it [17:25:20]SAM_PROTO_GetFieldsCounters [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 13 00 00 [17:25:20]Write to MH i2c: E2 08 00 DB 2D 80 13 00 00 00 00 00 00 84 [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 62 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 62 00 DB 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [17: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:20]wFMCommunicate OK [17:25:20]SAM_PROTO_GetFieldsCounters done [17:25:20]requested_item shift.num is exist - process it [17:25:20]requested_item shift.opened is exist - process it [17:25:20]req_shift_opened [17:25:20]FM_GetShiftState [17:25:20]SAM_PROTO_GetShiftState [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 13 01 00 [17:25:20]Write to MH i2c: E2 08 00 DC 2D 80 13 01 00 00 00 00 00 86 [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 0E 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 0E 00 DC 2D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FE [17:25:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:25:20]wFMCommunicate OK [17:25:20]SAM_PROTO_GetShiftState done [17:25:20]FM_GetShiftState done [17:25:20]req_shift_opened done [17:25:20]requested_item shift.open_date is exist - process it [17:25:20]req_shift_open_date [17:25:20]req_shift_open_date done [17:25:20]produce_requested_data done [17:25:20]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145787,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:25:20]process_action_free close_receipt [17:25:20]json_value_free [17:25:20]json_value_free done [17:25:20]process_json_proto returns [17:25:20]Send response to host [17:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145787,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:25:20]free response buf [17:25:20]execute_script done [17:25:20]execute_script returns [17:25:20]free content buf [17:25:20]Sock 7.Close socket [17:25:20]Sock 7.Thread stoped [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:56]accept exits with 9 [17:25:56]New connection [17:25:56]New thread 3066740068 created [17:25:56]Thread 3066596708 joined [17:25:56]Waiting for new connection... [17:25:56] Sock 9.Parse request [17:25:56]Sock 9.Check first char [17:25:56]Sock 9.First char is OK [17:25:56]request: POST /json_proto HTTP/1.0 [17:25:56]Method: POST [17:25:56]URL: /json_proto [17:25:56]Method is POST - this is cgi request [17:25:56]url: /json_proto [17:25:56]query_string will be loaded in cgi processing [17:25:56]execute_cgi json_proto POST (null) [17:25:56]execute_cgi path=json_proto method=POST [17:25:56]POST find Content-Length [17:25:56]Host: 172.17.40.195:8080 [17:25:56]Content-Length: 682 [17:25:56]Content-Type: application/json [17:25:56] [17:25:56]POST finish read [17:25:56]Found Content-Length = 682 [17:25:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:25:56]execute_script... [17:25:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:25:56]POST & json_proto [17:25:56]process_json_proto [17:25:56]json parsed OK: [17:25:56]protocol is kg_v1.0 [17:25:56]action value=close_receipt [17:25:56]process_action close_receipt [17:25:56]cmd_close_receipt [17:25:56]MH_GetDate [17:25:56]Write to MH i2c: F0 00 00 DD 2D F9 [17:25:56]Write i2c OK [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: F0 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: F0 09 00 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: F0 09 00 DD 2D 00 A7 77 1E 67 D5 8D 6C 64 D7 [17:25:56]GetLastDocTimeStamp 1730049919 [17:25:56]current date 1730049959 [17:25:56]FM_GetShiftState [17:25:56]SAM_PROTO_GetShiftState [17:25:56]wFMCommunicate request_size=4 [17:25:56]MH_SAM_APDU [17:25:56]CAPDU: 80 13 01 00 [17:25:56]Write to MH i2c: E2 08 00 DE 2D 80 13 01 00 00 00 00 00 88 [17:25:56]Write i2c OK [17:25:56]MH_I2C_Read... [17:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:57]Read from MH i2c: E2 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 0E 00 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 0E 00 DE 2D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 00 [17:25:57]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:25:57]wFMCommunicate OK [17:25:57]SAM_PROTO_GetShiftState done [17:25:57]FM_GetShiftState done [17:25:57]opened in 1729988959 [17:25:57]opened+sec_in_day 1730075359 [17:25:57]quantity*price = 100021 [17:25:57]sum+1 = 100023 [17:25:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 211 27.10.2024 17:25 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145788 ФПД: 157433660931599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172559&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145788&fm=157433660931599&tin=02508201610067®Number=0000000000091683&sum=100000 [17:25:58]StoreToDocumentArchive [17:25:58]shift 545 fd 145788 [17:25:58]save to /storage/0545/doc_00145788 [17:25:58]save last doc name /storage/0545/doc_00145788 to /storage/kkm_last_doc_name [17:25:58]save OK [17:25:58]Clear old archive folders... [17:25:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:58]tlvbuf is 003FBB20 [17:25:58]SAM_PROTO_ClearQueue [17:25:58]wFMCommunicate request_size=4 [17:25:58]MH_SAM_APDU [17:25:58]CAPDU: 80 09 00 00 [17:25:58]Write to MH i2c: E2 08 00 EC 2D 80 09 00 00 00 00 00 00 8B [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:58]Read from MH i2c: E2 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 03 00 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 03 00 EC 2D 00 90 00 8D [17:25:58]RAPDU: 90 00 [17:25:58]wFMCommunicate OK [17:25:58]SAM_PROTO_ClearQueue done [17:25:58]KKMCreateOFDPacket [17:25:58]OFDProtocolAddRootSTLVToBuf [17:25:58]FM_MakeSignedData [17:25:58]FM_MakeSignedData [17:25:58]SAM_PROTO_SignData [17:25:58]wFMCommunicate request_size=4 [17:25:58]MH_SAM_APDU [17:25:58]CAPDU: 80 0D 01 02 [17:25:58]Write to MH i2c: E2 08 00 ED 2D 80 0D 01 02 00 00 00 00 93 [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:58]Read from MH i2c: E2 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 03 00 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 03 00 ED 2D 00 90 00 8E [17:25:58]RAPDU: 90 00 [17:25:58]wFMCommunicate OK [17:25:58]wFMCommunicate request_size=255 [17:25:58]MH_SAM_APDU [17:25: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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 A7 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7C 39 02 00 35 04 06 00 8F [17:25:58]Write to MH i2c: E2 02 01 EE 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 A7 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7C 39 02 00 35 04 06 00 8F 00 00 1E [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:58]Read from MH i2c: E2 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 03 00 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 03 00 EE 2D 00 90 00 8F [17:25:58]RAPDU: 90 00 [17:25:58]wFMCommunicate OK [17:25:58]wFMCommunicate request_size=10 [17:25:58]MH_SAM_APDU [17:25:58]CAPDU: 80 0D 02 02 05 2F 61 6F 7E 0F [17:25:58]Write to MH i2c: E2 0D 00 EF 2D 80 0D 02 02 05 00 2F 61 6F 7E 0F 00 00 2C [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:58]Read from MH i2c: E2 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 03 00 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 03 00 EF 2D 00 90 00 90 [17:25:58]RAPDU: 90 00 [17:25:58]wFMCommunicate OK [17:25:58]wFMCommunicate request_size=4 [17:25:58]MH_SAM_APDU [17:25:58]CAPDU: 80 0D 03 02 [17:25:58]Write to MH i2c: E2 08 00 F0 2D 80 0D 03 02 00 00 00 00 98 [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:58]Read from MH i2c: E2 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 0B 00 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 0B 00 F0 2D 00 EC 8A CD DA 1B 5C 6B E7 90 00 7F [17:25:58]RAPDU: EC 8A CD DA 1B 5C 6B E7 90 00 [17:25:58]wFMCommunicate OK [17:25:58]SAM_PROTO_SignData done [17:25:58]FM_MakeSignedData done [17:25:58]CreateOFDProtocolMessage [17:25:58]wFMCommunicate request_size=4 [17:25:58]MH_SAM_APDU [17:25:58]CAPDU: 80 11 00 00 [17:25:58]Write to MH i2c: E2 08 00 F1 2D 80 11 00 00 00 00 00 00 98 [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:58]Read from MH i2c: E2 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 17 00 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 17 00 F1 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EB [17:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:25:58]wFMCommunicate OK [17:25:58]CreateOFDProtocolMessage done [17:25:58]OFDSenderStorePacket 145788 [17:25:58]StoreOFDPacket docnum=145788 [17:25:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 0D 87 07 01 C0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 A7 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7C 39 02 00 35 04 06 00 8F 2F 61 6F 7E 0F EC 8A CD DA 1B 5C 6B E7 [17:25:58]CheckFolder [17:25:58]dirname=/storage/ofd_packets [17:25:58]CheckFolder done [17:25:58]ProducePacketName [17:25:58]name=ofd_packets/00145788 [17:25:58]NVStorageSaveData ofd_packets/00145788 [17:25:58]File name is /storage/ofd_packets/00145788 [17:25:58]Write 301 bytes [17:25:58]NVStorageSaveData done [17:25:58]OFDSenderStorePacket done [17:25:58]KKMCreateOFDPacket done [17:25:58]NVStorageSaveData kkm_last_timestamp [17:25:58]File name is /storage/kkm_last_timestamp [17:25:58]Write 4 bytes [17:25:58]NVStorageSaveData done [17:25:58]ExternCall_PrintAddStr [17:25:58]wPrintStart [17:25:58]Write to MH i2c: 01 00 00 F2 2D 1F [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: 01 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: 01 07 00 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: 01 07 00 F2 2D 00 00 00 00 00 FF 0F 34 [17:25:58]RasterBufferAndPrint [17:25:58]line Счет N : (1)160546 [17:25:58]line ИНН: 02508201610067 [17:25:58]line Контрольно-Кассовый Чек [17:25:58]line ПРОДАЖА [17:25:58]line ТРК (МРК, ГНК) : 43 [17:25:58]line Товар: 2710124500 [17:25:58]line Аи-95-К-3 [17:25:58]line 13.480 * 74.20 [17:25:58]line = 1000.22 [17:25:58]line НДС 12% НСП 1% [17:25:58]line > о реализуемом товаре [17:25:58]line ОКРУГЛЕНИЕ: -0.22 [17:25:58]line ИТОГО: 1000.00 [17:25:58]line Внесено: 1000.00 [17:25:58]line СДАЧА: 0.00 [17:25:58]line НСП 1% : 8.85 [17:25:58]line НДС 12% : 106.22 [17:25:58]line Наличными: 1000.00 [17:25:58]line Безнал.: 0.00 [17:25:58]line Место: АЗС № 126 "Партнер Нефть" [17:25:58]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:25:58]line СНО: Общий режим [17:25:58]line Чек 211 27.10.2024 17:25 [17:25:58]line Смена: 545 ФФД: 1.0 [17:25:58]line ЗНМ: 0300000085 [17:25:58]line РНМ: 0000000000091683 [17:25:58]line Версия ККМ: 001 [17:25:58]line ФМ: 0000000000871745 [17:25:58]line ФД: 145788 [17:25:58]line ФПД: 157433660931599 [17:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172559&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145788&fm=157433660931599&tin=02508201610067®Number=0000000000091683&sum=100000 [17:25:59]OFD Sender: Processing packet 145788 [packets to send 206, broken 205] [17:25:59]ProducePacketName [17:25:59]name=ofd_packets/00145788 [17:25:59]OFD Sender: To server: pG, [17:25:59]CommunicateWithHost lk.salyk.kg:30040 [17:25:59]ConnectInit lk.salyk.kg [17:25:59]written 0, free lines is 4095 [17:25:59]Connected sock=10 [17:25:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 0D 87 07 01 C0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 A7 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7C 39 02 00 35 04 06 00 8F 2F 61 6F 7E 0F EC 8A CD DA 1B 5C 6B E7 [17:25:59]Write to MH i2c: 01 00 00 1D 2E 4B [17:25:59]Write i2c OK [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: 01 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: 01 07 00 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: 01 07 00 1D 2E 00 00 00 00 00 C5 0C 23 [17:25:59]RasterBufferAndPrint [17:25:59]line [17:25:59]line [17:25:59]line [17:25:59]line [17:25:59]line [17:25:59]written 0, free lines is 3275 [17:25:59]MH_Cut [17:25:59]Write to MH i2c: D1 01 00 24 2E 01 24 [17:25:59]Write i2c OK [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: D1 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: D1 01 00 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: D1 01 00 24 2E 00 23 [17:25:59]Write to MH i2c: 01 00 00 25 2E 53 [17:25:59]Write i2c OK [17:25:59]MH_I2C_Read... [17:25:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 50 F1 47 00 48 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 31 37 34 35 10 04 04 00 7C 39 02 00 F4 03 04 00 D4 1C 1E 67 B6 04 01 00 00 90 95 6A 4E 9C 17 AE 93 [17:25:59]CommunicateWithHost err = 0 [17:25:59]CheckOFDResponse [17:25:59]1017 (14) - 77093643461234 [17:25:59]1041 (16) - 0000000000871745 [17:25:59]1040 (4) - 145788 [17:25:59]1012 (4) - 27.10.2024 10:58 [17:25:59]1206 (1) - 0 [17:25:59]OFD Sender: Remove packet 145788 [17:25:59]ProducePacketName [17:25:59]name=ofd_packets/00145788 [17:25:59]NVStorageDeleteData [17:26:00]OFD Sender: No OFD packet to send [17:26:00]*** Cut start [17:26:00]*** Partial cut [17:26:00]*** CUTSNS_PIN = 1 [17:26:00]*** CUTSNS_PIN = 0 [17:26:00]*** Brake cut motor [17:26:00]Read from MH i2c: 01 [17:26:00]MH_I2C_Read... [17:26:00]*** Stop cut motor [17:26:00]*** Cut end [17:26:00]Read from MH i2c: 01 07 00 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: 01 07 00 25 2E 00 00 00 00 00 FF 0F 68 [17:26:00]process_action close_receipt done [17:26:00]requested_data is exist [17:26:00]produce_requested_data [17:26:00]requested_item fm.sn is exist - process it [17:26:00]wFMCommunicate request_size=4 [17:26:00]MH_SAM_APDU [17:26:00]CAPDU: 80 11 00 00 [17:26:00]Write to MH i2c: E2 08 00 26 2E 80 11 00 00 00 00 00 00 CE [17:26:00]Write i2c OK [17:26:00]MH_I2C_Read... [17:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:00]Read from MH i2c: E2 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: E2 17 00 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: E2 17 00 26 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 21 [17:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:26:00]wFMCommunicate OK [17:26:00]requested_item fd.num is exist - process it [17:26:00]SAM_PROTO_GetFieldsCounters [17:26:00]wFMCommunicate request_size=4 [17:26:00]MH_SAM_APDU [17:26:00]CAPDU: 80 13 00 00 [17:26:00]Write to MH i2c: E2 08 00 27 2E 80 13 00 00 00 00 00 00 D1 [17:26:00]Write i2c OK [17:26:00]MH_I2C_Read... [17:26:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:01]Read from MH i2c: E2 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 62 00 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 62 00 27 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [17:26:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:01]wFMCommunicate OK [17:26:01]SAM_PROTO_GetFieldsCounters done [17:26:01]requested_item shift.num is exist - process it [17:26:01]requested_item shift.opened is exist - process it [17:26:01]req_shift_opened [17:26:01]FM_GetShiftState [17:26:01]SAM_PROTO_GetShiftState [17:26:01]wFMCommunicate request_size=4 [17:26:01]MH_SAM_APDU [17:26:01]CAPDU: 80 13 01 00 [17:26:01]Write to MH i2c: E2 08 00 28 2E 80 13 01 00 00 00 00 00 D3 [17:26:01]Write i2c OK [17:26:01]MH_I2C_Read... [17:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:01]Read from MH i2c: E2 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 0E 00 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 0E 00 28 2E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4B [17:26:01]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:26:01]wFMCommunicate OK [17:26:01]SAM_PROTO_GetShiftState done [17:26:01]FM_GetShiftState done [17:26:01]req_shift_opened done [17:26:01]requested_item shift.open_date is exist - process it [17:26:01]req_shift_open_date [17:26:01]req_shift_open_date done [17:26:01]produce_requested_data done [17:26:01]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145788,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:26:01]process_action_free close_receipt [17:26:01]json_value_free [17:26:01]json_value_free done [17:26:01]process_json_proto returns [17:26:01]Send response to host [17:26:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145788,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:26:01]free response buf [17:26:01]execute_script done [17:26:01]execute_script returns [17:26:01]free content buf [17:26:01]Sock 9.Close socket [17:26:01]Sock 9.Thread stoped [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:18]int [17:26:18]Write to MH i2c: 01 00 00 29 2E 57 [17:26:18]*** FLAG_PRN_KEY set [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 07 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 07 00 29 2E 00 08 00 00 00 FF 0F 74 [17:26:18]state=0 [17:26:18]Key pressed [17:26:18]Feed [17:26:18]Write to MH i2c: D8 00 00 2A 2E 2F [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: D8 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: D8 01 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: D8 01 00 2A 2E 00 30 [17:26:18]int [17:26:18]Write to MH i2c: 01 00 00 2B 2E 59 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 07 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 07 00 2B 2E 00 48 00 00 00 3C 00 E4 [17:26:18]state=2 [17:26:18]Key pressed [17:26:18]int [17:26:18]Write to MH i2c: 01 00 00 2C 2E 5A [17:26:18]*** FLAG_PRN_KEY reset [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 07 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 07 00 2C 2E 00 00 00 00 00 FC 0F 6C [17:26:18]state=2 [17:26:18]Stop feed [17:26:20]OFD Sender: No OFD packet to send [17:26:22]accept exits with 7 [17:26:22]New connection [17:26:22]New thread 3066596708 created [17:26:22]Thread 3066740068 joined [17:26:22]Waiting for new connection... [17:26:22] Sock 7.Parse request [17:26:22]Sock 7.Check first char [17:26:22]Sock 7.First char is OK [17:26:22]request: POST /json_proto HTTP/1.0 [17:26:22]Method: POST [17:26:22]URL: /json_proto [17:26:22]Method is POST - this is cgi request [17:26:22]url: /json_proto [17:26:22]query_string will be loaded in cgi processing [17:26:22]execute_cgi json_proto POST (null) [17:26:22]execute_cgi path=json_proto method=POST [17:26:22]POST find Content-Length [17:26:22]Host: 172.17.40.195:8080 [17:26:22]Content-Length: 984 [17:26:22]Content-Type: application/json [17:26:22] [17:26:22]POST finish read [17:26:22]Found Content-Length = 984 [17:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:22]execute_script... [17:26: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)160547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:22]POST & json_proto [17:26:22]process_json_proto [17:26:22]json parsed OK: [17:26:22]protocol is kg_v1.0 [17:26:22]action value=close_receipt [17:26:22]process_action close_receipt [17:26:22]cmd_close_receipt [17:26:22]MH_GetDate [17:26:22]Write to MH i2c: F0 00 00 2D 2E 4A [17:26:22]Write i2c OK [17:26:22]MH_I2C_Read... [17:26:22]Read from MH i2c: F0 [17:26:22]MH_I2C_Read... [17:26:22]Read from MH i2c: F0 09 00 [17:26:22]MH_I2C_Read... [17:26:22]Read from MH i2c: F0 09 00 2D 2E 00 C0 77 1E 67 D5 8D 6C 64 41 [17:26:22]GetLastDocTimeStamp 1730049959 [17:26:22]current date 1730049984 [17:26:22]FM_GetShiftState [17:26:22]SAM_PROTO_GetShiftState [17:26:22]wFMCommunicate request_size=4 [17:26:22]MH_SAM_APDU [17:26:22]CAPDU: 80 13 01 00 [17:26:22]Write to MH i2c: E2 08 00 2E 2E 80 13 01 00 00 00 00 00 D9 [17:26:22]Write i2c OK [17:26:22]MH_I2C_Read... [17:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:22]Read from MH i2c: E2 [17:26:22]MH_I2C_Read... [17:26:22]Read from MH i2c: E2 0E 00 [17:26:22]MH_I2C_Read... [17:26:22]Read from MH i2c: E2 0E 00 2E 2E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 51 [17:26:22]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:26:22]wFMCommunicate OK [17:26:22]SAM_PROTO_GetShiftState done [17:26:22]FM_GetShiftState done [17:26:22]opened in 1729988959 [17:26:22]opened+sec_in_day 1730075359 [17:26:22]quantity*price = 150054 [17:26:22]sum+1 = 150055 [17:26:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 212 27.10.2024 17:26 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-92 номер 126 сэкономлено 22.77 сом ФМ: 0000000000871745 ФД: 145789 ФПД: 246981243194106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172624&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145789&fm=246981243194106&tin=02508201610067®Number=0000000000091683&sum=150000 [17:26:23]StoreToDocumentArchive [17:26:23]shift 545 fd 145789 [17:26:23]save to /storage/0545/doc_00145789 [17:26:23]save last doc name /storage/0545/doc_00145789 to /storage/kkm_last_doc_name [17:26:23]save OK [17:26:23]Clear old archive folders... [17:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:23]tlvbuf is 0043DCD0 [17:26:23]SAM_PROTO_ClearQueue [17:26:23]wFMCommunicate request_size=4 [17:26:23]MH_SAM_APDU [17:26:23]CAPDU: 80 09 00 00 [17:26:23]Write to MH i2c: E2 08 00 3B 2E 80 09 00 00 00 00 00 00 DB [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:23]Read from MH i2c: E2 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 3B 2E 00 90 00 DD [17:26:23]RAPDU: 90 00 [17:26:23]wFMCommunicate OK [17:26:23]SAM_PROTO_ClearQueue done [17:26:23]KKMCreateOFDPacket [17:26:23]OFDProtocolAddRootSTLVToBuf [17:26:23]FM_MakeSignedData [17:26:23]FM_MakeSignedData [17:26:23]SAM_PROTO_SignData [17:26:23]wFMCommunicate request_size=4 [17:26:23]MH_SAM_APDU [17:26:23]CAPDU: 80 0D 01 02 [17:26:23]Write to MH i2c: E2 08 00 3C 2E 80 0D 01 02 00 00 00 00 E3 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:23]Read from MH i2c: E2 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 3C 2E 00 90 00 DE [17:26:23]RAPDU: 90 00 [17:26:23]wFMCommunicate OK [17:26:23]wFMCommunicate request_size=255 [17:26:23]MH_SAM_APDU [17:26:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C0 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7D 39 02 00 35 04 06 00 E0 [17:26:23]Write to MH i2c: E2 02 01 3D 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 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C0 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7D 39 02 00 35 04 06 00 E0 00 00 F2 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:23]Read from MH i2c: E2 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 3D 2E 00 90 00 DF [17:26:23]RAPDU: 90 00 [17:26:23]wFMCommunicate OK [17:26:23]wFMCommunicate request_size=10 [17:26:23]MH_SAM_APDU [17:26:23]CAPDU: 80 0D 02 02 05 A0 CD 44 4A FA [17:26:23]Write to MH i2c: E2 0D 00 3E 2E 80 0D 02 02 05 00 A0 CD 44 4A FA 00 00 E5 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:23]Read from MH i2c: E2 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 3E 2E 00 90 00 E0 [17:26:23]RAPDU: 90 00 [17:26:23]wFMCommunicate OK [17:26:23]wFMCommunicate request_size=4 [17:26:23]MH_SAM_APDU [17:26:23]CAPDU: 80 0D 03 02 [17:26:23]Write to MH i2c: E2 08 00 3F 2E 80 0D 03 02 00 00 00 00 E8 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:23]Read from MH i2c: E2 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 0B 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 0B 00 3F 2E 00 1D 07 DD B1 2F 0B 53 9C 90 00 C4 [17:26:23]RAPDU: 1D 07 DD B1 2F 0B 53 9C 90 00 [17:26:23]wFMCommunicate OK [17:26:23]SAM_PROTO_SignData done [17:26:23]FM_MakeSignedData done [17:26:23]CreateOFDProtocolMessage [17:26:23]wFMCommunicate request_size=4 [17:26:23]MH_SAM_APDU [17:26:23]CAPDU: 80 11 00 00 [17:26:23]Write to MH i2c: E2 08 00 40 2E 80 11 00 00 00 00 00 00 E8 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:23]Read from MH i2c: E2 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 17 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 17 00 40 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3B [17:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:26:23]wFMCommunicate OK [17:26:23]CreateOFDProtocolMessage done [17:26:23]OFDSenderStorePacket 145789 [17:26:23]StoreOFDPacket docnum=145789 [17:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 68 71 07 01 16 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C0 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7D 39 02 00 35 04 06 00 E0 A0 CD 44 4A FA 1D 07 DD B1 2F 0B 53 9C [17:26:23]CheckFolder [17:26:23]dirname=/storage/ofd_packets [17:26:23]CheckFolder done [17:26:23]ProducePacketName [17:26:23]name=ofd_packets/00145789 [17:26:23]NVStorageSaveData ofd_packets/00145789 [17:26:23]File name is /storage/ofd_packets/00145789 [17:26:23]Write 301 bytes [17:26:23]NVStorageSaveData done [17:26:23]OFDSenderStorePacket done [17:26:23]KKMCreateOFDPacket done [17:26:23]NVStorageSaveData kkm_last_timestamp [17:26:23]File name is /storage/kkm_last_timestamp [17:26:23]Write 4 bytes [17:26:23]NVStorageSaveData done [17:26:23]ExternCall_PrintAddStr [17:26:23]wPrintStart [17:26:23]Write to MH i2c: 01 00 00 41 2E 6F [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: 01 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: 01 07 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: 01 07 00 41 2E 00 00 00 00 00 FF 0F 84 [17:26:23]RasterBufferAndPrint [17:26:23]line Счет N : (1)160547 [17:26:23]line ИНН: 02508201610067 [17:26:23]line Контрольно-Кассовый Чек [17:26:23]line ПРОДАЖА [17:26:23]line ТРК (МРК, ГНК) : 32 [17:26:23]line Товар: 2710124130 [17:26:23]line Аи-92-К-2 [17:26:23]line 22.770 * 65.90 [17:26:23]line = 1500.54 [17:26:23]line НДС 12% НСП 1% [17:26:23]line > о реализуемом товаре [17:26:23]line ОКРУГЛЕНИЕ: -0.54 [17:26:23]line ИТОГО: 1500.00 [17:26:23]line Внесено: 1500.00 [17:26:23]line СДАЧА: 0.00 [17:26:23]line НСП 1% : 13.28 [17:26:23]line НДС 12% : 159.35 [17:26:23]line Наличными: 1500.00 [17:26:23]line Безнал.: 0.00 [17:26:23]line Место: АЗС № 126 "Партнер Нефть" [17:26:23]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:26:23]line СНО: Общий режим [17:26:23]line Чек 212 27.10.2024 17:26 [17:26:23]line Смена: 545 ФФД: 1.0 [17:26:23]line ЗНМ: 0300000085 [17:26:23]line РНМ: 0000000000091683 [17:26:23]line Версия ККМ: 001 [17:26:23]line [17:26:23]line Дисконтная программа [17:26:23]line АИ-92 [17:26:23]line номер 126 [17:26:23]line сэкономлено 22.77 сом [17:26:23]line ФМ: 0000000000871745 [17:26:23]line ФД: 145789 [17:26:23]line ФПД: 246981243194106 [17:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172624&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145789&fm=246981243194106&tin=02508201610067®Number=0000000000091683&sum=150000 [17:26:24]OFD Sender: Processing packet 145789 [packets to send 206, broken 205] [17:26:24]ProducePacketName [17:26:24]name=ofd_packets/00145789 [17:26:24]OFD Sender: To server: pG, [17:26:24]CommunicateWithHost lk.salyk.kg:30040 [17:26:24]ConnectInit lk.salyk.kg [17:26:24]written 0, free lines is 4095 [17:26:24]Connected sock=10 [17:26:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 68 71 07 01 16 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C0 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7D 39 02 00 35 04 06 00 E0 A0 CD 44 4A FA 1D 07 DD B1 2F 0B 53 9C [17:26:24]Write to MH i2c: 01 00 00 71 2E 9F [17:26:24]Write i2c OK [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: 01 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: 01 07 00 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: 01 07 00 71 2E 00 00 00 00 00 5F 0C 11 [17:26:24]RasterBufferAndPrint [17:26:24]line [17:26:24]line [17:26:24]line [17:26:24]line [17:26:24]line [17:26:24]written 0, free lines is 3173 [17:26:24]MH_Cut [17:26:24]Write to MH i2c: D1 01 00 78 2E 01 78 [17:26:24]Write i2c OK [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: D1 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: D1 01 00 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: D1 01 00 78 2E 00 77 [17:26:24]Write to MH i2c: 01 00 00 79 2E A7 [17:26:24]Write i2c OK [17:26:24]MH_I2C_Read... [17:26:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 56 C7 47 00 A7 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7D 39 02 00 F4 03 04 00 ED 1C 1E 67 B6 04 01 00 00 F7 82 78 CC DF 64 61 4E [17:26:24]CommunicateWithHost err = 0 [17:26:24]CheckOFDResponse [17:26:24]1017 (14) - 77093643461234 [17:26:24]1041 (16) - 0000000000871745 [17:26:24]1040 (4) - 145789 [17:26:24]1012 (4) - 27.10.2024 10:58 [17:26:24]1206 (1) - 0 [17:26:24]OFD Sender: Remove packet 145789 [17:26:24]ProducePacketName [17:26:24]name=ofd_packets/00145789 [17:26:24]NVStorageDeleteData [17:26:25]OFD Sender: No OFD packet to send [17:26:25]*** Cut start [17:26:25]*** Partial cut [17:26:25]*** CUTSNS_PIN = 1 [17:26:25]*** CUTSNS_PIN = 0 [17:26:25]*** Brake cut motor [17:26:26]Read from MH i2c: 01 [17:26:26]MH_I2C_Read... [17:26:26]*** Stop cut motor [17:26:26]*** Cut end [17:26:26]Read from MH i2c: 01 07 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: 01 07 00 79 2E 00 00 00 00 00 FF 0F BC [17:26:26]process_action close_receipt done [17:26:26]requested_data is exist [17:26:26]produce_requested_data [17:26:26]requested_item fm.sn is exist - process it [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 11 00 00 [17:26:26]Write to MH i2c: E2 08 00 7A 2E 80 11 00 00 00 00 00 00 22 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 17 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 17 00 7A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 75 [17:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:26:26]wFMCommunicate OK [17:26:26]requested_item fd.num is exist - process it [17:26:26]SAM_PROTO_GetFieldsCounters [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 13 00 00 [17:26:26]Write to MH i2c: E2 08 00 7B 2E 80 13 00 00 00 00 00 00 25 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 62 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 62 00 7B 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [17:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:26]wFMCommunicate OK [17:26:26]SAM_PROTO_GetFieldsCounters done [17:26:26]requested_item shift.num is exist - process it [17:26:26]requested_item shift.opened is exist - process it [17:26:26]req_shift_opened [17:26:26]FM_GetShiftState [17:26:26]SAM_PROTO_GetShiftState [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 13 01 00 [17:26:26]Write to MH i2c: E2 08 00 7C 2E 80 13 01 00 00 00 00 00 27 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 0E 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 0E 00 7C 2E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9F [17:26:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:26:26]wFMCommunicate OK [17:26:26]SAM_PROTO_GetShiftState done [17:26:26]FM_GetShiftState done [17:26:26]req_shift_opened done [17:26:26]requested_item shift.open_date is exist - process it [17:26:26]req_shift_open_date [17:26:26]req_shift_open_date done [17:26:26]produce_requested_data done [17:26:26]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145789,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:26:26]process_action_free close_receipt [17:26:26]json_value_free [17:26:26]json_value_free done [17:26:26]process_json_proto returns [17:26:26]Send response to host [17:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145789,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:26:26]free response buf [17:26:26]execute_script done [17:26:26]execute_script returns [17:26:26]free content buf [17:26:26]Sock 7.Close socket [17:26:26]Sock 7.Thread stoped [17:26:30]OFD Sender: No OFD packet to send [17:26:34]accept exits with 9 [17:26:34]New connection [17:26:34]New thread 3066740068 created [17:26:34]Thread 3066596708 joined [17:26:34]Waiting for new connection... [17:26:34] Sock 9.Parse request [17:26:34]Sock 9.Check first char [17:26:34]Sock 9.First char is OK [17:26:34]request: POST /json_proto HTTP/1.0 [17:26:34]Method: POST [17:26:34]URL: /json_proto [17:26:34]Method is POST - this is cgi request [17:26:34]url: /json_proto [17:26:34]query_string will be loaded in cgi processing [17:26:34]execute_cgi json_proto POST (null) [17:26:34]execute_cgi path=json_proto method=POST [17:26:34]POST find Content-Length [17:26:34]Host: 172.17.40.195:8080 [17:26:34]Content-Length: 799 [17:26:34]Content-Type: application/json [17:26:34] [17:26:34]POST finish read [17:26:34]Found Content-Length = 799 [17:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865384", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:34]execute_script... [17:26:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865384", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:34]POST & json_proto [17:26:34]process_json_proto [17:26:34]json parsed OK: [17:26:34]protocol is kg_v1.0 [17:26:34]action value=close_receipt [17:26:34]process_action close_receipt [17:26:34]cmd_close_receipt [17:26:34]MH_GetDate [17:26:34]Write to MH i2c: F0 00 00 7D 2E 9A [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: F0 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: F0 09 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: F0 09 00 7D 2E 00 CD 77 1E 67 D5 8D 6C 64 9E [17:26:34]GetLastDocTimeStamp 1730049984 [17:26:34]current date 1730049997 [17:26:34]FM_GetShiftState [17:26:34]SAM_PROTO_GetShiftState [17:26:34]wFMCommunicate request_size=4 [17:26:34]MH_SAM_APDU [17:26:34]CAPDU: 80 13 01 00 [17:26:34]Write to MH i2c: E2 08 00 7E 2E 80 13 01 00 00 00 00 00 29 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:34]Read from MH i2c: E2 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 0E 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 0E 00 7E 2E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A1 [17:26:34]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:26:34]wFMCommunicate OK [17:26:34]SAM_PROTO_GetShiftState done [17:26:34]FM_GetShiftState done [17:26:34]opened in 1729988959 [17:26:34]opened+sec_in_day 1730075359 [17:26:34]quantity*price = 0 [17:26:34]sum+1 = 1 [17:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 213 27.10.2024 17:26 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: Топливные Талоны 4865384 ФМ: 0000000000871745 ФД: 145790 ФПД: 82271338270912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172637&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145790&fm=82271338270912&tin=02508201610067®Number=0000000000091683&sum=0 [17:26:35]StoreToDocumentArchive [17:26:35]shift 545 fd 145790 [17:26:35]save to /storage/0545/doc_00145790 [17:26:35]save last doc name /storage/0545/doc_00145790 to /storage/kkm_last_doc_name [17:26:35]save OK [17:26:35]Clear old archive folders... [17:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:35]tlvbuf is B6EA6490 [17:26:35]SAM_PROTO_ClearQueue [17:26:35]wFMCommunicate request_size=4 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 09 00 00 [17:26:35]Write to MH i2c: E2 08 00 8B 2E 80 09 00 00 00 00 00 00 2B [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 8B 2E 00 90 00 2D [17:26:36]RAPDU: 90 00 [17:26:36]wFMCommunicate OK [17:26:36]SAM_PROTO_ClearQueue done [17:26:36]KKMCreateOFDPacket [17:26:36]OFDProtocolAddRootSTLVToBuf [17:26:36]FM_MakeSignedData [17:26:36]FM_MakeSignedData [17:26:36]SAM_PROTO_SignData [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 0D 01 02 [17:26:36]Write to MH i2c: E2 08 00 8C 2E 80 0D 01 02 00 00 00 00 33 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 8C 2E 00 90 00 2E [17:26:36]RAPDU: 90 00 [17:26:36]wFMCommunicate OK [17:26:36]wFMCommunicate request_size=255 [17:26:36]MH_SAM_APDU [17:26: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 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CD 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7E 39 02 00 35 04 06 00 4A [17:26:36]Write to MH i2c: E2 02 01 8D 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 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CD 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7E 39 02 00 35 04 06 00 4A 00 00 9B [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 8D 2E 00 90 00 2F [17:26:36]RAPDU: 90 00 [17:26:36]wFMCommunicate OK [17:26:36]wFMCommunicate request_size=10 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 0D 02 02 05 D3 49 E4 90 C0 [17:26:36]Write to MH i2c: E2 0D 00 8E 2E 80 0D 02 02 05 00 D3 49 E4 90 C0 00 00 90 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 8E 2E 00 90 00 30 [17:26:36]RAPDU: 90 00 [17:26:36]wFMCommunicate OK [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 0D 03 02 [17:26:36]Write to MH i2c: E2 08 00 8F 2E 80 0D 03 02 00 00 00 00 38 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0B 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0B 00 8F 2E 00 3A F9 FD 39 C6 5D 7B D3 90 00 13 [17:26:36]RAPDU: 3A F9 FD 39 C6 5D 7B D3 90 00 [17:26:36]wFMCommunicate OK [17:26:36]SAM_PROTO_SignData done [17:26:36]FM_MakeSignedData done [17:26:36]CreateOFDProtocolMessage [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 11 00 00 [17:26:36]Write to MH i2c: E2 08 00 90 2E 80 11 00 00 00 00 00 00 38 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 17 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 17 00 90 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8B [17:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:26:36]wFMCommunicate OK [17:26:36]CreateOFDProtocolMessage done [17:26:36]OFDSenderStorePacket 145790 [17:26:36]StoreOFDPacket docnum=145790 [17:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 95 40 07 01 34 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 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CD 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7E 39 02 00 35 04 06 00 4A D3 49 E4 90 C0 3A F9 FD 39 C6 5D 7B D3 [17:26:36]CheckFolder [17:26:36]dirname=/storage/ofd_packets [17:26:36]CheckFolder done [17:26:36]ProducePacketName [17:26:36]name=ofd_packets/00145790 [17:26:36]NVStorageSaveData ofd_packets/00145790 [17:26:36]File name is /storage/ofd_packets/00145790 [17:26:36]Write 301 bytes [17:26:36]NVStorageSaveData done [17:26:36]OFDSenderStorePacket done [17:26:36]KKMCreateOFDPacket done [17:26:36]NVStorageSaveData kkm_last_timestamp [17:26:36]File name is /storage/kkm_last_timestamp [17:26:36]Write 4 bytes [17:26:36]NVStorageSaveData done [17:26:36]ExternCall_PrintAddStr [17:26:36]wPrintStart [17:26:36]Write to MH i2c: 01 00 00 91 2E BF [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: 01 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: 01 07 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: 01 07 00 91 2E 00 00 00 00 00 FF 0F D4 [17:26:36]RasterBufferAndPrint [17:26:36]line Счет N : (1)160544 [17:26:36]line ИНН: 02508201610067 [17:26:36]line Контрольно-Кассовый Чек [17:26:36]line ПРОДАЖА [17:26:36]line ТРК (МРК, ГНК) : 52 [17:26:36]line Товар: 2710124130 [17:26:36]line Аи-92-К-2 [17:26:36]line 5.000 * 0.00 [17:26:36]line = 0.00 [17:26:36]line НДС 12% НСП 1% [17:26:36]line > о реализуемом товаре [17:26:36]line ИТОГО: 0.00 [17:26:36]line НСП 1% : 0.00 [17:26:36]line НДС 12% : 0.00 [17:26:36]line Наличными: 0.00 [17:26:36]line Безнал.: 0.00 [17:26:36]line Место: АЗС № 126 "Партнер Нефть" [17:26:36]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:26:36]line СНО: Общий режим [17:26:36]line Чек 213 27.10.2024 17:26 [17:26:36]line Смена: 545 ФФД: 1.0 [17:26:36]line ЗНМ: 0300000085 [17:26:36]line РНМ: 0000000000091683 [17:26:36]line Версия ККМ: 001 [17:26:36]line Талоны: Топливные Талоны [17:26:36]line 4865384 [17:26:36]line ФМ: 0000000000871745 [17:26:36]line ФД: 145790 [17:26:36]line ФПД: 82271338270912 [17:26:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172637&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145790&fm=82271338270912&tin=02508201610067®Number=0000000000091683&sum=0 [17:26:36]written 0, free lines is 4095 [17:26:36]OFD Sender: Processing packet 145790 [packets to send 206, broken 205] [17:26:36]ProducePacketName [17:26:36]name=ofd_packets/00145790 [17:26:36]OFD Sender: To server: pG, [17:26:36]CommunicateWithHost lk.salyk.kg:30040 [17:26:36]ConnectInit lk.salyk.kg [17:26:36]Connected sock=7 [17:26:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 95 40 07 01 34 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 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CD 77 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7E 39 02 00 35 04 06 00 4A D3 49 E4 90 C0 3A F9 FD 39 C6 5D 7B D3 [17:26:36]Write to MH i2c: 01 00 00 BB 2E E9 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: 01 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: 01 07 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: 01 07 00 BB 2E 00 00 00 00 00 BB 0C B7 [17:26:36]RasterBufferAndPrint [17:26:36]line [17:26:36]line [17:26:36]line [17:26:36]line [17:26:36]line [17:26:36]written 0, free lines is 3266 [17:26:36]MH_Cut [17:26:36]Write to MH i2c: D1 01 00 C2 2E 01 C2 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: D1 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: D1 01 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: D1 01 00 C2 2E 00 C1 [17:26:36]Write to MH i2c: 01 00 00 C3 2E F1 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 83 8B 47 00 29 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7E 39 02 00 F4 03 04 00 FA 1C 1E 67 B6 04 01 00 00 7A 19 DB F8 A7 7C BD 89 [17:26:37]CommunicateWithHost err = 0 [17:26:37]CheckOFDResponse [17:26:37]1017 (14) - 77093643461234 [17:26:37]1041 (16) - 0000000000871745 [17:26:37]1040 (4) - 145790 [17:26:37]1012 (4) - 27.10.2024 10:59 [17:26:37]1206 (1) - 0 [17:26:37]OFD Sender: Remove packet 145790 [17:26:37]ProducePacketName [17:26:37]name=ofd_packets/00145790 [17:26:37]NVStorageDeleteData [17:26:37]OFD Sender: No OFD packet to send [17:26:37]*** Cut start [17:26:37]*** Partial cut [17:26:37]*** CUTSNS_PIN = 1 [17:26:37]*** CUTSNS_PIN = 0 [17:26:37]*** Brake cut motor [17:26:38]Read from MH i2c: 01 [17:26:38]MH_I2C_Read... [17:26:38]*** Stop cut motor [17:26:38]*** Cut end [17:26:38]Read from MH i2c: 01 07 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: 01 07 00 C3 2E 00 00 00 00 00 FF 0F 06 [17:26:38]process_action close_receipt done [17:26:38]requested_data is exist [17:26:38]produce_requested_data [17:26:38]requested_item fm.sn is exist - process it [17:26:38]wFMCommunicate request_size=4 [17:26:38]MH_SAM_APDU [17:26:38]CAPDU: 80 11 00 00 [17:26:38]Write to MH i2c: E2 08 00 C4 2E 80 11 00 00 00 00 00 00 6C [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:38]Read from MH i2c: E2 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 17 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 17 00 C4 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BF [17:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:26:38]wFMCommunicate OK [17:26:38]requested_item fd.num is exist - process it [17:26:38]SAM_PROTO_GetFieldsCounters [17:26:38]wFMCommunicate request_size=4 [17:26:38]MH_SAM_APDU [17:26:38]CAPDU: 80 13 00 00 [17:26:38]Write to MH i2c: E2 08 00 C5 2E 80 13 00 00 00 00 00 00 6F [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:38]Read from MH i2c: E2 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 62 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 62 00 C5 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [17:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:38]wFMCommunicate OK [17:26:38]SAM_PROTO_GetFieldsCounters done [17:26:38]requested_item shift.num is exist - process it [17:26:38]requested_item shift.opened is exist - process it [17:26:38]req_shift_opened [17:26:38]FM_GetShiftState [17:26:38]SAM_PROTO_GetShiftState [17:26:38]wFMCommunicate request_size=4 [17:26:38]MH_SAM_APDU [17:26:38]CAPDU: 80 13 01 00 [17:26:38]Write to MH i2c: E2 08 00 C6 2E 80 13 01 00 00 00 00 00 71 [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:38]Read from MH i2c: E2 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 0E 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: E2 0E 00 C6 2E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E9 [17:26:38]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:26:38]wFMCommunicate OK [17:26:38]SAM_PROTO_GetShiftState done [17:26:38]FM_GetShiftState done [17:26:38]req_shift_opened done [17:26:38]requested_item shift.open_date is exist - process it [17:26:38]req_shift_open_date [17:26:38]req_shift_open_date done [17:26:38]produce_requested_data done [17:26:38]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145790,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:26:38]process_action_free close_receipt [17:26:38]json_value_free [17:26:38]json_value_free done [17:26:38]process_json_proto returns [17:26:38]Send response to host [17:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145790,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:26:38]free response buf [17:26:38]execute_script done [17:26:38]execute_script returns [17:26:38]free content buf [17:26:38]Sock 9.Close socket [17:26:38]Sock 9.Thread stoped [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:02]accept exits with 10 [17:28:02]New connection [17:28:02]New thread 3066596708 created [17:28:02]Thread 3066740068 joined [17:28:02]Waiting for new connection... [17:28:02] Sock 10.Parse request [17:28:02]Sock 10.Check first char [17:28:02]Sock 10.First char is OK [17:28:02]request: POST /json_proto HTTP/1.0 [17:28:02]Method: POST [17:28:02]URL: /json_proto [17:28:02]Method is POST - this is cgi request [17:28:02]url: /json_proto [17:28:02]query_string will be loaded in cgi processing [17:28:02]execute_cgi json_proto POST (null) [17:28:02]execute_cgi path=json_proto method=POST [17:28:02]POST find Content-Length [17:28:02]Host: 172.17.40.195:8080 [17:28:02]Content-Length: 678 [17:28:02]Content-Type: application/json [17:28:02] [17:28:02]POST finish read [17:28:02]Found Content-Length = 678 [17:28:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:02]execute_script... [17:28: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)160548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:02]POST & json_proto [17:28:02]process_json_proto [17:28:02]json parsed OK: [17:28:02]protocol is kg_v1.0 [17:28:02]action value=close_receipt [17:28:02]process_action close_receipt [17:28:02]cmd_close_receipt [17:28:02]MH_GetDate [17:28:02]Write to MH i2c: F0 00 00 C7 2E E4 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: F0 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: F0 09 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: F0 09 00 C7 2E 00 25 78 1E 67 D5 8D 6C 64 41 [17:28:02]GetLastDocTimeStamp 1730049997 [17:28:02]current date 1730050085 [17:28:02]FM_GetShiftState [17:28:02]SAM_PROTO_GetShiftState [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 13 01 00 [17:28:02]Write to MH i2c: E2 08 00 C8 2E 80 13 01 00 00 00 00 00 73 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 0E 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 0E 00 C8 2E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EB [17:28:02]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:28:02]wFMCommunicate OK [17:28:02]SAM_PROTO_GetShiftState done [17:28:02]FM_GetShiftState done [17:28:02]opened in 1729988959 [17:28:02]opened+sec_in_day 1730075359 [17:28:02]quantity*price = 80012 [17:28:02]sum+1 = 80013 [17:28:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 214 27.10.2024 17:28 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145791 ФПД: 212706421244348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172805&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145791&fm=212706421244348&tin=02508201610067®Number=0000000000091683&sum=80000 [17:28:03]StoreToDocumentArchive [17:28:03]shift 545 fd 145791 [17:28:03]save to /storage/0545/doc_00145791 [17:28:03]save last doc name /storage/0545/doc_00145791 to /storage/kkm_last_doc_name [17:28:03]save OK [17:28:03]Clear old archive folders... [17:28:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:03]tlvbuf is 00437A00 [17:28:03]SAM_PROTO_ClearQueue [17:28:03]wFMCommunicate request_size=4 [17:28:03]MH_SAM_APDU [17:28:03]CAPDU: 80 09 00 00 [17:28:03]Write to MH i2c: E2 08 00 D5 2E 80 09 00 00 00 00 00 00 75 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 D5 2E 00 90 00 77 [17:28:04]RAPDU: 90 00 [17:28:04]wFMCommunicate OK [17:28:04]SAM_PROTO_ClearQueue done [17:28:04]KKMCreateOFDPacket [17:28:04]OFDProtocolAddRootSTLVToBuf [17:28:04]FM_MakeSignedData [17:28:04]FM_MakeSignedData [17:28:04]SAM_PROTO_SignData [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 0D 01 02 [17:28:04]Write to MH i2c: E2 08 00 D6 2E 80 0D 01 02 00 00 00 00 7D [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 D6 2E 00 90 00 78 [17:28:04]RAPDU: 90 00 [17:28:04]wFMCommunicate OK [17:28:04]wFMCommunicate request_size=255 [17:28:04]MH_SAM_APDU [17:28: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 25 78 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7F 39 02 00 35 04 06 00 C1 [17:28:04]Write to MH i2c: E2 02 01 D7 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 25 78 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7F 39 02 00 35 04 06 00 C1 00 00 8D [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 D7 2E 00 90 00 79 [17:28:04]RAPDU: 90 00 [17:28:04]wFMCommunicate OK [17:28:04]wFMCommunicate request_size=10 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 0D 02 02 05 74 92 AE 01 BC [17:28:04]Write to MH i2c: E2 0D 00 D8 2E 80 0D 02 02 05 00 74 92 AE 01 BC 00 00 FB [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 D8 2E 00 90 00 7A [17:28:04]RAPDU: 90 00 [17:28:04]wFMCommunicate OK [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 0D 03 02 [17:28:04]Write to MH i2c: E2 08 00 D9 2E 80 0D 03 02 00 00 00 00 82 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 0B 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 0B 00 D9 2E 00 92 94 50 F1 69 7A EF F6 90 00 B2 [17:28:04]RAPDU: 92 94 50 F1 69 7A EF F6 90 00 [17:28:04]wFMCommunicate OK [17:28:04]SAM_PROTO_SignData done [17:28:04]FM_MakeSignedData done [17:28:04]CreateOFDProtocolMessage [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 11 00 00 [17:28:04]Write to MH i2c: E2 08 00 DA 2E 80 11 00 00 00 00 00 00 82 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 17 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 17 00 DA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D5 [17:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:28:04]wFMCommunicate OK [17:28:04]CreateOFDProtocolMessage done [17:28:04]OFDSenderStorePacket 145791 [17:28:04]StoreOFDPacket docnum=145791 [17:28:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 0E 4B 07 01 DD 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 25 78 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7F 39 02 00 35 04 06 00 C1 74 92 AE 01 BC 92 94 50 F1 69 7A EF F6 [17:28:04]CheckFolder [17:28:04]dirname=/storage/ofd_packets [17:28:04]CheckFolder done [17:28:04]ProducePacketName [17:28:04]name=ofd_packets/00145791 [17:28:04]NVStorageSaveData ofd_packets/00145791 [17:28:04]File name is /storage/ofd_packets/00145791 [17:28:04]Write 301 bytes [17:28:04]NVStorageSaveData done [17:28:04]OFDSenderStorePacket done [17:28:04]KKMCreateOFDPacket done [17:28:04]NVStorageSaveData kkm_last_timestamp [17:28:04]File name is /storage/kkm_last_timestamp [17:28:04]Write 4 bytes [17:28:04]NVStorageSaveData done [17:28:04]ExternCall_PrintAddStr [17:28:04]wPrintStart [17:28:04]Write to MH i2c: 01 00 00 DB 2E 09 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: 01 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: 01 07 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: 01 07 00 DB 2E 00 00 00 00 00 FF 0F 1E [17:28:04]RasterBufferAndPrint [17:28:04]line Счет N : (1)160548 [17:28:04]line ИНН: 02508201610067 [17:28:04]line Контрольно-Кассовый Чек [17:28:04]line ПРОДАЖА [17:28:04]line ТРК (МРК, ГНК) : 42 [17:28:04]line Товар: 2710124130 [17:28:04]line Аи-92-К-2 [17:28:04]line 11.960 * 66.90 [17:28:04]line = 800.12 [17:28:04]line НДС 12% НСП 1% [17:28:04]line > о реализуемом товаре [17:28:04]line ОКРУГЛЕНИЕ: -0.12 [17:28:04]line ИТОГО: 800.00 [17:28:04]line Внесено: 800.00 [17:28:04]line СДАЧА: 0.00 [17:28:04]line НСП 1% : 7.08 [17:28:04]line НДС 12% : 84.97 [17:28:04]line Наличными: 800.00 [17:28:04]line Безнал.: 0.00 [17:28:04]line Место: АЗС № 126 "Партнер Нефть" [17:28:04]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:28:04]line СНО: Общий режим [17:28:04]line Чек 214 27.10.2024 17:28 [17:28:04]line Смена: 545 ФФД: 1.0 [17:28:04]line ЗНМ: 0300000085 [17:28:04]line РНМ: 0000000000091683 [17:28:04]line Версия ККМ: 001 [17:28:04]line ФМ: 0000000000871745 [17:28:04]line ФД: 145791 [17:28:04]line ФПД: 212706421244348 [17:28:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172805&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145791&fm=212706421244348&tin=02508201610067®Number=0000000000091683&sum=80000 [17:28:04]written 0, free lines is 4095 [17:28:04]OFD Sender: Processing packet 145791 [packets to send 206, broken 205] [17:28:04]ProducePacketName [17:28:04]name=ofd_packets/00145791 [17:28:04]OFD Sender: To server: pG, [17:28:04]CommunicateWithHost lk.salyk.kg:30040 [17:28:04]ConnectInit lk.salyk.kg [17:28:05]Connected sock=9 [17:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 0E 4B 07 01 DD 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 25 78 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7F 39 02 00 35 04 06 00 C1 74 92 AE 01 BC 92 94 50 F1 69 7A EF F6 [17:28:05]Write to MH i2c: 01 00 00 06 2F 35 [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: 01 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: 01 07 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: 01 07 00 06 2F 00 00 00 00 00 A9 0C F1 [17:28:05]RasterBufferAndPrint [17:28:05]line [17:28:05]line [17:28:05]line [17:28:05]line [17:28:05]line [17:28:05]written 0, free lines is 3247 [17:28:05]MH_Cut [17:28:05]Write to MH i2c: D1 01 00 0D 2F 01 0E [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: D1 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: D1 01 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: D1 01 00 0D 2F 00 0D [17:28:05]Write to MH i2c: 01 00 00 0E 2F 3D [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 F9 AB 47 00 B4 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 7F 39 02 00 F4 03 04 00 52 1D 1E 67 B6 04 01 00 00 85 ED DD CB A6 72 0D 8A [17:28:05]CommunicateWithHost err = 0 [17:28:05]CheckOFDResponse [17:28:05]1017 (14) - 77093643461234 [17:28:05]1041 (16) - 0000000000871745 [17:28:05]1040 (4) - 145791 [17:28:05]1012 (4) - 27.10.2024 11:00 [17:28:05]1206 (1) - 0 [17:28:05]OFD Sender: Remove packet 145791 [17:28:05]ProducePacketName [17:28:05]name=ofd_packets/00145791 [17:28:05]NVStorageDeleteData [17:28:05]OFD Sender: No OFD packet to send [17:28:06]*** Cut start [17:28:06]*** Partial cut [17:28:06]*** CUTSNS_PIN = 1 [17:28:06]*** CUTSNS_PIN = 0 [17:28:06]*** Brake cut motor [17:28:06]Read from MH i2c: 01 [17:28:06]MH_I2C_Read... [17:28:06]*** Stop cut motor [17:28:06]*** Cut end [17:28:06]Read from MH i2c: 01 07 00 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: 01 07 00 0E 2F 00 00 00 00 00 FF 0F 52 [17:28:06]process_action close_receipt done [17:28:06]requested_data is exist [17:28:06]produce_requested_data [17:28:06]requested_item fm.sn is exist - process it [17:28:06]wFMCommunicate request_size=4 [17:28:06]MH_SAM_APDU [17:28:06]CAPDU: 80 11 00 00 [17:28:06]Write to MH i2c: E2 08 00 0F 2F 80 11 00 00 00 00 00 00 B8 [17:28:06]Write i2c OK [17:28:06]MH_I2C_Read... [17:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:06]Read from MH i2c: E2 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: E2 17 00 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: E2 17 00 0F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0B [17:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:28:06]wFMCommunicate OK [17:28:06]requested_item fd.num is exist - process it [17:28:06]SAM_PROTO_GetFieldsCounters [17:28:06]wFMCommunicate request_size=4 [17:28:06]MH_SAM_APDU [17:28:06]CAPDU: 80 13 00 00 [17:28:06]Write to MH i2c: E2 08 00 10 2F 80 13 00 00 00 00 00 00 BB [17:28:06]Write i2c OK [17:28:06]MH_I2C_Read... [17:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:06]Read from MH i2c: E2 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: E2 62 00 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: E2 62 00 10 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [17:28:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 7F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:06]wFMCommunicate OK [17:28:06]SAM_PROTO_GetFieldsCounters done [17:28:06]requested_item shift.num is exist - process it [17:28:06]requested_item shift.opened is exist - process it [17:28:06]req_shift_opened [17:28:06]FM_GetShiftState [17:28:06]SAM_PROTO_GetShiftState [17:28:06]wFMCommunicate request_size=4 [17:28:06]MH_SAM_APDU [17:28:06]CAPDU: 80 13 01 00 [17:28:06]Write to MH i2c: E2 08 00 11 2F 80 13 01 00 00 00 00 00 BD [17:28:06]Write i2c OK [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: E2 [17:28:06]MH_I2C_Read... [17:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:06]Read from MH i2c: E2 0E 00 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: E2 0E 00 11 2F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 35 [17:28:06]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:28:06]wFMCommunicate OK [17:28:06]SAM_PROTO_GetShiftState done [17:28:06]FM_GetShiftState done [17:28:06]req_shift_opened done [17:28:06]requested_item shift.open_date is exist - process it [17:28:06]req_shift_open_date [17:28:06]req_shift_open_date done [17:28:06]produce_requested_data done [17:28:06]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145791,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:28:06]process_action_free close_receipt [17:28:06]json_value_free [17:28:06]json_value_free done [17:28:06]process_json_proto returns [17:28:06]Send response to host [17:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145791,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:28:06]free response buf [17:28:06]execute_script done [17:28:06]execute_script returns [17:28:06]free content buf [17:28:06]Sock 10.Close socket [17:28:06]Sock 10.Thread stoped [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29: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:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:26]accept exits with 7 [17:31:26]New connection [17:31:26]New thread 3066740068 created [17:31:26]Thread 3066596708 joined [17:31:26]Waiting for new connection... [17:31:26] Sock 7.Parse request [17:31:26]Sock 7.Check first char [17:31:26]Sock 7.First char is OK [17:31:26]request: POST /json_proto HTTP/1.0 [17:31:26]Method: POST [17:31:26]URL: /json_proto [17:31:26]Method is POST - this is cgi request [17:31:26]url: /json_proto [17:31:26]query_string will be loaded in cgi processing [17:31:26]execute_cgi json_proto POST (null) [17:31:26]execute_cgi path=json_proto method=POST [17:31:26]POST find Content-Length [17:31:26]Host: 172.17.40.195:8080 [17:31:26]Content-Length: 682 [17:31:26]Content-Type: application/json [17:31:26] [17:31:26]POST finish read [17:31:26]Found Content-Length = 682 [17:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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" ] } } [17:31:26]execute_script... [17:31: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)160549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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" ] } } [17:31:26]POST & json_proto [17:31:26]process_json_proto [17:31:26]json parsed OK: [17:31:26]protocol is kg_v1.0 [17:31:26]action value=close_receipt [17:31:26]process_action close_receipt [17:31:26]cmd_close_receipt [17:31:26]MH_GetDate [17:31:26]Write to MH i2c: F0 00 00 12 2F 30 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: F0 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: F0 09 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: F0 09 00 12 2F 00 F1 78 1E 67 D5 8D 6C 64 59 [17:31:26]GetLastDocTimeStamp 1730050085 [17:31:26]current date 1730050289 [17:31:26]FM_GetShiftState [17:31:26]SAM_PROTO_GetShiftState [17:31:26]wFMCommunicate request_size=4 [17:31:26]MH_SAM_APDU [17:31:26]CAPDU: 80 13 01 00 [17:31:26]Write to MH i2c: E2 08 00 13 2F 80 13 01 00 00 00 00 00 BF [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:26]Read from MH i2c: E2 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 0E 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 0E 00 13 2F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 37 [17:31:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:31:26]wFMCommunicate OK [17:31:26]SAM_PROTO_GetShiftState done [17:31:26]FM_GetShiftState done [17:31:26]opened in 1729988959 [17:31:26]opened+sec_in_day 1730075359 [17:31:26]quantity*price = 250005 [17:31:26]sum+1 = 250006 [17:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 215 27.10.2024 17:31 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145792 ФПД: 276045402974850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173129&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145792&fm=276045402974850&tin=02508201610067®Number=0000000000091683&sum=250000 [17:31:27]StoreToDocumentArchive [17:31:27]shift 545 fd 145792 [17:31:27]save to /storage/0545/doc_00145792 [17:31:27]save last doc name /storage/0545/doc_00145792 to /storage/kkm_last_doc_name [17:31:27]save OK [17:31:27]Clear old archive folders... [17:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:27]tlvbuf is B6EA6750 [17:31:27]SAM_PROTO_ClearQueue [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 09 00 00 [17:31:27]Write to MH i2c: E2 08 00 20 2F 80 09 00 00 00 00 00 00 C1 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 20 2F 00 90 00 C3 [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]SAM_PROTO_ClearQueue done [17:31:27]KKMCreateOFDPacket [17:31:27]OFDProtocolAddRootSTLVToBuf [17:31:27]FM_MakeSignedData [17:31:27]FM_MakeSignedData [17:31:27]SAM_PROTO_SignData [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 0D 01 02 [17:31:27]Write to MH i2c: E2 08 00 21 2F 80 0D 01 02 00 00 00 00 C9 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 21 2F 00 90 00 C4 [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]wFMCommunicate request_size=255 [17:31:27]MH_SAM_APDU [17:31: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 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 D7 00 00 00 F4 03 04 00 F1 78 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 80 39 02 00 35 04 06 00 FB [17:31:27]Write to MH i2c: E2 02 01 22 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 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 D7 00 00 00 F4 03 04 00 F1 78 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 80 39 02 00 35 04 06 00 FB 00 00 2D [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:28]Read from MH i2c: E2 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 03 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 03 00 22 2F 00 90 00 C5 [17:31:28]RAPDU: 90 00 [17:31:28]wFMCommunicate OK [17:31:28]wFMCommunicate request_size=10 [17:31:28]MH_SAM_APDU [17:31:28]CAPDU: 80 0D 02 02 05 0F D4 2F AA 82 [17:31:28]Write to MH i2c: E2 0D 00 23 2F 80 0D 02 02 05 00 0F D4 2F AA 82 00 00 14 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:28]Read from MH i2c: E2 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 03 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 03 00 23 2F 00 90 00 C6 [17:31:28]RAPDU: 90 00 [17:31:28]wFMCommunicate OK [17:31:28]wFMCommunicate request_size=4 [17:31:28]MH_SAM_APDU [17:31:28]CAPDU: 80 0D 03 02 [17:31:28]Write to MH i2c: E2 08 00 24 2F 80 0D 03 02 00 00 00 00 CE [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:28]Read from MH i2c: E2 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 0B 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 0B 00 24 2F 00 9B E3 EB BB 40 D5 99 BA 90 00 5B [17:31:28]RAPDU: 9B E3 EB BB 40 D5 99 BA 90 00 [17:31:28]wFMCommunicate OK [17:31:28]SAM_PROTO_SignData done [17:31:28]FM_MakeSignedData done [17:31:28]CreateOFDProtocolMessage [17:31:28]wFMCommunicate request_size=4 [17:31:28]MH_SAM_APDU [17:31:28]CAPDU: 80 11 00 00 [17:31:28]Write to MH i2c: E2 08 00 25 2F 80 11 00 00 00 00 00 00 CE [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:28]Read from MH i2c: E2 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 17 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 17 00 25 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 21 [17:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:31:28]wFMCommunicate OK [17:31:28]CreateOFDProtocolMessage done [17:31:28]OFDSenderStorePacket 145792 [17:31:28]StoreOFDPacket docnum=145792 [17:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 7A C6 07 01 FD 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 D7 00 00 00 F4 03 04 00 F1 78 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 80 39 02 00 35 04 06 00 FB 0F D4 2F AA 82 9B E3 EB BB 40 D5 99 BA [17:31:28]CheckFolder [17:31:28]dirname=/storage/ofd_packets [17:31:28]CheckFolder done [17:31:28]ProducePacketName [17:31:28]name=ofd_packets/00145792 [17:31:28]NVStorageSaveData ofd_packets/00145792 [17:31:28]File name is /storage/ofd_packets/00145792 [17:31:28]Write 301 bytes [17:31:28]NVStorageSaveData done [17:31:28]OFDSenderStorePacket done [17:31:28]KKMCreateOFDPacket done [17:31:28]NVStorageSaveData kkm_last_timestamp [17:31:28]File name is /storage/kkm_last_timestamp [17:31:28]Write 4 bytes [17:31:28]NVStorageSaveData done [17:31:28]ExternCall_PrintAddStr [17:31:28]wPrintStart [17:31:28]Write to MH i2c: 01 00 00 26 2F 55 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 26 2F 00 00 00 00 00 FF 0F 6A [17:31:28]RasterBufferAndPrint [17:31:28]line Счет N : (1)160549 [17:31:28]line ИНН: 02508201610067 [17:31:28]line Контрольно-Кассовый Чек [17:31:28]line ПРОДАЖА [17:31:28]line ТРК (МРК, ГНК) : 62 [17:31:28]line Товар: 2710124130 [17:31:28]line Аи-92-К-2 [17:31:28]line 37.370 * 66.90 [17:31:28]line = 2500.05 [17:31:28]line НДС 12% НСП 1% [17:31:28]line > о реализуемом товаре [17:31:28]line ОКРУГЛЕНИЕ: -0.05 [17:31:28]line ИТОГО: 2500.00 [17:31:28]line Внесено: 2500.00 [17:31:28]line СДАЧА: 0.00 [17:31:28]line НСП 1% : 22.12 [17:31:28]line НДС 12% : 265.49 [17:31:28]line Наличными: 2500.00 [17:31:28]line Безнал.: 0.00 [17:31:28]line Место: АЗС № 126 "Партнер Нефть" [17:31:28]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:31:28]line СНО: Общий режим [17:31:28]line Чек 215 27.10.2024 17:31 [17:31:28]line Смена: 545 ФФД: 1.0 [17:31:28]line ЗНМ: 0300000085 [17:31:28]line РНМ: 0000000000091683 [17:31:28]line Версия ККМ: 001 [17:31:28]line ФМ: 0000000000871745 [17:31:28]line ФД: 145792 [17:31:28]line ФПД: 276045402974850 [17:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173129&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145792&fm=276045402974850&tin=02508201610067®Number=0000000000091683&sum=250000 [17:31:28]OFD Sender: Processing packet 145792 [packets to send 206, broken 205] [17:31:28]ProducePacketName [17:31:28]name=ofd_packets/00145792 [17:31:28]OFD Sender: To server: pG, [17:31:28]CommunicateWithHost lk.salyk.kg:30040 [17:31:28]ConnectInit lk.salyk.kg [17:31:28]written 0, free lines is 4095 [17:31:28]Connected sock=10 [17:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 7A C6 07 01 FD 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 D7 00 00 00 F4 03 04 00 F1 78 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 80 39 02 00 35 04 06 00 FB 0F D4 2F AA 82 9B E3 EB BB 40 D5 99 BA [17:31:29]Write to MH i2c: 01 00 00 51 2F 80 [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: 01 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: 01 07 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: 01 07 00 51 2F 00 00 00 00 00 BE 0C 51 [17:31:29]RasterBufferAndPrint [17:31:29]line [17:31:29]line [17:31:29]line [17:31:29]line [17:31:29]line [17:31:29]written 0, free lines is 3267 [17:31:29]MH_Cut [17:31:29]Write to MH i2c: D1 01 00 58 2F 01 59 [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: D1 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: D1 01 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: D1 01 00 58 2F 00 58 [17:31:29]Write to MH i2c: 01 00 00 59 2F 88 [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 B2 F4 47 00 07 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 31 37 34 35 10 04 04 00 80 39 02 00 F4 03 04 00 1E 1E 1E 67 B6 04 01 00 00 87 69 28 A8 6F C5 EF FA [17:31:29]CommunicateWithHost err = 0 [17:31:29]CheckOFDResponse [17:31:29]1017 (14) - 77093643461234 [17:31:29]1041 (16) - 0000000000871745 [17:31:29]1040 (4) - 145792 [17:31:29]1012 (4) - 27.10.2024 11:03 [17:31:29]1206 (1) - 0 [17:31:29]OFD Sender: Remove packet 145792 [17:31:29]ProducePacketName [17:31:29]name=ofd_packets/00145792 [17:31:29]NVStorageDeleteData [17:31:29]OFD Sender: No OFD packet to send [17:31:30]*** Cut start [17:31:30]*** Partial cut [17:31:30]*** CUTSNS_PIN = 1 [17:31:30]*** CUTSNS_PIN = 0 [17:31:30]*** Brake cut motor [17:31:30]Read from MH i2c: 01 [17:31:30]MH_I2C_Read... [17:31:30]*** Stop cut motor [17:31:30]*** Cut end [17:31:30]Read from MH i2c: 01 07 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: 01 07 00 59 2F 00 00 00 00 00 FF 0F 9D [17:31:30]process_action close_receipt done [17:31:30]requested_data is exist [17:31:30]produce_requested_data [17:31:30]requested_item fm.sn is exist - process it [17:31:30]wFMCommunicate request_size=4 [17:31:30]MH_SAM_APDU [17:31:30]CAPDU: 80 11 00 00 [17:31:30]Write to MH i2c: E2 08 00 5A 2F 80 11 00 00 00 00 00 00 03 [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 17 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 17 00 5A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 56 [17:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:31:30]wFMCommunicate OK [17:31:30]requested_item fd.num is exist - process it [17:31:30]SAM_PROTO_GetFieldsCounters [17:31:30]wFMCommunicate request_size=4 [17:31:30]MH_SAM_APDU [17:31:30]CAPDU: 80 13 00 00 [17:31:30]Write to MH i2c: E2 08 00 5B 2F 80 13 00 00 00 00 00 00 06 [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 62 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 62 00 5B 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 80 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [17:31:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 80 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:30]wFMCommunicate OK [17:31:30]SAM_PROTO_GetFieldsCounters done [17:31:30]requested_item shift.num is exist - process it [17:31:30]requested_item shift.opened is exist - process it [17:31:30]req_shift_opened [17:31:30]FM_GetShiftState [17:31:30]SAM_PROTO_GetShiftState [17:31:30]wFMCommunicate request_size=4 [17:31:30]MH_SAM_APDU [17:31:30]CAPDU: 80 13 01 00 [17:31:30]Write to MH i2c: E2 08 00 5C 2F 80 13 01 00 00 00 00 00 08 [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 0E 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 0E 00 5C 2F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 80 [17:31:30]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:31:30]wFMCommunicate OK [17:31:30]SAM_PROTO_GetShiftState done [17:31:30]FM_GetShiftState done [17:31:30]req_shift_opened done [17:31:30]requested_item shift.open_date is exist - process it [17:31:30]req_shift_open_date [17:31:30]req_shift_open_date done [17:31:30]produce_requested_data done [17:31:30]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145792,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:31:30]process_action_free close_receipt [17:31:30]json_value_free [17:31:30]json_value_free done [17:31:30]process_json_proto returns [17:31:30]Send response to host [17:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145792,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:31:30]free response buf [17:31:30]execute_script done [17:31:30]execute_script returns [17:31:30]free content buf [17:31:30]Sock 7.Close socket [17:31:30]Sock 7.Thread stoped [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:48]accept exits with 9 [17:32:48]New connection [17:32:48]New thread 3066596708 created [17:32:48]Thread 3066740068 joined [17:32:48]Waiting for new connection... [17:32:48] Sock 9.Parse request [17:32:48]Sock 9.Check first char [17:32:48]Sock 9.First char is OK [17:32:48]request: POST /json_proto HTTP/1.0 [17:32:48]Method: POST [17:32:48]URL: /json_proto [17:32:48]Method is POST - this is cgi request [17:32:48]url: /json_proto [17:32:48]query_string will be loaded in cgi processing [17:32:48]execute_cgi json_proto POST (null) [17:32:48]execute_cgi path=json_proto method=POST [17:32:48]POST find Content-Length [17:32:48]Host: 172.17.40.195:8080 [17:32:48]Content-Length: 677 [17:32:48]Content-Type: application/json [17:32:48] [17:32:48]POST finish read [17:32:48]Found Content-Length = 677 [17:32:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:48]execute_script... [17:32:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:48]POST & json_proto [17:32:48]process_json_proto [17:32:48]json parsed OK: [17:32:48]protocol is kg_v1.0 [17:32:48]action value=close_receipt [17:32:48]process_action close_receipt [17:32:48]cmd_close_receipt [17:32:48]MH_GetDate [17:32:48]Write to MH i2c: F0 00 00 5D 2F 7B [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: F0 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: F0 09 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: F0 09 00 5D 2F 00 43 79 1E 67 D5 8D 6C 64 F7 [17:32:48]GetLastDocTimeStamp 1730050289 [17:32:48]current date 1730050371 [17:32:48]FM_GetShiftState [17:32:48]SAM_PROTO_GetShiftState [17:32:48]wFMCommunicate request_size=4 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 13 01 00 [17:32:48]Write to MH i2c: E2 08 00 5E 2F 80 13 01 00 00 00 00 00 0A [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 0E 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 0E 00 5E 2F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 82 [17:32:48]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:32:48]wFMCommunicate OK [17:32:48]SAM_PROTO_GetShiftState done [17:32:48]FM_GetShiftState done [17:32:48]opened in 1729988959 [17:32:48]opened+sec_in_day 1730075359 [17:32:48]quantity*price = 60009 [17:32:48]sum+1 = 60010 [17:32:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 216 27.10.2024 17:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145793 ФПД: 220192647068173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173251&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145793&fm=220192647068173&tin=02508201610067®Number=0000000000091683&sum=60000 [17:32:49]StoreToDocumentArchive [17:32:49]shift 545 fd 145793 [17:32:49]save to /storage/0545/doc_00145793 [17:32:49]save last doc name /storage/0545/doc_00145793 to /storage/kkm_last_doc_name [17:32:49]save OK [17:32:49]Clear old archive folders... [17:32:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:49]tlvbuf is 0045D030 [17:32:49]SAM_PROTO_ClearQueue [17:32:49]wFMCommunicate request_size=4 [17:32:49]MH_SAM_APDU [17:32:49]CAPDU: 80 09 00 00 [17:32:49]Write to MH i2c: E2 08 00 6B 2F 80 09 00 00 00 00 00 00 0C [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:49]Read from MH i2c: E2 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 03 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 03 00 6B 2F 00 90 00 0E [17:32:49]RAPDU: 90 00 [17:32:49]wFMCommunicate OK [17:32:49]SAM_PROTO_ClearQueue done [17:32:49]KKMCreateOFDPacket [17:32:49]OFDProtocolAddRootSTLVToBuf [17:32:49]FM_MakeSignedData [17:32:49]FM_MakeSignedData [17:32:49]SAM_PROTO_SignData [17:32:49]wFMCommunicate request_size=4 [17:32:49]MH_SAM_APDU [17:32:49]CAPDU: 80 0D 01 02 [17:32:49]Write to MH i2c: E2 08 00 6C 2F 80 0D 01 02 00 00 00 00 14 [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:49]Read from MH i2c: E2 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 03 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 03 00 6C 2F 00 90 00 0F [17:32:49]RAPDU: 90 00 [17:32:49]wFMCommunicate OK [17:32:49]wFMCommunicate request_size=255 [17:32:49]MH_SAM_APDU [17:32: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 43 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 81 39 02 00 35 04 06 00 C8 [17:32:49]Write to MH i2c: E2 02 01 6D 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 43 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 81 39 02 00 35 04 06 00 C8 00 00 3F [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]OFD Sender: No OFD packet to send [17:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 03 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 03 00 6D 2F 00 90 00 10 [17:32:50]RAPDU: 90 00 [17:32:50]wFMCommunicate OK [17:32:50]wFMCommunicate request_size=10 [17:32:50]MH_SAM_APDU [17:32:50]CAPDU: 80 0D 02 02 05 43 98 82 BA 0D [17:32:50]Write to MH i2c: E2 0D 00 6E 2F 80 0D 02 02 05 00 43 98 82 BA 0D 00 00 45 [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 03 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 03 00 6E 2F 00 90 00 11 [17:32:50]RAPDU: 90 00 [17:32:50]wFMCommunicate OK [17:32:50]wFMCommunicate request_size=4 [17:32:50]MH_SAM_APDU [17:32:50]CAPDU: 80 0D 03 02 [17:32:50]Write to MH i2c: E2 08 00 6F 2F 80 0D 03 02 00 00 00 00 19 [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 0B 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 0B 00 6F 2F 00 77 90 04 B3 2A 3D 1D 38 90 00 94 [17:32:50]RAPDU: 77 90 04 B3 2A 3D 1D 38 90 00 [17:32:50]wFMCommunicate OK [17:32:50]SAM_PROTO_SignData done [17:32:50]FM_MakeSignedData done [17:32:50]CreateOFDProtocolMessage [17:32:50]wFMCommunicate request_size=4 [17:32:50]MH_SAM_APDU [17:32:50]CAPDU: 80 11 00 00 [17:32:50]Write to MH i2c: E2 08 00 70 2F 80 11 00 00 00 00 00 00 19 [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 17 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 17 00 70 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6C [17:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:32:50]wFMCommunicate OK [17:32:50]CreateOFDProtocolMessage done [17:32:50]OFDSenderStorePacket 145793 [17:32:50]StoreOFDPacket docnum=145793 [17:32:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 3C 20 07 01 7A 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 43 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 81 39 02 00 35 04 06 00 C8 43 98 82 BA 0D 77 90 04 B3 2A 3D 1D 38 [17:32:50]CheckFolder [17:32:50]dirname=/storage/ofd_packets [17:32:50]CheckFolder done [17:32:50]ProducePacketName [17:32:50]name=ofd_packets/00145793 [17:32:50]NVStorageSaveData ofd_packets/00145793 [17:32:50]File name is /storage/ofd_packets/00145793 [17:32:50]Write 301 bytes [17:32:50]NVStorageSaveData done [17:32:50]OFDSenderStorePacket done [17:32:50]KKMCreateOFDPacket done [17:32:50]NVStorageSaveData kkm_last_timestamp [17:32:50]File name is /storage/kkm_last_timestamp [17:32:50]Write 4 bytes [17:32:50]NVStorageSaveData done [17:32:50]ExternCall_PrintAddStr [17:32:50]wPrintStart [17:32:50]Write to MH i2c: 01 00 00 71 2F A0 [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: 01 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: 01 07 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: 01 07 00 71 2F 00 00 00 00 00 FF 0F B5 [17:32:50]RasterBufferAndPrint [17:32:50]line Счет N : (1)160550 [17:32:50]line ИНН: 02508201610067 [17:32:50]line Контрольно-Кассовый Чек [17:32:50]line ПРОДАЖА [17:32:50]line ТРК (МРК, ГНК) : 32 [17:32:50]line Товар: 2710124130 [17:32:50]line Аи-92-К-2 [17:32:50]line 8.970 * 66.90 [17:32:50]line = 600.09 [17:32:50]line НДС 12% НСП 1% [17:32:50]line > о реализуемом товаре [17:32:50]line ОКРУГЛЕНИЕ: -0.09 [17:32:50]line ИТОГО: 600.00 [17:32:50]line Внесено: 600.00 [17:32:50]line СДАЧА: 0.00 [17:32:50]line НСП 1% : 5.31 [17:32:50]line НДС 12% : 63.73 [17:32:50]line Наличными: 600.00 [17:32:50]line Безнал.: 0.00 [17:32:50]line Место: АЗС № 126 "Партнер Нефть" [17:32:50]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:32:50]line СНО: Общий режим [17:32:50]line Чек 216 27.10.2024 17:32 [17:32:50]line Смена: 545 ФФД: 1.0 [17:32:50]line ЗНМ: 0300000085 [17:32:50]line РНМ: 0000000000091683 [17:32:50]line Версия ККМ: 001 [17:32:50]line ФМ: 0000000000871745 [17:32:50]line ФД: 145793 [17:32:50]line ФПД: 220192647068173 [17:32:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173251&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145793&fm=220192647068173&tin=02508201610067®Number=0000000000091683&sum=60000 [17:32:50]OFD Sender: Processing packet 145793 [packets to send 206, broken 205] [17:32:50]ProducePacketName [17:32:50]name=ofd_packets/00145793 [17:32:50]OFD Sender: To server: pG, [17:32:50]CommunicateWithHost lk.salyk.kg:30040 [17:32:50]ConnectInit lk.salyk.kg [17:32:50]written 0, free lines is 4095 [17:32:50]Connected sock=10 [17:32:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 3C 20 07 01 7A 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 43 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 81 39 02 00 35 04 06 00 C8 43 98 82 BA 0D 77 90 04 B3 2A 3D 1D 38 [17:32:51]Write to MH i2c: 01 00 00 9C 2F CB [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 07 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 07 00 9C 2F 00 00 00 00 00 B8 0C 96 [17:32:51]RasterBufferAndPrint [17:32:51]line [17:32:51]line [17:32:51]line [17:32:51]line [17:32:51]line [17:32:51]written 0, free lines is 3263 [17:32:51]MH_Cut [17:32:51]Write to MH i2c: D1 01 00 A3 2F 01 A4 [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: D1 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: D1 01 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: D1 01 00 A3 2F 00 A3 [17:32:51]Write to MH i2c: 01 00 00 A4 2F D3 [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 5A 08 47 00 69 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 81 39 02 00 F4 03 04 00 70 1E 1E 67 B6 04 01 00 00 53 AC 91 BF 83 11 F5 7C [17:32:51]CommunicateWithHost err = 0 [17:32:51]CheckOFDResponse [17:32:51]1017 (14) - 77093643461234 [17:32:51]1041 (16) - 0000000000871745 [17:32:51]1040 (4) - 145793 [17:32:51]1012 (4) - 27.10.2024 11:05 [17:32:51]1206 (1) - 0 [17:32:51]OFD Sender: Remove packet 145793 [17:32:51]ProducePacketName [17:32:51]name=ofd_packets/00145793 [17:32:51]NVStorageDeleteData [17:32:51]OFD Sender: No OFD packet to send [17:32:51]*** Cut start [17:32:51]*** Partial cut [17:32:51]*** CUTSNS_PIN = 1 [17:32:51]*** CUTSNS_PIN = 0 [17:32:52]*** Brake cut motor [17:32:52]Read from MH i2c: 01 [17:32:52]MH_I2C_Read... [17:32:52]*** Stop cut motor [17:32:52]*** Cut end [17:32:52]Read from MH i2c: 01 07 00 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: 01 07 00 A4 2F 00 00 00 00 00 FF 0F E8 [17:32:52]process_action close_receipt done [17:32:52]requested_data is exist [17:32:52]produce_requested_data [17:32:52]requested_item fm.sn is exist - process it [17:32:52]wFMCommunicate request_size=4 [17:32:52]MH_SAM_APDU [17:32:52]CAPDU: 80 11 00 00 [17:32:52]Write to MH i2c: E2 08 00 A5 2F 80 11 00 00 00 00 00 00 4E [17:32:52]Write i2c OK [17:32:52]MH_I2C_Read... [17:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:52]Read from MH i2c: E2 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 17 00 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 17 00 A5 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A1 [17:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:32:52]wFMCommunicate OK [17:32:52]requested_item fd.num is exist - process it [17:32:52]SAM_PROTO_GetFieldsCounters [17:32:52]wFMCommunicate request_size=4 [17:32:52]MH_SAM_APDU [17:32:52]CAPDU: 80 13 00 00 [17:32:52]Write to MH i2c: E2 08 00 A6 2F 80 13 00 00 00 00 00 00 51 [17:32:52]Write i2c OK [17:32:52]MH_I2C_Read... [17:32:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:52]Read from MH i2c: E2 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 62 00 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 62 00 A6 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 81 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [17:32:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 81 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:52]wFMCommunicate OK [17:32:52]SAM_PROTO_GetFieldsCounters done [17:32:52]requested_item shift.num is exist - process it [17:32:52]requested_item shift.opened is exist - process it [17:32:52]req_shift_opened [17:32:52]FM_GetShiftState [17:32:52]SAM_PROTO_GetShiftState [17:32:52]wFMCommunicate request_size=4 [17:32:52]MH_SAM_APDU [17:32:52]CAPDU: 80 13 01 00 [17:32:52]Write to MH i2c: E2 08 00 A7 2F 80 13 01 00 00 00 00 00 53 [17:32:52]Write i2c OK [17:32:52]MH_I2C_Read... [17:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:52]Read from MH i2c: E2 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 0E 00 [17:32:52]MH_I2C_Read... [17:32:52]Read from MH i2c: E2 0E 00 A7 2F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CB [17:32:52]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:32:52]wFMCommunicate OK [17:32:52]SAM_PROTO_GetShiftState done [17:32:52]FM_GetShiftState done [17:32:52]req_shift_opened done [17:32:52]requested_item shift.open_date is exist - process it [17:32:52]req_shift_open_date [17:32:52]req_shift_open_date done [17:32:52]produce_requested_data done [17:32:52]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145793,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:32:52]process_action_free close_receipt [17:32:52]json_value_free [17:32:52]json_value_free done [17:32:52]process_json_proto returns [17:32:52]Send response to host [17:32:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145793,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:32:52]free response buf [17:32:52]execute_script done [17:32:52]execute_script returns [17:32:52]free content buf [17:32:52]Sock 9.Close socket [17:32:52]Sock 9.Thread stoped [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:54]accept exits with 7 [17:33:54]New connection [17:33:54]New thread 3066740068 created [17:33:54]Thread 3066596708 joined [17:33:54]Waiting for new connection... [17:33:54] Sock 7.Parse request [17:33:54]Sock 7.Check first char [17:33:54]Sock 7.First char is OK [17:33:54]request: POST /json_proto HTTP/1.0 [17:33:54]Method: POST [17:33:54]URL: /json_proto [17:33:54]Method is POST - this is cgi request [17:33:54]url: /json_proto [17:33:54]query_string will be loaded in cgi processing [17:33:54]execute_cgi json_proto POST (null) [17:33:54]execute_cgi path=json_proto method=POST [17:33:54]POST find Content-Length [17:33:54]Host: 172.17.40.195:8080 [17:33:54]Content-Length: 677 [17:33:54]Content-Type: application/json [17:33:54] [17:33:54]POST finish read [17:33:54]Found Content-Length = 677 [17:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "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" ] } } [17:33:54]execute_script... [17:33: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)160551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "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" ] } } [17:33:54]POST & json_proto [17:33:54]process_json_proto [17:33:54]json parsed OK: [17:33:54]protocol is kg_v1.0 [17:33:54]action value=close_receipt [17:33:54]process_action close_receipt [17:33:54]cmd_close_receipt [17:33:54]MH_GetDate [17:33:54]Write to MH i2c: F0 00 00 A8 2F C6 [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: F0 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: F0 09 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: F0 09 00 A8 2F 00 84 79 1E 67 D5 8D 6C 64 83 [17:33:54]GetLastDocTimeStamp 1730050371 [17:33:54]current date 1730050436 [17:33:54]FM_GetShiftState [17:33:54]SAM_PROTO_GetShiftState [17:33:54]wFMCommunicate request_size=4 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 13 01 00 [17:33:54]Write to MH i2c: E2 08 00 A9 2F 80 13 01 00 00 00 00 00 55 [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:54]Read from MH i2c: E2 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 0E 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 0E 00 A9 2F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CD [17:33:54]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:33:54]wFMCommunicate OK [17:33:54]SAM_PROTO_GetShiftState done [17:33:54]FM_GetShiftState done [17:33:54]opened in 1729988959 [17:33:54]opened+sec_in_day 1730075359 [17:33:54]quantity*price = 31041 [17:33:54]sum+1 = 31043 [17:33:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.96 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 217 27.10.2024 17:33 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145794 ФПД: 46806215837770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173356&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145794&fm=46806215837770&tin=02508201610067®Number=0000000000091683&sum=31000 [17:33:55]StoreToDocumentArchive [17:33:55]shift 545 fd 145794 [17:33:55]save to /storage/0545/doc_00145794 [17:33:55]save last doc name /storage/0545/doc_00145794 to /storage/kkm_last_doc_name [17:33:55]save OK [17:33:55]Clear old archive folders... [17:33:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:55]tlvbuf is 00464290 [17:33:55]SAM_PROTO_ClearQueue [17:33:55]wFMCommunicate request_size=4 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 09 00 00 [17:33:55]Write to MH i2c: E2 08 00 B6 2F 80 09 00 00 00 00 00 00 57 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 B6 2F 00 90 00 59 [17:33:55]RAPDU: 90 00 [17:33:55]wFMCommunicate OK [17:33:55]SAM_PROTO_ClearQueue done [17:33:55]KKMCreateOFDPacket [17:33:55]OFDProtocolAddRootSTLVToBuf [17:33:55]FM_MakeSignedData [17:33:55]FM_MakeSignedData [17:33:55]SAM_PROTO_SignData [17:33:55]wFMCommunicate request_size=4 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 0D 01 02 [17:33:55]Write to MH i2c: E2 08 00 B7 2F 80 0D 01 02 00 00 00 00 5F [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 B7 2F 00 90 00 5A [17:33:55]RAPDU: 90 00 [17:33:55]wFMCommunicate OK [17:33:55]wFMCommunicate request_size=255 [17:33:55]MH_SAM_APDU [17:33: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 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 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 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 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 D9 00 00 00 F4 03 04 00 84 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 82 39 02 00 35 04 06 00 2A [17:33:55]Write to MH i2c: E2 02 01 B8 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 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 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 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 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 D9 00 00 00 F4 03 04 00 84 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 82 39 02 00 35 04 06 00 2A 00 00 18 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 B8 2F 00 90 00 5B [17:33:55]RAPDU: 90 00 [17:33:55]wFMCommunicate OK [17:33:55]wFMCommunicate request_size=10 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 0D 02 02 05 91 EB DE 48 4A [17:33:55]Write to MH i2c: E2 0D 00 B9 2F 80 0D 02 02 05 00 91 EB DE 48 4A 00 00 58 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 B9 2F 00 90 00 5C [17:33:55]RAPDU: 90 00 [17:33:55]wFMCommunicate OK [17:33:55]wFMCommunicate request_size=4 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 0D 03 02 [17:33:55]Write to MH i2c: E2 08 00 BA 2F 80 0D 03 02 00 00 00 00 64 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 0B 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 0B 00 BA 2F 00 59 9F 0C 12 E5 59 3A 33 90 00 26 [17:33:55]RAPDU: 59 9F 0C 12 E5 59 3A 33 90 00 [17:33:55]wFMCommunicate OK [17:33:55]SAM_PROTO_SignData done [17:33:55]FM_MakeSignedData done [17:33:55]CreateOFDProtocolMessage [17:33:55]wFMCommunicate request_size=4 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 11 00 00 [17:33:55]Write to MH i2c: E2 08 00 BB 2F 80 11 00 00 00 00 00 00 64 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:56]Read from MH i2c: E2 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 17 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: E2 17 00 BB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B7 [17:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:33:56]wFMCommunicate OK [17:33:56]CreateOFDProtocolMessage done [17:33:56]OFDSenderStorePacket 145794 [17:33:56]StoreOFDPacket docnum=145794 [17:33:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 79 CC 07 01 6E 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 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 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 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 D9 00 00 00 F4 03 04 00 84 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 82 39 02 00 35 04 06 00 2A 91 EB DE 48 4A 59 9F 0C 12 E5 59 3A 33 [17:33:56]CheckFolder [17:33:56]dirname=/storage/ofd_packets [17:33:56]CheckFolder done [17:33:56]ProducePacketName [17:33:56]name=ofd_packets/00145794 [17:33:56]NVStorageSaveData ofd_packets/00145794 [17:33:56]File name is /storage/ofd_packets/00145794 [17:33:56]Write 301 bytes [17:33:56]NVStorageSaveData done [17:33:56]OFDSenderStorePacket done [17:33:56]KKMCreateOFDPacket done [17:33:56]NVStorageSaveData kkm_last_timestamp [17:33:56]File name is /storage/kkm_last_timestamp [17:33:56]Write 4 bytes [17:33:56]NVStorageSaveData done [17:33:56]ExternCall_PrintAddStr [17:33:56]wPrintStart [17:33:56]Write to MH i2c: 01 00 00 BC 2F EB [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 07 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 07 00 BC 2F 00 00 00 00 00 FF 0F 00 [17:33:56]RasterBufferAndPrint [17:33:56]line Счет N : (1)160551 [17:33:56]line ИНН: 02508201610067 [17:33:56]line Контрольно-Кассовый Чек [17:33:56]line ПРОДАЖА [17:33:56]line ТРК (МРК, ГНК) : 42 [17:33:56]line Товар: 2710124130 [17:33:56]line Аи-92-К-2 [17:33:56]line 4.640 * 66.90 [17:33:56]line = 310.42 [17:33:56]line НДС 12% НСП 1% [17:33:56]line > о реализуемом товаре [17:33:56]line ОКРУГЛЕНИЕ: -0.42 [17:33:56]line ИТОГО: 310.00 [17:33:56]line Внесено: 310.00 [17:33:56]line СДАЧА: 0.00 [17:33:56]line НСП 1% : 2.75 [17:33:56]line НДС 12% : 32.96 [17:33:56]line Наличными: 310.00 [17:33:56]line Безнал.: 0.00 [17:33:56]line Место: АЗС № 126 "Партнер Нефть" [17:33:56]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:33:56]line СНО: Общий режим [17:33:56]line Чек 217 27.10.2024 17:33 [17:33:56]line Смена: 545 ФФД: 1.0 [17:33:56]line ЗНМ: 0300000085 [17:33:56]line РНМ: 0000000000091683 [17:33:56]line Версия ККМ: 001 [17:33:56]line ФМ: 0000000000871745 [17:33:56]line ФД: 145794 [17:33:56]line ФПД: 46806215837770 [17:33:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173356&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145794&fm=46806215837770&tin=02508201610067®Number=0000000000091683&sum=31000 [17:33:56]written 0, free lines is 4095 [17:33:56]OFD Sender: Processing packet 145794 [packets to send 206, broken 205] [17:33:56]ProducePacketName [17:33:56]name=ofd_packets/00145794 [17:33:56]OFD Sender: To server: pG, [17:33:56]CommunicateWithHost lk.salyk.kg:30040 [17:33:56]ConnectInit lk.salyk.kg [17:33:56]Connected sock=10 [17:33:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 79 CC 07 01 6E 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 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 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 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 D9 00 00 00 F4 03 04 00 84 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 82 39 02 00 35 04 06 00 2A 91 EB DE 48 4A 59 9F 0C 12 E5 59 3A 33 [17:33:56]Write to MH i2c: 01 00 00 E7 2F 16 [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 07 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 07 00 E7 2F 00 00 00 00 00 AF 0C D8 [17:33:56]RasterBufferAndPrint [17:33:56]line [17:33:56]line [17:33:56]line [17:33:56]line [17:33:56]line [17:33:56]written 0, free lines is 3253 [17:33:56]MH_Cut [17:33:56]Write to MH i2c: D1 01 00 EE 2F 01 EF [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 01 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 01 00 EE 2F 00 EE [17:33:56]Write to MH i2c: 01 00 00 EF 2F 1E [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 8E 6D 47 00 8D 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 31 37 34 35 10 04 04 00 82 39 02 00 F4 03 04 00 B1 1E 1E 67 B6 04 01 00 00 B7 85 51 81 45 C0 8A 4F [17:33:56]CommunicateWithHost err = 0 [17:33:56]CheckOFDResponse [17:33:56]1017 (14) - 77093643461234 [17:33:56]1041 (16) - 0000000000871745 [17:33:56]1040 (4) - 145794 [17:33:56]1012 (4) - 27.10.2024 11:06 [17:33:56]1206 (1) - 0 [17:33:56]OFD Sender: Remove packet 145794 [17:33:56]ProducePacketName [17:33:56]name=ofd_packets/00145794 [17:33:56]NVStorageDeleteData [17:33:57]OFD Sender: No OFD packet to send [17:33:57]*** Cut start [17:33:57]*** Partial cut [17:33:57]*** CUTSNS_PIN = 1 [17:33:57]*** CUTSNS_PIN = 0 [17:33:57]*** Brake cut motor [17:33:58]Read from MH i2c: 01 [17:33:58]MH_I2C_Read... [17:33:58]*** Stop cut motor [17:33:58]*** Cut end [17:33:58]Read from MH i2c: 01 07 00 [17:33:58]MH_I2C_Read... [17:33:58]Read from MH i2c: 01 07 00 EF 2F 00 00 00 00 00 FF 0F 33 [17:33:58]process_action close_receipt done [17:33:58]requested_data is exist [17:33:58]produce_requested_data [17:33:58]requested_item fm.sn is exist - process it [17:33:58]wFMCommunicate request_size=4 [17:33:58]MH_SAM_APDU [17:33:58]CAPDU: 80 11 00 00 [17:33:58]Write to MH i2c: E2 08 00 F0 2F 80 11 00 00 00 00 00 00 99 [17:33:58]Write i2c OK [17:33:58]MH_I2C_Read... [17:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:58]Read from MH i2c: E2 [17:33:58]MH_I2C_Read... [17:33:58]Read from MH i2c: E2 17 00 [17:33:58]MH_I2C_Read... [17:33:58]Read from MH i2c: E2 17 00 F0 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EC [17:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:33:58]wFMCommunicate OK [17:33:58]requested_item fd.num is exist - process it [17:33:58]SAM_PROTO_GetFieldsCounters [17:33:58]wFMCommunicate request_size=4 [17:33:58]MH_SAM_APDU [17:33:58]CAPDU: 80 13 00 00 [17:33:58]Write to MH i2c: E2 08 00 F1 2F 80 13 00 00 00 00 00 00 9C [17:33:58]Write i2c OK [17:33:58]MH_I2C_Read... [17:33:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:58]Read from MH i2c: E2 [17:33:58]MH_I2C_Read... [17:33:58]Read from MH i2c: E2 62 00 [17:33:58]MH_I2C_Read... [17:33:58]Read from MH i2c: E2 62 00 F1 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 82 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [17:33:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 82 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:58]wFMCommunicate OK [17:33:58]SAM_PROTO_GetFieldsCounters done [17:33:58]requested_item shift.num is exist - process it [17:33:58]requested_item shift.opened is exist - process it [17:33:58]req_shift_opened [17:33:58]FM_GetShiftState [17:33:58]SAM_PROTO_GetShiftState [17:33:58]wFMCommunicate request_size=4 [17:33:58]MH_SAM_APDU [17:33:58]CAPDU: 80 13 01 00 [17:33:58]Write to MH i2c: E2 08 00 F2 2F 80 13 01 00 00 00 00 00 9E [17:33:58]Write i2c OK [17:33:58]MH_I2C_Read... [17:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:58]Read from MH i2c: E2 [17:33:58]MH_I2C_Read... [17:33:58]Read from MH i2c: E2 0E 00 [17:33:58]MH_I2C_Read... [17:33:58]Read from MH i2c: E2 0E 00 F2 2F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 16 [17:33:58]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:33:58]wFMCommunicate OK [17:33:58]SAM_PROTO_GetShiftState done [17:33:58]FM_GetShiftState done [17:33:58]req_shift_opened done [17:33:58]requested_item shift.open_date is exist - process it [17:33:58]req_shift_open_date [17:33:58]req_shift_open_date done [17:33:58]produce_requested_data done [17:33:58]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145794,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:33:58]process_action_free close_receipt [17:33:58]json_value_free [17:33:58]json_value_free done [17:33:58]process_json_proto returns [17:33:58]Send response to host [17:33:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145794,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:33:58]free response buf [17:33:58]execute_script done [17:33:58]execute_script returns [17:33:58]free content buf [17:33:58]Sock 7.Close socket [17:33:58]Sock 7.Thread stoped [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:27]accept exits with 9 [17:34:27]New connection [17:34:27]New thread 3066596708 created [17:34:27]Thread 3066740068 joined [17:34:27]Waiting for new connection... [17:34:27] Sock 9.Parse request [17:34:27]Sock 9.Check first char [17:34:27]Sock 9.First char is OK [17:34:27]request: POST /json_proto HTTP/1.0 [17:34:27]Method: POST [17:34:27]URL: /json_proto [17:34:27]Method is POST - this is cgi request [17:34:27]url: /json_proto [17:34:27]query_string will be loaded in cgi processing [17:34:27]execute_cgi json_proto POST (null) [17:34:27]execute_cgi path=json_proto method=POST [17:34:27]POST find Content-Length [17:34:27]Host: 172.17.40.195:8080 [17:34:27]Content-Length: 674 [17:34:27]Content-Type: application/json [17:34:27] [17:34:27]POST finish read [17:34:27]Found Content-Length = 674 [17:34:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:27]execute_script... [17:34: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)160552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:27]POST & json_proto [17:34:27]process_json_proto [17:34:27]json parsed OK: [17:34:27]protocol is kg_v1.0 [17:34:27]action value=close_receipt [17:34:27]process_action close_receipt [17:34:27]cmd_close_receipt [17:34:27]MH_GetDate [17:34:27]Write to MH i2c: F0 00 00 F3 2F 11 [17:34:27]Write i2c OK [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: F0 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: F0 09 00 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: F0 09 00 F3 2F 00 A6 79 1E 67 D5 8D 6C 64 F0 [17:34:27]GetLastDocTimeStamp 1730050436 [17:34:27]current date 1730050470 [17:34:27]FM_GetShiftState [17:34:27]SAM_PROTO_GetShiftState [17:34:27]wFMCommunicate request_size=4 [17:34:27]MH_SAM_APDU [17:34:27]CAPDU: 80 13 01 00 [17:34:27]Write to MH i2c: E2 08 00 F4 2F 80 13 01 00 00 00 00 00 A0 [17:34:27]Write i2c OK [17:34:27]MH_I2C_Read... [17:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:27]Read from MH i2c: E2 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: E2 0E 00 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: E2 0E 00 F4 2F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 18 [17:34:27]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:34:27]wFMCommunicate OK [17:34:27]SAM_PROTO_GetShiftState done [17:34:27]FM_GetShiftState done [17:34:27]opened in 1729988959 [17:34:27]opened+sec_in_day 1730075359 [17:34:27]quantity*price = 50063 [17:34:27]sum+1 = 50064 [17:34:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 218 27.10.2024 17:34 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145795 ФПД: 132421635437622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173430&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145795&fm=132421635437622&tin=02508201610067®Number=0000000000091683&sum=50000 [17:34:28]StoreToDocumentArchive [17:34:28]shift 545 fd 145795 [17:34:28]save to /storage/0545/doc_00145795 [17:34:28]save last doc name /storage/0545/doc_00145795 to /storage/kkm_last_doc_name [17:34:28]save OK [17:34:28]Clear old archive folders... [17:34:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:34:28]tlvbuf is B6D74380 [17:34:28]SAM_PROTO_ClearQueue [17:34:28]wFMCommunicate request_size=4 [17:34:28]MH_SAM_APDU [17:34:28]CAPDU: 80 09 00 00 [17:34:28]Write to MH i2c: E2 08 00 01 30 80 09 00 00 00 00 00 00 A3 [17:34:28]Write i2c OK [17:34:28]MH_I2C_Read... [17:34:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:28]Read from MH i2c: E2 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 01 30 00 90 00 A5 [17:34:28]RAPDU: 90 00 [17:34:28]wFMCommunicate OK [17:34:28]SAM_PROTO_ClearQueue done [17:34:28]KKMCreateOFDPacket [17:34:28]OFDProtocolAddRootSTLVToBuf [17:34:28]FM_MakeSignedData [17:34:28]FM_MakeSignedData [17:34:28]SAM_PROTO_SignData [17:34:28]wFMCommunicate request_size=4 [17:34:28]MH_SAM_APDU [17:34:28]CAPDU: 80 0D 01 02 [17:34:28]Write to MH i2c: E2 08 00 02 30 80 0D 01 02 00 00 00 00 AB [17:34:28]Write i2c OK [17:34:28]MH_I2C_Read... [17:34:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:28]Read from MH i2c: E2 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 02 30 00 90 00 A6 [17:34:28]RAPDU: 90 00 [17:34:28]wFMCommunicate OK [17:34:28]wFMCommunicate request_size=255 [17:34:28]MH_SAM_APDU [17:34: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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A6 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 83 39 02 00 35 04 06 00 78 6F D0 8A [17:34:28]Write to MH i2c: E2 02 01 03 30 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A6 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 83 39 02 00 35 04 06 00 78 6F D0 8A 00 00 57 [17:34:28]Write i2c OK [17:34:28]MH_I2C_Read... [17:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:29]Read from MH i2c: E2 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 03 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 03 00 03 30 00 90 00 A7 [17:34:29]RAPDU: 90 00 [17:34:29]wFMCommunicate OK [17:34:29]wFMCommunicate request_size=7 [17:34:29]MH_SAM_APDU [17:34:29]CAPDU: 80 0D 02 02 02 74 36 [17:34:29]Write to MH i2c: E2 0A 00 04 30 80 0D 02 02 02 00 74 36 00 00 5C [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:29]Read from MH i2c: E2 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 03 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 03 00 04 30 00 90 00 A8 [17:34:29]RAPDU: 90 00 [17:34:29]wFMCommunicate OK [17:34:29]wFMCommunicate request_size=4 [17:34:29]MH_SAM_APDU [17:34:29]CAPDU: 80 0D 03 02 [17:34:29]Write to MH i2c: E2 08 00 05 30 80 0D 03 02 00 00 00 00 B0 [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:29]Read from MH i2c: E2 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 0B 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 0B 00 05 30 00 C7 68 5F 25 55 F1 ED 95 90 00 2C [17:34:29]RAPDU: C7 68 5F 25 55 F1 ED 95 90 00 [17:34:29]wFMCommunicate OK [17:34:29]SAM_PROTO_SignData done [17:34:29]FM_MakeSignedData done [17:34:29]CreateOFDProtocolMessage [17:34:29]wFMCommunicate request_size=4 [17:34:29]MH_SAM_APDU [17:34:29]CAPDU: 80 11 00 00 [17:34:29]Write to MH i2c: E2 08 00 06 30 80 11 00 00 00 00 00 00 B0 [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:29]Read from MH i2c: E2 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 17 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 17 00 06 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 03 [17:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:34:29]wFMCommunicate OK [17:34:29]CreateOFDProtocolMessage done [17:34:29]OFDSenderStorePacket 145795 [17:34:29]StoreOFDPacket docnum=145795 [17:34:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 FA 25 04 01 53 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A6 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 83 39 02 00 35 04 06 00 78 6F D0 8A 74 36 C7 68 5F 25 55 F1 ED 95 [17:34:29]CheckFolder [17:34:29]dirname=/storage/ofd_packets [17:34:29]CheckFolder done [17:34:29]ProducePacketName [17:34:29]name=ofd_packets/00145795 [17:34:29]NVStorageSaveData ofd_packets/00145795 [17:34:29]File name is /storage/ofd_packets/00145795 [17:34:29]Write 298 bytes [17:34:29]NVStorageSaveData done [17:34:29]OFDSenderStorePacket done [17:34:29]KKMCreateOFDPacket done [17:34:29]NVStorageSaveData kkm_last_timestamp [17:34:29]File name is /storage/kkm_last_timestamp [17:34:29]Write 4 bytes [17:34:29]NVStorageSaveData done [17:34:29]ExternCall_PrintAddStr [17:34:29]wPrintStart [17:34:29]Write to MH i2c: 01 00 00 07 30 37 [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: 01 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: 01 07 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: 01 07 00 07 30 00 00 00 00 00 FF 0F 4C [17:34:29]RasterBufferAndPrint [17:34:29]line Счет N : (1)160552 [17:34:29]line ИНН: 02508201610067 [17:34:29]line Контрольно-Кассовый Чек [17:34:29]line ПРОДАЖА [17:34:29]line ТРК (МРК, ГНК) : 11 [17:34:29]line Товар: 2710194210 [17:34:29]line ДТ-К-2 [17:34:29]line 6.570 * 76.20 [17:34:29]line = 500.63 [17:34:29]line НДС 12% НСП 1% [17:34:29]line > о реализуемом товаре [17:34:29]line ОКРУГЛЕНИЕ: -0.63 [17:34:29]line ИТОГО: 500.00 [17:34:29]line Внесено: 500.00 [17:34:29]line СДАЧА: 0.00 [17:34:29]line НСП 1% : 4.43 [17:34:29]line НДС 12% : 53.16 [17:34:29]line Наличными: 500.00 [17:34:29]line Безнал.: 0.00 [17:34:29]line Место: АЗС № 126 "Партнер Нефть" [17:34:29]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:34:29]line СНО: Общий режим [17:34:29]line Чек 218 27.10.2024 17:34 [17:34:29]line Смена: 545 ФФД: 1.0 [17:34:29]line ЗНМ: 0300000085 [17:34:29]line РНМ: 0000000000091683 [17:34:29]line Версия ККМ: 001 [17:34:29]line ФМ: 0000000000871745 [17:34:29]line ФД: 145795 [17:34:29]line ФПД: 132421635437622 [17:34:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173430&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145795&fm=132421635437622&tin=02508201610067®Number=0000000000091683&sum=50000 [17:34:29]OFD Sender: Processing packet 145795 [packets to send 206, broken 205] [17:34:29]ProducePacketName [17:34:29]name=ofd_packets/00145795 [17:34:29]OFD Sender: To server: pG, [17:34:29]CommunicateWithHost lk.salyk.kg:30040 [17:34:29]ConnectInit lk.salyk.kg [17:34:29]written 0, free lines is 4095 [17:34:29]Connected sock=10 [17:34:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 FA 25 04 01 53 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A6 79 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 83 39 02 00 35 04 06 00 78 6F D0 8A 74 36 C7 68 5F 25 55 F1 ED 95 [17:34:30]Write to MH i2c: 01 00 00 32 30 62 [17:34:30]Write i2c OK [17:34:30]MH_I2C_Read... [17:34:30]Read from MH i2c: 01 [17:34:30]MH_I2C_Read... [17:34:30]Read from MH i2c: 01 07 00 [17:34:30]MH_I2C_Read... [17:34:30]Read from MH i2c: 01 07 00 32 30 00 00 00 00 00 A8 0C 1D [17:34:30]RasterBufferAndPrint [17:34:30]line [17:34:30]line [17:34:30]line [17:34:30]line [17:34:30]line [17:34:30]written 0, free lines is 3246 [17:34:30]MH_Cut [17:34:30]Write to MH i2c: D1 01 00 39 30 01 3B [17:34:30]Write i2c OK [17:34:30]MH_I2C_Read... [17:34:30]Read from MH i2c: D1 [17:34:30]MH_I2C_Read... [17:34:30]Read from MH i2c: D1 01 00 [17:34:30]MH_I2C_Read... [17:34:30]Read from MH i2c: D1 01 00 39 30 00 3A [17:34:30]Write to MH i2c: 01 00 00 3A 30 6A [17:34:30]Write i2c OK [17:34:30]MH_I2C_Read... [17:34:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 FC B9 47 00 9D 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 83 39 02 00 F4 03 04 00 D3 1E 1E 67 B6 04 01 00 00 12 65 30 B5 F9 C7 F3 7C [17:34:30]CommunicateWithHost err = 0 [17:34:30]CheckOFDResponse [17:34:30]1017 (14) - 77093643461234 [17:34:30]1041 (16) - 0000000000871745 [17:34:30]1040 (4) - 145795 [17:34:30]1012 (4) - 27.10.2024 11:06 [17:34:30]1206 (1) - 0 [17:34:30]OFD Sender: Remove packet 145795 [17:34:30]ProducePacketName [17:34:30]name=ofd_packets/00145795 [17:34:30]NVStorageDeleteData [17:34:30]OFD Sender: No OFD packet to send [17:34:30]*** Cut start [17:34:30]*** Partial cut [17:34:30]*** CUTSNS_PIN = 1 [17:34:30]*** CUTSNS_PIN = 0 [17:34:31]*** Brake cut motor [17:34:31]Read from MH i2c: 01 [17:34:31]MH_I2C_Read... [17:34:31]*** Stop cut motor [17:34:31]*** Cut end [17:34:31]Read from MH i2c: 01 07 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: 01 07 00 3A 30 00 00 00 00 00 FF 0F 7F [17:34:31]process_action close_receipt done [17:34:31]requested_data is exist [17:34:31]produce_requested_data [17:34:31]requested_item fm.sn is exist - process it [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 11 00 00 [17:34:31]Write to MH i2c: E2 08 00 3B 30 80 11 00 00 00 00 00 00 E5 [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 17 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 17 00 3B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 38 [17:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:34:31]wFMCommunicate OK [17:34:31]requested_item fd.num is exist - process it [17:34:31]SAM_PROTO_GetFieldsCounters [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 13 00 00 [17:34:31]Write to MH i2c: E2 08 00 3C 30 80 13 00 00 00 00 00 00 E8 [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 62 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 62 00 3C 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 83 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [17:34:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 83 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:31]wFMCommunicate OK [17:34:31]SAM_PROTO_GetFieldsCounters done [17:34:31]requested_item shift.num is exist - process it [17:34:31]requested_item shift.opened is exist - process it [17:34:31]req_shift_opened [17:34:31]FM_GetShiftState [17:34:31]SAM_PROTO_GetShiftState [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 13 01 00 [17:34:31]Write to MH i2c: E2 08 00 3D 30 80 13 01 00 00 00 00 00 EA [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0E 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0E 00 3D 30 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 62 [17:34:31]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:34:31]wFMCommunicate OK [17:34:31]SAM_PROTO_GetShiftState done [17:34:31]FM_GetShiftState done [17:34:31]req_shift_opened done [17:34:31]requested_item shift.open_date is exist - process it [17:34:31]req_shift_open_date [17:34:31]req_shift_open_date done [17:34:31]produce_requested_data done [17:34:31]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145795,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:34:31]process_action_free close_receipt [17:34:31]json_value_free [17:34:31]json_value_free done [17:34:31]process_json_proto returns [17:34:31]Send response to host [17:34:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145795,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:34:31]free response buf [17:34:31]execute_script done [17:34:31]execute_script returns [17:34:31]free content buf [17:34:31]Sock 9.Close socket [17:34:31]Sock 9.Thread stoped [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]int [17:35:25]Write to MH i2c: 01 00 00 3E 30 6E [17:35:25]*** FLAG_PRN_KEY set [17:35:25]OFD Sender: No OFD packet to send [17:35:25]Write i2c OK [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: 01 [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: 01 07 00 [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: 01 07 00 3E 30 00 08 00 00 00 FF 0F 8B [17:35:25]state=0 [17:35:25]Key pressed [17:35:25]Feed [17:35:25]Write to MH i2c: D8 00 00 3F 30 46 [17:35:25]Write i2c OK [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: D8 [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: D8 01 00 [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: D8 01 00 3F 30 00 47 [17:35:25]int [17:35:25]Write to MH i2c: 01 00 00 40 30 70 [17:35:25]Write i2c OK [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: 01 [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: 01 07 00 [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: 01 07 00 40 30 00 48 00 00 00 3C 00 FB [17:35:25]state=2 [17:35:25]Key pressed [17:35:25]int [17:35:25]Write to MH i2c: 01 00 00 41 30 71 [17:35:25]*** FLAG_PRN_KEY reset [17:35:25]Write i2c OK [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: 01 [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: 01 07 00 [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: 01 07 00 41 30 00 00 00 00 00 FF 0F 86 [17:35:25]state=2 [17:35:25]Stop feed [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:15]accept exits with 7 [17:38:15]New connection [17:38:15]New thread 3066740068 created [17:38:15]Thread 3066596708 joined [17:38:15]Waiting for new connection... [17:38:15] Sock 7.Parse request [17:38:15]Sock 7.Check first char [17:38:15]Sock 7.First char is OK [17:38:15]request: POST /json_proto HTTP/1.0 [17:38:15]Method: POST [17:38:15]URL: /json_proto [17:38:15]Method is POST - this is cgi request [17:38:15]url: /json_proto [17:38:15]query_string will be loaded in cgi processing [17:38:15]execute_cgi json_proto POST (null) [17:38:15]execute_cgi path=json_proto method=POST [17:38:15]POST find Content-Length [17:38:15]Host: 172.17.40.195:8080 [17:38:15]Content-Length: 688 [17:38:15]Content-Type: application/json [17:38:15] [17:38:15]POST finish read [17:38:15]Found Content-Length = 688 [17:38:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:15]execute_script... [17:38: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)160553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:15]POST & json_proto [17:38:15]process_json_proto [17:38:15]json parsed OK: [17:38:15]protocol is kg_v1.0 [17:38:15]action value=close_receipt [17:38:15]process_action close_receipt [17:38:15]cmd_close_receipt [17:38:15]MH_GetDate [17:38:15]Write to MH i2c: F0 00 00 42 30 61 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: F0 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: F0 09 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: F0 09 00 42 30 00 8A 7A 1E 67 D5 8D 6C 64 25 [17:38:15]GetLastDocTimeStamp 1730050470 [17:38:15]current date 1730050698 [17:38:15]FM_GetShiftState [17:38:15]SAM_PROTO_GetShiftState [17:38:15]wFMCommunicate request_size=4 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 13 01 00 [17:38:15]Write to MH i2c: E2 08 00 43 30 80 13 01 00 00 00 00 00 F0 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:16]Read from MH i2c: E2 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: E2 0E 00 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: E2 0E 00 43 30 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 68 [17:38:16]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:38:16]wFMCommunicate OK [17:38:16]SAM_PROTO_GetShiftState done [17:38:16]FM_GetShiftState done [17:38:16]opened in 1729988959 [17:38:16]opened+sec_in_day 1730075359 [17:38:16]quantity*price = 100051 [17:38:16]sum+1 = 100052 [17:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 219 27.10.2024 17:38 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145796 ФПД: 243993877641519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173818&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145796&fm=243993877641519&tin=02508201610067®Number=0000000000091683&sum=100000 [17:38:17]StoreToDocumentArchive [17:38:17]shift 545 fd 145796 [17:38:17]save to /storage/0545/doc_00145796 [17:38:17]save last doc name /storage/0545/doc_00145796 to /storage/kkm_last_doc_name [17:38:17]save OK [17:38:17]Clear old archive folders... [17:38:17]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:38:17]tlvbuf is 00405B00 [17:38:17]SAM_PROTO_ClearQueue [17:38:17]wFMCommunicate request_size=4 [17:38:17]MH_SAM_APDU [17:38:17]CAPDU: 80 09 00 00 [17:38:17]Write to MH i2c: E2 08 00 50 30 80 09 00 00 00 00 00 00 F2 [17:38:17]Write i2c OK [17:38:17]MH_I2C_Read... [17:38:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:17]Read from MH i2c: E2 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 03 00 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 03 00 50 30 00 90 00 F4 [17:38:17]RAPDU: 90 00 [17:38:17]wFMCommunicate OK [17:38:17]SAM_PROTO_ClearQueue done [17:38:17]KKMCreateOFDPacket [17:38:17]OFDProtocolAddRootSTLVToBuf [17:38:17]FM_MakeSignedData [17:38:17]FM_MakeSignedData [17:38:17]SAM_PROTO_SignData [17:38:17]wFMCommunicate request_size=4 [17:38:17]MH_SAM_APDU [17:38:17]CAPDU: 80 0D 01 02 [17:38:17]Write to MH i2c: E2 08 00 51 30 80 0D 01 02 00 00 00 00 FA [17:38:17]Write i2c OK [17:38:17]MH_I2C_Read... [17:38:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:17]Read from MH i2c: E2 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 03 00 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 03 00 51 30 00 90 00 F5 [17:38:17]RAPDU: 90 00 [17:38:17]wFMCommunicate OK [17:38:17]wFMCommunicate request_size=255 [17:38:17]MH_SAM_APDU [17:38:17]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 8A 7A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 84 39 02 [17:38:17]Write to MH i2c: E2 02 01 52 30 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 8A 7A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 84 39 02 00 00 3A [17:38:17]Write i2c OK [17:38:17]MH_I2C_Read... [17:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:17]Read from MH i2c: E2 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 03 00 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 03 00 52 30 00 90 00 F6 [17:38:17]RAPDU: 90 00 [17:38:17]wFMCommunicate OK [17:38:17]wFMCommunicate request_size=16 [17:38:17]MH_SAM_APDU [17:38:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DD E9 40 67 79 2F [17:38:17]Write to MH i2c: E2 13 00 53 30 80 0D 02 02 0B 00 00 35 04 06 00 DD E9 40 67 79 2F 00 00 67 [17:38:17]Write i2c OK [17:38:17]MH_I2C_Read... [17:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:17]Read from MH i2c: E2 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 03 00 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 03 00 53 30 00 90 00 F7 [17:38:17]RAPDU: 90 00 [17:38:17]wFMCommunicate OK [17:38:17]wFMCommunicate request_size=4 [17:38:17]MH_SAM_APDU [17:38:17]CAPDU: 80 0D 03 02 [17:38:17]Write to MH i2c: E2 08 00 54 30 80 0D 03 02 00 00 00 00 FF [17:38:17]Write i2c OK [17:38:17]MH_I2C_Read... [17:38:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:17]Read from MH i2c: E2 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 0B 00 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 0B 00 54 30 00 24 FF FC DE 29 7B 92 0D 90 00 40 [17:38:17]RAPDU: 24 FF FC DE 29 7B 92 0D 90 00 [17:38:17]wFMCommunicate OK [17:38:17]SAM_PROTO_SignData done [17:38:17]FM_MakeSignedData done [17:38:17]CreateOFDProtocolMessage [17:38:17]wFMCommunicate request_size=4 [17:38:17]MH_SAM_APDU [17:38:17]CAPDU: 80 11 00 00 [17:38:17]Write to MH i2c: E2 08 00 55 30 80 11 00 00 00 00 00 00 FF [17:38:17]Write i2c OK [17:38:17]MH_I2C_Read... [17:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:17]Read from MH i2c: E2 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 17 00 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: E2 17 00 55 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 52 [17:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:38:17]wFMCommunicate OK [17:38:17]CreateOFDProtocolMessage done [17:38:17]OFDSenderStorePacket 145796 [17:38:17]StoreOFDPacket docnum=145796 [17:38:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 10 0E 0D 01 81 09 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 8A 7A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 84 39 02 00 35 04 06 00 DD E9 40 67 79 2F 24 FF FC DE 29 7B 92 0D [17:38:17]CheckFolder [17:38:17]dirname=/storage/ofd_packets [17:38:17]CheckFolder done [17:38:17]ProducePacketName [17:38:17]name=ofd_packets/00145796 [17:38:17]NVStorageSaveData ofd_packets/00145796 [17:38:17]File name is /storage/ofd_packets/00145796 [17:38:17]Write 307 bytes [17:38:17]NVStorageSaveData done [17:38:17]OFDSenderStorePacket done [17:38:17]KKMCreateOFDPacket done [17:38:17]NVStorageSaveData kkm_last_timestamp [17:38:17]File name is /storage/kkm_last_timestamp [17:38:17]Write 4 bytes [17:38:17]NVStorageSaveData done [17:38:17]ExternCall_PrintAddStr [17:38:17]wPrintStart [17:38:17]Write to MH i2c: 01 00 00 56 30 86 [17:38:17]Write i2c OK [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: 01 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: 01 07 00 [17:38:17]MH_I2C_Read... [17:38:17]Read from MH i2c: 01 07 00 56 30 00 00 00 00 00 FF 0F 9B [17:38:17]RasterBufferAndPrint [17:38:17]line Счет N : (1)160553 [17:38:17]line ИНН: 02508201610067 [17:38:17]line Контрольно-Кассовый Чек [17:38:17]line ПРОДАЖА [17:38:17]line ТРК (МРК, ГНК) : 41 [17:38:17]line Товар: 2710194240 [17:38:17]line D-Energy Дт-К-2 [17:38:17]line 12.960 * 77.20 [17:38:17]line = 1000.51 [17:38:17]line НДС 12% НСП 1% [17:38:17]line > о реализуемом товаре [17:38:17]line ОКРУГЛЕНИЕ: -0.51 [17:38:17]line ИТОГО: 1000.00 [17:38:17]line Внесено: 1000.00 [17:38:17]line СДАЧА: 0.00 [17:38:17]line НСП 1% : 8.85 [17:38:17]line НДС 12% : 106.25 [17:38:17]line Наличными: 1000.00 [17:38:17]line Безнал.: 0.00 [17:38:17]line Место: АЗС № 126 "Партнер Нефть" [17:38:17]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:38:17]line СНО: Общий режим [17:38:17]line Чек 219 27.10.2024 17:38 [17:38:17]line Смена: 545 ФФД: 1.0 [17:38:17]line ЗНМ: 0300000085 [17:38:17]line РНМ: 0000000000091683 [17:38:17]line Версия ККМ: 001 [17:38:17]line ФМ: 0000000000871745 [17:38:17]line ФД: 145796 [17:38:17]line ФПД: 243993877641519 [17:38:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173818&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145796&fm=243993877641519&tin=02508201610067®Number=0000000000091683&sum=100000 [17:38:18]OFD Sender: Processing packet 145796 [packets to send 206, broken 205] [17:38:18]ProducePacketName [17:38:18]name=ofd_packets/00145796 [17:38:18]OFD Sender: To server: pG, [17:38:18]CommunicateWithHost lk.salyk.kg:30040 [17:38:18]ConnectInit lk.salyk.kg [17:38:18]written 0, free lines is 4095 [17:38:18]Connected sock=10 [17:38:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 10 0E 0D 01 81 09 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 8A 7A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 84 39 02 00 35 04 06 00 DD E9 40 67 79 2F 24 FF FC DE 29 7B 92 0D [17:38:18]Write to MH i2c: 01 00 00 81 30 B1 [17:38:18]Write i2c OK [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: 01 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: 01 07 00 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: 01 07 00 81 30 00 00 00 00 00 C0 0C 84 [17:38:18]RasterBufferAndPrint [17:38:18]line [17:38:18]line [17:38:18]line [17:38:18]line [17:38:18]line [17:38:18]written 0, free lines is 3270 [17:38:18]MH_Cut [17:38:18]Write to MH i2c: D1 01 00 88 30 01 8A [17:38:18]Write i2c OK [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: D1 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: D1 01 00 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: D1 01 00 88 30 00 89 [17:38:18]Write to MH i2c: 01 00 00 89 30 B9 [17:38:18]Write i2c OK [17:38:18]MH_I2C_Read... [17:38:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 08 71 47 00 95 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 84 39 02 00 F4 03 04 00 B7 1F 1E 67 B6 04 01 00 00 36 33 98 0B BA B1 03 35 [17:38:18]CommunicateWithHost err = 0 [17:38:18]CheckOFDResponse [17:38:18]1017 (14) - 77093643461234 [17:38:18]1041 (16) - 0000000000871745 [17:38:18]1040 (4) - 145796 [17:38:18]1012 (4) - 27.10.2024 11:10 [17:38:18]1206 (1) - 0 [17:38:18]OFD Sender: Remove packet 145796 [17:38:18]ProducePacketName [17:38:18]name=ofd_packets/00145796 [17:38:18]NVStorageDeleteData [17:38:19]OFD Sender: No OFD packet to send [17:38:19]*** Cut start [17:38:19]*** Partial cut [17:38:19]*** CUTSNS_PIN = 1 [17:38:19]*** CUTSNS_PIN = 0 [17:38:19]*** Brake cut motor [17:38:19]Read from MH i2c: 01 [17:38:19]MH_I2C_Read... [17:38:19]*** Stop cut motor [17:38:19]*** Cut end [17:38:19]Read from MH i2c: 01 07 00 [17:38:19]MH_I2C_Read... [17:38:19]Read from MH i2c: 01 07 00 89 30 00 00 00 00 00 FF 0F CE [17:38:19]process_action close_receipt done [17:38:19]requested_data is exist [17:38:19]produce_requested_data [17:38:19]requested_item fm.sn is exist - process it [17:38:19]wFMCommunicate request_size=4 [17:38:19]MH_SAM_APDU [17:38:19]CAPDU: 80 11 00 00 [17:38:19]Write to MH i2c: E2 08 00 8A 30 80 11 00 00 00 00 00 00 34 [17:38:19]Write i2c OK [17:38:19]MH_I2C_Read... [17:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:19]Read from MH i2c: E2 [17:38:19]MH_I2C_Read... [17:38:19]Read from MH i2c: E2 17 00 [17:38:19]MH_I2C_Read... [17:38:19]Read from MH i2c: E2 17 00 8A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 87 [17:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:38:19]wFMCommunicate OK [17:38:19]requested_item fd.num is exist - process it [17:38:19]SAM_PROTO_GetFieldsCounters [17:38:19]wFMCommunicate request_size=4 [17:38:19]MH_SAM_APDU [17:38:19]CAPDU: 80 13 00 00 [17:38:19]Write to MH i2c: E2 08 00 8B 30 80 13 00 00 00 00 00 00 37 [17:38:19]Write i2c OK [17:38:19]MH_I2C_Read... [17:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:20]Read from MH i2c: E2 [17:38:20]MH_I2C_Read... [17:38:20]Read from MH i2c: E2 62 00 [17:38:20]MH_I2C_Read... [17:38:20]Read from MH i2c: E2 62 00 8B 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 84 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [17:38:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 84 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:20]wFMCommunicate OK [17:38:20]SAM_PROTO_GetFieldsCounters done [17:38:20]requested_item shift.num is exist - process it [17:38:20]requested_item shift.opened is exist - process it [17:38:20]req_shift_opened [17:38:20]FM_GetShiftState [17:38:20]SAM_PROTO_GetShiftState [17:38:20]wFMCommunicate request_size=4 [17:38:20]MH_SAM_APDU [17:38:20]CAPDU: 80 13 01 00 [17:38:20]Write to MH i2c: E2 08 00 8C 30 80 13 01 00 00 00 00 00 39 [17:38:20]Write i2c OK [17:38:20]MH_I2C_Read... [17:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:20]Read from MH i2c: E2 [17:38:20]MH_I2C_Read... [17:38:20]Read from MH i2c: E2 0E 00 [17:38:20]MH_I2C_Read... [17:38:20]Read from MH i2c: E2 0E 00 8C 30 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B1 [17:38:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:38:20]wFMCommunicate OK [17:38:20]SAM_PROTO_GetShiftState done [17:38:20]FM_GetShiftState done [17:38:20]req_shift_opened done [17:38:20]requested_item shift.open_date is exist - process it [17:38:20]req_shift_open_date [17:38:20]req_shift_open_date done [17:38:20]produce_requested_data done [17:38:20]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145796,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:38:20]process_action_free close_receipt [17:38:20]json_value_free [17:38:20]json_value_free done [17:38:20]process_json_proto returns [17:38:20]Send response to host [17:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145796,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:38:20]free response buf [17:38:20]execute_script done [17:38:20]execute_script returns [17:38:20]free content buf [17:38:20]Sock 7.Close socket [17:38:20]Sock 7.Thread stoped [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:00]accept exits with 9 [17:41:00]New connection [17:41:00]New thread 3066596708 created [17:41:00]Thread 3066740068 joined [17:41:00]Waiting for new connection... [17:41:00] Sock 9.Parse request [17:41:00]Sock 9.Check first char [17:41:00]Sock 9.First char is OK [17:41:00]request: POST /json_proto HTTP/1.0 [17:41:00]Method: POST [17:41:00]URL: /json_proto [17:41:00]Method is POST - this is cgi request [17:41:00]url: /json_proto [17:41:00]query_string will be loaded in cgi processing [17:41:00]execute_cgi json_proto POST (null) [17:41:00]execute_cgi path=json_proto method=POST [17:41:00]POST find Content-Length [17:41:00]Host: 172.17.40.195:8080 [17:41:00]Content-Length: 984 [17:41:00]Content-Type: application/json [17:41:00] [17:41:00]POST finish read [17:41:00]Found Content-Length = 984 [17:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:00]execute_script... [17:41: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)160554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:00]POST & json_proto [17:41:00]process_json_proto [17:41:00]json parsed OK: [17:41:00]protocol is kg_v1.0 [17:41:00]action value=close_receipt [17:41:00]process_action close_receipt [17:41:00]cmd_close_receipt [17:41:00]MH_GetDate [17:41:00]Write to MH i2c: F0 00 00 8D 30 AC [17:41:00]Write i2c OK [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: F0 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: F0 09 00 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: F0 09 00 8D 30 00 2F 7B 1E 67 D5 8D 6C 64 16 [17:41:00]GetLastDocTimeStamp 1730050698 [17:41:00]current date 1730050863 [17:41:00]FM_GetShiftState [17:41:00]SAM_PROTO_GetShiftState [17:41:00]wFMCommunicate request_size=4 [17:41:00]MH_SAM_APDU [17:41:00]CAPDU: 80 13 01 00 [17:41:00]Write to MH i2c: E2 08 00 8E 30 80 13 01 00 00 00 00 00 3B [17:41:00]Write i2c OK [17:41:00]MH_I2C_Read... [17:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:00]Read from MH i2c: E2 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: E2 0E 00 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: E2 0E 00 8E 30 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B3 [17:41:00]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:41:00]wFMCommunicate OK [17:41:00]SAM_PROTO_GetShiftState done [17:41:00]FM_GetShiftState done [17:41:00]opened in 1729988959 [17:41:00]opened+sec_in_day 1730075359 [17:41:00]quantity*price = 150054 [17:41:00]sum+1 = 150055 [17:41:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 220 27.10.2024 17:41 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-92 номер 126 сэкономлено 22.77 сом ФМ: 0000000000871745 ФД: 145797 ФПД: 32482869656954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174103&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145797&fm=32482869656954&tin=02508201610067®Number=0000000000091683&sum=150000 [17:41:01]StoreToDocumentArchive [17:41:01]shift 545 fd 145797 [17:41:01]save to /storage/0545/doc_00145797 [17:41:01]save last doc name /storage/0545/doc_00145797 to /storage/kkm_last_doc_name [17:41:01]save OK [17:41:01]Clear old archive folders... [17:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:01]tlvbuf is 0045D610 [17:41:01]SAM_PROTO_ClearQueue [17:41:01]wFMCommunicate request_size=4 [17:41:01]MH_SAM_APDU [17:41:01]CAPDU: 80 09 00 00 [17:41:01]Write to MH i2c: E2 08 00 9B 30 80 09 00 00 00 00 00 00 3D [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:02]Read from MH i2c: E2 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 03 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 03 00 9B 30 00 90 00 3F [17:41:02]RAPDU: 90 00 [17:41:02]wFMCommunicate OK [17:41:02]SAM_PROTO_ClearQueue done [17:41:02]KKMCreateOFDPacket [17:41:02]OFDProtocolAddRootSTLVToBuf [17:41:02]FM_MakeSignedData [17:41:02]FM_MakeSignedData [17:41:02]SAM_PROTO_SignData [17:41:02]wFMCommunicate request_size=4 [17:41:02]MH_SAM_APDU [17:41:02]CAPDU: 80 0D 01 02 [17:41:02]Write to MH i2c: E2 08 00 9C 30 80 0D 01 02 00 00 00 00 45 [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:02]Read from MH i2c: E2 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 03 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 03 00 9C 30 00 90 00 40 [17:41:02]RAPDU: 90 00 [17:41:02]wFMCommunicate OK [17:41:02]wFMCommunicate request_size=255 [17:41:02]MH_SAM_APDU [17:41: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 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 2F 7B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 85 39 02 00 35 04 06 00 1D [17:41:02]Write to MH i2c: E2 02 01 9D 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 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 2F 7B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 85 39 02 00 35 04 06 00 1D 00 00 14 [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:02]Read from MH i2c: E2 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 03 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 03 00 9D 30 00 90 00 41 [17:41:02]RAPDU: 90 00 [17:41:02]wFMCommunicate OK [17:41:02]wFMCommunicate request_size=10 [17:41:02]MH_SAM_APDU [17:41:02]CAPDU: 80 0D 02 02 05 8B 01 E8 3D 7A [17:41:02]Write to MH i2c: E2 0D 00 9E 30 80 0D 02 02 05 00 8B 01 E8 3D 7A 00 00 7D [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:02]Read from MH i2c: E2 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 03 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 03 00 9E 30 00 90 00 42 [17:41:02]RAPDU: 90 00 [17:41:02]wFMCommunicate OK [17:41:02]wFMCommunicate request_size=4 [17:41:02]MH_SAM_APDU [17:41:02]CAPDU: 80 0D 03 02 [17:41:02]Write to MH i2c: E2 08 00 9F 30 80 0D 03 02 00 00 00 00 4A [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:02]Read from MH i2c: E2 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 0B 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 0B 00 9F 30 00 CA AF 5A 42 1E 0C 7D AD 90 00 B4 [17:41:02]RAPDU: CA AF 5A 42 1E 0C 7D AD 90 00 [17:41:02]wFMCommunicate OK [17:41:02]SAM_PROTO_SignData done [17:41:02]FM_MakeSignedData done [17:41:02]CreateOFDProtocolMessage [17:41:02]wFMCommunicate request_size=4 [17:41:02]MH_SAM_APDU [17:41:02]CAPDU: 80 11 00 00 [17:41:02]Write to MH i2c: E2 08 00 A0 30 80 11 00 00 00 00 00 00 4A [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:02]Read from MH i2c: E2 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 17 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 17 00 A0 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9D [17:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:41:02]wFMCommunicate OK [17:41:02]CreateOFDProtocolMessage done [17:41:02]OFDSenderStorePacket 145797 [17:41:02]StoreOFDPacket docnum=145797 [17:41:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 51 AC 07 01 15 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 2F 7B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 85 39 02 00 35 04 06 00 1D 8B 01 E8 3D 7A CA AF 5A 42 1E 0C 7D AD [17:41:02]CheckFolder [17:41:02]dirname=/storage/ofd_packets [17:41:02]CheckFolder done [17:41:02]ProducePacketName [17:41:02]name=ofd_packets/00145797 [17:41:02]NVStorageSaveData ofd_packets/00145797 [17:41:02]File name is /storage/ofd_packets/00145797 [17:41:02]Write 301 bytes [17:41:02]NVStorageSaveData done [17:41:02]OFDSenderStorePacket done [17:41:02]KKMCreateOFDPacket done [17:41:02]NVStorageSaveData kkm_last_timestamp [17:41:02]File name is /storage/kkm_last_timestamp [17:41:02]Write 4 bytes [17:41:02]NVStorageSaveData done [17:41:02]ExternCall_PrintAddStr [17:41:02]wPrintStart [17:41:02]Write to MH i2c: 01 00 00 A1 30 D1 [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: 01 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: 01 07 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: 01 07 00 A1 30 00 00 00 00 00 FF 0F E6 [17:41:02]RasterBufferAndPrint [17:41:02]line Счет N : (1)160554 [17:41:02]line ИНН: 02508201610067 [17:41:02]line Контрольно-Кассовый Чек [17:41:02]line ПРОДАЖА [17:41:02]line ТРК (МРК, ГНК) : 42 [17:41:02]line Товар: 2710124130 [17:41:02]line Аи-92-К-2 [17:41:02]line 22.770 * 65.90 [17:41:02]line = 1500.54 [17:41:02]line НДС 12% НСП 1% [17:41:02]line > о реализуемом товаре [17:41:02]line ОКРУГЛЕНИЕ: -0.54 [17:41:02]line ИТОГО: 1500.00 [17:41:02]line Внесено: 1500.00 [17:41:02]line СДАЧА: 0.00 [17:41:02]line НСП 1% : 13.28 [17:41:02]line НДС 12% : 159.35 [17:41:02]line Наличными: 1500.00 [17:41:02]line Безнал.: 0.00 [17:41:02]line Место: АЗС № 126 "Партнер Нефть" [17:41:02]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:41:02]line СНО: Общий режим [17:41:02]line Чек 220 27.10.2024 17:41 [17:41:02]line Смена: 545 ФФД: 1.0 [17:41:02]line ЗНМ: 0300000085 [17:41:02]line РНМ: 0000000000091683 [17:41:02]line Версия ККМ: 001 [17:41:02]line [17:41:02]line Дисконтная программа [17:41:02]line АИ-92 [17:41:02]line номер 126 [17:41:02]line сэкономлено 22.77 сом [17:41:02]line ФМ: 0000000000871745 [17:41:02]line ФД: 145797 [17:41:02]line ФПД: 32482869656954 [17:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174103&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145797&fm=32482869656954&tin=02508201610067®Number=0000000000091683&sum=150000 [17:41:02]OFD Sender: Processing packet 145797 [packets to send 206, broken 205] [17:41:02]ProducePacketName [17:41:02]name=ofd_packets/00145797 [17:41:02]OFD Sender: To server: pG, [17:41:02]CommunicateWithHost lk.salyk.kg:30040 [17:41:02]ConnectInit lk.salyk.kg [17:41:02]written 0, free lines is 4095 [17:41:03]Connected sock=10 [17:41:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 51 AC 07 01 15 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 2F 7B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 85 39 02 00 35 04 06 00 1D 8B 01 E8 3D 7A CA AF 5A 42 1E 0C 7D AD [17:41:03]Write to MH i2c: 01 00 00 D1 30 01 [17:41:03]Write i2c OK [17:41:03]MH_I2C_Read... [17:41:03]Read from MH i2c: 01 [17:41:03]MH_I2C_Read... [17:41:03]Read from MH i2c: 01 07 00 [17:41:03]MH_I2C_Read... [17:41:03]Read from MH i2c: 01 07 00 D1 30 00 00 00 00 00 5E 0C 72 [17:41:03]RasterBufferAndPrint [17:41:03]line [17:41:03]line [17:41:03]line [17:41:03]line [17:41:03]line [17:41:03]written 0, free lines is 3172 [17:41:03]MH_Cut [17:41:03]Write to MH i2c: D1 01 00 D8 30 01 DA [17:41:03]Write i2c OK [17:41:03]MH_I2C_Read... [17:41:03]Read from MH i2c: D1 [17:41:03]MH_I2C_Read... [17:41:03]Read from MH i2c: D1 01 00 [17:41:03]MH_I2C_Read... [17:41:03]Read from MH i2c: D1 01 00 D8 30 00 D9 [17:41:03]Write to MH i2c: 01 00 00 D9 30 09 [17:41:03]Write i2c OK [17:41:03]MH_I2C_Read... [17:41:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 64 1D 47 00 59 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 85 39 02 00 F4 03 04 00 5C 20 1E 67 B6 04 01 00 00 D4 CB D2 1D B8 95 B6 21 [17:41:03]CommunicateWithHost err = 0 [17:41:03]CheckOFDResponse [17:41:03]1017 (14) - 77093643461234 [17:41:03]1041 (16) - 0000000000871745 [17:41:03]1040 (4) - 145797 [17:41:03]1012 (4) - 27.10.2024 11:13 [17:41:03]1206 (1) - 0 [17:41:03]OFD Sender: Remove packet 145797 [17:41:03]ProducePacketName [17:41:03]name=ofd_packets/00145797 [17:41:03]NVStorageDeleteData [17:41:03]OFD Sender: No OFD packet to send [17:41:04]*** Cut start [17:41:04]*** Partial cut [17:41:04]*** CUTSNS_PIN = 1 [17:41:04]*** CUTSNS_PIN = 0 [17:41:04]*** Brake cut motor [17:41:04]Read from MH i2c: 01 [17:41:04]MH_I2C_Read... [17:41:04]*** Stop cut motor [17:41:04]*** Cut end [17:41:04]Read from MH i2c: 01 07 00 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: 01 07 00 D9 30 00 00 00 00 00 FF 0F 1E [17:41:04]process_action close_receipt done [17:41:04]requested_data is exist [17:41:04]produce_requested_data [17:41:04]requested_item fm.sn is exist - process it [17:41:04]wFMCommunicate request_size=4 [17:41:04]MH_SAM_APDU [17:41:04]CAPDU: 80 11 00 00 [17:41:04]Write to MH i2c: E2 08 00 DA 30 80 11 00 00 00 00 00 00 84 [17:41:04]Write i2c OK [17:41:04]MH_I2C_Read... [17:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:04]Read from MH i2c: E2 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: E2 17 00 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: E2 17 00 DA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D7 [17:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:41:04]wFMCommunicate OK [17:41:04]requested_item fd.num is exist - process it [17:41:04]SAM_PROTO_GetFieldsCounters [17:41:04]wFMCommunicate request_size=4 [17:41:04]MH_SAM_APDU [17:41:04]CAPDU: 80 13 00 00 [17:41:04]Write to MH i2c: E2 08 00 DB 30 80 13 00 00 00 00 00 00 87 [17:41:04]Write i2c OK [17:41:04]MH_I2C_Read... [17:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:05]Read from MH i2c: E2 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 62 00 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 62 00 DB 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 85 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [17:41:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 85 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:05]wFMCommunicate OK [17:41:05]SAM_PROTO_GetFieldsCounters done [17:41:05]requested_item shift.num is exist - process it [17:41:05]requested_item shift.opened is exist - process it [17:41:05]req_shift_opened [17:41:05]FM_GetShiftState [17:41:05]SAM_PROTO_GetShiftState [17:41:05]wFMCommunicate request_size=4 [17:41:05]MH_SAM_APDU [17:41:05]CAPDU: 80 13 01 00 [17:41:05]Write to MH i2c: E2 08 00 DC 30 80 13 01 00 00 00 00 00 89 [17:41:05]Write i2c OK [17:41:05]MH_I2C_Read... [17:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:05]Read from MH i2c: E2 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 0E 00 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 0E 00 DC 30 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 01 [17:41:05]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:41:05]wFMCommunicate OK [17:41:05]SAM_PROTO_GetShiftState done [17:41:05]FM_GetShiftState done [17:41:05]req_shift_opened done [17:41:05]requested_item shift.open_date is exist - process it [17:41:05]req_shift_open_date [17:41:05]req_shift_open_date done [17:41:05]produce_requested_data done [17:41:05]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145797,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:41:05]process_action_free close_receipt [17:41:05]json_value_free [17:41:05]json_value_free done [17:41:05]process_json_proto returns [17:41:05]Send response to host [17:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145797,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:41:05]free response buf [17:41:05]execute_script done [17:41:05]execute_script returns [17:41:05]free content buf [17:41:05]Sock 9.Close socket [17:41:05]Sock 9.Thread stoped [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:55]accept exits with 7 [17:43:55]New connection [17:43:55]New thread 3066740068 created [17:43:55]Thread 3066596708 joined [17:43:55]Waiting for new connection... [17:43:55] Sock 7.Parse request [17:43:55]Sock 7.Check first char [17:43:55]Sock 7.First char is OK [17:43:55]request: POST /json_proto HTTP/1.0 [17:43:55]Method: POST [17:43:55]URL: /json_proto [17:43:55]Method is POST - this is cgi request [17:43:55]url: /json_proto [17:43:55]query_string will be loaded in cgi processing [17:43:55]execute_cgi json_proto POST (null) [17:43:55]execute_cgi path=json_proto method=POST [17:43:55]POST find Content-Length [17:43:55]Host: 172.17.40.195:8080 [17:43:55]Content-Length: 678 [17:43:55]Content-Type: application/json [17:43:55] [17:43:55]POST finish read [17:43:55]Found Content-Length = 678 [17:43:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:55]execute_script... [17:43: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)160555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:55]POST & json_proto [17:43:55]process_json_proto [17:43:55]json parsed OK: [17:43:55]protocol is kg_v1.0 [17:43:55]action value=close_receipt [17:43:55]process_action close_receipt [17:43:55]cmd_close_receipt [17:43:55]MH_GetDate [17:43:55]Write to MH i2c: F0 00 00 DD 30 FC [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 09 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 09 00 DD 30 00 DD 7B 1E 67 D5 8D 6C 64 14 [17:43:55]GetLastDocTimeStamp 1730050863 [17:43:55]current date 1730051037 [17:43:55]FM_GetShiftState [17:43:55]SAM_PROTO_GetShiftState [17:43:55]wFMCommunicate request_size=4 [17:43:55]MH_SAM_APDU [17:43:55]CAPDU: 80 13 01 00 [17:43:55]Write to MH i2c: E2 08 00 DE 30 80 13 01 00 00 00 00 00 8B [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:55]Read from MH i2c: E2 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0E 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0E 00 DE 30 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 03 [17:43:55]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:43:55]wFMCommunicate OK [17:43:55]SAM_PROTO_GetShiftState done [17:43:55]FM_GetShiftState done [17:43:55]opened in 1729988959 [17:43:55]opened+sec_in_day 1730075359 [17:43:55]quantity*price = 70044 [17:43:55]sum+1 = 70045 [17:43:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 221 27.10.2024 17:43 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145798 ФПД: 42640993066776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174358&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145798&fm=42640993066776&tin=02508201610067®Number=0000000000091683&sum=70000 [17:43:56]StoreToDocumentArchive [17:43:56]shift 545 fd 145798 [17:43:56]save to /storage/0545/doc_00145798 [17:43:56]save last doc name /storage/0545/doc_00145798 to /storage/kkm_last_doc_name [17:43:56]save OK [17:43:56]Clear old archive folders... [17:43:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:56]tlvbuf is 00451E30 [17:43:56]SAM_PROTO_ClearQueue [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 09 00 00 [17:43:56]Write to MH i2c: E2 08 00 EB 30 80 09 00 00 00 00 00 00 8D [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 EB 30 00 90 00 8F [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]SAM_PROTO_ClearQueue done [17:43:56]KKMCreateOFDPacket [17:43:56]OFDProtocolAddRootSTLVToBuf [17:43:56]FM_MakeSignedData [17:43:56]FM_MakeSignedData [17:43:56]SAM_PROTO_SignData [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 0D 01 02 [17:43:56]Write to MH i2c: E2 08 00 EC 30 80 0D 01 02 00 00 00 00 95 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 EC 30 00 90 00 90 [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]wFMCommunicate request_size=255 [17:43:56]MH_SAM_APDU [17:43: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 7B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 86 39 02 00 35 04 06 00 26 [17:43:56]Write to MH i2c: E2 02 01 ED 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 7B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 86 39 02 00 35 04 06 00 26 00 00 F8 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 ED 30 00 90 00 91 [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]wFMCommunicate request_size=10 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 0D 02 02 05 C8 21 3E 9F 18 [17:43:56]Write to MH i2c: E2 0D 00 EE 30 80 0D 02 02 05 00 C8 21 3E 9F 18 00 00 80 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 EE 30 00 90 00 92 [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 0D 03 02 [17:43:56]Write to MH i2c: E2 08 00 EF 30 80 0D 03 02 00 00 00 00 9A [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 0B 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 0B 00 EF 30 00 3E 02 0C EE 73 2D 7B F7 90 00 E7 [17:43:56]RAPDU: 3E 02 0C EE 73 2D 7B F7 90 00 [17:43:56]wFMCommunicate OK [17:43:56]SAM_PROTO_SignData done [17:43:56]FM_MakeSignedData done [17:43:56]CreateOFDProtocolMessage [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 11 00 00 [17:43:56]Write to MH i2c: E2 08 00 F0 30 80 11 00 00 00 00 00 00 9A [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 17 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 17 00 F0 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 ED [17:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:43:57]wFMCommunicate OK [17:43:57]CreateOFDProtocolMessage done [17:43:57]OFDSenderStorePacket 145798 [17:43:57]StoreOFDPacket docnum=145798 [17:43:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9F CE 07 01 AE F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 7B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 86 39 02 00 35 04 06 00 26 C8 21 3E 9F 18 3E 02 0C EE 73 2D 7B F7 [17:43:57]CheckFolder [17:43:57]dirname=/storage/ofd_packets [17:43:57]CheckFolder done [17:43:57]ProducePacketName [17:43:57]name=ofd_packets/00145798 [17:43:57]NVStorageSaveData ofd_packets/00145798 [17:43:57]File name is /storage/ofd_packets/00145798 [17:43:57]Write 301 bytes [17:43:57]NVStorageSaveData done [17:43:57]OFDSenderStorePacket done [17:43:57]KKMCreateOFDPacket done [17:43:57]NVStorageSaveData kkm_last_timestamp [17:43:57]File name is /storage/kkm_last_timestamp [17:43:57]Write 4 bytes [17:43:57]NVStorageSaveData done [17:43:57]ExternCall_PrintAddStr [17:43:57]wPrintStart [17:43:57]Write to MH i2c: 01 00 00 F1 30 21 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 07 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 07 00 F1 30 00 00 00 00 00 FF 0F 36 [17:43:57]RasterBufferAndPrint [17:43:57]line Счет N : (1)160555 [17:43:57]line ИНН: 02508201610067 [17:43:57]line Контрольно-Кассовый Чек [17:43:57]line ПРОДАЖА [17:43:57]line ТРК (МРК, ГНК) : 32 [17:43:57]line Товар: 2710124130 [17:43:57]line Аи-92-К-2 [17:43:57]line 10.470 * 66.90 [17:43:57]line = 700.44 [17:43:57]line НДС 12% НСП 1% [17:43:57]line > о реализуемом товаре [17:43:57]line ОКРУГЛЕНИЕ: -0.44 [17:43:57]line ИТОГО: 700.00 [17:43:57]line Внесено: 700.00 [17:43:57]line СДАЧА: 0.00 [17:43:57]line НСП 1% : 6.20 [17:43:57]line НДС 12% : 74.38 [17:43:57]line Наличными: 700.00 [17:43:57]line Безнал.: 0.00 [17:43:57]line Место: АЗС № 126 "Партнер Нефть" [17:43:57]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:43:57]line СНО: Общий режим [17:43:57]line Чек 221 27.10.2024 17:43 [17:43:57]line Смена: 545 ФФД: 1.0 [17:43:57]line ЗНМ: 0300000085 [17:43:57]line РНМ: 0000000000091683 [17:43:57]line Версия ККМ: 001 [17:43:57]line ФМ: 0000000000871745 [17:43:57]line ФД: 145798 [17:43:57]line ФПД: 42640993066776 [17:43:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174358&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145798&fm=42640993066776&tin=02508201610067®Number=0000000000091683&sum=70000 [17:43:57]written 0, free lines is 4095 [17:43:57]OFD Sender: Processing packet 145798 [packets to send 206, broken 205] [17:43:57]ProducePacketName [17:43:57]name=ofd_packets/00145798 [17:43:57]OFD Sender: To server: pG, [17:43:57]CommunicateWithHost lk.salyk.kg:30040 [17:43:57]ConnectInit lk.salyk.kg [17:43:57]Connected sock=10 [17:43:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9F CE 07 01 AE F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 DE 7B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 86 39 02 00 35 04 06 00 26 C8 21 3E 9F 18 3E 02 0C EE 73 2D 7B F7 [17:43:57]Write to MH i2c: 01 00 00 1C 31 4D [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 07 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 07 00 1C 31 00 00 00 00 00 AB 0C 0B [17:43:57]RasterBufferAndPrint [17:43:57]line [17:43:57]line [17:43:57]line [17:43:57]line [17:43:57]line [17:43:57]written 0, free lines is 3252 [17:43:57]MH_Cut [17:43:57]Write to MH i2c: D1 01 00 23 31 01 26 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: D1 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: D1 01 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: D1 01 00 23 31 00 25 [17:43:57]Write to MH i2c: 01 00 00 24 31 55 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 2F D4 47 00 06 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 86 39 02 00 F4 03 04 00 0A 21 1E 67 B6 04 01 00 00 B5 E8 7D 2B E8 B0 8E A9 [17:43:57]CommunicateWithHost err = 0 [17:43:57]CheckOFDResponse [17:43:57]1017 (14) - 77093643461234 [17:43:57]1041 (16) - 0000000000871745 [17:43:57]1040 (4) - 145798 [17:43:57]1012 (4) - 27.10.2024 11:16 [17:43:57]1206 (1) - 0 [17:43:57]OFD Sender: Remove packet 145798 [17:43:57]ProducePacketName [17:43:57]name=ofd_packets/00145798 [17:43:57]NVStorageDeleteData [17:43:58]OFD Sender: No OFD packet to send [17:43:58]*** Cut start [17:43:58]*** Partial cut [17:43:58]*** CUTSNS_PIN = 1 [17:43:58]*** CUTSNS_PIN = 0 [17:43:58]*** Brake cut motor [17:43:59]Read from MH i2c: 01 [17:43:59]MH_I2C_Read... [17:43:59]*** Stop cut motor [17:43:59]*** Cut end [17:43:59]Read from MH i2c: 01 07 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: 01 07 00 24 31 00 00 00 00 00 FF 0F 6A [17:43:59]process_action close_receipt done [17:43:59]requested_data is exist [17:43:59]produce_requested_data [17:43:59]requested_item fm.sn is exist - process it [17:43:59]wFMCommunicate request_size=4 [17:43:59]MH_SAM_APDU [17:43:59]CAPDU: 80 11 00 00 [17:43:59]Write to MH i2c: E2 08 00 25 31 80 11 00 00 00 00 00 00 D0 [17:43:59]Write i2c OK [17:43:59]MH_I2C_Read... [17:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:59]Read from MH i2c: E2 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 17 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 17 00 25 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 23 [17:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:43:59]wFMCommunicate OK [17:43:59]requested_item fd.num is exist - process it [17:43:59]SAM_PROTO_GetFieldsCounters [17:43:59]wFMCommunicate request_size=4 [17:43:59]MH_SAM_APDU [17:43:59]CAPDU: 80 13 00 00 [17:43:59]Write to MH i2c: E2 08 00 26 31 80 13 00 00 00 00 00 00 D3 [17:43:59]Write i2c OK [17:43:59]MH_I2C_Read... [17:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:59]Read from MH i2c: E2 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 62 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 62 00 26 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 86 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [17:43:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 86 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:59]wFMCommunicate OK [17:43:59]SAM_PROTO_GetFieldsCounters done [17:43:59]requested_item shift.num is exist - process it [17:43:59]requested_item shift.opened is exist - process it [17:43:59]req_shift_opened [17:43:59]FM_GetShiftState [17:43:59]SAM_PROTO_GetShiftState [17:43:59]wFMCommunicate request_size=4 [17:43:59]MH_SAM_APDU [17:43:59]CAPDU: 80 13 01 00 [17:43:59]Write to MH i2c: E2 08 00 27 31 80 13 01 00 00 00 00 00 D5 [17:43:59]Write i2c OK [17:43:59]MH_I2C_Read... [17:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:59]Read from MH i2c: E2 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 0E 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 0E 00 27 31 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4D [17:43:59]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:43:59]wFMCommunicate OK [17:43:59]SAM_PROTO_GetShiftState done [17:43:59]FM_GetShiftState done [17:43:59]req_shift_opened done [17:43:59]requested_item shift.open_date is exist - process it [17:43:59]req_shift_open_date [17:43:59]req_shift_open_date done [17:43:59]produce_requested_data done [17:43:59]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145798,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:43:59]process_action_free close_receipt [17:43:59]json_value_free [17:43:59]json_value_free done [17:43:59]process_json_proto returns [17:43:59]Send response to host [17:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145798,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:43:59]free response buf [17:43:59]execute_script done [17:43:59]execute_script returns [17:43:59]free content buf [17:43:59]Sock 7.Close socket [17:43:59]Sock 7.Thread stoped [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:46]accept exits with 9 [17:45:46]New connection [17:45:46]New thread 3066596708 created [17:45:46]Thread 3066740068 joined [17:45:46]Waiting for new connection... [17:45:46] Sock 9.Parse request [17:45:46]Sock 9.Check first char [17:45:46]Sock 9.First char is OK [17:45:46]request: POST /json_proto HTTP/1.0 [17:45:46]Method: POST [17:45:46]URL: /json_proto [17:45:46]Method is POST - this is cgi request [17:45:46]url: /json_proto [17:45:46]query_string will be loaded in cgi processing [17:45:46]execute_cgi json_proto POST (null) [17:45:46]execute_cgi path=json_proto method=POST [17:45:46]POST find Content-Length [17:45:46]Host: 172.17.40.195:8080 [17:45:46]Content-Length: 678 [17:45:46]Content-Type: application/json [17:45:46] [17:45:46]POST finish read [17:45:46]Found Content-Length = 678 [17:45:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:46]execute_script... [17:45: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)160556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:46]POST & json_proto [17:45:46]process_json_proto [17:45:46]json parsed OK: [17:45:46]protocol is kg_v1.0 [17:45:46]action value=close_receipt [17:45:46]process_action close_receipt [17:45:46]cmd_close_receipt [17:45:46]MH_GetDate [17:45:46]Write to MH i2c: F0 00 00 28 31 48 [17:45:46]Write i2c OK [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: F0 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: F0 09 00 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: F0 09 00 28 31 00 4D 7C 1E 67 D5 8D 6C 64 D1 [17:45:46]GetLastDocTimeStamp 1730051038 [17:45:46]current date 1730051149 [17:45:46]FM_GetShiftState [17:45:46]SAM_PROTO_GetShiftState [17:45:46]wFMCommunicate request_size=4 [17:45:46]MH_SAM_APDU [17:45:46]CAPDU: 80 13 01 00 [17:45:46]Write to MH i2c: E2 08 00 29 31 80 13 01 00 00 00 00 00 D7 [17:45:46]Write i2c OK [17:45:46]MH_I2C_Read... [17:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:46]Read from MH i2c: E2 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: E2 0E 00 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: E2 0E 00 29 31 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4F [17:45:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:45:46]wFMCommunicate OK [17:45:46]SAM_PROTO_GetShiftState done [17:45:46]FM_GetShiftState done [17:45:46]opened in 1729988959 [17:45:46]opened+sec_in_day 1730075359 [17:45:46]quantity*price = 70044 [17:45:46]sum+1 = 70046 [17:45:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 1000.00 СДАЧА: 300.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 222 27.10.2024 17:45 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145799 ФПД: 175947898775539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174549&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145799&fm=175947898775539&tin=02508201610067®Number=0000000000091683&sum=70000 [17:45:47]StoreToDocumentArchive [17:45:47]shift 545 fd 145799 [17:45:47]save to /storage/0545/doc_00145799 [17:45:47]save last doc name /storage/0545/doc_00145799 to /storage/kkm_last_doc_name [17:45:47]save OK [17:45:47]Clear old archive folders... [17:45:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:47]tlvbuf is 004ED680 [17:45:47]SAM_PROTO_ClearQueue [17:45:47]wFMCommunicate request_size=4 [17:45:47]MH_SAM_APDU [17:45:47]CAPDU: 80 09 00 00 [17:45:47]Write to MH i2c: E2 08 00 36 31 80 09 00 00 00 00 00 00 D9 [17:45:47]Write i2c OK [17:45:47]MH_I2C_Read... [17:45:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:47]Read from MH i2c: E2 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: E2 03 00 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: E2 03 00 36 31 00 90 00 DB [17:45:47]RAPDU: 90 00 [17:45:47]wFMCommunicate OK [17:45:47]SAM_PROTO_ClearQueue done [17:45:47]KKMCreateOFDPacket [17:45:47]OFDProtocolAddRootSTLVToBuf [17:45:47]FM_MakeSignedData [17:45:47]FM_MakeSignedData [17:45:47]SAM_PROTO_SignData [17:45:47]wFMCommunicate request_size=4 [17:45:47]MH_SAM_APDU [17:45:47]CAPDU: 80 0D 01 02 [17:45:47]Write to MH i2c: E2 08 00 37 31 80 0D 01 02 00 00 00 00 E1 [17:45:47]Write i2c OK [17:45:47]MH_I2C_Read... [17:45:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:47]Read from MH i2c: E2 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: E2 03 00 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: E2 03 00 37 31 00 90 00 DC [17:45:47]RAPDU: 90 00 [17:45:47]wFMCommunicate OK [17:45:47]wFMCommunicate request_size=255 [17:45:47]MH_SAM_APDU [17:45: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 4D 7C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 87 39 02 00 35 04 06 00 A0 [17:45:47]Write to MH i2c: E2 02 01 38 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 4D 7C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 87 39 02 00 35 04 06 00 A0 00 00 08 [17:45:47]Write i2c OK [17:45:47]MH_I2C_Read... [17:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:48]Read from MH i2c: E2 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 38 31 00 90 00 DD [17:45:48]RAPDU: 90 00 [17:45:48]wFMCommunicate OK [17:45:48]wFMCommunicate request_size=10 [17:45:48]MH_SAM_APDU [17:45:48]CAPDU: 80 0D 02 02 05 06 10 01 67 F3 [17:45:48]Write to MH i2c: E2 0D 00 39 31 80 0D 02 02 05 00 06 10 01 67 F3 00 00 5F [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:48]Read from MH i2c: E2 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 39 31 00 90 00 DE [17:45:48]RAPDU: 90 00 [17:45:48]wFMCommunicate OK [17:45:48]wFMCommunicate request_size=4 [17:45:48]MH_SAM_APDU [17:45:48]CAPDU: 80 0D 03 02 [17:45:48]Write to MH i2c: E2 08 00 3A 31 80 0D 03 02 00 00 00 00 E6 [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:48]Read from MH i2c: E2 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 0B 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 0B 00 3A 31 00 57 8E 83 C6 29 8D 6F 9E 90 00 D8 [17:45:48]RAPDU: 57 8E 83 C6 29 8D 6F 9E 90 00 [17:45:48]wFMCommunicate OK [17:45:48]SAM_PROTO_SignData done [17:45:48]FM_MakeSignedData done [17:45:48]CreateOFDProtocolMessage [17:45:48]wFMCommunicate request_size=4 [17:45:48]MH_SAM_APDU [17:45:48]CAPDU: 80 11 00 00 [17:45:48]Write to MH i2c: E2 08 00 3B 31 80 11 00 00 00 00 00 00 E6 [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:48]Read from MH i2c: E2 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 17 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 17 00 3B 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 39 [17:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:45:48]wFMCommunicate OK [17:45:48]CreateOFDProtocolMessage done [17:45:48]OFDSenderStorePacket 145799 [17:45:48]StoreOFDPacket docnum=145799 [17:45:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 81 9E 07 01 1E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 4D 7C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 87 39 02 00 35 04 06 00 A0 06 10 01 67 F3 57 8E 83 C6 29 8D 6F 9E [17:45:48]CheckFolder [17:45:48]dirname=/storage/ofd_packets [17:45:48]CheckFolder done [17:45:48]ProducePacketName [17:45:48]name=ofd_packets/00145799 [17:45:48]NVStorageSaveData ofd_packets/00145799 [17:45:48]File name is /storage/ofd_packets/00145799 [17:45:48]Write 301 bytes [17:45:48]NVStorageSaveData done [17:45:48]OFDSenderStorePacket done [17:45:48]KKMCreateOFDPacket done [17:45:48]NVStorageSaveData kkm_last_timestamp [17:45:48]File name is /storage/kkm_last_timestamp [17:45:48]Write 4 bytes [17:45:48]NVStorageSaveData done [17:45:48]ExternCall_PrintAddStr [17:45:48]wPrintStart [17:45:48]Write to MH i2c: 01 00 00 3C 31 6D [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: 01 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: 01 07 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: 01 07 00 3C 31 00 00 00 00 00 FF 0F 82 [17:45:48]RasterBufferAndPrint [17:45:48]line Счет N : (1)160556 [17:45:48]line ИНН: 02508201610067 [17:45:48]line Контрольно-Кассовый Чек [17:45:48]line ПРОДАЖА [17:45:48]line ТРК (МРК, ГНК) : 43 [17:45:48]line Товар: 2710124500 [17:45:48]line Аи-95-К-3 [17:45:48]line 9.440 * 74.20 [17:45:48]line = 700.45 [17:45:48]line НДС 12% НСП 1% [17:45:48]line > о реализуемом товаре [17:45:48]line ОКРУГЛЕНИЕ: -0.45 [17:45:48]line ИТОГО: 700.00 [17:45:48]line Внесено: 1000.00 [17:45:48]line СДАЧА: 300.00 [17:45:48]line НСП 1% : 6.20 [17:45:48]line НДС 12% : 74.38 [17:45:48]line Наличными: 700.00 [17:45:48]line Безнал.: 0.00 [17:45:48]line Место: АЗС № 126 "Партнер Нефть" [17:45:48]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:45:48]line СНО: Общий режим [17:45:48]line Чек 222 27.10.2024 17:45 [17:45:48]line Смена: 545 ФФД: 1.0 [17:45:48]line ЗНМ: 0300000085 [17:45:48]line РНМ: 0000000000091683 [17:45:48]line Версия ККМ: 001 [17:45:48]line ФМ: 0000000000871745 [17:45:48]line ФД: 145799 [17:45:48]line ФПД: 175947898775539 [17:45:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174549&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145799&fm=175947898775539&tin=02508201610067®Number=0000000000091683&sum=70000 [17:45:48]written 0, free lines is 4095 [17:45:48]OFD Sender: Processing packet 145799 [packets to send 206, broken 205] [17:45:48]ProducePacketName [17:45:48]name=ofd_packets/00145799 [17:45:48]OFD Sender: To server: pG, [17:45:48]CommunicateWithHost lk.salyk.kg:30040 [17:45:48]ConnectInit lk.salyk.kg [17:45:48]Connected sock=10 [17:45:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 81 9E 07 01 1E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 4D 7C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 87 39 02 00 35 04 06 00 A0 06 10 01 67 F3 57 8E 83 C6 29 8D 6F 9E [17:45:49]Write to MH i2c: 01 00 00 67 31 98 [17:45:49]Write i2c OK [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: 01 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: 01 07 00 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: 01 07 00 67 31 00 00 00 00 00 B0 0C 5B [17:45:49]RasterBufferAndPrint [17:45:49]line [17:45:49]line [17:45:49]line [17:45:49]line [17:45:49]line [17:45:49]written 0, free lines is 3253 [17:45:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 82 4F 47 00 D0 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 87 39 02 00 F4 03 04 00 7A 21 1E 67 B6 04 01 00 00 9E BF 7E 2F 48 4C 0B F3 [17:45:49]CommunicateWithHost err = 0 [17:45:49]CheckOFDResponse [17:45:49]1017 (14) - 77093643461234 [17:45:49]1041 (16) - 0000000000871745 [17:45:49]1040 (4) - 145799 [17:45:49]1012 (4) - 27.10.2024 11:18 [17:45:49]1206 (1) - 0 [17:45:49]OFD Sender: Remove packet 145799 [17:45:49]ProducePacketName [17:45:49]name=ofd_packets/00145799 [17:45:49]NVStorageDeleteData [17:45:49]MH_Cut [17:45:49]Write to MH i2c: D1 01 00 6E 31 01 71 [17:45:49]Write i2c OK [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: D1 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: D1 01 00 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: D1 01 00 6E 31 00 70 [17:45:49]Write to MH i2c: 01 00 00 6F 31 A0 [17:45:49]Write i2c OK [17:45:49]MH_I2C_Read... [17:45:49]OFD Sender: No OFD packet to send [17:45:49]*** Cut start [17:45:49]*** Partial cut [17:45:49]*** CUTSNS_PIN = 1 [17:45:50]*** CUTSNS_PIN = 0 [17:45:50]*** Brake cut motor [17:45:50]Read from MH i2c: 01 [17:45:50]MH_I2C_Read... [17:45:50]*** Stop cut motor [17:45:50]*** Cut end [17:45:50]Read from MH i2c: 01 07 00 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: 01 07 00 6F 31 00 00 00 00 00 FF 0F B5 [17:45:50]process_action close_receipt done [17:45:50]requested_data is exist [17:45:50]produce_requested_data [17:45:50]requested_item fm.sn is exist - process it [17:45:50]wFMCommunicate request_size=4 [17:45:50]MH_SAM_APDU [17:45:50]CAPDU: 80 11 00 00 [17:45:50]Write to MH i2c: E2 08 00 70 31 80 11 00 00 00 00 00 00 1B [17:45:50]Write i2c OK [17:45:50]MH_I2C_Read... [17:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:50]Read from MH i2c: E2 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 17 00 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 17 00 70 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6E [17:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:45:50]wFMCommunicate OK [17:45:50]requested_item fd.num is exist - process it [17:45:50]SAM_PROTO_GetFieldsCounters [17:45:50]wFMCommunicate request_size=4 [17:45:50]MH_SAM_APDU [17:45:50]CAPDU: 80 13 00 00 [17:45:50]Write to MH i2c: E2 08 00 71 31 80 13 00 00 00 00 00 00 1E [17:45:50]Write i2c OK [17:45:50]MH_I2C_Read... [17:45:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:50]Read from MH i2c: E2 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 62 00 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 62 00 71 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 87 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [17:45:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 87 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:50]wFMCommunicate OK [17:45:50]SAM_PROTO_GetFieldsCounters done [17:45:50]requested_item shift.num is exist - process it [17:45:50]requested_item shift.opened is exist - process it [17:45:50]req_shift_opened [17:45:50]FM_GetShiftState [17:45:50]SAM_PROTO_GetShiftState [17:45:50]wFMCommunicate request_size=4 [17:45:50]MH_SAM_APDU [17:45:50]CAPDU: 80 13 01 00 [17:45:50]Write to MH i2c: E2 08 00 72 31 80 13 01 00 00 00 00 00 20 [17:45:50]Write i2c OK [17:45:50]MH_I2C_Read... [17:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:50]Read from MH i2c: E2 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 0E 00 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 0E 00 72 31 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 98 [17:45:50]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:45:50]wFMCommunicate OK [17:45:50]SAM_PROTO_GetShiftState done [17:45:50]FM_GetShiftState done [17:45:50]req_shift_opened done [17:45:50]requested_item shift.open_date is exist - process it [17:45:50]req_shift_open_date [17:45:50]req_shift_open_date done [17:45:50]produce_requested_data done [17:45:50]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145799,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:45:50]process_action_free close_receipt [17:45:50]json_value_free [17:45:50]json_value_free done [17:45:50]process_json_proto returns [17:45:50]Send response to host [17:45:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145799,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:45:50]free response buf [17:45:50]execute_script done [17:45:50]execute_script returns [17:45:50]free content buf [17:45:50]Sock 9.Close socket [17:45:50]Sock 9.Thread stoped [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]accept exits with 7 [17:46:09]New connection [17:46:09]New thread 3066740068 created [17:46:09]Thread 3066596708 joined [17:46:09]Waiting for new connection... [17:46:09] Sock 7.Parse request [17:46:09]Sock 7.Check first char [17:46:09]Sock 7.First char is OK [17:46:09]request: POST /json_proto HTTP/1.0 [17:46:09]Method: POST [17:46:09]URL: /json_proto [17:46:09]Method is POST - this is cgi request [17:46:09]url: /json_proto [17:46:09]query_string will be loaded in cgi processing [17:46:09]execute_cgi json_proto POST (null) [17:46:09]execute_cgi path=json_proto method=POST [17:46:09]POST find Content-Length [17:46:09]Host: 172.17.40.195:8080 [17:46:09]Content-Length: 688 [17:46:09]Content-Type: application/json [17:46:09] [17:46:09]POST finish read [17:46:09]Found Content-Length = 688 [17:46:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:09]execute_script... [17:46: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)160557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:09]POST & json_proto [17:46:09]process_json_proto [17:46:09]json parsed OK: [17:46:09]protocol is kg_v1.0 [17:46:09]action value=close_receipt [17:46:09]process_action close_receipt [17:46:09]cmd_close_receipt [17:46:09]MH_GetDate [17:46:09]Write to MH i2c: F0 00 00 73 31 93 [17:46:09]Write i2c OK [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: F0 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: F0 09 00 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: F0 09 00 73 31 00 64 7C 1E 67 D5 8D 6C 64 33 [17:46:09]GetLastDocTimeStamp 1730051149 [17:46:09]current date 1730051172 [17:46:09]FM_GetShiftState [17:46:09]SAM_PROTO_GetShiftState [17:46:09]wFMCommunicate request_size=4 [17:46:09]MH_SAM_APDU [17:46:09]CAPDU: 80 13 01 00 [17:46:09]Write to MH i2c: E2 08 00 74 31 80 13 01 00 00 00 00 00 22 [17:46:09]Write i2c OK [17:46:09]MH_I2C_Read... [17:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:09]Read from MH i2c: E2 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: E2 0E 00 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: E2 0E 00 74 31 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9A [17:46:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:46:09]wFMCommunicate OK [17:46:09]SAM_PROTO_GetShiftState done [17:46:09]FM_GetShiftState done [17:46:09]opened in 1729988959 [17:46:09]opened+sec_in_day 1730075359 [17:46:09]quantity*price = 100051 [17:46:09]sum+1 = 100052 [17:46:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 223 27.10.2024 17:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145800 ФПД: 236177816030293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174612&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145800&fm=236177816030293&tin=02508201610067®Number=0000000000091683&sum=100000 [17:46:10]StoreToDocumentArchive [17:46:10]shift 545 fd 145800 [17:46:10]save to /storage/0545/doc_00145800 [17:46:10]save last doc name /storage/0545/doc_00145800 to /storage/kkm_last_doc_name [17:46:10]save OK [17:46:10]Clear old archive folders... [17:46:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:46:10]tlvbuf is 004F7B20 [17:46:10]SAM_PROTO_ClearQueue [17:46:10]wFMCommunicate request_size=4 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 09 00 00 [17:46:10]Write to MH i2c: E2 08 00 81 31 80 09 00 00 00 00 00 00 24 [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 81 31 00 90 00 26 [17:46:10]RAPDU: 90 00 [17:46:10]wFMCommunicate OK [17:46:10]SAM_PROTO_ClearQueue done [17:46:10]KKMCreateOFDPacket [17:46:10]OFDProtocolAddRootSTLVToBuf [17:46:10]FM_MakeSignedData [17:46:10]FM_MakeSignedData [17:46:10]SAM_PROTO_SignData [17:46:10]wFMCommunicate request_size=4 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 0D 01 02 [17:46:10]Write to MH i2c: E2 08 00 82 31 80 0D 01 02 00 00 00 00 2C [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 82 31 00 90 00 27 [17:46:10]RAPDU: 90 00 [17:46:10]wFMCommunicate OK [17:46:10]wFMCommunicate request_size=255 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 64 7C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 88 39 02 [17:46:10]Write to MH i2c: E2 02 01 83 31 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 64 7C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 88 39 02 00 00 50 [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:11]Read from MH i2c: E2 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 03 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 03 00 83 31 00 90 00 28 [17:46:11]RAPDU: 90 00 [17:46:11]wFMCommunicate OK [17:46:11]wFMCommunicate request_size=16 [17:46:11]MH_SAM_APDU [17:46:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D6 CD 6E D4 0C 55 [17:46:11]Write to MH i2c: E2 13 00 84 31 80 0D 02 02 0B 00 00 35 04 06 00 D6 CD 6E D4 0C 55 00 00 CA [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:11]Read from MH i2c: E2 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 03 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 03 00 84 31 00 90 00 29 [17:46:11]RAPDU: 90 00 [17:46:11]wFMCommunicate OK [17:46:11]wFMCommunicate request_size=4 [17:46:11]MH_SAM_APDU [17:46:11]CAPDU: 80 0D 03 02 [17:46:11]Write to MH i2c: E2 08 00 85 31 80 0D 03 02 00 00 00 00 31 [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:11]Read from MH i2c: E2 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 0B 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 0B 00 85 31 00 31 15 DA D8 0A AB 8E EF 90 00 5C [17:46:11]RAPDU: 31 15 DA D8 0A AB 8E EF 90 00 [17:46:11]wFMCommunicate OK [17:46:11]SAM_PROTO_SignData done [17:46:11]FM_MakeSignedData done [17:46:11]CreateOFDProtocolMessage [17:46:11]wFMCommunicate request_size=4 [17:46:11]MH_SAM_APDU [17:46:11]CAPDU: 80 11 00 00 [17:46:11]Write to MH i2c: E2 08 00 86 31 80 11 00 00 00 00 00 00 31 [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:11]Read from MH i2c: E2 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 17 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 17 00 86 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 84 [17:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:46:11]wFMCommunicate OK [17:46:11]CreateOFDProtocolMessage done [17:46:11]OFDSenderStorePacket 145800 [17:46:11]StoreOFDPacket docnum=145800 [17:46:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 87 E8 0D 01 C2 55 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 64 7C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 88 39 02 00 35 04 06 00 D6 CD 6E D4 0C 55 31 15 DA D8 0A AB 8E EF [17:46:11]CheckFolder [17:46:11]dirname=/storage/ofd_packets [17:46:11]CheckFolder done [17:46:11]ProducePacketName [17:46:11]name=ofd_packets/00145800 [17:46:11]NVStorageSaveData ofd_packets/00145800 [17:46:11]File name is /storage/ofd_packets/00145800 [17:46:11]Write 307 bytes [17:46:11]NVStorageSaveData done [17:46:11]OFDSenderStorePacket done [17:46:11]KKMCreateOFDPacket done [17:46:11]NVStorageSaveData kkm_last_timestamp [17:46:11]File name is /storage/kkm_last_timestamp [17:46:11]Write 4 bytes [17:46:11]NVStorageSaveData done [17:46:11]ExternCall_PrintAddStr [17:46:11]wPrintStart [17:46:11]Write to MH i2c: 01 00 00 87 31 B8 [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 07 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 07 00 87 31 00 00 00 00 00 FF 0F CD [17:46:11]RasterBufferAndPrint [17:46:11]line Счет N : (1)160557 [17:46:11]line ИНН: 02508201610067 [17:46:11]line Контрольно-Кассовый Чек [17:46:11]line ПРОДАЖА [17:46:11]line ТРК (МРК, ГНК) : 31 [17:46:11]line Товар: 2710194240 [17:46:11]line D-Energy Дт-К-2 [17:46:11]line 12.960 * 77.20 [17:46:11]line = 1000.51 [17:46:11]line НДС 12% НСП 1% [17:46:11]line > о реализуемом товаре [17:46:11]line ОКРУГЛЕНИЕ: -0.51 [17:46:11]line ИТОГО: 1000.00 [17:46:11]line Внесено: 1000.00 [17:46:11]line СДАЧА: 0.00 [17:46:11]line НСП 1% : 8.85 [17:46:11]line НДС 12% : 106.25 [17:46:11]line Наличными: 1000.00 [17:46:11]line Безнал.: 0.00 [17:46:11]line Место: АЗС № 126 "Партнер Нефть" [17:46:11]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:46:11]line СНО: Общий режим [17:46:11]line Чек 223 27.10.2024 17:46 [17:46:11]line Смена: 545 ФФД: 1.0 [17:46:11]line ЗНМ: 0300000085 [17:46:11]line РНМ: 0000000000091683 [17:46:11]line Версия ККМ: 001 [17:46:11]line ФМ: 0000000000871745 [17:46:11]line ФД: 145800 [17:46:11]line ФПД: 236177816030293 [17:46:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174612&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145800&fm=236177816030293&tin=02508201610067®Number=0000000000091683&sum=100000 [17:46:11]OFD Sender: Processing packet 145800 [packets to send 206, broken 205] [17:46:11]ProducePacketName [17:46:11]name=ofd_packets/00145800 [17:46:11]OFD Sender: To server: pG, [17:46:11]CommunicateWithHost lk.salyk.kg:30040 [17:46:11]ConnectInit lk.salyk.kg [17:46:11]written 0, free lines is 4095 [17:46:11]Connected sock=10 [17:46:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 87 E8 0D 01 C2 55 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 64 7C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 88 39 02 00 35 04 06 00 D6 CD 6E D4 0C 55 31 15 DA D8 0A AB 8E EF [17:46:12]Write to MH i2c: 01 00 00 B2 31 E3 [17:46:12]Write i2c OK [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: 01 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: 01 07 00 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: 01 07 00 B2 31 00 00 00 00 00 B6 0C AC [17:46:12]RasterBufferAndPrint [17:46:12]line [17:46:12]line [17:46:12]line [17:46:12]line [17:46:12]line [17:46:12]written 0, free lines is 3259 [17:46:12]MH_Cut [17:46:12]Write to MH i2c: D1 01 00 B9 31 01 BC [17:46:12]Write i2c OK [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: D1 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: D1 01 00 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: D1 01 00 B9 31 00 BB [17:46:12]Write to MH i2c: 01 00 00 BA 31 EB [17:46:12]Write i2c OK [17:46:12]MH_I2C_Read... [17:46:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 02 90 47 00 C4 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 88 39 02 00 F4 03 04 00 91 21 1E 67 B6 04 01 00 00 88 2C 7C 2B 69 82 5C CE [17:46:12]CommunicateWithHost err = 0 [17:46:12]CheckOFDResponse [17:46:12]1017 (14) - 77093643461234 [17:46:12]1041 (16) - 0000000000871745 [17:46:12]1040 (4) - 145800 [17:46:12]1012 (4) - 27.10.2024 11:18 [17:46:12]1206 (1) - 0 [17:46:12]OFD Sender: Remove packet 145800 [17:46:12]ProducePacketName [17:46:12]name=ofd_packets/00145800 [17:46:12]NVStorageDeleteData [17:46:12]OFD Sender: No OFD packet to send [17:46:12]*** Cut start [17:46:12]*** Partial cut [17:46:12]*** CUTSNS_PIN = 1 [17:46:12]*** CUTSNS_PIN = 0 [17:46:13]*** Brake cut motor [17:46:13]Read from MH i2c: 01 [17:46:13]MH_I2C_Read... [17:46:13]*** Stop cut motor [17:46:13]*** Cut end [17:46:13]Read from MH i2c: 01 07 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: 01 07 00 BA 31 00 00 00 00 00 FF 0F 00 [17:46:13]process_action close_receipt done [17:46:13]requested_data is exist [17:46:13]produce_requested_data [17:46:13]requested_item fm.sn is exist - process it [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 11 00 00 [17:46:13]Write to MH i2c: E2 08 00 BB 31 80 11 00 00 00 00 00 00 66 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 17 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 17 00 BB 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B9 [17:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:46:13]wFMCommunicate OK [17:46:13]requested_item fd.num is exist - process it [17:46:13]SAM_PROTO_GetFieldsCounters [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 13 00 00 [17:46:13]Write to MH i2c: E2 08 00 BC 31 80 13 00 00 00 00 00 00 69 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 62 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 62 00 BC 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 88 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [17:46:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 88 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:13]wFMCommunicate OK [17:46:13]SAM_PROTO_GetFieldsCounters done [17:46:13]requested_item shift.num is exist - process it [17:46:13]requested_item shift.opened is exist - process it [17:46:13]req_shift_opened [17:46:13]FM_GetShiftState [17:46:13]SAM_PROTO_GetShiftState [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 13 01 00 [17:46:13]Write to MH i2c: E2 08 00 BD 31 80 13 01 00 00 00 00 00 6B [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 0E 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 0E 00 BD 31 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E3 [17:46:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:46:13]wFMCommunicate OK [17:46:13]SAM_PROTO_GetShiftState done [17:46:13]FM_GetShiftState done [17:46:13]req_shift_opened done [17:46:13]requested_item shift.open_date is exist - process it [17:46:13]req_shift_open_date [17:46:13]req_shift_open_date done [17:46:13]produce_requested_data done [17:46:13]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145800,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:46:13]process_action_free close_receipt [17:46:13]json_value_free [17:46:13]json_value_free done [17:46:13]process_json_proto returns [17:46:13]Send response to host [17:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145800,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:46:13]free response buf [17:46:13]execute_script done [17:46:13]execute_script returns [17:46:13]free content buf [17:46:13]Sock 7.Close socket [17:46:13]Sock 7.Thread stoped [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:09]int [17:47:09]Write to MH i2c: 01 00 00 BE 31 EF [17:47:09]*** FLAG_PRN_KEY set [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 BE 31 00 08 00 00 00 FF 0F 0C [17:47:09]state=0 [17:47:09]Key pressed [17:47:09]Feed [17:47:09]Write to MH i2c: D8 00 00 BF 31 C7 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: D8 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: D8 01 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: D8 01 00 BF 31 00 C8 [17:47:09]int [17:47:09]Write to MH i2c: 01 00 00 C0 31 F1 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 C0 31 00 48 00 00 00 3C 00 7C [17:47:09]state=2 [17:47:09]Key pressed [17:47:09]int [17:47:09]Write to MH i2c: 01 00 00 C1 31 F2 [17:47:09]*** FLAG_PRN_KEY reset [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 C1 31 00 00 00 00 00 F7 0F FF [17:47:09]state=2 [17:47:09]Stop feed [17:47:12]int [17:47:12]Write to MH i2c: 01 00 00 C2 31 F3 [17:47:12]*** FLAG_PRN_KEY set [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 07 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 07 00 C2 31 00 08 00 00 00 FF 0F 10 [17:47:12]state=0 [17:47:12]Key pressed [17:47:12]Feed [17:47:12]Write to MH i2c: D8 00 00 C3 31 CB [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: D8 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: D8 01 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: D8 01 00 C3 31 00 CC [17:47:12]int [17:47:12]Write to MH i2c: 01 00 00 C4 31 F5 [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 07 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 07 00 C4 31 00 48 00 00 00 3C 00 80 [17:47:12]state=2 [17:47:12]Key pressed [17:47:12]int [17:47:12]Write to MH i2c: 01 00 00 C5 31 F6 [17:47:12]*** FLAG_PRN_KEY reset [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 07 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 07 00 C5 31 00 00 00 00 00 F6 0F 02 [17:47:12]state=2 [17:47:12]Stop feed [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:14]accept exits with 9 [17:49:14]New connection [17:49:14]New thread 3066596708 created [17:49:14]Thread 3066740068 joined [17:49:14]Waiting for new connection... [17:49:14] Sock 9.Parse request [17:49:14]Sock 9.Check first char [17:49:14]Sock 9.First char is OK [17:49:14]request: POST /json_proto HTTP/1.0 [17:49:14]Method: POST [17:49:14]URL: /json_proto [17:49:14]Method is POST - this is cgi request [17:49:14]url: /json_proto [17:49:14]query_string will be loaded in cgi processing [17:49:14]execute_cgi json_proto POST (null) [17:49:14]execute_cgi path=json_proto method=POST [17:49:14]POST find Content-Length [17:49:14]Host: 172.17.40.195:8080 [17:49:14]Content-Length: 682 [17:49:14]Content-Type: application/json [17:49:14] [17:49:14]POST finish read [17:49:14]Found Content-Length = 682 [17:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 38.080, "sum" : 2825.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2825.00, "total" : 2825.00, "payments": [ { "type": 0, "sum" : 2825.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:14]execute_script... [17:49: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)160558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 38.080, "sum" : 2825.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2825.00, "total" : 2825.00, "payments": [ { "type": 0, "sum" : 2825.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:14]POST & json_proto [17:49:14]process_json_proto [17:49:14]json parsed OK: [17:49:14]protocol is kg_v1.0 [17:49:14]action value=close_receipt [17:49:14]process_action close_receipt [17:49:14]cmd_close_receipt [17:49:14]MH_GetDate [17:49:14]Write to MH i2c: F0 00 00 C6 31 E6 [17:49:14]Write i2c OK [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: F0 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: F0 09 00 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: F0 09 00 C6 31 00 1D 7D 1E 67 D5 8D 6C 64 40 [17:49:14]GetLastDocTimeStamp 1730051172 [17:49:14]current date 1730051357 [17:49:14]FM_GetShiftState [17:49:14]SAM_PROTO_GetShiftState [17:49:14]wFMCommunicate request_size=4 [17:49:14]MH_SAM_APDU [17:49:14]CAPDU: 80 13 01 00 [17:49:14]Write to MH i2c: E2 08 00 C7 31 80 13 01 00 00 00 00 00 75 [17:49:14]Write i2c OK [17:49:14]MH_I2C_Read... [17:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:14]Read from MH i2c: E2 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: E2 0E 00 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: E2 0E 00 C7 31 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 ED [17:49:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:49:14]wFMCommunicate OK [17:49:14]SAM_PROTO_GetShiftState done [17:49:14]FM_GetShiftState done [17:49:14]opened in 1729988959 [17:49:14]opened+sec_in_day 1730075359 [17:49:14]quantity*price = 282553 [17:49:14]sum+1 = 282555 [17:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2825.00 Внесено: 2825.00 СДАЧА: 0.00 НСП 1% : 25.00 НДС 12% : 300.06 Наличными: 2825.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 224 27.10.2024 17:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145801 ФПД: 278555125435656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174917&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145801&fm=278555125435656&tin=02508201610067®Number=0000000000091683&sum=282500 [17:49:15]StoreToDocumentArchive [17:49:15]shift 545 fd 145801 [17:49:15]save to /storage/0545/doc_00145801 [17:49:15]save last doc name /storage/0545/doc_00145801 to /storage/kkm_last_doc_name [17:49:15]save OK [17:49:15]Clear old archive folders... [17:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:49:15]tlvbuf is 003FAFE0 [17:49:15]SAM_PROTO_ClearQueue [17:49:15]wFMCommunicate request_size=4 [17:49:15]MH_SAM_APDU [17:49:15]CAPDU: 80 09 00 00 [17:49:15]Write to MH i2c: E2 08 00 D4 31 80 09 00 00 00 00 00 00 77 [17:49:15]Write i2c OK [17:49:15]MH_I2C_Read... [17:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:15]Read from MH i2c: E2 [17:49:15]MH_I2C_Read... [17:49:15]Read from MH i2c: E2 03 00 [17:49:15]MH_I2C_Read... [17:49:15]Read from MH i2c: E2 03 00 D4 31 00 90 00 79 [17:49:15]RAPDU: 90 00 [17:49:15]wFMCommunicate OK [17:49:15]SAM_PROTO_ClearQueue done [17:49:15]KKMCreateOFDPacket [17:49:15]OFDProtocolAddRootSTLVToBuf [17:49:15]FM_MakeSignedData [17:49:15]FM_MakeSignedData [17:49:15]SAM_PROTO_SignData [17:49:15]wFMCommunicate request_size=4 [17:49:15]MH_SAM_APDU [17:49:15]CAPDU: 80 0D 01 02 [17:49:15]Write to MH i2c: E2 08 00 D5 31 80 0D 01 02 00 00 00 00 7F [17:49:15]Write i2c OK [17:49:15]MH_I2C_Read... [17:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:16]Read from MH i2c: E2 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 03 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 03 00 D5 31 00 90 00 7A [17:49:16]RAPDU: 90 00 [17:49:16]wFMCommunicate OK [17:49:16]wFMCommunicate request_size=255 [17:49:16]MH_SAM_APDU [17: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 94 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BA 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 75 00 00 00 00 07 04 06 00 84 4F 04 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 1D 7D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 89 39 02 00 35 04 06 00 FD [17:49:16]Write to MH i2c: E2 02 01 D6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 94 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BA 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 75 00 00 00 00 07 04 06 00 84 4F 04 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 1D 7D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 89 39 02 00 35 04 06 00 FD 00 00 0F [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:16]Read from MH i2c: E2 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 03 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 03 00 D6 31 00 90 00 7B [17:49:16]RAPDU: 90 00 [17:49:16]wFMCommunicate OK [17:49:16]wFMCommunicate request_size=10 [17:49:16]MH_SAM_APDU [17:49:16]CAPDU: 80 0D 02 02 05 58 2B 4D 4D 08 [17:49:16]Write to MH i2c: E2 0D 00 D7 31 80 0D 02 02 05 00 58 2B 4D 4D 08 00 00 B1 [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:16]Read from MH i2c: E2 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 03 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 03 00 D7 31 00 90 00 7C [17:49:16]RAPDU: 90 00 [17:49:16]wFMCommunicate OK [17:49:16]wFMCommunicate request_size=4 [17:49:16]MH_SAM_APDU [17:49:16]CAPDU: 80 0D 03 02 [17:49:16]Write to MH i2c: E2 08 00 D8 31 80 0D 03 02 00 00 00 00 84 [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:16]Read from MH i2c: E2 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 0B 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 0B 00 D8 31 00 BD 86 53 C4 35 7C 39 20 90 00 E9 [17:49:16]RAPDU: BD 86 53 C4 35 7C 39 20 90 00 [17:49:16]wFMCommunicate OK [17:49:16]SAM_PROTO_SignData done [17:49:16]FM_MakeSignedData done [17:49:16]CreateOFDProtocolMessage [17:49:16]wFMCommunicate request_size=4 [17:49:16]MH_SAM_APDU [17:49:16]CAPDU: 80 11 00 00 [17:49:16]Write to MH i2c: E2 08 00 D9 31 80 11 00 00 00 00 00 00 84 [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:16]Read from MH i2c: E2 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 17 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: E2 17 00 D9 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D7 [17:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:49:16]wFMCommunicate OK [17:49:16]CreateOFDProtocolMessage done [17:49:16]OFDSenderStorePacket 145801 [17:49:16]StoreOFDPacket docnum=145801 [17:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 37 C0 07 01 DF 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 94 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BA 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 75 00 00 00 00 07 04 06 00 84 4F 04 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 1D 7D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 89 39 02 00 35 04 06 00 FD 58 2B 4D 4D 08 BD 86 53 C4 35 7C 39 20 [17:49:16]CheckFolder [17:49:16]dirname=/storage/ofd_packets [17:49:16]CheckFolder done [17:49:16]ProducePacketName [17:49:16]name=ofd_packets/00145801 [17:49:16]NVStorageSaveData ofd_packets/00145801 [17:49:16]File name is /storage/ofd_packets/00145801 [17:49:16]Write 301 bytes [17:49:16]NVStorageSaveData done [17:49:16]OFDSenderStorePacket done [17:49:16]KKMCreateOFDPacket done [17:49:16]NVStorageSaveData kkm_last_timestamp [17:49:16]File name is /storage/kkm_last_timestamp [17:49:16]Write 4 bytes [17:49:16]NVStorageSaveData done [17:49:16]ExternCall_PrintAddStr [17:49:16]wPrintStart [17:49:16]Write to MH i2c: 01 00 00 DA 31 0B [17:49:16]Write i2c OK [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: 01 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: 01 07 00 [17:49:16]MH_I2C_Read... [17:49:16]Read from MH i2c: 01 07 00 DA 31 00 00 00 00 00 FF 0F 20 [17:49:16]RasterBufferAndPrint [17:49:16]line Счет N : (1)160558 [17:49:16]line ИНН: 02508201610067 [17:49:16]line Контрольно-Кассовый Чек [17:49:16]line ПРОДАЖА [17:49:16]line ТРК (МРК, ГНК) : 63 [17:49:16]line Товар: 2710124500 [17:49:16]line Аи-95-К-3 [17:49:16]line 38.080 * 74.20 [17:49:16]line = 2825.54 [17:49:16]line НДС 12% НСП 1% [17:49:16]line > о реализуемом товаре [17:49:16]line ОКРУГЛЕНИЕ: -0.54 [17:49:16]line ИТОГО: 2825.00 [17:49:16]line Внесено: 2825.00 [17:49:16]line СДАЧА: 0.00 [17:49:16]line НСП 1% : 25.00 [17:49:16]line НДС 12% : 300.06 [17:49:16]line Наличными: 2825.00 [17:49:16]line Безнал.: 0.00 [17:49:16]line Место: АЗС № 126 "Партнер Нефть" [17:49:16]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:49:16]line СНО: Общий режим [17:49:16]line Чек 224 27.10.2024 17:49 [17:49:16]line Смена: 545 ФФД: 1.0 [17:49:16]line ЗНМ: 0300000085 [17:49:16]line РНМ: 0000000000091683 [17:49:16]line Версия ККМ: 001 [17:49:16]line ФМ: 0000000000871745 [17:49:16]line ФД: 145801 [17:49:16]line ФПД: 278555125435656 [17:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174917&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145801&fm=278555125435656&tin=02508201610067®Number=0000000000091683&sum=282500 [17:49:16]OFD Sender: Processing packet 145801 [packets to send 206, broken 205] [17:49:16]ProducePacketName [17:49:16]name=ofd_packets/00145801 [17:49:16]OFD Sender: To server: pG, [17:49:16]CommunicateWithHost lk.salyk.kg:30040 [17:49:16]ConnectInit lk.salyk.kg [17:49:16]written 0, free lines is 4095 [17:49:16]Connected sock=10 [17:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 37 C0 07 01 DF 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 94 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BA 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 75 00 00 00 00 07 04 06 00 84 4F 04 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 1D 7D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 89 39 02 00 35 04 06 00 FD 58 2B 4D 4D 08 BD 86 53 C4 35 7C 39 20 [17:49:17]Write to MH i2c: 01 00 00 05 32 37 [17:49:17]Write i2c OK [17:49:17]MH_I2C_Read... [17:49:17]Read from MH i2c: 01 [17:49:17]MH_I2C_Read... [17:49:17]Read from MH i2c: 01 07 00 [17:49:17]MH_I2C_Read... [17:49:17]Read from MH i2c: 01 07 00 05 32 00 00 00 00 00 BD 0C 07 [17:49:17]RasterBufferAndPrint [17:49:17]line [17:49:17]line [17:49:17]line [17:49:17]line [17:49:17]line [17:49:17]written 0, free lines is 3267 [17:49:17]MH_Cut [17:49:17]Write to MH i2c: D1 01 00 0C 32 01 10 [17:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 04 47 47 00 80 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 31 37 34 35 10 04 04 00 89 39 02 00 F4 03 04 00 4A 22 1E 67 B6 04 01 00 00 77 FB 85 BD 6D 12 B5 9B [17:49:17]CommunicateWithHost err = 0 [17:49:17]CheckOFDResponse [17:49:17]1017 (14) - 77093643461234 [17:49:17]1041 (16) - 0000000000871745 [17:49:17]1040 (4) - 145801 [17:49:17]1012 (4) - 27.10.2024 11:21 [17:49:17]1206 (1) - 0 [17:49:17]OFD Sender: Remove packet 145801 [17:49:17]ProducePacketName [17:49:17]name=ofd_packets/00145801 [17:49:17]NVStorageDeleteData [17:49:17]Write i2c OK [17:49:17]MH_I2C_Read... [17:49:17]Read from MH i2c: D1 [17:49:17]MH_I2C_Read... [17:49:17]Read from MH i2c: D1 01 00 [17:49:17]MH_I2C_Read... [17:49:17]Read from MH i2c: D1 01 00 0C 32 00 0F [17:49:17]Write to MH i2c: 01 00 00 0D 32 3F [17:49:17]Write i2c OK [17:49:17]MH_I2C_Read... [17:49:17]OFD Sender: No OFD packet to send [17:49:18]*** Cut start [17:49:18]*** Partial cut [17:49:18]*** CUTSNS_PIN = 1 [17:49:18]*** CUTSNS_PIN = 0 [17:49:18]*** Brake cut motor [17:49:18]Read from MH i2c: 01 [17:49:18]MH_I2C_Read... [17:49:18]*** Stop cut motor [17:49:18]*** Cut end [17:49:18]Read from MH i2c: 01 07 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: 01 07 00 0D 32 00 00 00 00 00 FF 0F 54 [17:49:18]process_action close_receipt done [17:49:18]requested_data is exist [17:49:18]produce_requested_data [17:49:18]requested_item fm.sn is exist - process it [17:49:18]wFMCommunicate request_size=4 [17:49:18]MH_SAM_APDU [17:49:18]CAPDU: 80 11 00 00 [17:49:18]Write to MH i2c: E2 08 00 0E 32 80 11 00 00 00 00 00 00 BA [17:49:18]Write i2c OK [17:49:18]MH_I2C_Read... [17:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:18]Read from MH i2c: E2 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 17 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 17 00 0E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0D [17:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:49:18]wFMCommunicate OK [17:49:18]requested_item fd.num is exist - process it [17:49:18]SAM_PROTO_GetFieldsCounters [17:49:18]wFMCommunicate request_size=4 [17:49:18]MH_SAM_APDU [17:49:18]CAPDU: 80 13 00 00 [17:49:18]Write to MH i2c: E2 08 00 0F 32 80 13 00 00 00 00 00 00 BD [17:49:18]Write i2c OK [17:49:18]MH_I2C_Read... [17:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:18]Read from MH i2c: E2 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 62 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 62 00 0F 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 89 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [17:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 89 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:18]wFMCommunicate OK [17:49:18]SAM_PROTO_GetFieldsCounters done [17:49:18]requested_item shift.num is exist - process it [17:49:18]requested_item shift.opened is exist - process it [17:49:18]req_shift_opened [17:49:18]FM_GetShiftState [17:49:18]SAM_PROTO_GetShiftState [17:49:18]wFMCommunicate request_size=4 [17:49:18]MH_SAM_APDU [17:49:18]CAPDU: 80 13 01 00 [17:49:18]Write to MH i2c: E2 08 00 10 32 80 13 01 00 00 00 00 00 BF [17:49:18]Write i2c OK [17:49:18]MH_I2C_Read... [17:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:18]Read from MH i2c: E2 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 0E 00 [17:49:18]MH_I2C_Read... [17:49:18]Read from MH i2c: E2 0E 00 10 32 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 37 [17:49:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:49:18]wFMCommunicate OK [17:49:18]SAM_PROTO_GetShiftState done [17:49:18]FM_GetShiftState done [17:49:18]req_shift_opened done [17:49:18]requested_item shift.open_date is exist - process it [17:49:18]req_shift_open_date [17:49:18]req_shift_open_date done [17:49:18]produce_requested_data done [17:49:18]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145801,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:49:18]process_action_free close_receipt [17:49:18]json_value_free [17:49:18]json_value_free done [17:49:18]process_json_proto returns [17:49:18]Send response to host [17:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145801,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:49:18]free response buf [17:49:18]execute_script done [17:49:18]execute_script returns [17:49:18]free content buf [17:49:18]Sock 9.Close socket [17:49:18]Sock 9.Thread stoped [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:56]accept exits with 7 [17:52:56]New connection [17:52:56]New thread 3066740068 created [17:52:56]Thread 3066596708 joined [17:52:56]Waiting for new connection... [17:52:56] Sock 7.Parse request [17:52:56]Sock 7.Check first char [17:52:56]Sock 7.First char is OK [17:52:56]request: POST /json_proto HTTP/1.0 [17:52:56]Method: POST [17:52:56]URL: /json_proto [17:52:56]Method is POST - this is cgi request [17:52:56]url: /json_proto [17:52:56]query_string will be loaded in cgi processing [17:52:56]execute_cgi json_proto POST (null) [17:52:56]execute_cgi path=json_proto method=POST [17:52:56]POST find Content-Length [17:52:56]Host: 172.17.40.195:8080 [17:52:56]Content-Length: 677 [17:52:56]Content-Type: application/json [17:52:56] [17:52:56]POST finish read [17:52:56]Found Content-Length = 677 [17:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:56]execute_script... [17:52: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)160559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:56]POST & json_proto [17:52:56]process_json_proto [17:52:56]json parsed OK: [17:52:56]protocol is kg_v1.0 [17:52:56]action value=close_receipt [17:52:56]process_action close_receipt [17:52:56]cmd_close_receipt [17:52:56]MH_GetDate [17:52:56]Write to MH i2c: F0 00 00 11 32 32 [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: F0 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: F0 09 00 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: F0 09 00 11 32 00 FA 7D 1E 67 D5 8D 6C 64 69 [17:52:56]GetLastDocTimeStamp 1730051357 [17:52:56]current date 1730051578 [17:52:56]FM_GetShiftState [17:52:56]SAM_PROTO_GetShiftState [17:52:56]wFMCommunicate request_size=4 [17:52:56]MH_SAM_APDU [17:52:56]CAPDU: 80 13 01 00 [17:52:56]Write to MH i2c: E2 08 00 12 32 80 13 01 00 00 00 00 00 C1 [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:56]Read from MH i2c: E2 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 0E 00 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 0E 00 12 32 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 39 [17:52:56]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:52:56]wFMCommunicate OK [17:52:56]SAM_PROTO_GetShiftState done [17:52:56]FM_GetShiftState done [17:52:56]opened in 1729988959 [17:52:56]opened+sec_in_day 1730075359 [17:52:56]quantity*price = 50041 [17:52:56]sum+1 = 50042 [17:52:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 225 27.10.2024 17:52 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145802 ФПД: 240934944003794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175258&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145802&fm=240934944003794&tin=02508201610067®Number=0000000000091683&sum=50000 [17:52:57]StoreToDocumentArchive [17:52:57]shift 545 fd 145802 [17:52:57]save to /storage/0545/doc_00145802 [17:52:57]save last doc name /storage/0545/doc_00145802 to /storage/kkm_last_doc_name [17:52:57]save OK [17:52:57]Clear old archive folders... [17:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:57]tlvbuf is B6D74510 [17:52:57]SAM_PROTO_ClearQueue [17:52:57]wFMCommunicate request_size=4 [17:52:57]MH_SAM_APDU [17:52:57]CAPDU: 80 09 00 00 [17:52:57]Write to MH i2c: E2 08 00 1F 32 80 09 00 00 00 00 00 00 C3 [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:57]Read from MH i2c: E2 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 03 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 03 00 1F 32 00 90 00 C5 [17:52:57]RAPDU: 90 00 [17:52:57]wFMCommunicate OK [17:52:57]SAM_PROTO_ClearQueue done [17:52:57]KKMCreateOFDPacket [17:52:57]OFDProtocolAddRootSTLVToBuf [17:52:57]FM_MakeSignedData [17:52:57]FM_MakeSignedData [17:52:57]SAM_PROTO_SignData [17:52:57]wFMCommunicate request_size=4 [17:52:57]MH_SAM_APDU [17:52:57]CAPDU: 80 0D 01 02 [17:52:57]Write to MH i2c: E2 08 00 20 32 80 0D 01 02 00 00 00 00 CB [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:57]Read from MH i2c: E2 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 03 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 03 00 20 32 00 90 00 C6 [17:52:57]RAPDU: 90 00 [17:52:57]wFMCommunicate OK [17:52:57]wFMCommunicate request_size=255 [17:52:57]MH_SAM_APDU [17:52: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 FA 7D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8A 39 02 00 35 04 06 00 DB [17:52:57]Write to MH i2c: E2 02 01 21 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 FA 7D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8A 39 02 00 35 04 06 00 DB 00 00 F9 [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:57]Read from MH i2c: E2 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 03 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 03 00 21 32 00 90 00 C7 [17:52:57]RAPDU: 90 00 [17:52:57]wFMCommunicate OK [17:52:57]wFMCommunicate request_size=10 [17:52:57]MH_SAM_APDU [17:52:57]CAPDU: 80 0D 02 02 05 21 09 C0 56 D2 [17:52:57]Write to MH i2c: E2 0D 00 22 32 80 0D 02 02 05 00 21 09 C0 56 D2 00 00 EA [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:57]Read from MH i2c: E2 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 03 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 03 00 22 32 00 90 00 C8 [17:52:57]RAPDU: 90 00 [17:52:57]wFMCommunicate OK [17:52:57]wFMCommunicate request_size=4 [17:52:57]MH_SAM_APDU [17:52:57]CAPDU: 80 0D 03 02 [17:52:57]Write to MH i2c: E2 08 00 23 32 80 0D 03 02 00 00 00 00 D0 [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:57]Read from MH i2c: E2 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 0B 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 0B 00 23 32 00 DB D6 3F 43 FA 66 AE DF 90 00 F1 [17:52:57]RAPDU: DB D6 3F 43 FA 66 AE DF 90 00 [17:52:57]wFMCommunicate OK [17:52:57]SAM_PROTO_SignData done [17:52:57]FM_MakeSignedData done [17:52:57]CreateOFDProtocolMessage [17:52:57]wFMCommunicate request_size=4 [17:52:57]MH_SAM_APDU [17:52:57]CAPDU: 80 11 00 00 [17:52:57]Write to MH i2c: E2 08 00 24 32 80 11 00 00 00 00 00 00 D0 [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:57]Read from MH i2c: E2 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 17 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: E2 17 00 24 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 23 [17:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:52:57]wFMCommunicate OK [17:52:57]CreateOFDProtocolMessage done [17:52:57]OFDSenderStorePacket 145802 [17:52:57]StoreOFDPacket docnum=145802 [17:52:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 6A EA 07 01 B7 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 FA 7D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8A 39 02 00 35 04 06 00 DB 21 09 C0 56 D2 DB D6 3F 43 FA 66 AE DF [17:52:57]CheckFolder [17:52:57]dirname=/storage/ofd_packets [17:52:57]CheckFolder done [17:52:57]ProducePacketName [17:52:57]name=ofd_packets/00145802 [17:52:57]NVStorageSaveData ofd_packets/00145802 [17:52:57]File name is /storage/ofd_packets/00145802 [17:52:57]Write 301 bytes [17:52:57]NVStorageSaveData done [17:52:57]OFDSenderStorePacket done [17:52:57]KKMCreateOFDPacket done [17:52:57]NVStorageSaveData kkm_last_timestamp [17:52:57]File name is /storage/kkm_last_timestamp [17:52:57]Write 4 bytes [17:52:57]NVStorageSaveData done [17:52:57]ExternCall_PrintAddStr [17:52:57]wPrintStart [17:52:57]Write to MH i2c: 01 00 00 25 32 57 [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: 01 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: 01 07 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: 01 07 00 25 32 00 00 00 00 00 FF 0F 6C [17:52:57]RasterBufferAndPrint [17:52:57]line Счет N : (1)160559 [17:52:57]line ИНН: 02508201610067 [17:52:57]line Контрольно-Кассовый Чек [17:52:57]line ПРОДАЖА [17:52:57]line ТРК (МРК, ГНК) : 32 [17:52:57]line Товар: 2710124130 [17:52:57]line Аи-92-К-2 [17:52:57]line 7.480 * 66.90 [17:52:57]line = 500.41 [17:52:57]line НДС 12% НСП 1% [17:52:57]line > о реализуемом товаре [17:52:57]line ОКРУГЛЕНИЕ: -0.41 [17:52:57]line ИТОГО: 500.00 [17:52:57]line Внесено: 500.00 [17:52:57]line СДАЧА: 0.00 [17:52:57]line НСП 1% : 4.43 [17:52:57]line НДС 12% : 53.14 [17:52:57]line Наличными: 500.00 [17:52:57]line Безнал.: 0.00 [17:52:57]line Место: АЗС № 126 "Партнер Нефть" [17:52:57]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:52:57]line СНО: Общий режим [17:52:57]line Чек 225 27.10.2024 17:52 [17:52:57]line Смена: 545 ФФД: 1.0 [17:52:57]line ЗНМ: 0300000085 [17:52:57]line РНМ: 0000000000091683 [17:52:57]line Версия ККМ: 001 [17:52:57]line ФМ: 0000000000871745 [17:52:57]line ФД: 145802 [17:52:57]line ФПД: 240934944003794 [17:52:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175258&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145802&fm=240934944003794&tin=02508201610067®Number=0000000000091683&sum=50000 [17:52:58]written 0, free lines is 4095 [17:52:58]OFD Sender: Processing packet 145802 [packets to send 206, broken 205] [17:52:58]ProducePacketName [17:52:58]name=ofd_packets/00145802 [17:52:58]OFD Sender: To server: pG, [17:52:58]CommunicateWithHost lk.salyk.kg:30040 [17:52:58]ConnectInit lk.salyk.kg [17:52:58]Connected sock=9 [17:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 6A EA 07 01 B7 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 FA 7D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8A 39 02 00 35 04 06 00 DB 21 09 C0 56 D2 DB D6 3F 43 FA 66 AE DF [17:52:58]Write to MH i2c: 01 00 00 50 32 82 [17:52:58]Write i2c OK [17:52:58]MH_I2C_Read... [17:52:58]Read from MH i2c: 01 [17:52:58]MH_I2C_Read... [17:52:58]Read from MH i2c: 01 07 00 [17:52:58]MH_I2C_Read... [17:52:58]Read from MH i2c: 01 07 00 50 32 00 00 00 00 00 B8 0C 4D [17:52:58]RasterBufferAndPrint [17:52:58]line [17:52:58]line [17:52:58]line [17:52:58]line [17:52:58]line [17:52:58]written 0, free lines is 3263 [17:52:58]MH_Cut [17:52:58]Write to MH i2c: D1 01 00 57 32 01 5B [17:52:58]Write i2c OK [17:52:58]MH_I2C_Read... [17:52:58]Read from MH i2c: D1 [17:52:58]MH_I2C_Read... [17:52:58]Read from MH i2c: D1 01 00 [17:52:58]MH_I2C_Read... [17:52:58]Read from MH i2c: D1 01 00 57 32 00 5A [17:52:58]Write to MH i2c: 01 00 00 58 32 8A [17:52:58]Write i2c OK [17:52:58]MH_I2C_Read... [17:52:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 5B D7 47 00 52 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8A 39 02 00 F4 03 04 00 27 23 1E 67 B6 04 01 00 00 BD 6B CA 2D 3F E2 34 5F [17:52:58]CommunicateWithHost err = 0 [17:52:58]CheckOFDResponse [17:52:58]1017 (14) - 77093643461234 [17:52:58]1041 (16) - 0000000000871745 [17:52:58]1040 (4) - 145802 [17:52:58]1012 (4) - 27.10.2024 11:25 [17:52:58]1206 (1) - 0 [17:52:58]OFD Sender: Remove packet 145802 [17:52:58]ProducePacketName [17:52:58]name=ofd_packets/00145802 [17:52:58]NVStorageDeleteData [17:52:59]OFD Sender: No OFD packet to send [17:52:59]*** Cut start [17:52:59]*** Partial cut [17:52:59]*** CUTSNS_PIN = 1 [17:52:59]*** CUTSNS_PIN = 0 [17:52:59]*** Brake cut motor [17:52:59]Read from MH i2c: 01 [17:52:59]MH_I2C_Read... [17:52:59]*** Stop cut motor [17:52:59]*** Cut end [17:52:59]Read from MH i2c: 01 07 00 [17:52:59]MH_I2C_Read... [17:52:59]Read from MH i2c: 01 07 00 58 32 00 00 00 00 00 FF 0F 9F [17:52:59]process_action close_receipt done [17:52:59]requested_data is exist [17:52:59]produce_requested_data [17:52:59]requested_item fm.sn is exist - process it [17:52:59]wFMCommunicate request_size=4 [17:52:59]MH_SAM_APDU [17:52:59]CAPDU: 80 11 00 00 [17:52:59]Write to MH i2c: E2 08 00 59 32 80 11 00 00 00 00 00 00 05 [17:52:59]Write i2c OK [17:52:59]MH_I2C_Read... [17:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:00]Read from MH i2c: E2 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 17 00 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 17 00 59 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 58 [17:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:53:00]wFMCommunicate OK [17:53:00]requested_item fd.num is exist - process it [17:53:00]SAM_PROTO_GetFieldsCounters [17:53:00]wFMCommunicate request_size=4 [17:53:00]MH_SAM_APDU [17:53:00]CAPDU: 80 13 00 00 [17:53:00]Write to MH i2c: E2 08 00 5A 32 80 13 00 00 00 00 00 00 08 [17:53:00]Write i2c OK [17:53:00]MH_I2C_Read... [17:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:00]Read from MH i2c: E2 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 62 00 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 62 00 5A 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [17:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8A 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:00]wFMCommunicate OK [17:53:00]SAM_PROTO_GetFieldsCounters done [17:53:00]requested_item shift.num is exist - process it [17:53:00]requested_item shift.opened is exist - process it [17:53:00]req_shift_opened [17:53:00]FM_GetShiftState [17:53:00]SAM_PROTO_GetShiftState [17:53:00]wFMCommunicate request_size=4 [17:53:00]MH_SAM_APDU [17:53:00]CAPDU: 80 13 01 00 [17:53:00]Write to MH i2c: E2 08 00 5B 32 80 13 01 00 00 00 00 00 0A [17:53:00]Write i2c OK [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 [17:53:00]MH_I2C_Read... [17:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:00]Read from MH i2c: E2 0E 00 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 0E 00 5B 32 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 82 [17:53:00]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:53:00]wFMCommunicate OK [17:53:00]SAM_PROTO_GetShiftState done [17:53:00]FM_GetShiftState done [17:53:00]req_shift_opened done [17:53:00]requested_item shift.open_date is exist - process it [17:53:00]req_shift_open_date [17:53:00]req_shift_open_date done [17:53:00]produce_requested_data done [17:53:00]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145802,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:53:00]process_action_free close_receipt [17:53:00]json_value_free [17:53:00]json_value_free done [17:53:00]process_json_proto returns [17:53:00]Send response to host [17:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145802,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:53:00]free response buf [17:53:00]execute_script done [17:53:00]execute_script returns [17:53:00]free content buf [17:53:00]Sock 7.Close socket [17:53:00]Sock 7.Thread stoped [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:47]int [17:55:47]Write to MH i2c: 01 00 00 5C 32 8E [17:55:47]*** FLAG_PRN_KEY set [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 5C 32 00 08 00 00 00 FF 0F AB [17:55:47]state=0 [17:55:47]Key pressed [17:55:47]Feed [17:55:47]Write to MH i2c: D8 00 00 5D 32 66 [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: D8 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: D8 01 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: D8 01 00 5D 32 00 67 [17:55:47]int [17:55:47]Write to MH i2c: 01 00 00 5E 32 90 [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 5E 32 00 48 00 00 00 3C 00 1B [17:55:47]state=2 [17:55:47]Key pressed [17:55:47]int [17:55:47]Write to MH i2c: 01 00 00 5F 32 91 [17:55:47]*** FLAG_PRN_KEY reset [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 5F 32 00 00 00 00 00 F7 0F 9E [17:55:47]state=2 [17:55:47]Stop feed [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:33]int [17:56:33]Write to MH i2c: 01 00 00 60 32 92 [17:56:33]*** FLAG_PRN_KEY set [17:56:33]Write i2c OK [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: 01 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: 01 07 00 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: 01 07 00 60 32 00 08 00 00 00 FF 0F AF [17:56:33]state=0 [17:56:33]Key pressed [17:56:33]Feed [17:56:33]Write to MH i2c: D8 00 00 61 32 6A [17:56:33]Write i2c OK [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: D8 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: D8 01 00 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: D8 01 00 61 32 00 6B [17:56:33]int [17:56:33]Write to MH i2c: 01 00 00 62 32 94 [17:56:33]Write i2c OK [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: 01 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: 01 07 00 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: 01 07 00 62 32 00 48 00 00 00 3D 00 20 [17:56:33]state=2 [17:56:33]Key pressed [17:56:34]int [17:56:34]Write to MH i2c: 01 00 00 63 32 95 [17:56:34]*** FLAG_PRN_KEY reset [17:56:34]Write i2c OK [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: 01 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: 01 07 00 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: 01 07 00 63 32 00 00 00 00 00 FF 0F AA [17:56:34]state=2 [17:56:34]Stop feed [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:18]accept exits with 10 [17:57:18]New connection [17:57:18]New thread 3066596708 created [17:57:18]Thread 3066740068 joined [17:57:18]Waiting for new connection... [17:57:18] Sock 10.Parse request [17:57:18]Sock 10.Check first char [17:57:18]Sock 10.First char is OK [17:57:18]request: POST /json_proto HTTP/1.0 [17:57:18]Method: POST [17:57:18]URL: /json_proto [17:57:18]Method is POST - this is cgi request [17:57:18]url: /json_proto [17:57:18]query_string will be loaded in cgi processing [17:57:18]execute_cgi json_proto POST (null) [17:57:18]execute_cgi path=json_proto method=POST [17:57:18]POST find Content-Length [17:57:18]Host: 172.17.40.195:8080 [17:57:18]Content-Length: 792 [17:57:18]Content-Type: application/json [17:57:18] [17:57:18]POST finish read [17:57:18]Found Content-Length = 792 [17:57:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03242", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:18]execute_script... [17:57:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03242", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:18]POST & json_proto [17:57:18]process_json_proto [17:57:18]json parsed OK: [17:57:18]protocol is kg_v1.0 [17:57:18]action value=close_receipt [17:57:18]process_action close_receipt [17:57:18]cmd_close_receipt [17:57:18]MH_GetDate [17:57:18]Write to MH i2c: F0 00 00 64 32 85 [17:57:18]Write i2c OK [17:57:18]MH_I2C_Read... [17:57:18]Read from MH i2c: F0 [17:57:18]MH_I2C_Read... [17:57:18]Read from MH i2c: F0 09 00 [17:57:18]MH_I2C_Read... [17:57:18]Read from MH i2c: F0 09 00 64 32 00 00 7F 1E 67 D5 8D 6C 64 C4 [17:57:18]GetLastDocTimeStamp 1730051578 [17:57:18]current date 1730051840 [17:57:18]FM_GetShiftState [17:57:18]SAM_PROTO_GetShiftState [17:57:18]wFMCommunicate request_size=4 [17:57:18]MH_SAM_APDU [17:57:18]CAPDU: 80 13 01 00 [17:57:18]Write to MH i2c: E2 08 00 65 32 80 13 01 00 00 00 00 00 14 [17:57:18]Write i2c OK [17:57:18]MH_I2C_Read... [17:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:18]Read from MH i2c: E2 [17:57:18]MH_I2C_Read... [17:57:18]Read from MH i2c: E2 0E 00 [17:57:18]MH_I2C_Read... [17:57:18]Read from MH i2c: E2 0E 00 65 32 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8C [17:57:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:57:18]wFMCommunicate OK [17:57:18]SAM_PROTO_GetShiftState done [17:57:18]FM_GetShiftState done [17:57:18]opened in 1729988959 [17:57:18]opened+sec_in_day 1730075359 [17:57:18]quantity*price = 0 [17:57:18]sum+1 = 1 [17:57:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 226 27.10.2024 17:57 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: Топливная Карта 03242 ФМ: 0000000000871745 ФД: 145803 ФПД: 192200015899915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175720&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145803&fm=192200015899915&tin=02508201610067®Number=0000000000091683&sum=0 [17:57:19]StoreToDocumentArchive [17:57:19]shift 545 fd 145803 [17:57:19]save to /storage/0545/doc_00145803 [17:57:19]save last doc name /storage/0545/doc_00145803 to /storage/kkm_last_doc_name [17:57:19]save OK [17:57:19]Clear old archive folders... [17:57:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:19]tlvbuf is 003FB620 [17:57:19]SAM_PROTO_ClearQueue [17:57:19]wFMCommunicate request_size=4 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 09 00 00 [17:57:19]Write to MH i2c: E2 08 00 72 32 80 09 00 00 00 00 00 00 16 [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 03 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 03 00 72 32 00 90 00 18 [17:57:19]RAPDU: 90 00 [17:57:19]wFMCommunicate OK [17:57:19]SAM_PROTO_ClearQueue done [17:57:19]KKMCreateOFDPacket [17:57:19]OFDProtocolAddRootSTLVToBuf [17:57:19]FM_MakeSignedData [17:57:19]FM_MakeSignedData [17:57:19]SAM_PROTO_SignData [17:57:19]wFMCommunicate request_size=4 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 0D 01 02 [17:57:19]Write to MH i2c: E2 08 00 73 32 80 0D 01 02 00 00 00 00 1E [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 03 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 03 00 73 32 00 90 00 19 [17:57:19]RAPDU: 90 00 [17:57:19]wFMCommunicate OK [17:57:19]wFMCommunicate request_size=255 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 00 7F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8B 39 02 00 35 04 06 00 AE [17:57:19]Write to MH i2c: E2 02 01 74 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 00 7F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8B 39 02 00 35 04 06 00 AE 00 00 12 [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]OFD Sender: No OFD packet to send [17:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 03 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 03 00 74 32 00 90 00 1A [17:57:19]RAPDU: 90 00 [17:57:19]wFMCommunicate OK [17:57:19]wFMCommunicate request_size=10 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 0D 02 02 05 CE 0D AC 6D 0B [17:57:19]Write to MH i2c: E2 0D 00 75 32 80 0D 02 02 05 00 CE 0D AC 6D 0B 00 00 2A [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 03 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 03 00 75 32 00 90 00 1B [17:57:19]RAPDU: 90 00 [17:57:19]wFMCommunicate OK [17:57:19]wFMCommunicate request_size=4 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 0D 03 02 [17:57:19]Write to MH i2c: E2 08 00 76 32 80 0D 03 02 00 00 00 00 23 [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 0B 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 0B 00 76 32 00 08 27 09 DC B5 7B 9F 0C 90 00 13 [17:57:19]RAPDU: 08 27 09 DC B5 7B 9F 0C 90 00 [17:57:19]wFMCommunicate OK [17:57:19]SAM_PROTO_SignData done [17:57:19]FM_MakeSignedData done [17:57:19]CreateOFDProtocolMessage [17:57:19]wFMCommunicate request_size=4 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 11 00 00 [17:57:19]Write to MH i2c: E2 08 00 77 32 80 11 00 00 00 00 00 00 23 [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 17 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 17 00 77 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 76 [17:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:57:19]wFMCommunicate OK [17:57:19]CreateOFDProtocolMessage done [17:57:19]OFDSenderStorePacket 145803 [17:57:19]StoreOFDPacket docnum=145803 [17:57:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F0 E5 07 01 C1 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 00 7F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8B 39 02 00 35 04 06 00 AE CE 0D AC 6D 0B 08 27 09 DC B5 7B 9F 0C [17:57:19]CheckFolder [17:57:19]dirname=/storage/ofd_packets [17:57:19]CheckFolder done [17:57:19]ProducePacketName [17:57:19]name=ofd_packets/00145803 [17:57:19]NVStorageSaveData ofd_packets/00145803 [17:57:19]File name is /storage/ofd_packets/00145803 [17:57:19]Write 301 bytes [17:57:19]NVStorageSaveData done [17:57:19]OFDSenderStorePacket done [17:57:19]KKMCreateOFDPacket done [17:57:19]NVStorageSaveData kkm_last_timestamp [17:57:19]File name is /storage/kkm_last_timestamp [17:57:19]Write 4 bytes [17:57:19]NVStorageSaveData done [17:57:19]ExternCall_PrintAddStr [17:57:19]wPrintStart [17:57:19]Write to MH i2c: 01 00 00 78 32 AA [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: 01 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: 01 07 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: 01 07 00 78 32 00 00 00 00 00 FF 0F BF [17:57:19]RasterBufferAndPrint [17:57:19]line Счет N : (1)160560 [17:57:19]line ИНН: 02508201610067 [17:57:19]line Контрольно-Кассовый Чек [17:57:19]line ПРОДАЖА [17:57:19]line ТРК (МРК, ГНК) : 62 [17:57:19]line Товар: 2710124130 [17:57:19]line Аи-92-К-2 [17:57:19]line 20.000 * 0.00 [17:57:19]line = 0.00 [17:57:19]line НДС 12% НСП 1% [17:57:19]line > о реализуемом товаре [17:57:19]line ИТОГО: 0.00 [17:57:19]line НСП 1% : 0.00 [17:57:19]line НДС 12% : 0.00 [17:57:19]line Наличными: 0.00 [17:57:19]line Безнал.: 0.00 [17:57:19]line Место: АЗС № 126 "Партнер Нефть" [17:57:19]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [17:57:19]line СНО: Общий режим [17:57:19]line Чек 226 27.10.2024 17:57 [17:57:19]line Смена: 545 ФФД: 1.0 [17:57:19]line ЗНМ: 0300000085 [17:57:19]line РНМ: 0000000000091683 [17:57:19]line Версия ККМ: 001 [17:57:19]line Талоны: Топливная Карта [17:57:19]line 03242 [17:57:19]line ФМ: 0000000000871745 [17:57:19]line ФД: 145803 [17:57:19]line ФПД: 192200015899915 [17:57:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175720&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145803&fm=192200015899915&tin=02508201610067®Number=0000000000091683&sum=0 [17:57:20]written 0, free lines is 4095 [17:57:20]OFD Sender: Processing packet 145803 [packets to send 206, broken 205] [17:57:20]ProducePacketName [17:57:20]name=ofd_packets/00145803 [17:57:20]OFD Sender: To server: pG, [17:57:20]CommunicateWithHost lk.salyk.kg:30040 [17:57:20]ConnectInit lk.salyk.kg [17:57:20]Connected sock=7 [17:57:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F0 E5 07 01 C1 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 00 7F 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8B 39 02 00 35 04 06 00 AE CE 0D AC 6D 0B 08 27 09 DC B5 7B 9F 0C [17:57:20]Write to MH i2c: 01 00 00 A2 32 D4 [17:57:20]Write i2c OK [17:57:20]MH_I2C_Read... [17:57:20]Read from MH i2c: 01 [17:57:20]MH_I2C_Read... [17:57:20]Read from MH i2c: 01 07 00 [17:57:20]MH_I2C_Read... [17:57:20]Read from MH i2c: 01 07 00 A2 32 00 00 00 00 00 C6 0C AD [17:57:20]RasterBufferAndPrint [17:57:20]line [17:57:20]line [17:57:20]line [17:57:20]line [17:57:20]line [17:57:20]written 0, free lines is 3278 [17:57:20]MH_Cut [17:57:20]Write to MH i2c: D1 01 00 A9 32 01 AD [17:57:20]Write i2c OK [17:57:20]MH_I2C_Read... [17:57:20]Read from MH i2c: D1 [17:57:20]MH_I2C_Read... [17:57:20]Read from MH i2c: D1 01 00 [17:57:20]MH_I2C_Read... [17:57:20]Read from MH i2c: D1 01 00 A9 32 00 AC [17:57:20]Write to MH i2c: 01 00 00 AA 32 DC [17:57:20]Write i2c OK [17:57:20]MH_I2C_Read... [17:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 45 AA 47 00 47 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8B 39 02 00 F4 03 04 00 2D 24 1E 67 B6 04 01 00 00 EA 9F 41 A6 F5 42 3C EB [17:57:20]CommunicateWithHost err = 0 [17:57:20]CheckOFDResponse [17:57:20]1017 (14) - 77093643461234 [17:57:20]1041 (16) - 0000000000871745 [17:57:20]1040 (4) - 145803 [17:57:20]1012 (4) - 27.10.2024 11:29 [17:57:20]1206 (1) - 0 [17:57:20]OFD Sender: Remove packet 145803 [17:57:20]ProducePacketName [17:57:20]name=ofd_packets/00145803 [17:57:20]NVStorageDeleteData [17:57:21]OFD Sender: No OFD packet to send [17:57:21]*** Cut start [17:57:21]*** Partial cut [17:57:21]*** CUTSNS_PIN = 1 [17:57:21]*** CUTSNS_PIN = 0 [17:57:21]*** Brake cut motor [17:57:22]Read from MH i2c: 01 [17:57:22]MH_I2C_Read... [17:57:22]*** Stop cut motor [17:57:22]*** Cut end [17:57:22]Read from MH i2c: 01 07 00 [17:57:22]MH_I2C_Read... [17:57:22]Read from MH i2c: 01 07 00 AA 32 00 00 00 00 00 FF 0F F1 [17:57:22]process_action close_receipt done [17:57:22]requested_data is exist [17:57:22]produce_requested_data [17:57:22]requested_item fm.sn is exist - process it [17:57:22]wFMCommunicate request_size=4 [17:57:22]MH_SAM_APDU [17:57:22]CAPDU: 80 11 00 00 [17:57:22]Write to MH i2c: E2 08 00 AB 32 80 11 00 00 00 00 00 00 57 [17:57:22]Write i2c OK [17:57:22]MH_I2C_Read... [17:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:22]Read from MH i2c: E2 [17:57:22]MH_I2C_Read... [17:57:22]Read from MH i2c: E2 17 00 [17:57:22]MH_I2C_Read... [17:57:22]Read from MH i2c: E2 17 00 AB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AA [17:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [17:57:22]wFMCommunicate OK [17:57:22]requested_item fd.num is exist - process it [17:57:22]SAM_PROTO_GetFieldsCounters [17:57:22]wFMCommunicate request_size=4 [17:57:22]MH_SAM_APDU [17:57:22]CAPDU: 80 13 00 00 [17:57:22]Write to MH i2c: E2 08 00 AC 32 80 13 00 00 00 00 00 00 5A [17:57:22]Write i2c OK [17:57:22]MH_I2C_Read... [17:57:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:22]Read from MH i2c: E2 [17:57:22]MH_I2C_Read... [17:57:22]Read from MH i2c: E2 62 00 [17:57:22]MH_I2C_Read... [17:57:22]Read from MH i2c: E2 62 00 AC 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [17:57:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:22]wFMCommunicate OK [17:57:22]SAM_PROTO_GetFieldsCounters done [17:57:22]requested_item shift.num is exist - process it [17:57:22]requested_item shift.opened is exist - process it [17:57:22]req_shift_opened [17:57:22]FM_GetShiftState [17:57:22]SAM_PROTO_GetShiftState [17:57:22]wFMCommunicate request_size=4 [17:57:22]MH_SAM_APDU [17:57:22]CAPDU: 80 13 01 00 [17:57:22]Write to MH i2c: E2 08 00 AD 32 80 13 01 00 00 00 00 00 5C [17:57:22]Write i2c OK [17:57:22]MH_I2C_Read... [17:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:22]Read from MH i2c: E2 [17:57:22]MH_I2C_Read... [17:57:22]Read from MH i2c: E2 0E 00 [17:57:22]MH_I2C_Read... [17:57:22]Read from MH i2c: E2 0E 00 AD 32 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D4 [17:57:22]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [17:57:22]wFMCommunicate OK [17:57:22]SAM_PROTO_GetShiftState done [17:57:22]FM_GetShiftState done [17:57:22]req_shift_opened done [17:57:22]requested_item shift.open_date is exist - process it [17:57:22]req_shift_open_date [17:57:22]req_shift_open_date done [17:57:22]produce_requested_data done [17:57:22]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145803,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [17:57:22]process_action_free close_receipt [17:57:22]json_value_free [17:57:22]json_value_free done [17:57:22]process_json_proto returns [17:57:22]Send response to host [17:57:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145803,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [17:57:22]free response buf [17:57:22]execute_script done [17:57:22]execute_script returns [17:57:22]free content buf [17:57:22]Sock 10.Close socket [17:57:22]Sock 10.Thread stoped [17:57:26]OFD Sender: No OFD packet to send [17:57:30]int [17:57:30]Write to MH i2c: 01 00 00 AE 32 E0 [17:57:30]*** FLAG_PRN_KEY set [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 07 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 07 00 AE 32 00 08 00 00 00 FF 0F FD [17:57:30]state=0 [17:57:30]Key pressed [17:57:30]Feed [17:57:30]Write to MH i2c: D8 00 00 AF 32 B8 [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: D8 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: D8 01 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: D8 01 00 AF 32 00 B9 [17:57:30]int [17:57:30]Write to MH i2c: 01 00 00 B0 32 E2 [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 07 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 07 00 B0 32 00 48 00 00 00 3C 00 6D [17:57:30]state=2 [17:57:30]Key pressed [17:57:30]int [17:57:30]Write to MH i2c: 01 00 00 B1 32 E3 [17:57:30]*** FLAG_PRN_KEY reset [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 07 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 07 00 B1 32 00 00 00 00 00 FF 0F F8 [17:57:30]state=2 [17:57:30]Stop feed [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:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:18]accept exits with 9 [18:04:18]New connection [18:04:18]New thread 3066740068 created [18:04:18]Thread 3066596708 joined [18:04:18]Waiting for new connection... [18:04:18] Sock 9.Parse request [18:04:18]Sock 9.Check first char [18:04:18]Sock 9.First char is OK [18:04:18]request: POST /json_proto HTTP/1.0 [18:04:18]Method: POST [18:04:18]URL: /json_proto [18:04:18]Method is POST - this is cgi request [18:04:18]url: /json_proto [18:04:18]query_string will be loaded in cgi processing [18:04:18]execute_cgi json_proto POST (null) [18:04:18]execute_cgi path=json_proto method=POST [18:04:18]POST find Content-Length [18:04:18]Host: 172.17.40.195:8080 [18:04:18]Content-Length: 775 [18:04:18]Content-Type: application/json [18:04:18] [18:04:18]POST finish read [18:04:18]Found Content-Length = 775 [18:04:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 41.480, "sum" : 3202.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: Mbank", "payments": [ { "type": 1, "sum" : 3202.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:18]execute_script... [18:04: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)160561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 41.480, "sum" : 3202.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: Mbank", "payments": [ { "type": 1, "sum" : 3202.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:18]POST & json_proto [18:04:18]process_json_proto [18:04:18]json parsed OK: [18:04:18]protocol is kg_v1.0 [18:04:18]action value=close_receipt [18:04:18]process_action close_receipt [18:04:18]cmd_close_receipt [18:04:18]MH_GetDate [18:04:18]Write to MH i2c: F0 00 00 B2 32 D3 [18:04:18]Write i2c OK [18:04:18]MH_I2C_Read... [18:04:18]Read from MH i2c: F0 [18:04:18]MH_I2C_Read... [18:04:18]Read from MH i2c: F0 09 00 [18:04:18]MH_I2C_Read... [18:04:18]Read from MH i2c: F0 09 00 B2 32 00 A4 80 1E 67 D5 8D 6C 64 B7 [18:04:18]GetLastDocTimeStamp 1730051840 [18:04:18]current date 1730052260 [18:04:18]FM_GetShiftState [18:04:18]SAM_PROTO_GetShiftState [18:04:18]wFMCommunicate request_size=4 [18:04:18]MH_SAM_APDU [18:04:18]CAPDU: 80 13 01 00 [18:04:18]Write to MH i2c: E2 08 00 B3 32 80 13 01 00 00 00 00 00 62 [18:04:18]Write i2c OK [18:04:18]MH_I2C_Read... [18:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:18]Read from MH i2c: E2 [18:04:18]MH_I2C_Read... [18:04:18]Read from MH i2c: E2 0E 00 [18:04:18]MH_I2C_Read... [18:04:18]Read from MH i2c: E2 0E 00 B3 32 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 DA [18:04:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:04:18]wFMCommunicate OK [18:04:18]SAM_PROTO_GetShiftState done [18:04:18]FM_GetShiftState done [18:04:18]opened in 1729988959 [18:04:18]opened+sec_in_day 1730075359 [18:04:18]quantity*price = 320225 [18:04:18]sum+1 = 320227 [18:04:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3202.26 НСП 1% : 28.34 НДС 12% : 340.06 Наличными: 0.00 Безнал.: 3202.26 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 227 27.10.2024 18:04 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145804 ФПД: 99947001940795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180420&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145804&fm=99947001940795&tin=02508201610067®Number=0000000000091683&sum=320226 [18:04:19]StoreToDocumentArchive [18:04:19]shift 545 fd 145804 [18:04:19]save to /storage/0545/doc_00145804 [18:04:19]save last doc name /storage/0545/doc_00145804 to /storage/kkm_last_doc_name [18:04:19]save OK [18:04:19]Clear old archive folders... [18:04:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:04:19]tlvbuf is 0041F5B0 [18:04:19]SAM_PROTO_ClearQueue [18:04:19]wFMCommunicate request_size=4 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 09 00 00 [18:04:19]Write to MH i2c: E2 08 00 C0 32 80 09 00 00 00 00 00 00 64 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 C0 32 00 90 00 66 [18:04:19]RAPDU: 90 00 [18:04:19]wFMCommunicate OK [18:04:19]SAM_PROTO_ClearQueue done [18:04:19]KKMCreateOFDPacket [18:04:19]OFDProtocolAddRootSTLVToBuf [18:04:19]FM_MakeSignedData [18:04:19]FM_MakeSignedData [18:04:19]SAM_PROTO_SignData [18:04:19]wFMCommunicate request_size=4 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 0D 01 02 [18:04:19]Write to MH i2c: E2 08 00 C1 32 80 0D 01 02 00 00 00 00 6C [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 C1 32 00 90 00 67 [18:04:19]RAPDU: 90 00 [18:04:19]wFMCommunicate OK [18:04:19]wFMCommunicate request_size=255 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 08 A2 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E2 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 A4 80 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8C 39 02 [18:04:19]Write to MH i2c: E2 02 01 C2 32 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 08 A2 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E2 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 A4 80 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8C 39 02 00 00 B9 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 C2 32 00 90 00 68 [18:04:19]RAPDU: 90 00 [18:04:19]wFMCommunicate OK [18:04:19]wFMCommunicate request_size=16 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5A E6 B9 8C 0B 3B [18:04:19]Write to MH i2c: E2 13 00 C3 32 80 0D 02 02 0B 00 00 35 04 06 00 5A E6 B9 8C 0B 3B 00 00 8F [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 C3 32 00 90 00 69 [18:04:19]RAPDU: 90 00 [18:04:19]wFMCommunicate OK [18:04:19]wFMCommunicate request_size=4 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 0D 03 02 [18:04:19]Write to MH i2c: E2 08 00 C4 32 80 0D 03 02 00 00 00 00 71 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 0B 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 0B 00 C4 32 00 2B AD 9D B0 4C 95 6B 26 90 00 09 [18:04:19]RAPDU: 2B AD 9D B0 4C 95 6B 26 90 00 [18:04:19]wFMCommunicate OK [18:04:19]SAM_PROTO_SignData done [18:04:19]FM_MakeSignedData done [18:04:19]CreateOFDProtocolMessage [18:04:19]wFMCommunicate request_size=4 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 11 00 00 [18:04:19]Write to MH i2c: E2 08 00 C5 32 80 11 00 00 00 00 00 00 71 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 17 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 17 00 C5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C4 [18:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:04:19]wFMCommunicate OK [18:04:19]CreateOFDProtocolMessage done [18:04:19]OFDSenderStorePacket 145804 [18:04:19]StoreOFDPacket docnum=145804 [18:04:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 07 C1 0D 01 0C B1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 08 A2 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E2 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 A4 80 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8C 39 02 00 35 04 06 00 5A E6 B9 8C 0B 3B 2B AD 9D B0 4C 95 6B 26 [18:04:19]CheckFolder [18:04:19]dirname=/storage/ofd_packets [18:04:19]CheckFolder done [18:04:19]ProducePacketName [18:04:19]name=ofd_packets/00145804 [18:04:19]NVStorageSaveData ofd_packets/00145804 [18:04:19]File name is /storage/ofd_packets/00145804 [18:04:19]Write 307 bytes [18:04:19]NVStorageSaveData done [18:04:19]OFDSenderStorePacket done [18:04:19]KKMCreateOFDPacket done [18:04:19]NVStorageSaveData kkm_last_timestamp [18:04:19]File name is /storage/kkm_last_timestamp [18:04:19]Write 4 bytes [18:04:19]NVStorageSaveData done [18:04:19]ExternCall_PrintAddStr [18:04:19]wPrintStart [18:04:19]Write to MH i2c: 01 00 00 C6 32 F8 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 07 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 07 00 C6 32 00 00 00 00 00 FF 0F 0D [18:04:19]RasterBufferAndPrint [18:04:19]line Счет N : (1)160561 [18:04:19]line ИНН: 02508201610067 [18:04:19]line Контрольно-Кассовый Чек [18:04:19]line ПРОДАЖА [18:04:19]line ТРК (МРК, ГНК) : 31 [18:04:19]line Товар: 2710194240 [18:04:19]line D-Energy Дт-К-2 [18:04:19]line 41.480 * 77.20 [18:04:19]line = 3202.26 [18:04:19]line НДС 12% НСП 1% [18:04:19]line > о реализуемом товаре [18:04:19]line ИТОГО: 3202.26 [18:04:19]line НСП 1% : 28.34 [18:04:19]line НДС 12% : 340.06 [18:04:19]line Наличными: 0.00 [18:04:19]line Безнал.: 3202.26 [18:04:19]line Место: АЗС № 126 "Партнер Нефть" [18:04:19]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:04:19]line СНО: Общий режим [18:04:19]line Чек 227 27.10.2024 18:04 [18:04:19]line Смена: 545 ФФД: 1.0 [18:04:19]line ЗНМ: 0300000085 [18:04:19]line РНМ: 0000000000091683 [18:04:19]line Версия ККМ: 001 [18:04:19]line Платежная система: Mbank [18:04:19]line ФМ: 0000000000871745 [18:04:19]line ФД: 145804 [18:04:19]line ФПД: 99947001940795 [18:04:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180420&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145804&fm=99947001940795&tin=02508201610067®Number=0000000000091683&sum=320226 [18:04:20]OFD Sender: Processing packet 145804 [packets to send 206, broken 205] [18:04:20]ProducePacketName [18:04:20]name=ofd_packets/00145804 [18:04:20]OFD Sender: To server: pG, [18:04:20]CommunicateWithHost lk.salyk.kg:30040 [18:04:20]ConnectInit lk.salyk.kg [18:04:20]written 0, free lines is 4095 [18:04:20]Connected sock=10 [18:04:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 07 C1 0D 01 0C B1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 08 A2 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E2 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 A4 80 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8C 39 02 00 35 04 06 00 5A E6 B9 8C 0B 3B 2B AD 9D B0 4C 95 6B 26 [18:04:20]Write to MH i2c: 01 00 00 EF 32 21 [18:04:20]Write i2c OK [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: 01 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: 01 07 00 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: 01 07 00 EF 32 00 00 00 00 00 EE 0C 22 [18:04:20]RasterBufferAndPrint [18:04:20]line [18:04:20]line [18:04:20]line [18:04:20]line [18:04:20]line [18:04:20]written 0, free lines is 3317 [18:04:20]MH_Cut [18:04:20]Write to MH i2c: D1 01 00 F6 32 01 FA [18:04:20]Write i2c OK [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: D1 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: D1 01 00 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: D1 01 00 F6 32 00 F9 [18:04:20]Write to MH i2c: 01 00 00 F7 32 29 [18:04:20]Write i2c OK [18:04:20]MH_I2C_Read... [18:04:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 46 82 47 00 B9 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8C 39 02 00 F4 03 04 00 D1 25 1E 67 B6 04 01 00 00 A8 9B A6 B4 7C B0 34 CD [18:04:20]CommunicateWithHost err = 0 [18:04:20]CheckOFDResponse [18:04:20]1017 (14) - 77093643461234 [18:04:20]1041 (16) - 0000000000871745 [18:04:20]1040 (4) - 145804 [18:04:20]1012 (4) - 27.10.2024 11:36 [18:04:20]1206 (1) - 0 [18:04:20]OFD Sender: Remove packet 145804 [18:04:20]ProducePacketName [18:04:20]name=ofd_packets/00145804 [18:04:20]NVStorageDeleteData [18:04:21]OFD Sender: No OFD packet to send [18:04:21]*** Cut start [18:04:21]*** Partial cut [18:04:21]*** CUTSNS_PIN = 1 [18:04:21]*** CUTSNS_PIN = 0 [18:04:21]*** Brake cut motor [18:04:21]Read from MH i2c: 01 [18:04:22]MH_I2C_Read... [18:04:22]*** Stop cut motor [18:04:22]*** Cut end [18:04:22]Read from MH i2c: 01 07 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: 01 07 00 F7 32 00 00 00 00 00 FF 0F 3E [18:04:22]process_action close_receipt done [18:04:22]requested_data is exist [18:04:22]produce_requested_data [18:04:22]requested_item fm.sn is exist - process it [18:04:22]wFMCommunicate request_size=4 [18:04:22]MH_SAM_APDU [18:04:22]CAPDU: 80 11 00 00 [18:04:22]Write to MH i2c: E2 08 00 F8 32 80 11 00 00 00 00 00 00 A4 [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:22]Read from MH i2c: E2 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 17 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 17 00 F8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F7 [18:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:04:22]wFMCommunicate OK [18:04:22]requested_item fd.num is exist - process it [18:04:22]SAM_PROTO_GetFieldsCounters [18:04:22]wFMCommunicate request_size=4 [18:04:22]MH_SAM_APDU [18:04:22]CAPDU: 80 13 00 00 [18:04:22]Write to MH i2c: E2 08 00 F9 32 80 13 00 00 00 00 00 00 A7 [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:22]Read from MH i2c: E2 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 62 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 62 00 F9 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [18:04:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:22]wFMCommunicate OK [18:04:22]SAM_PROTO_GetFieldsCounters done [18:04:22]requested_item shift.num is exist - process it [18:04:22]requested_item shift.opened is exist - process it [18:04:22]req_shift_opened [18:04:22]FM_GetShiftState [18:04:22]SAM_PROTO_GetShiftState [18:04:22]wFMCommunicate request_size=4 [18:04:22]MH_SAM_APDU [18:04:22]CAPDU: 80 13 01 00 [18:04:22]Write to MH i2c: E2 08 00 FA 32 80 13 01 00 00 00 00 00 A9 [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:22]Read from MH i2c: E2 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 0E 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 0E 00 FA 32 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 21 [18:04:22]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:04:22]wFMCommunicate OK [18:04:22]SAM_PROTO_GetShiftState done [18:04:22]FM_GetShiftState done [18:04:22]req_shift_opened done [18:04:22]requested_item shift.open_date is exist - process it [18:04:22]req_shift_open_date [18:04:22]req_shift_open_date done [18:04:22]produce_requested_data done [18:04:22]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145804,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:04:22]process_action_free close_receipt [18:04:22]json_value_free [18:04:22]json_value_free done [18:04:22]process_json_proto returns [18:04:22]Send response to host [18:04:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145804,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:04:22]free response buf [18:04:22]execute_script done [18:04:22]execute_script returns [18:04:22]free content buf [18:04:22]Sock 9.Close socket [18:04:22]Sock 9.Thread stoped [18:04:22]accept exits with 7 [18:04:22]New connection [18:04:22]New thread 3066596708 created [18:04:22]Thread 3066740068 joined [18:04:22]Waiting for new connection... [18:04:22] Sock 7.Parse request [18:04:22]Sock 7.Check first char [18:04:22]Sock 7.First char is OK [18:04:22]request: POST /json_proto HTTP/1.0 [18:04:22]Method: POST [18:04:22]URL: /json_proto [18:04:22]Method is POST - this is cgi request [18:04:22]url: /json_proto [18:04:22]query_string will be loaded in cgi processing [18:04:22]execute_cgi json_proto POST (null) [18:04:22]execute_cgi path=json_proto method=POST [18:04:22]POST find Content-Length [18:04:22]Host: 172.17.40.195:8080 [18:04:22]Content-Length: 679 [18:04:22]Content-Type: application/json [18:04:22] [18:04:22]POST finish read [18:04:22]Found Content-Length = 679 [18:04:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:22]execute_script... [18:04: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)160562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:22]POST & json_proto [18:04:22]process_json_proto [18:04:22]json parsed OK: [18:04:22]protocol is kg_v1.0 [18:04:22]action value=close_receipt [18:04:22]process_action close_receipt [18:04:22]cmd_close_receipt [18:04:22]MH_GetDate [18:04:22]Write to MH i2c: F0 00 00 FB 32 1C [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: F0 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: F0 09 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: F0 09 00 FB 32 00 A9 80 1E 67 D5 8D 6C 64 05 [18:04:22]GetLastDocTimeStamp 1730052260 [18:04:22]current date 1730052265 [18:04:22]FM_GetShiftState [18:04:22]SAM_PROTO_GetShiftState [18:04:22]wFMCommunicate request_size=4 [18:04:22]MH_SAM_APDU [18:04:22]CAPDU: 80 13 01 00 [18:04:22]Write to MH i2c: E2 08 00 FC 32 80 13 01 00 00 00 00 00 AB [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:22]Read from MH i2c: E2 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 0E 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 0E 00 FC 32 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 23 [18:04:22]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:04:22]wFMCommunicate OK [18:04:22]SAM_PROTO_GetShiftState done [18:04:22]FM_GetShiftState done [18:04:22]opened in 1729988959 [18:04:22]opened+sec_in_day 1730075359 [18:04:22]quantity*price = 180060 [18:04:22]sum+1 = 180062 [18:04:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 228 27.10.2024 18:04 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145805 ФПД: 139226255395318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180425&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145805&fm=139226255395318&tin=02508201610067®Number=0000000000091683&sum=180000 [18:04:24]StoreToDocumentArchive [18:04:24]shift 545 fd 145805 [18:04:24]save to /storage/0545/doc_00145805 [18:04:24]save last doc name /storage/0545/doc_00145805 to /storage/kkm_last_doc_name [18:04:24]save OK [18:04:24]Clear old archive folders... [18:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:04:24]tlvbuf is 00405B20 [18:04:24]SAM_PROTO_ClearQueue [18:04:24]wFMCommunicate request_size=4 [18:04:24]MH_SAM_APDU [18:04:24]CAPDU: 80 09 00 00 [18:04:24]Write to MH i2c: E2 08 00 09 33 80 09 00 00 00 00 00 00 AE [18:04:24]Write i2c OK [18:04:24]MH_I2C_Read... [18:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:24]Read from MH i2c: E2 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 03 00 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 03 00 09 33 00 90 00 B0 [18:04:24]RAPDU: 90 00 [18:04:24]wFMCommunicate OK [18:04:24]SAM_PROTO_ClearQueue done [18:04:24]KKMCreateOFDPacket [18:04:24]OFDProtocolAddRootSTLVToBuf [18:04:24]FM_MakeSignedData [18:04:24]FM_MakeSignedData [18:04:24]SAM_PROTO_SignData [18:04:24]wFMCommunicate request_size=4 [18:04:24]MH_SAM_APDU [18:04:24]CAPDU: 80 0D 01 02 [18:04:24]Write to MH i2c: E2 08 00 0A 33 80 0D 01 02 00 00 00 00 B6 [18:04:24]Write i2c OK [18:04:24]MH_I2C_Read... [18:04:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:24]Read from MH i2c: E2 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 03 00 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 03 00 0A 33 00 90 00 B1 [18:04:24]RAPDU: 90 00 [18:04:24]wFMCommunicate OK [18:04:24]wFMCommunicate request_size=255 [18:04:24]MH_SAM_APDU [18:04: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 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A9 80 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8D 39 02 00 35 04 06 00 7E A0 23 7F [18:04:24]Write to MH i2c: E2 02 01 0B 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A9 80 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8D 39 02 00 35 04 06 00 7E A0 23 7F 00 00 F4 [18:04:24]Write i2c OK [18:04:24]MH_I2C_Read... [18:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:24]Read from MH i2c: E2 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 03 00 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 03 00 0B 33 00 90 00 B2 [18:04:24]RAPDU: 90 00 [18:04:24]wFMCommunicate OK [18:04:24]wFMCommunicate request_size=7 [18:04:24]MH_SAM_APDU [18:04:24]CAPDU: 80 0D 02 02 02 09 F6 [18:04:24]Write to MH i2c: E2 0A 00 0C 33 80 0D 02 02 02 00 09 F6 00 00 BC [18:04:24]Write i2c OK [18:04:24]MH_I2C_Read... [18:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:24]Read from MH i2c: E2 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 03 00 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 03 00 0C 33 00 90 00 B3 [18:04:24]RAPDU: 90 00 [18:04:24]wFMCommunicate OK [18:04:24]wFMCommunicate request_size=4 [18:04:24]MH_SAM_APDU [18:04:24]CAPDU: 80 0D 03 02 [18:04:24]Write to MH i2c: E2 08 00 0D 33 80 0D 03 02 00 00 00 00 BB [18:04:24]Write i2c OK [18:04:24]MH_I2C_Read... [18:04:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:24]Read from MH i2c: E2 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 0B 00 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 0B 00 0D 33 00 9D B8 1E 61 EA C6 EF AE 90 00 DD [18:04:24]RAPDU: 9D B8 1E 61 EA C6 EF AE 90 00 [18:04:24]wFMCommunicate OK [18:04:24]SAM_PROTO_SignData done [18:04:24]FM_MakeSignedData done [18:04:24]CreateOFDProtocolMessage [18:04:24]wFMCommunicate request_size=4 [18:04:24]MH_SAM_APDU [18:04:24]CAPDU: 80 11 00 00 [18:04:24]Write to MH i2c: E2 08 00 0E 33 80 11 00 00 00 00 00 00 BB [18:04:24]Write i2c OK [18:04:24]MH_I2C_Read... [18:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:24]Read from MH i2c: E2 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 17 00 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 17 00 0E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0E [18:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:04:24]wFMCommunicate OK [18:04:24]CreateOFDProtocolMessage done [18:04:24]OFDSenderStorePacket 145805 [18:04:24]StoreOFDPacket docnum=145805 [18:04:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 74 6D 04 01 18 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 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A9 80 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8D 39 02 00 35 04 06 00 7E A0 23 7F 09 F6 9D B8 1E 61 EA C6 EF AE [18:04:24]CheckFolder [18:04:24]dirname=/storage/ofd_packets [18:04:24]CheckFolder done [18:04:24]ProducePacketName [18:04:24]name=ofd_packets/00145805 [18:04:24]NVStorageSaveData ofd_packets/00145805 [18:04:24]File name is /storage/ofd_packets/00145805 [18:04:24]Write 298 bytes [18:04:24]NVStorageSaveData done [18:04:24]OFDSenderStorePacket done [18:04:24]KKMCreateOFDPacket done [18:04:24]NVStorageSaveData kkm_last_timestamp [18:04:24]File name is /storage/kkm_last_timestamp [18:04:24]Write 4 bytes [18:04:24]NVStorageSaveData done [18:04:24]ExternCall_PrintAddStr [18:04:24]wPrintStart [18:04:24]Write to MH i2c: 01 00 00 0F 33 42 [18:04:24]Write i2c OK [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: 01 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: 01 07 00 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: 01 07 00 0F 33 00 00 00 00 00 FF 0F 57 [18:04:24]RasterBufferAndPrint [18:04:24]line Счет N : (1)160562 [18:04:24]line ИНН: 02508201610067 [18:04:24]line Контрольно-Кассовый Чек [18:04:24]line ПРОДАЖА [18:04:24]line ТРК (МРК, ГНК) : 11 [18:04:24]line Товар: 2710194210 [18:04:24]line ДТ-К-2 [18:04:24]line 23.630 * 76.20 [18:04:24]line = 1800.61 [18:04:24]line НДС 12% НСП 1% [18:04:24]line > о реализуемом товаре [18:04:24]line ОКРУГЛЕНИЕ: -0.61 [18:04:24]line ИТОГО: 1800.00 [18:04:24]line Внесено: 1800.00 [18:04:24]line СДАЧА: 0.00 [18:04:24]line НСП 1% : 15.93 [18:04:24]line НДС 12% : 191.21 [18:04:24]line Наличными: 1800.00 [18:04:24]line Безнал.: 0.00 [18:04:24]line Место: АЗС № 126 "Партнер Нефть" [18:04:24]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:04:24]line СНО: Общий режим [18:04:24]line Чек 228 27.10.2024 18:04 [18:04:24]line Смена: 545 ФФД: 1.0 [18:04:24]line ЗНМ: 0300000085 [18:04:24]line РНМ: 0000000000091683 [18:04:24]line Версия ККМ: 001 [18:04:24]line ФМ: 0000000000871745 [18:04:24]line ФД: 145805 [18:04:25]line ФПД: 139226255395318 [18:04:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180425&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145805&fm=139226255395318&tin=02508201610067®Number=0000000000091683&sum=180000 [18:04:25]OFD Sender: Processing packet 145805 [packets to send 206, broken 205] [18:04:25]ProducePacketName [18:04:25]name=ofd_packets/00145805 [18:04:25]OFD Sender: To server: pG, [18:04:25]CommunicateWithHost lk.salyk.kg:30040 [18:04:25]ConnectInit lk.salyk.kg [18:04:25]written 0, free lines is 4095 [18:04:25]Connected sock=11 [18:04:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 74 6D 04 01 18 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 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A9 80 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8D 39 02 00 35 04 06 00 7E A0 23 7F 09 F6 9D B8 1E 61 EA C6 EF AE [18:04:25]Write to MH i2c: 01 00 00 3A 33 6D [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 3A 33 00 00 00 00 00 BC 0C 3C [18:04:25]RasterBufferAndPrint [18:04:25]line [18:04:25]line [18:04:25]line [18:04:25]line [18:04:25]line [18:04:25]written 0, free lines is 3270 [18:04:25]MH_Cut [18:04:25]Write to MH i2c: D1 01 00 41 33 01 46 [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: D1 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: D1 01 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: D1 01 00 41 33 00 45 [18:04:25]Write to MH i2c: 01 00 00 42 33 75 [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 FC 4F 47 00 A9 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8D 39 02 00 F4 03 04 00 D6 25 1E 67 B6 04 01 00 00 33 AC 21 A0 7B BB DE 22 [18:04:25]CommunicateWithHost err = 0 [18:04:25]CheckOFDResponse [18:04:25]1017 (14) - 77093643461234 [18:04:25]1041 (16) - 0000000000871745 [18:04:25]1040 (4) - 145805 [18:04:25]1012 (4) - 27.10.2024 11:36 [18:04:25]1206 (1) - 0 [18:04:25]OFD Sender: Remove packet 145805 [18:04:25]ProducePacketName [18:04:25]name=ofd_packets/00145805 [18:04:25]NVStorageDeleteData [18:04:26]OFD Sender: No OFD packet to send [18:04:26]*** Cut start [18:04:26]*** Partial cut [18:04:26]*** CUTSNS_PIN = 1 [18:04:26]*** CUTSNS_PIN = 0 [18:04:26]*** Brake cut motor [18:04:26]Read from MH i2c: 01 *** Stop cut motor [18:04:26] [18:04:26]*** Cut end [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: 01 07 00 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: 01 07 00 42 33 00 00 00 00 00 FF 0F 8A [18:04:26]process_action close_receipt done [18:04:26]requested_data is exist [18:04:26]produce_requested_data [18:04:26]requested_item fm.sn is exist - process it [18:04:26]wFMCommunicate request_size=4 [18:04:26]MH_SAM_APDU [18:04:26]CAPDU: 80 11 00 00 [18:04:26]Write to MH i2c: E2 08 00 43 33 80 11 00 00 00 00 00 00 F0 [18:04:26]Write i2c OK [18:04:26]MH_I2C_Read... [18:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:26]Read from MH i2c: E2 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 17 00 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 17 00 43 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 43 [18:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:04:26]wFMCommunicate OK [18:04:26]requested_item fd.num is exist - process it [18:04:26]SAM_PROTO_GetFieldsCounters [18:04:26]wFMCommunicate request_size=4 [18:04:26]MH_SAM_APDU [18:04:26]CAPDU: 80 13 00 00 [18:04:26]Write to MH i2c: E2 08 00 44 33 80 13 00 00 00 00 00 00 F3 [18:04:26]Write i2c OK [18:04:26]MH_I2C_Read... [18:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:27]Read from MH i2c: E2 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 62 00 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 62 00 44 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [18:04:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:27]wFMCommunicate OK [18:04:27]SAM_PROTO_GetFieldsCounters done [18:04:27]requested_item shift.num is exist - process it [18:04:27]requested_item shift.opened is exist - process it [18:04:27]req_shift_opened [18:04:27]FM_GetShiftState [18:04:27]SAM_PROTO_GetShiftState [18:04:27]wFMCommunicate request_size=4 [18:04:27]MH_SAM_APDU [18:04:27]CAPDU: 80 13 01 00 [18:04:27]Write to MH i2c: E2 08 00 45 33 80 13 01 00 00 00 00 00 F5 [18:04:27]Write i2c OK [18:04:27]MH_I2C_Read... [18:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:27]Read from MH i2c: E2 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 0E 00 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 0E 00 45 33 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6D [18:04:27]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:04:27]wFMCommunicate OK [18:04:27]SAM_PROTO_GetShiftState done [18:04:27]FM_GetShiftState done [18:04:27]req_shift_opened done [18:04:27]requested_item shift.open_date is exist - process it [18:04:27]req_shift_open_date [18:04:27]req_shift_open_date done [18:04:27]produce_requested_data done [18:04:27]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145805,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:04:27]process_action_free close_receipt [18:04:27]json_value_free [18:04:27]json_value_free done [18:04:27]process_json_proto returns [18:04:27]Send response to host [18:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145805,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:04:27]free response buf [18:04:27]execute_script done [18:04:27]execute_script returns [18:04:27]free content buf [18:04:27]Sock 7.Close socket [18:04:27]Sock 7.Thread stoped [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]accept exits with 9 [18:06:06]New connection [18:06:06]New thread 3066740068 created [18:06:06]Thread 3066596708 joined [18:06:06]Waiting for new connection... [18:06:06] Sock 9.Parse request [18:06:06]Sock 9.Check first char [18:06:06]Sock 9.First char is OK [18:06:06]request: POST /json_proto HTTP/1.0 [18:06:06]Method: POST [18:06:06]URL: /json_proto [18:06:06]Method is POST - this is cgi request [18:06:06]url: /json_proto [18:06:06]query_string will be loaded in cgi processing [18:06:06]execute_cgi json_proto POST (null) [18:06:06]execute_cgi path=json_proto method=POST [18:06:06]POST find Content-Length [18:06:06]Host: 172.17.40.195:8080 [18:06:06]Content-Length: 800 [18:06:06]Content-Type: application/json [18:06:06] [18:06:06]POST finish read [18:06:06]Found Content-Length = 800 [18:06:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564526", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:06]execute_script... [18:06: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)160563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564526", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:06]POST & json_proto [18:06:06]process_json_proto [18:06:06]json parsed OK: [18:06:06]protocol is kg_v1.0 [18:06:06]action value=close_receipt [18:06:06]process_action close_receipt [18:06:06]cmd_close_receipt [18:06:06]MH_GetDate [18:06:06]Write to MH i2c: F0 00 00 46 33 68 [18:06:06]Write i2c OK [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: F0 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: F0 09 00 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: F0 09 00 46 33 00 10 81 1E 67 D5 8D 6C 64 B9 [18:06:06]GetLastDocTimeStamp 1730052265 [18:06:06]current date 1730052368 [18:06:06]FM_GetShiftState [18:06:06]SAM_PROTO_GetShiftState [18:06:06]wFMCommunicate request_size=4 [18:06:06]MH_SAM_APDU [18:06:06]CAPDU: 80 13 01 00 [18:06:06]Write to MH i2c: E2 08 00 47 33 80 13 01 00 00 00 00 00 F7 [18:06:06]Write i2c OK [18:06:06]MH_I2C_Read... [18:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:06]Read from MH i2c: E2 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: E2 0E 00 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: E2 0E 00 47 33 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6F [18:06:06]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:06:06]wFMCommunicate OK [18:06:06]SAM_PROTO_GetShiftState done [18:06:06]FM_GetShiftState done [18:06:06]opened in 1729988959 [18:06:06]opened+sec_in_day 1730075359 [18:06:06]quantity*price = 0 [18:06:06]sum+1 = 1 [18:06:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 229 27.10.2024 18:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: Топливные Талоны 4564526 ФМ: 0000000000871745 ФД: 145806 ФПД: 156001769590563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180608&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145806&fm=156001769590563&tin=02508201610067®Number=0000000000091683&sum=0 [18:06:07]StoreToDocumentArchive [18:06:07]shift 545 fd 145806 [18:06:07]save to /storage/0545/doc_00145806 [18:06:07]save last doc name /storage/0545/doc_00145806 to /storage/kkm_last_doc_name [18:06:07]save OK [18:06:07]Clear old archive folders... [18:06:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:07]tlvbuf is 004E2BF0 [18:06:07]SAM_PROTO_ClearQueue [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 09 00 00 [18:06:07]Write to MH i2c: E2 08 00 54 33 80 09 00 00 00 00 00 00 F9 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 54 33 00 90 00 FB [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]SAM_PROTO_ClearQueue done [18:06:07]KKMCreateOFDPacket [18:06:07]OFDProtocolAddRootSTLVToBuf [18:06:07]FM_MakeSignedData [18:06:07]FM_MakeSignedData [18:06:07]SAM_PROTO_SignData [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 0D 01 02 [18:06:07]Write to MH i2c: E2 08 00 55 33 80 0D 01 02 00 00 00 00 01 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 55 33 00 90 00 FC [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]wFMCommunicate request_size=255 [18:06:07]MH_SAM_APDU [18:06: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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 10 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8E 39 02 00 35 04 06 00 8D [18:06:07]Write to MH i2c: E2 02 01 56 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 10 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8E 39 02 00 35 04 06 00 8D 00 00 5A [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 56 33 00 90 00 FD [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]wFMCommunicate request_size=10 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 0D 02 02 05 E1 FE 0F 8F 23 [18:06:07]Write to MH i2c: E2 0D 00 57 33 80 0D 02 02 05 00 E1 FE 0F 8F 23 00 00 AE [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 57 33 00 90 00 FE [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 0D 03 02 [18:06:07]Write to MH i2c: E2 08 00 58 33 80 0D 03 02 00 00 00 00 06 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 0B 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 0B 00 58 33 00 A0 72 1E F1 AE BF 3D 54 90 00 26 [18:06:07]RAPDU: A0 72 1E F1 AE BF 3D 54 90 00 [18:06:07]wFMCommunicate OK [18:06:07]SAM_PROTO_SignData done [18:06:07]FM_MakeSignedData done [18:06:07]CreateOFDProtocolMessage [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 11 00 00 [18:06:07]Write to MH i2c: E2 08 00 59 33 80 11 00 00 00 00 00 00 06 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 17 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 17 00 59 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 59 [18:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:06:07]wFMCommunicate OK [18:06:07]CreateOFDProtocolMessage done [18:06:07]OFDSenderStorePacket 145806 [18:06:07]StoreOFDPacket docnum=145806 [18:06:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 2E EC 07 01 EF 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 10 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8E 39 02 00 35 04 06 00 8D E1 FE 0F 8F 23 A0 72 1E F1 AE BF 3D 54 [18:06:07]CheckFolder [18:06:07]dirname=/storage/ofd_packets [18:06:07]CheckFolder done [18:06:07]ProducePacketName [18:06:07]name=ofd_packets/00145806 [18:06:07]NVStorageSaveData ofd_packets/00145806 [18:06:07]File name is /storage/ofd_packets/00145806 [18:06:07]Write 301 bytes [18:06:07]NVStorageSaveData done [18:06:07]OFDSenderStorePacket done [18:06:07]KKMCreateOFDPacket done [18:06:07]NVStorageSaveData kkm_last_timestamp [18:06:07]File name is /storage/kkm_last_timestamp [18:06:07]Write 4 bytes [18:06:07]NVStorageSaveData done [18:06:07]ExternCall_PrintAddStr [18:06:07]wPrintStart [18:06:07]Write to MH i2c: 01 00 00 5A 33 8D [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: 01 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: 01 07 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: 01 07 00 5A 33 00 00 00 00 00 FF 0F A2 [18:06:07]RasterBufferAndPrint [18:06:07]line Счет N : (1)160563 [18:06:07]line ИНН: 02508201610067 [18:06:07]line Контрольно-Кассовый Чек [18:06:07]line ПРОДАЖА [18:06:07]line ТРК (МРК, ГНК) : 52 [18:06:07]line Товар: 2710124130 [18:06:07]line Аи-92-К-2 [18:06:07]line 40.000 * 0.00 [18:06:07]line = 0.00 [18:06:07]line НДС 12% НСП 1% [18:06:07]line > о реализуемом товаре [18:06:07]line ИТОГО: 0.00 [18:06:07]line НСП 1% : 0.00 [18:06:07]line НДС 12% : 0.00 [18:06:07]line Наличными: 0.00 [18:06:07]line Безнал.: 0.00 [18:06:07]line Место: АЗС № 126 "Партнер Нефть" [18:06:07]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:06:07]line СНО: Общий режим [18:06:07]line Чек 229 27.10.2024 18:06 [18:06:07]line Смена: 545 ФФД: 1.0 [18:06:07]line ЗНМ: 0300000085 [18:06:07]line РНМ: 0000000000091683 [18:06:07]line Версия ККМ: 001 [18:06:07]line Талоны: Топливные Талоны [18:06:07]line 4564526 [18:06:07]line ФМ: 0000000000871745 [18:06:07]line ФД: 145806 [18:06:07]line ФПД: 156001769590563 [18:06:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180608&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145806&fm=156001769590563&tin=02508201610067®Number=0000000000091683&sum=0 [18:06:07]written 0, free lines is 4095 [18:06:07]OFD Sender: Processing packet 145806 [packets to send 206, broken 205] [18:06:07]ProducePacketName [18:06:07]name=ofd_packets/00145806 [18:06:07]OFD Sender: To server: pG, [18:06:07]CommunicateWithHost lk.salyk.kg:30040 [18:06:07]ConnectInit lk.salyk.kg [18:06:08]Connected sock=10 [18:06:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 2E EC 07 01 EF 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 10 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8E 39 02 00 35 04 06 00 8D E1 FE 0F 8F 23 A0 72 1E F1 AE BF 3D 54 [18:06:08]Write to MH i2c: 01 00 00 84 33 B7 [18:06:08]Write i2c OK [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: 01 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: 01 07 00 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: 01 07 00 84 33 00 00 00 00 00 D0 0C 9A [18:06:08]RasterBufferAndPrint [18:06:08]line [18:06:08]line [18:06:08]line [18:06:08]line [18:06:08]line [18:06:08]written 0, free lines is 3286 [18:06:08]MH_Cut [18:06:08]Write to MH i2c: D1 01 00 8B 33 01 90 [18:06:08]Write i2c OK [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: D1 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: D1 01 00 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: D1 01 00 8B 33 00 8F [18:06:08]Write to MH i2c: 01 00 00 8C 33 BF [18:06:08]Write i2c OK [18:06:08]MH_I2C_Read... [18:06:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E4 13 47 00 CC B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8E 39 02 00 F4 03 04 00 3D 26 1E 67 B6 04 01 00 00 27 73 F8 16 FA E0 FB 1E [18:06:08]CommunicateWithHost err = 0 [18:06:08]CheckOFDResponse [18:06:08]1017 (14) - 77093643461234 [18:06:08]1041 (16) - 0000000000871745 [18:06:08]1040 (4) - 145806 [18:06:08]1012 (4) - 27.10.2024 11:38 [18:06:08]1206 (1) - 0 [18:06:08]OFD Sender: Remove packet 145806 [18:06:08]ProducePacketName [18:06:08]name=ofd_packets/00145806 [18:06:08]NVStorageDeleteData [18:06:08]OFD Sender: No OFD packet to send [18:06:09]*** Cut start [18:06:09]*** Partial cut [18:06:09]*** CUTSNS_PIN = 1 [18:06:09]*** CUTSNS_PIN = 0 [18:06:09]*** Brake cut motor [18:06:09]Read from MH i2c: 01 [18:06:09]MH_I2C_Read... [18:06:09]*** Stop cut motor [18:06:09]*** Cut end [18:06:09]Read from MH i2c: 01 07 00 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: 01 07 00 8C 33 00 00 00 00 00 FF 0F D4 [18:06:09]process_action close_receipt done [18:06:09]requested_data is exist [18:06:09]produce_requested_data [18:06:09]requested_item fm.sn is exist - process it [18:06:09]wFMCommunicate request_size=4 [18:06:09]MH_SAM_APDU [18:06:09]CAPDU: 80 11 00 00 [18:06:09]Write to MH i2c: E2 08 00 8D 33 80 11 00 00 00 00 00 00 3A [18:06:09]Write i2c OK [18:06:09]MH_I2C_Read... [18:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:09]Read from MH i2c: E2 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 17 00 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 17 00 8D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8D [18:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:06:09]wFMCommunicate OK [18:06:09]requested_item fd.num is exist - process it [18:06:09]SAM_PROTO_GetFieldsCounters [18:06:09]wFMCommunicate request_size=4 [18:06:09]MH_SAM_APDU [18:06:09]CAPDU: 80 13 00 00 [18:06:09]Write to MH i2c: E2 08 00 8E 33 80 13 00 00 00 00 00 00 3D [18:06:09]Write i2c OK [18:06:09]MH_I2C_Read... [18:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:09]Read from MH i2c: E2 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 62 00 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 62 00 8E 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [18:06:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:09]wFMCommunicate OK [18:06:09]SAM_PROTO_GetFieldsCounters done [18:06:09]requested_item shift.num is exist - process it [18:06:09]requested_item shift.opened is exist - process it [18:06:09]req_shift_opened [18:06:09]FM_GetShiftState [18:06:09]SAM_PROTO_GetShiftState [18:06:09]wFMCommunicate request_size=4 [18:06:09]MH_SAM_APDU [18:06:09]CAPDU: 80 13 01 00 [18:06:09]Write to MH i2c: E2 08 00 8F 33 80 13 01 00 00 00 00 00 3F [18:06:09]Write i2c OK [18:06:09]MH_I2C_Read... [18:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:09]Read from MH i2c: E2 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 0E 00 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 0E 00 8F 33 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B7 [18:06:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:06:09]wFMCommunicate OK [18:06:09]SAM_PROTO_GetShiftState done [18:06:09]FM_GetShiftState done [18:06:09]req_shift_opened done [18:06:09]requested_item shift.open_date is exist - process it [18:06:09]req_shift_open_date [18:06:09]req_shift_open_date done [18:06:09]produce_requested_data done [18:06:09]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145806,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:06:09]process_action_free close_receipt [18:06:09]json_value_free [18:06:09]json_value_free done [18:06:09]process_json_proto returns [18:06:09]Send response to host [18:06:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145806,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:06:09]free response buf [18:06:09]execute_script done [18:06:09]execute_script returns [18:06:09]free content buf [18:06:09]Sock 9.Close socket [18:06:09]Sock 9.Thread stoped [18:06:10]accept exits with 7 [18:06:10]New connection [18:06:10]New thread 3066596708 created [18:06:10]Thread 3066740068 joined [18:06:10]Waiting for new connection... [18:06:10] Sock 7.Parse request [18:06:10]Sock 7.Check first char [18:06:10]Sock 7.First char is OK [18:06:10]request: POST /json_proto HTTP/1.0 [18:06:10]Method: POST [18:06:10]URL: /json_proto [18:06:10]Method is POST - this is cgi request [18:06:10]url: /json_proto [18:06:10]query_string will be loaded in cgi processing [18:06:10]execute_cgi json_proto POST (null) [18:06:10]execute_cgi path=json_proto method=POST [18:06:10]POST find Content-Length [18:06:10]Host: 172.17.40.195:8080 [18:06:10]Content-Length: 766 [18:06:10]Content-Type: application/json [18:06:10] [18:06:10]POST finish read [18:06:10]Found Content-Length = 766 [18:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1300.73 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:10]execute_script... [18:06: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)160565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1300.73 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:10]POST & json_proto [18:06:10]process_json_proto [18:06:10]json parsed OK: [18:06:10]protocol is kg_v1.0 [18:06:10]action value=close_receipt [18:06:10]process_action close_receipt [18:06:10]cmd_close_receipt [18:06:10]MH_GetDate [18:06:10]Write to MH i2c: F0 00 00 90 33 B2 [18:06:10]Write i2c OK [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: F0 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: F0 09 00 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: F0 09 00 90 33 00 15 81 1E 67 D5 8D 6C 64 08 [18:06:10]GetLastDocTimeStamp 1730052368 [18:06:10]current date 1730052373 [18:06:10]FM_GetShiftState [18:06:10]SAM_PROTO_GetShiftState [18:06:10]wFMCommunicate request_size=4 [18:06:10]MH_SAM_APDU [18:06:10]CAPDU: 80 13 01 00 [18:06:10]Write to MH i2c: E2 08 00 91 33 80 13 01 00 00 00 00 00 41 [18:06:10]Write i2c OK [18:06:10]MH_I2C_Read... [18:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:10]Read from MH i2c: E2 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: E2 0E 00 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: E2 0E 00 91 33 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B9 [18:06:10]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:06:10]wFMCommunicate OK [18:06:10]SAM_PROTO_GetShiftState done [18:06:10]FM_GetShiftState done [18:06:10]opened in 1729988959 [18:06:10]opened+sec_in_day 1730075359 [18:06:10]quantity*price = 130073 [18:06:10]sum+1 = 130074 [18:06:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.73 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 0.00 Безнал.: 1300.73 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 230 27.10.2024 18:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145807 ФПД: 111760071788134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180613&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145807&fm=111760071788134&tin=02508201610067®Number=0000000000091683&sum=130073 [18:06:12]StoreToDocumentArchive [18:06:12]shift 545 fd 145807 [18:06:12]save to /storage/0545/doc_00145807 [18:06:12]save last doc name /storage/0545/doc_00145807 to /storage/kkm_last_doc_name [18:06:12]save OK [18:06:12]Clear old archive folders... [18:06:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:06:12]tlvbuf is 0045CFA0 [18:06:12]SAM_PROTO_ClearQueue [18:06:12]wFMCommunicate request_size=4 [18:06:12]MH_SAM_APDU [18:06:12]CAPDU: 80 09 00 00 [18:06:12]Write to MH i2c: E2 08 00 9E 33 80 09 00 00 00 00 00 00 43 [18:06:12]Write i2c OK [18:06:12]MH_I2C_Read... [18:06:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:12]Read from MH i2c: E2 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 03 00 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 03 00 9E 33 00 90 00 45 [18:06:12]RAPDU: 90 00 [18:06:12]wFMCommunicate OK [18:06:12]SAM_PROTO_ClearQueue done [18:06:12]KKMCreateOFDPacket [18:06:12]OFDProtocolAddRootSTLVToBuf [18:06:12]FM_MakeSignedData [18:06:12]FM_MakeSignedData [18:06:12]SAM_PROTO_SignData [18:06:12]wFMCommunicate request_size=4 [18:06:12]MH_SAM_APDU [18:06:12]CAPDU: 80 0D 01 02 [18:06:12]Write to MH i2c: E2 08 00 9F 33 80 0D 01 02 00 00 00 00 4B [18:06:12]Write i2c OK [18:06:12]MH_I2C_Read... [18:06:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:12]Read from MH i2c: E2 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 03 00 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 03 00 9F 33 00 90 00 46 [18:06:12]RAPDU: 90 00 [18:06:12]wFMCommunicate OK [18:06:12]wFMCommunicate request_size=255 [18:06:12]MH_SAM_APDU [18:06: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 32 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 15 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8F 39 02 00 35 04 06 00 65 A5 2B 61 [18:06:12]Write to MH i2c: E2 02 01 A0 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 15 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8F 39 02 00 35 04 06 00 65 A5 2B 61 00 00 EB [18:06:12]Write i2c OK [18:06:12]MH_I2C_Read... [18:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:12]Read from MH i2c: E2 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 03 00 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 03 00 A0 33 00 90 00 47 [18:06:12]RAPDU: 90 00 [18:06:12]wFMCommunicate OK [18:06:12]wFMCommunicate request_size=7 [18:06:12]MH_SAM_APDU [18:06:12]CAPDU: 80 0D 02 02 02 06 66 [18:06:12]Write to MH i2c: E2 0A 00 A1 33 80 0D 02 02 02 00 06 66 00 00 BE [18:06:12]Write i2c OK [18:06:12]MH_I2C_Read... [18:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:12]Read from MH i2c: E2 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 03 00 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 03 00 A1 33 00 90 00 48 [18:06:12]RAPDU: 90 00 [18:06:12]wFMCommunicate OK [18:06:12]wFMCommunicate request_size=4 [18:06:12]MH_SAM_APDU [18:06:12]CAPDU: 80 0D 03 02 [18:06:12]Write to MH i2c: E2 08 00 A2 33 80 0D 03 02 00 00 00 00 50 [18:06:12]Write i2c OK [18:06:12]MH_I2C_Read... [18:06:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:12]Read from MH i2c: E2 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 0B 00 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 0B 00 A2 33 00 62 39 40 43 17 91 96 6A 90 00 17 [18:06:12]RAPDU: 62 39 40 43 17 91 96 6A 90 00 [18:06:12]wFMCommunicate OK [18:06:12]SAM_PROTO_SignData done [18:06:12]FM_MakeSignedData done [18:06:12]CreateOFDProtocolMessage [18:06:12]wFMCommunicate request_size=4 [18:06:12]MH_SAM_APDU [18:06:12]CAPDU: 80 11 00 00 [18:06:12]Write to MH i2c: E2 08 00 A3 33 80 11 00 00 00 00 00 00 50 [18:06:12]Write i2c OK [18:06:12]MH_I2C_Read... [18:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:12]Read from MH i2c: E2 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 17 00 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: E2 17 00 A3 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A3 [18:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:06:12]wFMCommunicate OK [18:06:12]CreateOFDProtocolMessage done [18:06:12]OFDSenderStorePacket 145807 [18:06:12]StoreOFDPacket docnum=145807 [18:06:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 BB D9 04 01 CC 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 15 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8F 39 02 00 35 04 06 00 65 A5 2B 61 06 66 62 39 40 43 17 91 96 6A [18:06:12]CheckFolder [18:06:12]dirname=/storage/ofd_packets [18:06:12]CheckFolder done [18:06:12]ProducePacketName [18:06:12]name=ofd_packets/00145807 [18:06:12]NVStorageSaveData ofd_packets/00145807 [18:06:12]File name is /storage/ofd_packets/00145807 [18:06:12]Write 298 bytes [18:06:12]NVStorageSaveData done [18:06:12]OFDSenderStorePacket done [18:06:12]KKMCreateOFDPacket done [18:06:12]NVStorageSaveData kkm_last_timestamp [18:06:12]File name is /storage/kkm_last_timestamp [18:06:12]Write 4 bytes [18:06:12]NVStorageSaveData done [18:06:12]ExternCall_PrintAddStr [18:06:12]wPrintStart [18:06:12]Write to MH i2c: 01 00 00 A4 33 D7 [18:06:12]OFD Sender: Processing packet 145807 [packets to send 206, broken 205] [18:06:12]ProducePacketName [18:06:12]name=ofd_packets/00145807 [18:06:12]OFD Sender: To server: pG, [18:06:12]CommunicateWithHost lk.salyk.kg:30040 [18:06:12]ConnectInit lk.salyk.kg [18:06:12]Write i2c OK [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: 01 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: 01 07 00 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: 01 07 00 A4 33 00 00 00 00 00 FF 0F EC [18:06:12]RasterBufferAndPrint [18:06:12]line Счет N : (1)160565 [18:06:12]line ИНН: 02508201610067 [18:06:12]line Контрольно-Кассовый Чек [18:06:12]line ПРОДАЖА [18:06:12]line ТРК (МРК, ГНК) : 11 [18:06:12]line Товар: 2710194210 [18:06:12]line ДТ-К-2 [18:06:12]line 17.070 * 76.20 [18:06:12]line = 1300.73 [18:06:12]line НДС 12% НСП 1% [18:06:12]line > о реализуемом товаре [18:06:12]line ИТОГО: 1300.73 [18:06:12]line НСП 1% : 11.51 [18:06:12]line НДС 12% : 138.13 [18:06:12]line Наличными: 0.00 [18:06:12]line Безнал.: 1300.73 [18:06:12]line Место: АЗС № 126 "Партнер Нефть" [18:06:12]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:06:12]line СНО: Общий режим [18:06:12]line Чек 230 27.10.2024 18:06 [18:06:12]line Смена: 545 ФФД: 1.0 [18:06:12]line ЗНМ: 0300000085 [18:06:12]line РНМ: 0000000000091683 [18:06:12]line Версия ККМ: 001 [18:06:12]line Платежная система: Mbank [18:06:12]line ФМ: 0000000000871745 [18:06:12]line ФД: 145807 [18:06:12]line ФПД: 111760071788134 [18:06:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180613&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145807&fm=111760071788134&tin=02508201610067®Number=0000000000091683&sum=130073 [18:06:12]written 0, free lines is 4095 [18:06:13]Connected sock=10 [18:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 BB D9 04 01 CC 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 15 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8F 39 02 00 35 04 06 00 65 A5 2B 61 06 66 62 39 40 43 17 91 96 6A [18:06:13]Write to MH i2c: 01 00 00 CD 33 00 [18:06:13]Write i2c OK [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: 01 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: 01 07 00 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: 01 07 00 CD 33 00 00 00 00 00 E7 0C FA [18:06:13]RasterBufferAndPrint [18:06:13]line [18:06:13]line [18:06:13]line [18:06:13]line [18:06:13]line [18:06:13]written 0, free lines is 3317 [18:06:13]MH_Cut [18:06:13]Write to MH i2c: D1 01 00 D4 33 01 D9 [18:06:13]Write i2c OK [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: D1 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: D1 01 00 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: D1 01 00 D4 33 00 D8 [18:06:13]Write to MH i2c: 01 00 00 D5 33 08 [18:06:13]Write i2c OK [18:06:13]MH_I2C_Read... [18:06:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 4F C6 47 00 38 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 8F 39 02 00 F4 03 04 00 42 26 1E 67 B6 04 01 00 00 54 78 94 73 22 0C C1 2C [18:06:13]CommunicateWithHost err = 0 [18:06:13]CheckOFDResponse [18:06:13]1017 (14) - 77093643461234 [18:06:13]1041 (16) - 0000000000871745 [18:06:13]1040 (4) - 145807 [18:06:13]1012 (4) - 27.10.2024 11:38 [18:06:13]1206 (1) - 0 [18:06:13]OFD Sender: Remove packet 145807 [18:06:13]ProducePacketName [18:06:13]name=ofd_packets/00145807 [18:06:13]NVStorageDeleteData [18:06:13]OFD Sender: No OFD packet to send [18:06:14]*** Cut start [18:06:14]*** Partial cut [18:06:14]*** CUTSNS_PIN = 1 [18:06:14]*** CUTSNS_PIN = 0 [18:06:14]*** Brake cut motor [18:06:14]Read from MH i2c: 01 [18:06:14]MH_I2C_Read... [18:06:14]*** Stop cut motor [18:06:14]*** Cut end [18:06:14]Read from MH i2c: 01 07 00 [18:06:14]MH_I2C_Read... [18:06:14]Read from MH i2c: 01 07 00 D5 33 00 00 00 00 00 FF 0F 1D [18:06:14]process_action close_receipt done [18:06:14]requested_data is exist [18:06:14]produce_requested_data [18:06:14]requested_item fm.sn is exist - process it [18:06:14]wFMCommunicate request_size=4 [18:06:14]MH_SAM_APDU [18:06:14]CAPDU: 80 11 00 00 [18:06:14]Write to MH i2c: E2 08 00 D6 33 80 11 00 00 00 00 00 00 83 [18:06:14]Write i2c OK [18:06:14]MH_I2C_Read... [18:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:14]Read from MH i2c: E2 [18:06:14]MH_I2C_Read... [18:06:14]Read from MH i2c: E2 17 00 [18:06:14]MH_I2C_Read... [18:06:14]Read from MH i2c: E2 17 00 D6 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D6 [18:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:06:14]wFMCommunicate OK [18:06:14]requested_item fd.num is exist - process it [18:06:14]SAM_PROTO_GetFieldsCounters [18:06:14]wFMCommunicate request_size=4 [18:06:14]MH_SAM_APDU [18:06:14]CAPDU: 80 13 00 00 [18:06:14]Write to MH i2c: E2 08 00 D7 33 80 13 00 00 00 00 00 00 86 [18:06:14]Write i2c OK [18:06:14]MH_I2C_Read... [18:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:14]Read from MH i2c: E2 [18:06:14]MH_I2C_Read... [18:06:14]Read from MH i2c: E2 62 00 [18:06:14]MH_I2C_Read... [18:06:14]Read from MH i2c: E2 62 00 D7 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [18:06:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 8F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:14]wFMCommunicate OK [18:06:14]SAM_PROTO_GetFieldsCounters done [18:06:14]requested_item shift.num is exist - process it [18:06:14]requested_item shift.opened is exist - process it [18:06:14]req_shift_opened [18:06:14]FM_GetShiftState [18:06:14]SAM_PROTO_GetShiftState [18:06:14]wFMCommunicate request_size=4 [18:06:14]MH_SAM_APDU [18:06:14]CAPDU: 80 13 01 00 [18:06:14]Write to MH i2c: E2 08 00 D8 33 80 13 01 00 00 00 00 00 88 [18:06:14]Write i2c OK [18:06:14]MH_I2C_Read... [18:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:14]Read from MH i2c: E2 [18:06:14]MH_I2C_Read... [18:06:14]Read from MH i2c: E2 0E 00 [18:06:14]MH_I2C_Read... [18:06:14]Read from MH i2c: E2 0E 00 D8 33 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 00 [18:06:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:06:14]wFMCommunicate OK [18:06:14]SAM_PROTO_GetShiftState done [18:06:14]FM_GetShiftState done [18:06:14]req_shift_opened done [18:06:14]requested_item shift.open_date is exist - process it [18:06:14]req_shift_open_date [18:06:14]req_shift_open_date done [18:06:14]produce_requested_data done [18:06:14]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145807,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:06:14]process_action_free close_receipt [18:06:14]json_value_free [18:06:14]json_value_free done [18:06:14]process_json_proto returns [18:06:14]Send response to host [18:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145807,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:06:14]free response buf [18:06:14]execute_script done [18:06:14]execute_script returns [18:06:14]free content buf [18:06:14]Sock 7.Close socket [18:06:14]Sock 7.Thread stoped [18:06:18]OFD Sender: No OFD packet to send [18:06:20]accept exits with 9 [18:06:20]New connection [18:06:20]New thread 3066740068 created [18:06:20]Thread 3066596708 joined [18:06:20]Waiting for new connection... [18:06:20] Sock 9.Parse request [18:06:20]Sock 9.Check first char [18:06:20]Sock 9.First char is OK [18:06:20]request: POST /json_proto HTTP/1.0 [18:06:20]Method: POST [18:06:20]URL: /json_proto [18:06:20]Method is POST - this is cgi request [18:06:20]url: /json_proto [18:06:20]query_string will be loaded in cgi processing [18:06:20]execute_cgi json_proto POST (null) [18:06:20]execute_cgi path=json_proto method=POST [18:06:20]POST find Content-Length [18:06:20]Host: 172.17.40.195:8080 [18:06:20]Content-Length: 677 [18:06:20]Content-Type: application/json [18:06:20] [18:06:20]POST finish read [18:06:20]Found Content-Length = 677 [18:06:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:20]execute_script... [18: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)160566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:20]POST & json_proto [18:06:20]process_json_proto [18:06:20]json parsed OK: [18:06:20]protocol is kg_v1.0 [18:06:20]action value=close_receipt [18:06:20]process_action close_receipt [18:06:20]cmd_close_receipt [18:06:20]MH_GetDate [18:06:20]Write to MH i2c: F0 00 00 D9 33 FB [18:06:20]Write i2c OK [18:06:20]MH_I2C_Read... [18:06:20]Read from MH i2c: F0 [18:06:20]MH_I2C_Read... [18:06:20]Read from MH i2c: F0 09 00 [18:06:20]MH_I2C_Read... [18:06:20]Read from MH i2c: F0 09 00 D9 33 00 1F 81 1E 67 D5 8D 6C 64 5B [18:06:20]GetLastDocTimeStamp 1730052373 [18:06:20]current date 1730052383 [18:06:20]FM_GetShiftState [18:06:20]SAM_PROTO_GetShiftState [18:06:20]wFMCommunicate request_size=4 [18:06:20]MH_SAM_APDU [18:06:20]CAPDU: 80 13 01 00 [18:06:20]Write to MH i2c: E2 08 00 DA 33 80 13 01 00 00 00 00 00 8A [18:06:20]Write i2c OK [18:06:20]MH_I2C_Read... [18:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:20]Read from MH i2c: E2 [18:06:20]MH_I2C_Read... [18:06:20]Read from MH i2c: E2 0E 00 [18:06:20]MH_I2C_Read... [18:06:20]Read from MH i2c: E2 0E 00 DA 33 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 02 [18:06:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:06:20]wFMCommunicate OK [18:06:20]SAM_PROTO_GetShiftState done [18:06:20]FM_GetShiftState done [18:06:20]opened in 1729988959 [18:06:20]opened+sec_in_day 1730075359 [18:06:20]quantity*price = 30038 [18:06:20]sum+1 = 30039 [18:06:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 231 27.10.2024 18:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145808 ФПД: 133008504200145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180623&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145808&fm=133008504200145&tin=02508201610067®Number=0000000000091683&sum=30000 [18:06:21]StoreToDocumentArchive [18:06:21]shift 545 fd 145808 [18:06:21]save to /storage/0545/doc_00145808 [18:06:21]save last doc name /storage/0545/doc_00145808 to /storage/kkm_last_doc_name [18:06:21]save OK [18:06:21]Clear old archive folders... [18:06:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:21]tlvbuf is 00575D10 [18:06:21]SAM_PROTO_ClearQueue [18:06:21]wFMCommunicate request_size=4 [18:06:21]MH_SAM_APDU [18:06:21]CAPDU: 80 09 00 00 [18:06:21]Write to MH i2c: E2 08 00 E7 33 80 09 00 00 00 00 00 00 8C [18:06:21]Write i2c OK [18:06:21]MH_I2C_Read... [18:06:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:21]Read from MH i2c: E2 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 03 00 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 03 00 E7 33 00 90 00 8E [18:06:21]RAPDU: 90 00 [18:06:21]wFMCommunicate OK [18:06:21]SAM_PROTO_ClearQueue done [18:06:21]KKMCreateOFDPacket [18:06:21]OFDProtocolAddRootSTLVToBuf [18:06:21]FM_MakeSignedData [18:06:21]FM_MakeSignedData [18:06:21]SAM_PROTO_SignData [18:06:21]wFMCommunicate request_size=4 [18:06:21]MH_SAM_APDU [18:06:21]CAPDU: 80 0D 01 02 [18:06:21]Write to MH i2c: E2 08 00 E8 33 80 0D 01 02 00 00 00 00 94 [18:06:21]Write i2c OK [18:06:21]MH_I2C_Read... [18:06:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:21]Read from MH i2c: E2 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 03 00 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 03 00 E8 33 00 90 00 8F [18:06:21]RAPDU: 90 00 [18:06:21]wFMCommunicate OK [18:06:21]wFMCommunicate request_size=255 [18:06:21]MH_SAM_APDU [18: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 1F 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 90 39 02 00 35 04 06 00 78 [18:06:21]Write to MH i2c: E2 02 01 E9 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 1F 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 90 39 02 00 35 04 06 00 78 00 00 88 [18:06:21]Write i2c OK [18:06:21]MH_I2C_Read... [18:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:22]Read from MH i2c: E2 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 03 00 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 03 00 E9 33 00 90 00 90 [18:06:22]RAPDU: 90 00 [18:06:22]wFMCommunicate OK [18:06:22]wFMCommunicate request_size=10 [18:06:22]MH_SAM_APDU [18:06:22]CAPDU: 80 0D 02 02 05 F8 74 A5 1B D1 [18:06:22]Write to MH i2c: E2 0D 00 EA 33 80 0D 02 02 05 00 F8 74 A5 1B D1 00 00 9E [18:06:22]Write i2c OK [18:06:22]MH_I2C_Read... [18:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:22]Read from MH i2c: E2 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 03 00 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 03 00 EA 33 00 90 00 91 [18:06:22]RAPDU: 90 00 [18:06:22]wFMCommunicate OK [18:06:22]wFMCommunicate request_size=4 [18:06:22]MH_SAM_APDU [18:06:22]CAPDU: 80 0D 03 02 [18:06:22]Write to MH i2c: E2 08 00 EB 33 80 0D 03 02 00 00 00 00 99 [18:06:22]Write i2c OK [18:06:22]MH_I2C_Read... [18:06:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:22]Read from MH i2c: E2 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 0B 00 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 0B 00 EB 33 00 A7 A0 AA 21 97 B2 8D 07 90 00 89 [18:06:22]RAPDU: A7 A0 AA 21 97 B2 8D 07 90 00 [18:06:22]wFMCommunicate OK [18:06:22]SAM_PROTO_SignData done [18:06:22]FM_MakeSignedData done [18:06:22]CreateOFDProtocolMessage [18:06:22]wFMCommunicate request_size=4 [18:06:22]MH_SAM_APDU [18:06:22]CAPDU: 80 11 00 00 [18:06:22]Write to MH i2c: E2 08 00 EC 33 80 11 00 00 00 00 00 00 99 [18:06:22]Write i2c OK [18:06:22]MH_I2C_Read... [18:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:22]Read from MH i2c: E2 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 17 00 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 17 00 EC 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EC [18:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:06:22]wFMCommunicate OK [18:06:22]CreateOFDProtocolMessage done [18:06:22]OFDSenderStorePacket 145808 [18:06:22]StoreOFDPacket docnum=145808 [18:06:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 49 11 07 01 90 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 1F 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 90 39 02 00 35 04 06 00 78 F8 74 A5 1B D1 A7 A0 AA 21 97 B2 8D 07 [18:06:22]CheckFolder [18:06:22]dirname=/storage/ofd_packets [18:06:22]CheckFolder done [18:06:22]ProducePacketName [18:06:22]name=ofd_packets/00145808 [18:06:22]NVStorageSaveData ofd_packets/00145808 [18:06:22]File name is /storage/ofd_packets/00145808 [18:06:22]Write 301 bytes [18:06:22]NVStorageSaveData done [18:06:22]OFDSenderStorePacket done [18:06:22]KKMCreateOFDPacket done [18:06:22]NVStorageSaveData kkm_last_timestamp [18:06:22]File name is /storage/kkm_last_timestamp [18:06:22]Write 4 bytes [18:06:22]NVStorageSaveData done [18:06:22]ExternCall_PrintAddStr [18:06:22]wPrintStart [18:06:22]Write to MH i2c: 01 00 00 ED 33 20 [18:06:22]Write i2c OK [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: 01 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: 01 07 00 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: 01 07 00 ED 33 00 00 00 00 00 FF 0F 35 [18:06:22]RasterBufferAndPrint [18:06:22]line Счет N : (1)160566 [18:06:22]line ИНН: 02508201610067 [18:06:22]line Контрольно-Кассовый Чек [18:06:22]line ПРОДАЖА [18:06:22]line ТРК (МРК, ГНК) : 42 [18:06:22]line Товар: 2710124130 [18:06:22]line Аи-92-К-2 [18:06:22]line 4.490 * 66.90 [18:06:22]line = 300.38 [18:06:22]line НДС 12% НСП 1% [18:06:22]line > о реализуемом товаре [18:06:22]line ОКРУГЛЕНИЕ: -0.38 [18:06:22]line ИТОГО: 300.00 [18:06:22]line Внесено: 300.00 [18:06:22]line СДАЧА: 0.00 [18:06:22]line НСП 1% : 2.66 [18:06:22]line НДС 12% : 31.90 [18:06:22]line Наличными: 300.00 [18:06:22]line Безнал.: 0.00 [18:06:22]line Место: АЗС № 126 "Партнер Нефть" [18:06:22]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:06:22]line СНО: Общий режим [18:06:22]line Чек 231 27.10.2024 18:06 [18:06:22]line Смена: 545 ФФД: 1.0 [18:06:22]line ЗНМ: 0300000085 [18:06:22]line РНМ: 0000000000091683 [18:06:22]line Версия ККМ: 001 [18:06:22]line ФМ: 0000000000871745 [18:06:22]line ФД: 145808 [18:06:22]line ФПД: 133008504200145 [18:06:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180623&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145808&fm=133008504200145&tin=02508201610067®Number=0000000000091683&sum=30000 [18:06:22]written 0, free lines is 4095 [18:06:22]OFD Sender: Processing packet 145808 [packets to send 206, broken 205] [18:06:22]ProducePacketName [18:06:22]name=ofd_packets/00145808 [18:06:22]OFD Sender: To server: pG, [18:06:22]CommunicateWithHost lk.salyk.kg:30040 [18:06:22]ConnectInit lk.salyk.kg [18:06:22]Connected sock=7 [18: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 31 37 34 35 0F 01 00 00 49 11 07 01 90 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 1F 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 90 39 02 00 35 04 06 00 78 F8 74 A5 1B D1 A7 A0 AA 21 97 B2 8D 07 [18:06:22]Write to MH i2c: 01 00 00 18 34 4C [18:06:22]Write i2c OK [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: 01 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: 01 07 00 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: 01 07 00 18 34 00 00 00 00 00 C5 0C 24 [18:06:22]RasterBufferAndPrint [18:06:22]line [18:06:22]line [18:06:22]line [18:06:22]line [18:06:22]line [18:06:22]written 0, free lines is 3287 [18:06:22]MH_Cut [18:06:22]Write to MH i2c: D1 01 00 1F 34 01 25 [18:06:22]Write i2c OK [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: D1 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: D1 01 00 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: D1 01 00 1F 34 00 24 [18:06:22]Write to MH i2c: 01 00 00 20 34 54 [18:06:22]Write i2c OK [18:06:22]MH_I2C_Read... [18:06:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 DB 0B 47 00 B2 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 90 39 02 00 F4 03 04 00 4C 26 1E 67 B6 04 01 00 00 57 F6 6F AA 09 85 7E D3 [18:06:23]CommunicateWithHost err = 0 [18:06:23]CheckOFDResponse [18:06:23]1017 (14) - 77093643461234 [18:06:23]1041 (16) - 0000000000871745 [18:06:23]1040 (4) - 145808 [18:06:23]1012 (4) - 27.10.2024 11:38 [18:06:23]1206 (1) - 0 [18:06:23]OFD Sender: Remove packet 145808 [18:06:23]ProducePacketName [18:06:23]name=ofd_packets/00145808 [18:06:23]NVStorageDeleteData [18:06:23]OFD Sender: No OFD packet to send [18:06:23]*** Cut start [18:06:23]*** Partial cut [18:06:23]*** CUTSNS_PIN = 1 [18:06:23]*** CUTSNS_PIN = 0 [18:06:23]*** Brake cut motor [18:06:24]Read from MH i2c: 01 [18:06:24]MH_I2C_Read... [18:06:24]*** Stop cut motor [18:06:24]*** Cut end [18:06:24]Read from MH i2c: 01 07 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: 01 07 00 20 34 00 00 00 00 00 FF 0F 69 [18:06:24]process_action close_receipt done [18:06:24]requested_data is exist [18:06:24]produce_requested_data [18:06:24]requested_item fm.sn is exist - process it [18:06:24]wFMCommunicate request_size=4 [18:06:24]MH_SAM_APDU [18:06:24]CAPDU: 80 11 00 00 [18:06:24]Write to MH i2c: E2 08 00 21 34 80 11 00 00 00 00 00 00 CF [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:24]Read from MH i2c: E2 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 17 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 17 00 21 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 22 [18:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:06:24]wFMCommunicate OK [18:06:24]requested_item fd.num is exist - process it [18:06:24]SAM_PROTO_GetFieldsCounters [18:06:24]wFMCommunicate request_size=4 [18:06:24]MH_SAM_APDU [18:06:24]CAPDU: 80 13 00 00 [18:06:24]Write to MH i2c: E2 08 00 22 34 80 13 00 00 00 00 00 00 D2 [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:24]Read from MH i2c: E2 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 62 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 62 00 22 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 90 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [18: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 90 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:24]wFMCommunicate OK [18:06:24]SAM_PROTO_GetFieldsCounters done [18:06:24]requested_item shift.num is exist - process it [18:06:24]requested_item shift.opened is exist - process it [18:06:24]req_shift_opened [18:06:24]FM_GetShiftState [18:06:24]SAM_PROTO_GetShiftState [18:06:24]wFMCommunicate request_size=4 [18:06:24]MH_SAM_APDU [18:06:24]CAPDU: 80 13 01 00 [18:06:24]Write to MH i2c: E2 08 00 23 34 80 13 01 00 00 00 00 00 D4 [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:24]Read from MH i2c: E2 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 0E 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 0E 00 23 34 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4C [18:06:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:06:24]wFMCommunicate OK [18:06:24]SAM_PROTO_GetShiftState done [18:06:24]FM_GetShiftState done [18:06:24]req_shift_opened done [18:06:24]requested_item shift.open_date is exist - process it [18:06:24]req_shift_open_date [18:06:24]req_shift_open_date done [18:06:24]produce_requested_data done [18:06:24]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145808,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:06:24]process_action_free close_receipt [18:06:24]json_value_free [18:06:24]json_value_free done [18:06:24]process_json_proto returns [18:06:24]Send response to host [18:06:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145808,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:06:24]free response buf [18:06:24]execute_script done [18:06:24]execute_script returns [18:06:24]free content buf [18:06:24]Sock 9.Close socket [18:06:24]Sock 9.Thread stoped [18:06:24]accept exits with 10 [18:06:24]New connection [18:06:24]New thread 3066596708 created [18:06:24]Thread 3066740068 joined [18:06:24]Waiting for new connection... [18:06:24] Sock 10.Parse request [18:06:24]Sock 10.Check first char [18:06:24]Sock 10.First char is OK [18:06:24]request: POST /json_proto HTTP/1.0 [18:06:24]Method: POST [18:06:24]URL: /json_proto [18:06:24]Method is POST - this is cgi request [18:06:24]url: /json_proto [18:06:24]query_string will be loaded in cgi processing [18:06:24]execute_cgi json_proto POST (null) [18:06:24]execute_cgi path=json_proto method=POST [18:06:24]POST find Content-Length [18:06:24]Host: 172.17.40.195:8080 [18:06:24]Content-Length: 800 [18:06:24]Content-Type: application/json [18:06:24] [18:06:24]POST finish read [18:06:24]Found Content-Length = 800 [18:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:24]execute_script... [18:06: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)160564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:24]POST & json_proto [18:06:24]process_json_proto [18:06:24]json parsed OK: [18:06:24]protocol is kg_v1.0 [18:06:24]action value=close_receipt [18:06:24]process_action close_receipt [18:06:24]cmd_close_receipt [18:06:24]MH_GetDate [18:06:24]Write to MH i2c: F0 00 00 24 34 47 [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: F0 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: F0 09 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: F0 09 00 24 34 00 23 81 1E 67 D5 8D 6C 64 AB [18:06:24]GetLastDocTimeStamp 1730052383 [18:06:24]current date 1730052387 [18:06:24]FM_GetShiftState [18:06:24]SAM_PROTO_GetShiftState [18:06:24]wFMCommunicate request_size=4 [18:06:24]MH_SAM_APDU [18:06:24]CAPDU: 80 13 01 00 [18:06:24]Write to MH i2c: E2 08 00 25 34 80 13 01 00 00 00 00 00 D6 [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:24]Read from MH i2c: E2 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 0E 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 0E 00 25 34 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4E [18:06:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:06:24]wFMCommunicate OK [18:06:24]SAM_PROTO_GetShiftState done [18:06:24]FM_GetShiftState done [18:06:24]opened in 1729988959 [18:06:24]opened+sec_in_day 1730075359 [18:06:24]quantity*price = 0 [18:06:24]sum+1 = 1 [18:06:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 232 27.10.2024 18:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: Топливные Талоны 4564523 ФМ: 0000000000871745 ФД: 145809 ФПД: 230084198030961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180627&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145809&fm=230084198030961&tin=02508201610067®Number=0000000000091683&sum=0 [18:06:26]StoreToDocumentArchive [18:06:26]shift 545 fd 145809 [18:06:26]save to /storage/0545/doc_00145809 [18:06:26]save last doc name /storage/0545/doc_00145809 to /storage/kkm_last_doc_name [18:06:26]save OK [18:06:26]Clear old archive folders... [18:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:26]tlvbuf is 004287B0 [18:06:26]SAM_PROTO_ClearQueue [18:06:26]wFMCommunicate request_size=4 [18:06:26]MH_SAM_APDU [18:06:26]CAPDU: 80 09 00 00 [18:06:26]Write to MH i2c: E2 08 00 32 34 80 09 00 00 00 00 00 00 D8 [18:06:26]Write i2c OK [18:06:26]MH_I2C_Read... [18:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:26]Read from MH i2c: E2 [18:06:26]MH_I2C_Read... [18:06:26]Read from MH i2c: E2 03 00 [18:06:26]MH_I2C_Read... [18:06:26]Read from MH i2c: E2 03 00 32 34 00 90 00 DA [18:06:26]RAPDU: 90 00 [18:06:26]wFMCommunicate OK [18:06:26]SAM_PROTO_ClearQueue done [18:06:26]KKMCreateOFDPacket [18:06:26]OFDProtocolAddRootSTLVToBuf [18:06:26]FM_MakeSignedData [18:06:26]FM_MakeSignedData [18:06:26]SAM_PROTO_SignData [18:06:26]wFMCommunicate request_size=4 [18:06:26]MH_SAM_APDU [18:06:26]CAPDU: 80 0D 01 02 [18:06:26]Write to MH i2c: E2 08 00 33 34 80 0D 01 02 00 00 00 00 E0 [18:06:26]Write i2c OK [18:06:26]MH_I2C_Read... [18:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:26]Read from MH i2c: E2 [18:06:26]MH_I2C_Read... [18:06:26]Read from MH i2c: E2 03 00 [18:06:26]MH_I2C_Read... [18:06:26]Read from MH i2c: E2 03 00 33 34 00 90 00 DB [18:06:26]RAPDU: 90 00 [18:06:26]wFMCommunicate OK [18:06:26]wFMCommunicate request_size=255 [18:06:26]MH_SAM_APDU [18:06: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 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 23 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 91 39 02 00 35 04 06 00 D1 [18:06:26]Write to MH i2c: E2 02 01 34 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 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 23 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 91 39 02 00 35 04 06 00 D1 00 00 5F [18:06:26]Write i2c OK [18:06:26]MH_I2C_Read... [18:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:26]Read from MH i2c: E2 [18:06:26]MH_I2C_Read... [18:06:26]Read from MH i2c: E2 03 00 [18:06:26]MH_I2C_Read... [18:06:26]Read from MH i2c: E2 03 00 34 34 00 90 00 DC [18:06:26]RAPDU: 90 00 [18:06:26]wFMCommunicate OK [18:06:26]wFMCommunicate request_size=10 [18:06:26]MH_SAM_APDU [18:06:26]CAPDU: 80 0D 02 02 05 42 A6 E4 5E 71 [18:06:26]Write to MH i2c: E2 0D 00 35 34 80 0D 02 02 05 00 42 A6 E4 5E 71 00 00 88 [18:06:26]Write i2c OK [18:06:26]MH_I2C_Read... [18:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:26]Read from MH i2c: E2 [18:06:26]MH_I2C_Read... [18:06:26]Read from MH i2c: E2 03 00 [18:06:26]MH_I2C_Read... [18:06:26]Read from MH i2c: E2 03 00 35 34 00 90 00 DD [18:06:26]RAPDU: 90 00 [18:06:26]wFMCommunicate OK [18:06:26]wFMCommunicate request_size=4 [18:06:26]MH_SAM_APDU [18:06:26]CAPDU: 80 0D 03 02 [18:06:26]Write to MH i2c: E2 08 00 36 34 80 0D 03 02 00 00 00 00 E5 [18:06:26]Write i2c OK [18:06:26]MH_I2C_Read... [18:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:26]Read from MH i2c: E2 [18:06:26]MH_I2C_Read... [18:06:26]Read from MH i2c: E2 0B 00 [18:06:26]MH_I2C_Read... [18:06:26]Read from MH i2c: E2 0B 00 36 34 00 9D 0F 0F 62 86 E0 BA 02 90 00 25 [18:06:26]RAPDU: 9D 0F 0F 62 86 E0 BA 02 90 00 [18:06:26]wFMCommunicate OK [18:06:26]SAM_PROTO_SignData done [18:06:26]FM_MakeSignedData done [18:06:26]CreateOFDProtocolMessage [18:06:26]wFMCommunicate request_size=4 [18:06:26]MH_SAM_APDU [18:06:26]CAPDU: 80 11 00 00 [18:06:26]Write to MH i2c: E2 08 00 37 34 80 11 00 00 00 00 00 00 E5 [18:06:27]Write i2c OK [18:06:27]MH_I2C_Read... [18:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:27]Read from MH i2c: E2 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: E2 17 00 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: E2 17 00 37 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 38 [18:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:06:27]wFMCommunicate OK [18:06:27]CreateOFDProtocolMessage done [18:06:27]OFDSenderStorePacket 145809 [18:06:27]StoreOFDPacket docnum=145809 [18:06:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 4D 61 07 01 38 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 23 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 91 39 02 00 35 04 06 00 D1 42 A6 E4 5E 71 9D 0F 0F 62 86 E0 BA 02 [18:06:27]CheckFolder [18:06:27]dirname=/storage/ofd_packets [18:06:27]CheckFolder done [18:06:27]ProducePacketName [18:06:27]name=ofd_packets/00145809 [18:06:27]NVStorageSaveData ofd_packets/00145809 [18:06:27]File name is /storage/ofd_packets/00145809 [18:06:27]Write 301 bytes [18:06:27]NVStorageSaveData done [18:06:27]OFDSenderStorePacket done [18:06:27]KKMCreateOFDPacket done [18:06:27]NVStorageSaveData kkm_last_timestamp [18:06:27]File name is /storage/kkm_last_timestamp [18:06:27]Write 4 bytes [18:06:27]NVStorageSaveData done [18:06:27]ExternCall_PrintAddStr [18:06:27]wPrintStart [18:06:27]Write to MH i2c: 01 00 00 38 34 6C [18:06:27]Write i2c OK [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: 01 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: 01 07 00 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: 01 07 00 38 34 00 00 00 00 00 FF 0F 81 [18:06:27]RasterBufferAndPrint [18:06:27]line Счет N : (1)160564 [18:06:27]line ИНН: 02508201610067 [18:06:27]line Контрольно-Кассовый Чек [18:06:27]line ПРОДАЖА [18:06:27]line ТРК (МРК, ГНК) : 62 [18:06:27]line Товар: 2710124130 [18:06:27]line Аи-92-К-2 [18:06:27]line 30.000 * 0.00 [18:06:27]line = 0.00 [18:06:27]line НДС 12% НСП 1% [18:06:27]line > о реализуемом товаре [18:06:27]line ИТОГО: 0.00 [18:06:27]line НСП 1% : 0.00 [18:06:27]line НДС 12% : 0.00 [18:06:27]line Наличными: 0.00 [18:06:27]line Безнал.: 0.00 [18:06:27]line Место: АЗС № 126 "Партнер Нефть" [18:06:27]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:06:27]line СНО: Общий режим [18:06:27]line Чек 232 27.10.2024 18:06 [18:06:27]line Смена: 545 ФФД: 1.0 [18:06:27]line ЗНМ: 0300000085 [18:06:27]line РНМ: 0000000000091683 [18:06:27]line Версия ККМ: 001 [18:06:27]line Талоны: Топливные Талоны [18:06:27]line 4564523 [18:06:27]line ФМ: 0000000000871745 [18:06:27]line ФД: 145809 [18:06:27]line ФПД: 230084198030961 [18:06:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180627&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145809&fm=230084198030961&tin=02508201610067®Number=0000000000091683&sum=0 [18:06:27]written 0, free lines is 4095 [18:06:27]OFD Sender: Processing packet 145809 [packets to send 206, broken 205] [18:06:27]ProducePacketName [18:06:27]name=ofd_packets/00145809 [18:06:27]OFD Sender: To server: pG, [18:06:27]CommunicateWithHost lk.salyk.kg:30040 [18:06:27]ConnectInit lk.salyk.kg [18:06:27]Connected sock=9 [18:06:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 4D 61 07 01 38 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 23 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 91 39 02 00 35 04 06 00 D1 42 A6 E4 5E 71 9D 0F 0F 62 86 E0 BA 02 [18:06:27]Write to MH i2c: 01 00 00 62 34 96 [18:06:27]Write i2c OK [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: 01 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: 01 07 00 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: 01 07 00 62 34 00 00 00 00 00 CA 0C 73 [18:06:27]RasterBufferAndPrint [18:06:27]line [18:06:27]line [18:06:27]line [18:06:27]line [18:06:27]line [18:06:27]written 0, free lines is 3300 [18:06:27]MH_Cut [18:06:27]Write to MH i2c: D1 01 00 69 34 01 6F [18:06:27]Write i2c OK [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: D1 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: D1 01 00 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: D1 01 00 69 34 00 6E [18:06:27]Write to MH i2c: 01 00 00 6A 34 9E [18:06:27]Write i2c OK [18:06:27]MH_I2C_Read... [18:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 DA 87 47 00 EA C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 91 39 02 00 F4 03 04 00 50 26 1E 67 B6 04 01 00 00 90 7A 46 DA 99 A7 49 07 [18:06:27]CommunicateWithHost err = 0 [18:06:27]CheckOFDResponse [18:06:27]1017 (14) - 77093643461234 [18:06:27]1041 (16) - 0000000000871745 [18:06:27]1040 (4) - 145809 [18:06:27]1012 (4) - 27.10.2024 11:38 [18:06:27]1206 (1) - 0 [18:06:27]OFD Sender: Remove packet 145809 [18:06:27]ProducePacketName [18:06:27]name=ofd_packets/00145809 [18:06:27]NVStorageDeleteData [18:06:28]OFD Sender: No OFD packet to send [18:06:28]*** Cut start [18:06:28]*** Partial cut [18:06:28]*** CUTSNS_PIN = 1 [18:06:28]*** CUTSNS_PIN = 0 [18:06:28]*** Brake cut motor [18:06:28]Read from MH i2c: 01 [18:06:28]MH_I2C_Read... [18:06:28]*** Stop cut motor [18:06:28]*** Cut end [18:06:28]Read from MH i2c: 01 07 00 [18:06:28]MH_I2C_Read... [18:06:28]Read from MH i2c: 01 07 00 6A 34 00 00 00 00 00 FF 0F B3 [18:06:28]process_action close_receipt done [18:06:28]requested_data is exist [18:06:28]produce_requested_data [18:06:28]requested_item fm.sn is exist - process it [18:06:28]wFMCommunicate request_size=4 [18:06:28]MH_SAM_APDU [18:06:28]CAPDU: 80 11 00 00 [18:06:28]Write to MH i2c: E2 08 00 6B 34 80 11 00 00 00 00 00 00 19 [18:06:28]Write i2c OK [18:06:28]MH_I2C_Read... [18:06:28]Read from MH i2c: E2 [18:06:29]MH_I2C_Read... [18:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:29]Read from MH i2c: E2 17 00 [18:06:29]MH_I2C_Read... [18:06:29]Read from MH i2c: E2 17 00 6B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6C [18:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:06:29]wFMCommunicate OK [18:06:29]requested_item fd.num is exist - process it [18:06:29]SAM_PROTO_GetFieldsCounters [18:06:29]wFMCommunicate request_size=4 [18:06:29]MH_SAM_APDU [18:06:29]CAPDU: 80 13 00 00 [18:06:29]Write to MH i2c: E2 08 00 6C 34 80 13 00 00 00 00 00 00 1C [18:06:29]Write i2c OK [18:06:29]MH_I2C_Read... [18:06:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:29]Read from MH i2c: E2 [18:06:29]MH_I2C_Read... [18:06:29]Read from MH i2c: E2 62 00 [18:06:29]MH_I2C_Read... [18:06:29]Read from MH i2c: E2 62 00 6C 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 91 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [18:06:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 91 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:29]wFMCommunicate OK [18:06:29]SAM_PROTO_GetFieldsCounters done [18:06:29]requested_item shift.num is exist - process it [18:06:29]requested_item shift.opened is exist - process it [18:06:29]req_shift_opened [18:06:29]FM_GetShiftState [18:06:29]SAM_PROTO_GetShiftState [18:06:29]wFMCommunicate request_size=4 [18:06:29]MH_SAM_APDU [18:06:29]CAPDU: 80 13 01 00 [18:06:29]Write to MH i2c: E2 08 00 6D 34 80 13 01 00 00 00 00 00 1E [18:06:29]Write i2c OK [18:06:29]MH_I2C_Read... [18:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:29]Read from MH i2c: E2 [18:06:29]MH_I2C_Read... [18:06:29]Read from MH i2c: E2 0E 00 [18:06:29]MH_I2C_Read... [18:06:29]Read from MH i2c: E2 0E 00 6D 34 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 96 [18:06:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:06:29]wFMCommunicate OK [18:06:29]SAM_PROTO_GetShiftState done [18:06:29]FM_GetShiftState done [18:06:29]req_shift_opened done [18:06:29]requested_item shift.open_date is exist - process it [18:06:29]req_shift_open_date [18:06:29]req_shift_open_date done [18:06:29]produce_requested_data done [18:06:29]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145809,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:06:29]process_action_free close_receipt [18:06:29]json_value_free [18:06:29]json_value_free done [18:06:29]process_json_proto returns [18:06:29]Send response to host [18:06:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145809,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:06:29]free response buf [18:06:29]execute_script done [18:06:29]execute_script returns [18:06:29]free content buf [18:06:29]Sock 10.Close socket [18:06:29]Sock 10.Thread stoped [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:56]int [18:06:56]Write to MH i2c: 01 00 00 6E 34 A2 [18:06:56]*** FLAG_PRN_KEY set [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 6E 34 00 08 00 00 00 FF 0F BF [18:06:56]state=0 [18:06:56]Key pressed [18:06:56]Feed [18:06:56]Write to MH i2c: D8 00 00 6F 34 7A [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: D8 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: D8 01 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: D8 01 00 6F 34 00 7B [18:06:56]int [18:06:56]Write to MH i2c: 01 00 00 70 34 A4 [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 70 34 00 48 00 00 00 3C 00 2F [18:06:56]state=2 [18:06:56]Key pressed [18:06:56]int [18:06:56]Write to MH i2c: 01 00 00 71 34 A5 [18:06:56]*** FLAG_PRN_KEY reset [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 71 34 00 00 00 00 00 FF 0F BA [18:06:56]state=2 [18:06:56]Stop feed [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:29]accept exits with 7 [18:09:29]New connection [18:09:29]New thread 3066740068 created [18:09:29]Thread 3066596708 joined [18:09:29]Waiting for new connection... [18:09:29] Sock 7.Parse request [18:09:29]Sock 7.Check first char [18:09:29]Sock 7.First char is OK [18:09:29]request: POST /json_proto HTTP/1.0 [18:09:29]Method: POST [18:09:29]URL: /json_proto [18:09:29]Method is POST - this is cgi request [18:09:29]url: /json_proto [18:09:29]query_string will be loaded in cgi processing [18:09:29]execute_cgi json_proto POST (null) [18:09:29]execute_cgi path=json_proto method=POST [18:09:29]POST find Content-Length [18:09:29]Host: 172.17.40.195:8080 [18:09:29]Content-Length: 678 [18:09:29]Content-Type: application/json [18:09:29] [18:09:29]POST finish read [18:09:29]Found Content-Length = 678 [18:09:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:29]execute_script... [18:09: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)160567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:29]POST & json_proto [18:09:29]process_json_proto [18:09:29]json parsed OK: [18:09:29]protocol is kg_v1.0 [18:09:29]action value=close_receipt [18:09:29]process_action close_receipt [18:09:29]cmd_close_receipt [18:09:29]MH_GetDate [18:09:29]Write to MH i2c: F0 00 00 72 34 95 [18:09:29]Write i2c OK [18:09:29]MH_I2C_Read... [18:09:29]Read from MH i2c: F0 [18:09:29]MH_I2C_Read... [18:09:29]Read from MH i2c: F0 09 00 [18:09:29]MH_I2C_Read... [18:09:29]Read from MH i2c: F0 09 00 72 34 00 DC 81 1E 67 D5 8D 6C 64 B2 [18:09:29]GetLastDocTimeStamp 1730052387 [18:09:29]current date 1730052572 [18:09:29]FM_GetShiftState [18:09:29]SAM_PROTO_GetShiftState [18:09:29]wFMCommunicate request_size=4 [18:09:29]MH_SAM_APDU [18:09:29]CAPDU: 80 13 01 00 [18:09:29]Write to MH i2c: E2 08 00 73 34 80 13 01 00 00 00 00 00 24 [18:09:29]Write i2c OK [18:09:29]MH_I2C_Read... [18:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:29]Read from MH i2c: E2 [18:09:29]MH_I2C_Read... [18:09:29]Read from MH i2c: E2 0E 00 [18:09:29]MH_I2C_Read... [18:09:29]Read from MH i2c: E2 0E 00 73 34 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9C [18:09:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:09:29]wFMCommunicate OK [18:09:29]SAM_PROTO_GetShiftState done [18:09:29]FM_GetShiftState done [18:09:29]opened in 1729988959 [18:09:29]opened+sec_in_day 1730075359 [18:09:29]quantity*price = 80012 [18:09:29]sum+1 = 80013 [18:09:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 233 27.10.2024 18:09 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145810 ФПД: 247136898073908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180932&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145810&fm=247136898073908&tin=02508201610067®Number=0000000000091683&sum=80000 [18:09:31]StoreToDocumentArchive [18:09:31]shift 545 fd 145810 [18:09:31]save to /storage/0545/doc_00145810 [18:09:31]save last doc name /storage/0545/doc_00145810 to /storage/kkm_last_doc_name [18:09:31]save OK [18:09:31]Clear old archive folders... [18:09:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:31]tlvbuf is 00437460 [18:09:31]SAM_PROTO_ClearQueue [18:09:31]wFMCommunicate request_size=4 [18:09:31]MH_SAM_APDU [18:09:31]CAPDU: 80 09 00 00 [18:09:31]Write to MH i2c: E2 08 00 80 34 80 09 00 00 00 00 00 00 26 [18:09:31]Write i2c OK [18:09:31]MH_I2C_Read... [18:09:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:31]Read from MH i2c: E2 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 03 00 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 03 00 80 34 00 90 00 28 [18:09:31]RAPDU: 90 00 [18:09:31]wFMCommunicate OK [18:09:31]SAM_PROTO_ClearQueue done [18:09:31]KKMCreateOFDPacket [18:09:31]OFDProtocolAddRootSTLVToBuf [18:09:31]FM_MakeSignedData [18:09:31]FM_MakeSignedData [18:09:31]SAM_PROTO_SignData [18:09:31]wFMCommunicate request_size=4 [18:09:31]MH_SAM_APDU [18:09:31]CAPDU: 80 0D 01 02 [18:09:31]Write to MH i2c: E2 08 00 81 34 80 0D 01 02 00 00 00 00 2E [18:09:31]Write i2c OK [18:09:31]MH_I2C_Read... [18:09:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:31]Read from MH i2c: E2 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 03 00 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 03 00 81 34 00 90 00 29 [18:09:31]RAPDU: 90 00 [18:09:31]wFMCommunicate OK [18:09:31]wFMCommunicate request_size=255 [18:09:31]MH_SAM_APDU [18:09: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 DC 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 92 39 02 00 35 04 06 00 E0 [18:09:31]Write to MH i2c: E2 02 01 82 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 DC 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 92 39 02 00 35 04 06 00 E0 00 00 43 [18:09:31]Write i2c OK [18:09:31]MH_I2C_Read... [18:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:31]Read from MH i2c: E2 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 03 00 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 03 00 82 34 00 90 00 2A [18:09:31]RAPDU: 90 00 [18:09:31]wFMCommunicate OK [18:09:31]wFMCommunicate request_size=10 [18:09:31]MH_SAM_APDU [18:09:31]CAPDU: 80 0D 02 02 05 C5 0B 05 45 34 [18:09:31]Write to MH i2c: E2 0D 00 83 34 80 0D 02 02 05 00 C5 0B 05 45 34 00 00 89 [18:09:31]Write i2c OK [18:09:31]MH_I2C_Read... [18:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:31]Read from MH i2c: E2 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 03 00 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 03 00 83 34 00 90 00 2B [18:09:31]RAPDU: 90 00 [18:09:31]wFMCommunicate OK [18:09:31]wFMCommunicate request_size=4 [18:09:31]MH_SAM_APDU [18:09:31]CAPDU: 80 0D 03 02 [18:09:31]Write to MH i2c: E2 08 00 84 34 80 0D 03 02 00 00 00 00 33 [18:09:31]Write i2c OK [18:09:31]MH_I2C_Read... [18:09:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:31]Read from MH i2c: E2 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 0B 00 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 0B 00 84 34 00 93 E9 F7 07 30 A0 AA 92 90 00 BA [18:09:31]RAPDU: 93 E9 F7 07 30 A0 AA 92 90 00 [18:09:31]wFMCommunicate OK [18:09:31]SAM_PROTO_SignData done [18:09:31]FM_MakeSignedData done [18:09:31]CreateOFDProtocolMessage [18:09:31]wFMCommunicate request_size=4 [18:09:31]MH_SAM_APDU [18:09:31]CAPDU: 80 11 00 00 [18:09:31]Write to MH i2c: E2 08 00 85 34 80 11 00 00 00 00 00 00 33 [18:09:31]Write i2c OK [18:09:31]MH_I2C_Read... [18:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:31]Read from MH i2c: E2 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 17 00 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: E2 17 00 85 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 86 [18:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:09:31]wFMCommunicate OK [18:09:31]CreateOFDProtocolMessage done [18:09:31]OFDSenderStorePacket 145810 [18:09:31]StoreOFDPacket docnum=145810 [18:09:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D6 55 07 01 6E 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 DC 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 92 39 02 00 35 04 06 00 E0 C5 0B 05 45 34 93 E9 F7 07 30 A0 AA 92 [18:09:31]CheckFolder [18:09:31]dirname=/storage/ofd_packets [18:09:31]CheckFolder done [18:09:31]ProducePacketName [18:09:31]name=ofd_packets/00145810 [18:09:31]NVStorageSaveData ofd_packets/00145810 [18:09:31]File name is /storage/ofd_packets/00145810 [18:09:31]Write 301 bytes [18:09:31]NVStorageSaveData done [18:09:31]OFDSenderStorePacket done [18:09:31]KKMCreateOFDPacket done [18:09:31]NVStorageSaveData kkm_last_timestamp [18:09:31]File name is /storage/kkm_last_timestamp [18:09:31]Write 4 bytes [18:09:31]NVStorageSaveData done [18:09:31]ExternCall_PrintAddStr [18:09:31]wPrintStart [18:09:31]Write to MH i2c: 01 00 00 86 34 BA [18:09:31]Write i2c OK [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: 01 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: 01 07 00 [18:09:31]MH_I2C_Read... [18:09:31]Read from MH i2c: 01 07 00 86 34 00 00 00 00 00 FF 0F CF [18:09:31]RasterBufferAndPrint [18:09:31]line Счет N : (1)160567 [18:09:31]line ИНН: 02508201610067 [18:09:31]line Контрольно-Кассовый Чек [18:09:31]line ПРОДАЖА [18:09:31]line ТРК (МРК, ГНК) : 42 [18:09:31]line Товар: 2710124130 [18:09:31]line Аи-92-К-2 [18:09:31]line 11.960 * 66.90 [18:09:31]line = 800.12 [18:09:31]line НДС 12% НСП 1% [18:09:31]line > о реализуемом товаре [18:09:31]line ОКРУГЛЕНИЕ: -0.12 [18:09:31]line ИТОГО: 800.00 [18:09:31]line Внесено: 800.00 [18:09:31]line СДАЧА: 0.00 [18:09:31]line НСП 1% : 7.08 [18:09:31]line НДС 12% : 84.97 [18:09:31]line Наличными: 800.00 [18:09:31]line Безнал.: 0.00 [18:09:31]line Место: АЗС № 126 "Партнер Нефть" [18:09:31]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:09:31]line СНО: Общий режим [18:09:31]line Чек 233 27.10.2024 18:09 [18:09:31]line Смена: 545 ФФД: 1.0 [18:09:31]line ЗНМ: 0300000085 [18:09:31]line РНМ: 0000000000091683 [18:09:31]line Версия ККМ: 001 [18:09:31]line ФМ: 0000000000871745 [18:09:31]line ФД: 145810 [18:09:31]line ФПД: 247136898073908 [18:09:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180932&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145810&fm=247136898073908&tin=02508201610067®Number=0000000000091683&sum=80000 [18:09:31]written 0, free lines is 4095 [18:09:31]OFD Sender: Processing packet 145810 [packets to send 206, broken 205] [18:09:31]ProducePacketName [18:09:31]name=ofd_packets/00145810 [18:09:31]OFD Sender: To server: pG, [18:09:31]CommunicateWithHost lk.salyk.kg:30040 [18:09:31]ConnectInit lk.salyk.kg [18:09:32]Write to MH i2c: 01 00 00 B1 34 E5 [18:09:32]Write i2c OK [18:09:32]MH_I2C_Read... [18:09:32]Read from MH i2c: 01 [18:09:32]MH_I2C_Read... [18:09:32]Read from MH i2c: 01 07 00 [18:09:32]MH_I2C_Read... [18:09:32]Read from MH i2c: 01 07 00 B1 34 00 00 00 00 00 B9 0C B1 [18:09:32]RasterBufferAndPrint [18:09:32]line [18:09:32]line [18:09:32]line [18:09:32]line [18:09:32]line [18:09:32]written 0, free lines is 3264 [18:09:32]MH_Cut [18:09:32]Write to MH i2c: D1 01 00 B8 34 01 BE [18:09:32]Write i2c OK [18:09:32]MH_I2C_Read... [18:09:32]Read from MH i2c: D1 [18:09:32]MH_I2C_Read... [18:09:32]Read from MH i2c: D1 01 00 [18:09:32]MH_I2C_Read... [18:09:32]Read from MH i2c: D1 01 00 B8 34 00 BD [18:09:32]Write to MH i2c: 01 00 00 B9 34 ED [18:09:32]Write i2c OK [18:09:32]MH_I2C_Read... [18:09:32]*** Cut start [18:09:32]*** Partial cut [18:09:32]*** CUTSNS_PIN = 1 [18:09:32]*** CUTSNS_PIN = 0 [18:09:33]*** Brake cut motor [18:09:33]Read from MH i2c: 01 [18:09:33]MH_I2C_Read... [18:09:33]*** Stop cut motor [18:09:33]*** Cut end [18:09:33]Read from MH i2c: 01 07 00 [18:09:33]MH_I2C_Read... [18:09:33]Read from MH i2c: 01 07 00 B9 34 00 00 00 00 00 FF 0F 02 [18:09:33]process_action close_receipt done [18:09:33]requested_data is exist [18:09:33]produce_requested_data [18:09:33]requested_item fm.sn is exist - process it [18:09:33]wFMCommunicate request_size=4 [18:09:33]MH_SAM_APDU [18:09:33]CAPDU: 80 11 00 00 [18:09:33]Write to MH i2c: E2 08 00 BA 34 80 11 00 00 00 00 00 00 68 [18:09:33]Write i2c OK [18:09:33]MH_I2C_Read... [18:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:33]Read from MH i2c: E2 [18:09:33]MH_I2C_Read... [18:09:33]Read from MH i2c: E2 17 00 [18:09:33]MH_I2C_Read... [18:09:33]Read from MH i2c: E2 17 00 BA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BB [18:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:09:33]wFMCommunicate OK [18:09:33]requested_item fd.num is exist - process it [18:09:33]SAM_PROTO_GetFieldsCounters [18:09:33]wFMCommunicate request_size=4 [18:09:33]MH_SAM_APDU [18:09:33]CAPDU: 80 13 00 00 [18:09:33]Write to MH i2c: E2 08 00 BB 34 80 13 00 00 00 00 00 00 6B [18:09:33]Write i2c OK [18:09:33]MH_I2C_Read... [18:09:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:33]Read from MH i2c: E2 [18:09:33]MH_I2C_Read... [18:09:33]Read from MH i2c: E2 62 00 [18:09:33]MH_I2C_Read... [18:09:33]Read from MH i2c: E2 62 00 BB 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 92 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [18:09:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 92 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:33]wFMCommunicate OK [18:09:33]SAM_PROTO_GetFieldsCounters done [18:09:33]requested_item shift.num is exist - process it [18:09:33]requested_item shift.opened is exist - process it [18:09:33]req_shift_opened [18:09:33]FM_GetShiftState [18:09:33]SAM_PROTO_GetShiftState [18:09:33]wFMCommunicate request_size=4 [18:09:33]MH_SAM_APDU [18:09:33]CAPDU: 80 13 01 00 [18:09:33]Write to MH i2c: E2 08 00 BC 34 80 13 01 00 00 00 00 00 6D [18:09:33]Write i2c OK [18:09:33]MH_I2C_Read... [18:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:33]Read from MH i2c: E2 [18:09:33]MH_I2C_Read... [18:09:33]Read from MH i2c: E2 0E 00 [18:09:33]MH_I2C_Read... [18:09:33]Read from MH i2c: E2 0E 00 BC 34 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E5 [18:09:33]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:09:33]wFMCommunicate OK [18:09:33]SAM_PROTO_GetShiftState done [18:09:33]FM_GetShiftState done [18:09:33]req_shift_opened done [18:09:33]requested_item shift.open_date is exist - process it [18:09:33]req_shift_open_date [18:09:33]req_shift_open_date done [18:09:33]produce_requested_data done [18:09:33]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145810,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:09:33]process_action_free close_receipt [18:09:33]json_value_free [18:09:33]json_value_free done [18:09:33]process_json_proto returns [18:09:33]Send response to host [18:09:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145810,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:09:33]free response buf [18:09:33]execute_script done [18:09:33]execute_script returns [18:09:33]free content buf [18:09:33]Sock 7.Close socket [18:09:33]Sock 7.Thread stoped [18:11:20]accept exits with 9 [18:11:20]New connection [18:11:20]New thread 3066596708 created [18:11:20]Thread 3066740068 joined [18:11:20]Waiting for new connection... [18:11:20] Sock 9.Parse request [18:11:20]Sock 9.Check first char [18:11:20]Sock 9.First char is OK [18:11:20]request: POST /json_proto HTTP/1.0 [18:11:20]Method: POST [18:11:20]URL: /json_proto [18:11:20]Method is POST - this is cgi request [18:11:20]url: /json_proto [18:11:20]query_string will be loaded in cgi processing [18:11:20]execute_cgi json_proto POST (null) [18:11:20]execute_cgi path=json_proto method=POST [18:11:20]POST find Content-Length [18:11:20]Host: 172.17.40.195:8080 [18:11:20]Content-Length: 688 [18:11:20]Content-Type: application/json [18:11:20] [18:11:20]POST finish read [18:11:20]Found Content-Length = 688 [18:11:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:20]execute_script... [18:11: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)160568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:20]POST & json_proto [18:11:20]process_json_proto [18:11:20]json parsed OK: [18:11:20]protocol is kg_v1.0 [18:11:20]action value=close_receipt [18:11:20]process_action close_receipt [18:11:20]cmd_close_receipt [18:11:20]MH_GetDate [18:11:20]Write to MH i2c: F0 00 00 BD 34 E0 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: F0 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: F0 09 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: F0 09 00 BD 34 00 4B 82 1E 67 D5 8D 6C 64 6D [18:11:20]GetLastDocTimeStamp 1730052572 [18:11:20]current date 1730052683 [18:11:20]FM_GetShiftState [18:11:20]SAM_PROTO_GetShiftState [18:11:20]wFMCommunicate request_size=4 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 13 01 00 [18:11:20]Write to MH i2c: E2 08 00 BE 34 80 13 01 00 00 00 00 00 6F [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 0E 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 0E 00 BE 34 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E7 [18:11:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:11:20]wFMCommunicate OK [18:11:20]SAM_PROTO_GetShiftState done [18:11:20]FM_GetShiftState done [18:11:20]opened in 1729988959 [18:11:20]opened+sec_in_day 1730075359 [18:11:20]quantity*price = 160035 [18:11:20]sum+1 = 160037 [18:11:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 234 27.10.2024 18:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145811 ФПД: 143303323309797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181123&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145811&fm=143303323309797&tin=02508201610067®Number=0000000000091683&sum=160000 [18:11:21]StoreToDocumentArchive [18:11:21]shift 545 fd 145811 [18:11:21]save to /storage/0545/doc_00145811 [18:11:21]save last doc name /storage/0545/doc_00145811 to /storage/kkm_last_doc_name [18:11:21]save OK [18:11:21]Clear old archive folders... [18:11:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:11:21]tlvbuf is B6D748C0 [18:11:21]SAM_PROTO_ClearQueue [18:11:21]wFMCommunicate request_size=4 [18:11:21]MH_SAM_APDU [18:11:21]CAPDU: 80 09 00 00 [18:11:21]Write to MH i2c: E2 08 00 CB 34 80 09 00 00 00 00 00 00 71 [18:11:21]Write i2c OK [18:11:21]MH_I2C_Read... [18:11:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:21]Read from MH i2c: E2 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: E2 03 00 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: E2 03 00 CB 34 00 90 00 73 [18:11:21]RAPDU: 90 00 [18:11:21]wFMCommunicate OK [18:11:21]SAM_PROTO_ClearQueue done [18:11:21]KKMCreateOFDPacket [18:11:21]OFDProtocolAddRootSTLVToBuf [18:11:21]FM_MakeSignedData [18:11:21]FM_MakeSignedData [18:11:21]SAM_PROTO_SignData [18:11:21]wFMCommunicate request_size=4 [18:11:21]MH_SAM_APDU [18:11:21]CAPDU: 80 0D 01 02 [18:11:21]Write to MH i2c: E2 08 00 CC 34 80 0D 01 02 00 00 00 00 79 [18:11:21]Write i2c OK [18:11:21]MH_I2C_Read... [18:11:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 CC 34 00 90 00 74 [18:11:22]RAPDU: 90 00 [18:11:22]wFMCommunicate OK [18:11:22]wFMCommunicate request_size=255 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 4B 82 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 93 39 02 [18:11:22]Write to MH i2c: E2 02 01 CD 34 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 4B 82 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 93 39 02 00 00 FD [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 CD 34 00 90 00 75 [18:11:22]RAPDU: 90 00 [18:11:22]wFMCommunicate OK [18:11:22]wFMCommunicate request_size=16 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 82 55 67 AE 56 E5 [18:11:22]Write to MH i2c: E2 13 00 CE 34 80 0D 02 02 0B 00 00 35 04 06 00 82 55 67 AE 56 E5 00 00 F8 [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 03 00 CE 34 00 90 00 76 [18:11:22]RAPDU: 90 00 [18:11:22]wFMCommunicate OK [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 0D 03 02 [18:11:22]Write to MH i2c: E2 08 00 CF 34 80 0D 03 02 00 00 00 00 7E [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0B 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0B 00 CF 34 00 E1 80 C6 65 A7 5D D1 88 90 00 68 [18:11:22]RAPDU: E1 80 C6 65 A7 5D D1 88 90 00 [18:11:22]wFMCommunicate OK [18:11:22]SAM_PROTO_SignData done [18:11:22]FM_MakeSignedData done [18:11:22]CreateOFDProtocolMessage [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 11 00 00 [18:11:22]Write to MH i2c: E2 08 00 D0 34 80 11 00 00 00 00 00 00 7E [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 17 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 17 00 D0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D1 [18:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:11:22]wFMCommunicate OK [18:11:22]CreateOFDProtocolMessage done [18:11:22]OFDSenderStorePacket 145811 [18:11:22]StoreOFDPacket docnum=145811 [18:11:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 A7 92 0D 01 C4 46 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 4B 82 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 93 39 02 00 35 04 06 00 82 55 67 AE 56 E5 E1 80 C6 65 A7 5D D1 88 [18:11:22]CheckFolder [18:11:22]dirname=/storage/ofd_packets [18:11:22]CheckFolder done [18:11:22]ProducePacketName [18:11:22]name=ofd_packets/00145811 [18:11:22]NVStorageSaveData ofd_packets/00145811 [18:11:22]File name is /storage/ofd_packets/00145811 [18:11:22]Write 307 bytes [18:11:22]NVStorageSaveData done [18:11:22]OFDSenderStorePacket done [18:11:22]KKMCreateOFDPacket done [18:11:22]NVStorageSaveData kkm_last_timestamp [18:11:22]File name is /storage/kkm_last_timestamp [18:11:22]Write 4 bytes [18:11:22]NVStorageSaveData done [18:11:22]ExternCall_PrintAddStr [18:11:22]wPrintStart [18:11:22]Write to MH i2c: 01 00 00 D1 34 05 [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: 01 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: 01 07 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: 01 07 00 D1 34 00 00 00 00 00 FF 0F 1A [18:11:22]RasterBufferAndPrint [18:11:22]line Счет N : (1)160568 [18:11:22]line ИНН: 02508201610067 [18:11:22]line Контрольно-Кассовый Чек [18:11:22]line ПРОДАЖА [18:11:22]line ТРК (МРК, ГНК) : 31 [18:11:22]line Товар: 2710194240 [18:11:22]line D-Energy Дт-К-2 [18:11:22]line 20.730 * 77.20 [18:11:22]line = 1600.36 [18:11:22]line НДС 12% НСП 1% [18:11:22]line > о реализуемом товаре [18:11:22]line ОКРУГЛЕНИЕ: -0.36 [18:11:22]line ИТОГО: 1600.00 [18:11:22]line Внесено: 1600.00 [18:11:22]line СДАЧА: 0.00 [18:11:22]line НСП 1% : 14.16 [18:11:22]line НДС 12% : 169.95 [18:11:22]line Наличными: 1600.00 [18:11:22]line Безнал.: 0.00 [18:11:22]line Место: АЗС № 126 "Партнер Нефть" [18:11:22]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:11:22]line СНО: Общий режим [18:11:22]line Чек 234 27.10.2024 18:11 [18:11:22]line Смена: 545 ФФД: 1.0 [18:11:22]line ЗНМ: 0300000085 [18:11:22]line РНМ: 0000000000091683 [18:11:22]line Версия ККМ: 001 [18:11:22]line ФМ: 0000000000871745 [18:11:22]line ФД: 145811 [18:11:22]line ФПД: 143303323309797 [18:11:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181123&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145811&fm=143303323309797&tin=02508201610067®Number=0000000000091683&sum=160000 [18:11:22]written 0, free lines is 4095 [18:11:23]Write to MH i2c: 01 00 00 FC 34 30 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: 01 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: 01 07 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: 01 07 00 FC 34 00 00 00 00 00 B5 0C F8 [18:11:23]RasterBufferAndPrint [18:11:23]line [18:11:23]line [18:11:23]line [18:11:23]line [18:11:23]line [18:11:23]written 0, free lines is 3256 [18:11:23]MH_Cut [18:11:23]Write to MH i2c: D1 01 00 03 35 01 0A [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: D1 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: D1 01 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: D1 01 00 03 35 00 09 [18:11:23]Write to MH i2c: 01 00 00 04 35 39 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:24]*** Cut start [18:11:24]*** Partial cut [18:11:24]*** CUTSNS_PIN = 1 [18:11:24]*** CUTSNS_PIN = 0 [18:11:24]*** Brake cut motor [18:11:24]Read from MH i2c: 01 [18:11:24]MH_I2C_Read... [18:11:24]*** Stop cut motor [18:11:24]*** Cut end [18:11:24]Read from MH i2c: 01 07 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: 01 07 00 04 35 00 00 00 00 00 FF 0F 4E [18:11:24]process_action close_receipt done [18:11:24]requested_data is exist [18:11:24]produce_requested_data [18:11:24]requested_item fm.sn is exist - process it [18:11:24]wFMCommunicate request_size=4 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 11 00 00 [18:11:24]Write to MH i2c: E2 08 00 05 35 80 11 00 00 00 00 00 00 B4 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 17 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 17 00 05 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 07 [18:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:11:24]wFMCommunicate OK [18:11:24]requested_item fd.num is exist - process it [18:11:24]SAM_PROTO_GetFieldsCounters [18:11:24]wFMCommunicate request_size=4 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 13 00 00 [18:11:24]Write to MH i2c: E2 08 00 06 35 80 13 00 00 00 00 00 00 B7 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 62 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 62 00 06 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 93 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [18:11:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 93 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:24]wFMCommunicate OK [18:11:24]SAM_PROTO_GetFieldsCounters done [18:11:24]requested_item shift.num is exist - process it [18:11:24]requested_item shift.opened is exist - process it [18:11:24]req_shift_opened [18:11:24]FM_GetShiftState [18:11:24]SAM_PROTO_GetShiftState [18:11:24]wFMCommunicate request_size=4 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 13 01 00 [18:11:24]Write to MH i2c: E2 08 00 07 35 80 13 01 00 00 00 00 00 B9 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 0E 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 0E 00 07 35 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 31 [18:11:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:11:24]wFMCommunicate OK [18:11:24]SAM_PROTO_GetShiftState done [18:11:24]FM_GetShiftState done [18:11:24]req_shift_opened done [18:11:24]requested_item shift.open_date is exist - process it [18:11:24]req_shift_open_date [18:11:24]req_shift_open_date done [18:11:24]produce_requested_data done [18:11:24]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145811,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:11:24]process_action_free close_receipt [18:11:24]json_value_free [18:11:24]json_value_free done [18:11:24]process_json_proto returns [18:11:24]Send response to host [18:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145811,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:11:24]free response buf [18:11:24]execute_script done [18:11:24]execute_script returns [18:11:24]free content buf [18:11:24]Sock 9.Close socket [18:11:24]Sock 9.Thread stoped [18:11:42]ConnectInit Can't connect to host [18:11:42]CommunicateWithHost connect error [18:11:42]CommunicateWithHost err = -1 [18:11:42]OFD Sender: Server communicate error [18:11:42]OFD Sender: Processing packet 145810 [packets to send 207, broken 205] [18:11:42]ProducePacketName [18:11:42]name=ofd_packets/00145810 [18:11:42]OFD Sender: To server: pG, [18:11:42]CommunicateWithHost lk.salyk.kg:30040 [18:11:42]ConnectInit lk.salyk.kg [18:11:42]Connected sock=9 [18:11:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D6 55 07 01 6E 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 DC 81 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 92 39 02 00 35 04 06 00 E0 C5 0B 05 45 34 93 E9 F7 07 30 A0 AA 92 [18:11:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A2 50 47 00 F4 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 92 39 02 00 F4 03 04 00 8C 27 1E 67 B6 04 01 00 00 37 52 BB B3 42 84 0C 9B [18:11:43]CommunicateWithHost err = 0 [18:11:43]CheckOFDResponse [18:11:43]1017 (14) - 77093643461234 [18:11:43]1041 (16) - 0000000000871745 [18:11:43]1040 (4) - 145810 [18:11:43]1012 (4) - 27.10.2024 11:44 [18:11:43]1206 (1) - 0 [18:11:43]OFD Sender: Remove packet 145810 [18:11:43]ProducePacketName [18:11:43]name=ofd_packets/00145810 [18:11:43]NVStorageDeleteData [18:11:43]OFD Sender: Processing packet 145811 [packets to send 206, broken 205] [18:11:43]ProducePacketName [18:11:43]name=ofd_packets/00145811 [18:11:43]OFD Sender: To server: pG, [18:11:43]CommunicateWithHost lk.salyk.kg:30040 [18:11:43]ConnectInit lk.salyk.kg [18:11:44]Connected sock=9 [18:11:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 A7 92 0D 01 C4 46 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 4B 82 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 93 39 02 00 35 04 06 00 82 55 67 AE 56 E5 E1 80 C6 65 A7 5D D1 88 [18:11:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C2 06 47 00 36 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 31 37 34 35 10 04 04 00 93 39 02 00 F4 03 04 00 8D 27 1E 67 B6 04 01 00 00 80 D8 B1 43 48 51 64 2E [18:11:44]CommunicateWithHost err = 0 [18:11:44]CheckOFDResponse [18:11:44]1017 (14) - 77093643461234 [18:11:44]1041 (16) - 0000000000871745 [18:11:44]1040 (4) - 145811 [18:11:44]1012 (4) - 27.10.2024 11:44 [18:11:44]1206 (1) - 0 [18:11:44]OFD Sender: Remove packet 145811 [18:11:44]ProducePacketName [18:11:44]name=ofd_packets/00145811 [18:11:44]NVStorageDeleteData [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:43]accept exits with 7 [18:16:43]New connection [18:16:43]New thread 3066740068 created [18:16:43]Thread 3066596708 joined [18:16:43]Waiting for new connection... [18:16:43] Sock 7.Parse request [18:16:43]Sock 7.Check first char [18:16:43]Sock 7.First char is OK [18:16:43]request: POST /json_proto HTTP/1.0 [18:16:43]Method: POST [18:16:43]URL: /json_proto [18:16:43]Method is POST - this is cgi request [18:16:43]url: /json_proto [18:16:43]query_string will be loaded in cgi processing [18:16:43]execute_cgi json_proto POST (null) [18:16:43]execute_cgi path=json_proto method=POST [18:16:43]POST find Content-Length [18:16:43]Host: 172.17.40.195:8080 [18:16:43]Content-Length: 677 [18:16:43]Content-Type: application/json [18:16:43] [18:16:43]POST finish read [18:16:43]Found Content-Length = 677 [18:16:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:43]execute_script... [18:16: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)160569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:43]POST & json_proto [18:16:43]process_json_proto [18:16:43]json parsed OK: [18:16:43]protocol is kg_v1.0 [18:16:43]action value=close_receipt [18:16:43]process_action close_receipt [18:16:43]cmd_close_receipt [18:16:43]MH_GetDate [18:16:43]Write to MH i2c: F0 00 00 08 35 2C [18:16:43]Write i2c OK [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: F0 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: F0 09 00 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: F0 09 00 08 35 00 8E 83 1E 67 D5 8D 6C 64 FD [18:16:43]GetLastDocTimeStamp 1730052683 [18:16:43]current date 1730053006 [18:16:43]FM_GetShiftState [18:16:43]SAM_PROTO_GetShiftState [18:16:43]wFMCommunicate request_size=4 [18:16:43]MH_SAM_APDU [18:16:43]CAPDU: 80 13 01 00 [18:16:43]Write to MH i2c: E2 08 00 09 35 80 13 01 00 00 00 00 00 BB [18:16:43]Write i2c OK [18:16:43]MH_I2C_Read... [18:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:43]Read from MH i2c: E2 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: E2 0E 00 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: E2 0E 00 09 35 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 33 [18:16:43]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:16:43]wFMCommunicate OK [18:16:43]SAM_PROTO_GetShiftState done [18:16:43]FM_GetShiftState done [18:16:43]opened in 1729988959 [18:16:43]opened+sec_in_day 1730075359 [18:16:43]quantity*price = 40006 [18:16:43]sum+1 = 40007 [18:16:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 235 27.10.2024 18:16 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145812 ФПД: 170649475875809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181646&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145812&fm=170649475875809&tin=02508201610067®Number=0000000000091683&sum=40000 [18:16:44]StoreToDocumentArchive [18:16:44]shift 545 fd 145812 [18:16:44]save to /storage/0545/doc_00145812 [18:16:44]save last doc name /storage/0545/doc_00145812 to /storage/kkm_last_doc_name [18:16:44]save OK [18:16:44]Clear old archive folders... [18:16:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:44]tlvbuf is 0041FC60 [18:16:44]SAM_PROTO_ClearQueue [18:16:44]wFMCommunicate request_size=4 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 09 00 00 [18:16:44]Write to MH i2c: E2 08 00 16 35 80 09 00 00 00 00 00 00 BD [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 16 35 00 90 00 BF [18:16:44]RAPDU: 90 00 [18:16:44]wFMCommunicate OK [18:16:44]SAM_PROTO_ClearQueue done [18:16:44]KKMCreateOFDPacket [18:16:44]OFDProtocolAddRootSTLVToBuf [18:16:44]FM_MakeSignedData [18:16:44]FM_MakeSignedData [18:16:44]SAM_PROTO_SignData [18:16:44]wFMCommunicate request_size=4 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 0D 01 02 [18:16:44]Write to MH i2c: E2 08 00 17 35 80 0D 01 02 00 00 00 00 C5 [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 17 35 00 90 00 C0 [18:16:44]RAPDU: 90 00 [18:16:44]wFMCommunicate OK [18:16:44]wFMCommunicate request_size=255 [18:16:44]MH_SAM_APDU [18:16: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 8E 83 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 94 39 02 00 35 04 06 00 9B [18:16:44]Write to MH i2c: E2 02 01 18 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 8E 83 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 94 39 02 00 35 04 06 00 9B 00 00 30 [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:45]Read from MH i2c: E2 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: E2 03 00 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: E2 03 00 18 35 00 90 00 C1 [18:16:45]RAPDU: 90 00 [18:16:45]wFMCommunicate OK [18:16:45]wFMCommunicate request_size=10 [18:16:45]MH_SAM_APDU [18:16:45]CAPDU: 80 0D 02 02 05 34 6D 64 03 E1 [18:16:45]Write to MH i2c: E2 0D 00 19 35 80 0D 02 02 05 00 34 6D 64 03 E1 00 00 BB [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:45]Read from MH i2c: E2 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: E2 03 00 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: E2 03 00 19 35 00 90 00 C2 [18:16:45]RAPDU: 90 00 [18:16:45]wFMCommunicate OK [18:16:45]wFMCommunicate request_size=4 [18:16:45]MH_SAM_APDU [18:16:45]CAPDU: 80 0D 03 02 [18:16:45]Write to MH i2c: E2 08 00 1A 35 80 0D 03 02 00 00 00 00 CA [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:45]OFD Sender: No OFD packet to send [18:16:45]Read from MH i2c: E2 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: E2 0B 00 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: E2 0B 00 1A 35 00 97 08 1B 5C D6 9D DC C4 90 00 F4 [18:16:45]RAPDU: 97 08 1B 5C D6 9D DC C4 90 00 [18:16:45]wFMCommunicate OK [18:16:45]SAM_PROTO_SignData done [18:16:45]FM_MakeSignedData done [18:16:45]CreateOFDProtocolMessage [18:16:45]wFMCommunicate request_size=4 [18:16:45]MH_SAM_APDU [18:16:45]CAPDU: 80 11 00 00 [18:16:45]Write to MH i2c: E2 08 00 1B 35 80 11 00 00 00 00 00 00 CA [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:45]Read from MH i2c: E2 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: E2 17 00 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: E2 17 00 1B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1D [18:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:16:45]wFMCommunicate OK [18:16:45]CreateOFDProtocolMessage done [18:16:45]OFDSenderStorePacket 145812 [18:16:45]StoreOFDPacket docnum=145812 [18:16:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 89 84 07 01 6F 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 8E 83 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 94 39 02 00 35 04 06 00 9B 34 6D 64 03 E1 97 08 1B 5C D6 9D DC C4 [18:16:45]CheckFolder [18:16:45]dirname=/storage/ofd_packets [18:16:45]CheckFolder done [18:16:45]ProducePacketName [18:16:45]name=ofd_packets/00145812 [18:16:45]NVStorageSaveData ofd_packets/00145812 [18:16:45]File name is /storage/ofd_packets/00145812 [18:16:45]Write 301 bytes [18:16:45]NVStorageSaveData done [18:16:45]OFDSenderStorePacket done [18:16:45]KKMCreateOFDPacket done [18:16:45]NVStorageSaveData kkm_last_timestamp [18:16:45]File name is /storage/kkm_last_timestamp [18:16:45]Write 4 bytes [18:16:45]NVStorageSaveData done [18:16:45]ExternCall_PrintAddStr [18:16:45]wPrintStart [18:16:45]Write to MH i2c: 01 00 00 1C 35 51 [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 07 00 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 07 00 1C 35 00 00 00 00 00 FF 0F 66 [18:16:45]RasterBufferAndPrint [18:16:45]line Счет N : (1)160569 [18:16:45]line ИНН: 02508201610067 [18:16:45]line Контрольно-Кассовый Чек [18:16:45]line ПРОДАЖА [18:16:45]line ТРК (МРК, ГНК) : 42 [18:16:45]line Товар: 2710124130 [18:16:45]line Аи-92-К-2 [18:16:45]line 5.980 * 66.90 [18:16:45]line = 400.06 [18:16:45]line НДС 12% НСП 1% [18:16:45]line > о реализуемом товаре [18:16:45]line ОКРУГЛЕНИЕ: -0.06 [18:16:45]line ИТОГО: 400.00 [18:16:45]line Внесено: 400.00 [18:16:45]line СДАЧА: 0.00 [18:16:45]line НСП 1% : 3.54 [18:16:45]line НДС 12% : 42.48 [18:16:45]line Наличными: 400.00 [18:16:45]line Безнал.: 0.00 [18:16:45]line Место: АЗС № 126 "Партнер Нефть" [18:16:45]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:16:45]line СНО: Общий режим [18:16:45]line Чек 235 27.10.2024 18:16 [18:16:45]line Смена: 545 ФФД: 1.0 [18:16:45]line ЗНМ: 0300000085 [18:16:45]line РНМ: 0000000000091683 [18:16:45]line Версия ККМ: 001 [18:16:45]line ФМ: 0000000000871745 [18:16:45]line ФД: 145812 [18:16:45]line ФПД: 170649475875809 [18:16:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181646&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145812&fm=170649475875809&tin=02508201610067®Number=0000000000091683&sum=40000 [18:16:45]written 0, free lines is 4095 [18:16:45]OFD Sender: Processing packet 145812 [packets to send 206, broken 205] [18:16:45]ProducePacketName [18:16:45]name=ofd_packets/00145812 [18:16:45]OFD Sender: To server: pG, [18:16:45]CommunicateWithHost lk.salyk.kg:30040 [18:16:45]ConnectInit lk.salyk.kg [18:16:45]Connected sock=11 [18:16:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 89 84 07 01 6F 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 8E 83 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 94 39 02 00 35 04 06 00 9B 34 6D 64 03 E1 97 08 1B 5C D6 9D DC C4 [18:16:45]Write to MH i2c: 01 00 00 47 35 7C [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 07 00 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 07 00 47 35 00 00 00 00 00 AF 0C 3E [18:16:45]RasterBufferAndPrint [18:16:45]line [18:16:45]line [18:16:45]line [18:16:45]line [18:16:45]line [18:16:45]written 0, free lines is 3253 [18:16:45]MH_Cut [18:16:45]Write to MH i2c: D1 01 00 4E 35 01 55 [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: D1 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: D1 01 00 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: D1 01 00 4E 35 00 54 [18:16:45]Write to MH i2c: 01 00 00 4F 35 84 [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 39 F7 47 00 43 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 31 37 34 35 10 04 04 00 94 39 02 00 F4 03 04 00 BB 28 1E 67 B6 04 01 00 00 0F 1F FB 19 96 1A 42 7F [18:16:46]CommunicateWithHost err = 0 [18:16:46]CheckOFDResponse [18:16:46]1017 (14) - 77093643461234 [18:16:46]1041 (16) - 0000000000871745 [18:16:46]1040 (4) - 145812 [18:16:46]1012 (4) - 27.10.2024 11:49 [18:16:46]1206 (1) - 0 [18:16:46]OFD Sender: Remove packet 145812 [18:16:46]ProducePacketName [18:16:46]name=ofd_packets/00145812 [18:16:46]NVStorageDeleteData [18:16:46]OFD Sender: No OFD packet to send [18:16:46]*** Cut start [18:16:46]*** Partial cut [18:16:46]*** CUTSNS_PIN = 1 [18:16:46]*** CUTSNS_PIN = 0 [18:16:46]*** Brake cut motor [18:16:47]Read from MH i2c: 01 [18:16:47]MH_I2C_Read... [18:16:47]*** Stop cut motor [18:16:47]*** Cut end [18:16:47]Read from MH i2c: 01 07 00 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: 01 07 00 4F 35 00 00 00 00 00 FF 0F 99 [18:16:47]process_action close_receipt done [18:16:47]requested_data is exist [18:16:47]produce_requested_data [18:16:47]requested_item fm.sn is exist - process it [18:16:47]wFMCommunicate request_size=4 [18:16:47]MH_SAM_APDU [18:16:47]CAPDU: 80 11 00 00 [18:16:47]Write to MH i2c: E2 08 00 50 35 80 11 00 00 00 00 00 00 FF [18:16:47]Write i2c OK [18:16:47]MH_I2C_Read... [18:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:47]Read from MH i2c: E2 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 17 00 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 17 00 50 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 52 [18:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:16:47]wFMCommunicate OK [18:16:47]requested_item fd.num is exist - process it [18:16:47]SAM_PROTO_GetFieldsCounters [18:16:47]wFMCommunicate request_size=4 [18:16:47]MH_SAM_APDU [18:16:47]CAPDU: 80 13 00 00 [18:16:47]Write to MH i2c: E2 08 00 51 35 80 13 00 00 00 00 00 00 02 [18:16:47]Write i2c OK [18:16:47]MH_I2C_Read... [18:16:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:47]Read from MH i2c: E2 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 62 00 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 62 00 51 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 94 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [18:16:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 94 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:47]wFMCommunicate OK [18:16:47]SAM_PROTO_GetFieldsCounters done [18:16:47]requested_item shift.num is exist - process it [18:16:47]requested_item shift.opened is exist - process it [18:16:47]req_shift_opened [18:16:47]FM_GetShiftState [18:16:47]SAM_PROTO_GetShiftState [18:16:47]wFMCommunicate request_size=4 [18:16:47]MH_SAM_APDU [18:16:47]CAPDU: 80 13 01 00 [18:16:47]Write to MH i2c: E2 08 00 52 35 80 13 01 00 00 00 00 00 04 [18:16:47]Write i2c OK [18:16:47]MH_I2C_Read... [18:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:47]Read from MH i2c: E2 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 0E 00 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 0E 00 52 35 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7C [18:16:47]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:16:47]wFMCommunicate OK [18:16:47]SAM_PROTO_GetShiftState done [18:16:47]FM_GetShiftState done [18:16:47]req_shift_opened done [18:16:47]requested_item shift.open_date is exist - process it [18:16:47]req_shift_open_date [18:16:47]req_shift_open_date done [18:16:47]produce_requested_data done [18:16:47]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145812,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:16:47]process_action_free close_receipt [18:16:47]json_value_free [18:16:47]json_value_free done [18:16:47]process_json_proto returns [18:16:47]Send response to host [18:16:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145812,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:16:47]free response buf [18:16:47]execute_script done [18:16:47]execute_script returns [18:16:47]free content buf [18:16:47]Sock 7.Close socket [18:16:47]Sock 7.Thread stoped [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:23:58]accept exits with 9 [18:23:58]New connection [18:23:58]New thread 3066596708 created [18:23:58]Thread 3066740068 joined [18:23:58]Waiting for new connection... [18:23:58] Sock 9.Parse request [18:23:58]Sock 9.Check first char [18:23:58]Sock 9.First char is OK [18:23:58]request: POST /json_proto HTTP/1.0 [18:23:58]Method: POST [18:23:58]URL: /json_proto [18:23:58]Method is POST - this is cgi request [18:23:58]url: /json_proto [18:23:58]query_string will be loaded in cgi processing [18:23:58]execute_cgi json_proto POST (null) [18:23:58]execute_cgi path=json_proto method=POST [18:23:58]POST find Content-Length [18:23:58]Host: 172.17.40.195:8080 [18:23:58]Content-Length: 766 [18:23:58]Content-Type: application/json [18:23:58] [18:23:58]POST finish read [18:23:58]Found Content-Length = 766 [18:23:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:58]execute_script... [18:23: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)160570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:58]POST & json_proto [18:23:58]process_json_proto [18:23:58]json parsed OK: [18:23:58]protocol is kg_v1.0 [18:23:58]action value=close_receipt [18:23:58]process_action close_receipt [18:23:58]cmd_close_receipt [18:23:58]MH_GetDate [18:23:58]Write to MH i2c: F0 00 00 53 35 77 [18:23:58]Write i2c OK [18:23:58]MH_I2C_Read... [18:23:58]Read from MH i2c: F0 [18:23:58]MH_I2C_Read... [18:23:58]Read from MH i2c: F0 09 00 [18:23:58]MH_I2C_Read... [18:23:58]Read from MH i2c: F0 09 00 53 35 00 41 85 1E 67 D5 8D 6C 64 FD [18:23:58]GetLastDocTimeStamp 1730053006 [18:23:58]current date 1730053441 [18:23:58]FM_GetShiftState [18:23:58]SAM_PROTO_GetShiftState [18:23:58]wFMCommunicate request_size=4 [18:23:58]MH_SAM_APDU [18:23:58]CAPDU: 80 13 01 00 [18:23:58]Write to MH i2c: E2 08 00 54 35 80 13 01 00 00 00 00 00 06 [18:23:58]Write i2c OK [18:23:58]MH_I2C_Read... [18:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:58]Read from MH i2c: E2 [18:23:58]MH_I2C_Read... [18:23:58]Read from MH i2c: E2 0E 00 [18:23:58]MH_I2C_Read... [18:23:58]Read from MH i2c: E2 0E 00 54 35 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7E [18:23:58]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:23:58]wFMCommunicate OK [18:23:58]SAM_PROTO_GetShiftState done [18:23:58]FM_GetShiftState done [18:23:58]opened in 1729988959 [18:23:58]opened+sec_in_day 1730075359 [18:23:58]quantity*price = 60027 [18:23:58]sum+1 = 60029 [18:23:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.28 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 0.00 Безнал.: 600.28 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 236 27.10.2024 18:24 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145813 ФПД: 225650544059730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182401&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145813&fm=225650544059730&tin=02508201610067®Number=0000000000091683&sum=60028 [18:23:59]StoreToDocumentArchive [18:23:59]shift 545 fd 145813 [18:23:59]save to /storage/0545/doc_00145813 [18:23:59]save last doc name /storage/0545/doc_00145813 to /storage/kkm_last_doc_name [18:23:59]save OK [18:23:59]Clear old archive folders... [18:23:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:59]tlvbuf is 0041F700 [18:23:59]SAM_PROTO_ClearQueue [18:23:59]wFMCommunicate request_size=4 [18:23:59]MH_SAM_APDU [18:23:59]CAPDU: 80 09 00 00 [18:23:59]Write to MH i2c: E2 08 00 61 35 80 09 00 00 00 00 00 00 08 [18:24:00]Write i2c OK [18:24:00]MH_I2C_Read... [18:24:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:00]Read from MH i2c: E2 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 03 00 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 03 00 61 35 00 90 00 0A [18:24:00]RAPDU: 90 00 [18:24:00]wFMCommunicate OK [18:24:00]SAM_PROTO_ClearQueue done [18:24:00]KKMCreateOFDPacket [18:24:00]OFDProtocolAddRootSTLVToBuf [18:24:00]FM_MakeSignedData [18:24:00]FM_MakeSignedData [18:24:00]SAM_PROTO_SignData [18:24:00]wFMCommunicate request_size=4 [18:24:00]MH_SAM_APDU [18:24:00]CAPDU: 80 0D 01 02 [18:24:00]Write to MH i2c: E2 08 00 62 35 80 0D 01 02 00 00 00 00 10 [18:24:00]Write i2c OK [18:24:00]MH_I2C_Read... [18:24:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:00]Read from MH i2c: E2 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 03 00 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 03 00 62 35 00 90 00 0B [18:24:00]RAPDU: 90 00 [18:24:00]wFMCommunicate OK [18:24:00]wFMCommunicate request_size=255 [18:24:00]MH_SAM_APDU [18:24:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 41 85 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 95 39 02 00 35 04 06 00 CD [18:24:00]Write to MH i2c: E2 02 01 63 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 41 85 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 95 39 02 00 35 04 06 00 CD 00 00 2C [18:24:00]Write i2c OK [18:24:00]MH_I2C_Read... [18:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:00]Read from MH i2c: E2 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 03 00 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 03 00 63 35 00 90 00 0C [18:24:00]RAPDU: 90 00 [18:24:00]wFMCommunicate OK [18:24:00]wFMCommunicate request_size=10 [18:24:00]MH_SAM_APDU [18:24:00]CAPDU: 80 0D 02 02 05 3A 5C 85 A5 52 [18:24:00]Write to MH i2c: E2 0D 00 64 35 80 0D 02 02 05 00 3A 5C 85 A5 52 00 00 2F [18:24:00]Write i2c OK [18:24:00]MH_I2C_Read... [18:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:00]Read from MH i2c: E2 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 03 00 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 03 00 64 35 00 90 00 0D [18:24:00]RAPDU: 90 00 [18:24:00]wFMCommunicate OK [18:24:00]wFMCommunicate request_size=4 [18:24:00]MH_SAM_APDU [18:24:00]CAPDU: 80 0D 03 02 [18:24:00]Write to MH i2c: E2 08 00 65 35 80 0D 03 02 00 00 00 00 15 [18:24:00]Write i2c OK [18:24:00]MH_I2C_Read... [18:24:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:00]Read from MH i2c: E2 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 0B 00 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 0B 00 65 35 00 F3 83 4F D8 04 AF 3B B8 90 00 59 [18:24:00]RAPDU: F3 83 4F D8 04 AF 3B B8 90 00 [18:24:00]wFMCommunicate OK [18:24:00]SAM_PROTO_SignData done [18:24:00]FM_MakeSignedData done [18:24:00]CreateOFDProtocolMessage [18:24:00]wFMCommunicate request_size=4 [18:24:00]MH_SAM_APDU [18:24:00]CAPDU: 80 11 00 00 [18:24:00]Write to MH i2c: E2 08 00 66 35 80 11 00 00 00 00 00 00 15 [18:24:00]Write i2c OK [18:24:00]MH_I2C_Read... [18:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:00]Read from MH i2c: E2 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 17 00 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 17 00 66 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 68 [18:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:24:00]wFMCommunicate OK [18:24:00]CreateOFDProtocolMessage done [18:24:00]OFDSenderStorePacket 145813 [18:24:00]StoreOFDPacket docnum=145813 [18:24:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 2B F1 07 01 E1 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 41 85 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 95 39 02 00 35 04 06 00 CD 3A 5C 85 A5 52 F3 83 4F D8 04 AF 3B B8 [18:24:00]CheckFolder [18:24:00]dirname=/storage/ofd_packets [18:24:00]CheckFolder done [18:24:00]ProducePacketName [18:24:00]name=ofd_packets/00145813 [18:24:00]NVStorageSaveData ofd_packets/00145813 [18:24:00]File name is /storage/ofd_packets/00145813 [18:24:00]Write 301 bytes [18:24:00]NVStorageSaveData done [18:24:00]OFDSenderStorePacket done [18:24:00]KKMCreateOFDPacket done [18:24:00]NVStorageSaveData kkm_last_timestamp [18:24:00]File name is /storage/kkm_last_timestamp [18:24:00]Write 4 bytes [18:24:00]NVStorageSaveData done [18:24:00]ExternCall_PrintAddStr [18:24:00]wPrintStart [18:24:00]Write to MH i2c: 01 00 00 67 35 9C [18:24:00]Write i2c OK [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: 01 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: 01 07 00 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: 01 07 00 67 35 00 00 00 00 00 FF 0F B1 [18:24:00]RasterBufferAndPrint [18:24:00]line Счет N : (1)160570 [18:24:00]line ИНН: 02508201610067 [18:24:00]line Контрольно-Кассовый Чек [18:24:00]line ПРОДАЖА [18:24:00]line ТРК (МРК, ГНК) : 63 [18:24:00]line Товар: 2710124500 [18:24:00]line Аи-95-К-3 [18:24:00]line 8.090 * 74.20 [18:24:00]line = 600.28 [18:24:00]line НДС 12% НСП 1% [18:24:00]line > о реализуемом товаре [18:24:00]line ИТОГО: 600.28 [18:24:00]line НСП 1% : 5.31 [18:24:00]line НДС 12% : 63.75 [18:24:00]line Наличными: 0.00 [18:24:00]line Безнал.: 600.28 [18:24:00]line Место: АЗС № 126 "Партнер Нефть" [18:24:00]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:24:00]line СНО: Общий режим [18:24:00]line Чек 236 27.10.2024 18:24 [18:24:00]line Смена: 545 ФФД: 1.0 [18:24:00]line ЗНМ: 0300000085 [18:24:00]line РНМ: 0000000000091683 [18:24:00]line Версия ККМ: 001 [18:24:00]line Платежная система: Mbank [18:24:00]line ФМ: 0000000000871745 [18:24:00]line ФД: 145813 [18:24:00]line ФПД: 225650544059730 [18:24:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182401&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145813&fm=225650544059730&tin=02508201610067®Number=0000000000091683&sum=60028 [18:24:00]OFD Sender: Processing packet 145813 [packets to send 206, broken 205] [18:24:00]ProducePacketName [18:24:00]name=ofd_packets/00145813 [18:24:00]OFD Sender: To server: pG, [18:24:00]CommunicateWithHost lk.salyk.kg:30040 [18:24:00]ConnectInit lk.salyk.kg [18:24:00]written 0, free lines is 4095 [18:24:01]Connected sock=10 [18:24:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 2B F1 07 01 E1 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 41 85 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 95 39 02 00 35 04 06 00 CD 3A 5C 85 A5 52 F3 83 4F D8 04 AF 3B B8 [18:24:01]Write to MH i2c: 01 00 00 90 35 C5 [18:24:01]Write i2c OK [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: 01 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: 01 07 00 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: 01 07 00 90 35 00 00 00 00 00 D5 0C AD [18:24:01]RasterBufferAndPrint [18:24:01]line [18:24:01]line [18:24:01]line [18:24:01]line [18:24:01]line [18:24:01]written 0, free lines is 3290 [18:24:01]MH_Cut [18:24:01]Write to MH i2c: D1 01 00 97 35 01 9E [18:24:01]Write i2c OK [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: D1 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: D1 01 00 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: D1 01 00 97 35 00 9D [18:24:01]Write to MH i2c: 01 00 00 98 35 CD [18:24:01]Write i2c OK [18:24:01]MH_I2C_Read... [18:24:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 56 FB 47 00 F3 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 95 39 02 00 F4 03 04 00 6E 2A 1E 67 B6 04 01 00 00 22 29 66 5B 50 A5 95 B2 [18:24:01]CommunicateWithHost err = 0 [18:24:01]CheckOFDResponse [18:24:01]1017 (14) - 77093643461234 [18:24:01]1041 (16) - 0000000000871745 [18:24:01]1040 (4) - 145813 [18:24:01]1012 (4) - 27.10.2024 11:56 [18:24:01]1206 (1) - 0 [18:24:01]OFD Sender: Remove packet 145813 [18:24:01]ProducePacketName [18:24:01]name=ofd_packets/00145813 [18:24:01]NVStorageDeleteData [18:24:01]OFD Sender: No OFD packet to send [18:24:02]*** Cut start [18:24:02]*** Partial cut [18:24:02]*** CUTSNS_PIN = 1 [18:24:02]*** CUTSNS_PIN = 0 [18:24:02]*** Brake cut motor [18:24:02]Read from MH i2c: 01 [18:24:02]MH_I2C_Read... [18:24:02]*** Stop cut motor [18:24:02]*** Cut end [18:24:02]Read from MH i2c: 01 07 00 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: 01 07 00 98 35 00 00 00 00 00 FF 0F E2 [18:24:02]process_action close_receipt done [18:24:02]requested_data is exist [18:24:02]produce_requested_data [18:24:02]requested_item fm.sn is exist - process it [18:24:02]wFMCommunicate request_size=4 [18:24:02]MH_SAM_APDU [18:24:02]CAPDU: 80 11 00 00 [18:24:02]Write to MH i2c: E2 08 00 99 35 80 11 00 00 00 00 00 00 48 [18:24:02]Write i2c OK [18:24:02]MH_I2C_Read... [18:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:02]Read from MH i2c: E2 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 17 00 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 17 00 99 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9B [18:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:24:02]wFMCommunicate OK [18:24:02]requested_item fd.num is exist - process it [18:24:02]SAM_PROTO_GetFieldsCounters [18:24:02]wFMCommunicate request_size=4 [18:24:02]MH_SAM_APDU [18:24:02]CAPDU: 80 13 00 00 [18:24:02]Write to MH i2c: E2 08 00 9A 35 80 13 00 00 00 00 00 00 4B [18:24:02]Write i2c OK [18:24:02]MH_I2C_Read... [18:24:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:02]Read from MH i2c: E2 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 62 00 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 62 00 9A 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 95 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [18:24:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 95 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:02]wFMCommunicate OK [18:24:02]SAM_PROTO_GetFieldsCounters done [18:24:02]requested_item shift.num is exist - process it [18:24:02]requested_item shift.opened is exist - process it [18:24:02]req_shift_opened [18:24:02]FM_GetShiftState [18:24:02]SAM_PROTO_GetShiftState [18:24:02]wFMCommunicate request_size=4 [18:24:02]MH_SAM_APDU [18:24:02]CAPDU: 80 13 01 00 [18:24:02]Write to MH i2c: E2 08 00 9B 35 80 13 01 00 00 00 00 00 4D [18:24:02]Write i2c OK [18:24:02]MH_I2C_Read... [18:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:02]Read from MH i2c: E2 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 0E 00 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 0E 00 9B 35 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C5 [18:24:02]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:24:02]wFMCommunicate OK [18:24:02]SAM_PROTO_GetShiftState done [18:24:02]FM_GetShiftState done [18:24:02]req_shift_opened done [18:24:02]requested_item shift.open_date is exist - process it [18:24:02]req_shift_open_date [18:24:02]req_shift_open_date done [18:24:02]produce_requested_data done [18:24:02]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145813,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:24:02]process_action_free close_receipt [18:24:02]json_value_free [18:24:02]json_value_free done [18:24:02]process_json_proto returns [18:24:02]Send response to host [18:24:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145813,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:24:02]free response buf [18:24:02]execute_script done [18:24:02]execute_script returns [18:24:02]free content buf [18:24:02]Sock 9.Close socket [18:24:02]Sock 9.Thread stoped [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:45]accept exits with 7 [18:27:45]New connection [18:27:45]New thread 3066740068 created [18:27:45]Thread 3066596708 joined [18:27:45]Waiting for new connection... [18:27:45] Sock 7.Parse request [18:27:45]Sock 7.Check first char [18:27:45]Sock 7.First char is OK [18:27:45]request: POST /json_proto HTTP/1.0 [18:27:45]Method: POST [18:27:45]URL: /json_proto [18:27:45]Method is POST - this is cgi request [18:27:45]url: /json_proto [18:27:45]query_string will be loaded in cgi processing [18:27:45]execute_cgi json_proto POST (null) [18:27:45]execute_cgi path=json_proto method=POST [18:27:45]POST find Content-Length [18:27:45]Host: 172.17.40.195:8080 [18:27:45]Content-Length: 679 [18:27:45]Content-Type: application/json [18:27:45] [18:27:45]POST finish read [18:27:45]Found Content-Length = 679 [18:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:45]execute_script... [18:27: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)160571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:45]POST & json_proto [18:27:45]process_json_proto [18:27:45]json parsed OK: [18:27:45]protocol is kg_v1.0 [18:27:45]action value=close_receipt [18:27:45]process_action close_receipt [18:27:45]cmd_close_receipt [18:27:45]MH_GetDate [18:27:45]Write to MH i2c: F0 00 00 9C 35 C0 [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: F0 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: F0 09 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: F0 09 00 9C 35 00 24 86 1E 67 D5 8D 6C 64 2A [18:27:45]GetLastDocTimeStamp 1730053441 [18:27:45]current date 1730053668 [18:27:45]FM_GetShiftState [18:27:45]SAM_PROTO_GetShiftState [18:27:45]wFMCommunicate request_size=4 [18:27:45]MH_SAM_APDU [18:27:45]CAPDU: 80 13 01 00 [18:27:45]Write to MH i2c: E2 08 00 9D 35 80 13 01 00 00 00 00 00 4F [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:45]Read from MH i2c: E2 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 0E 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 0E 00 9D 35 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C7 [18:27:45]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:27:45]wFMCommunicate OK [18:27:45]SAM_PROTO_GetShiftState done [18:27:45]FM_GetShiftState done [18:27:45]opened in 1729988959 [18:27:45]opened+sec_in_day 1730075359 [18:27:45]quantity*price = 200025 [18:27:45]sum+1 = 200026 [18:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 237 27.10.2024 18:27 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145814 ФПД: 146192322242693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182748&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145814&fm=146192322242693&tin=02508201610067®Number=0000000000091683&sum=200000 [18:27:46]StoreToDocumentArchive [18:27:46]shift 545 fd 145814 [18:27:46]save to /storage/0545/doc_00145814 [18:27:46]save last doc name /storage/0545/doc_00145814 to /storage/kkm_last_doc_name [18:27:46]save OK [18:27:46]Clear old archive folders... [18:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:27:46]tlvbuf is 004112B0 [18:27:46]SAM_PROTO_ClearQueue [18:27:46]wFMCommunicate request_size=4 [18:27:46]MH_SAM_APDU [18:27:46]CAPDU: 80 09 00 00 [18:27:46]Write to MH i2c: E2 08 00 AA 35 80 09 00 00 00 00 00 00 51 [18:27:46]Write i2c OK [18:27:46]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 AA 35 00 90 00 53 [18:27:47]RAPDU: 90 00 [18:27:47]wFMCommunicate OK [18:27:47]SAM_PROTO_ClearQueue done [18:27:47]KKMCreateOFDPacket [18:27:47]OFDProtocolAddRootSTLVToBuf [18:27:47]FM_MakeSignedData [18:27:47]FM_MakeSignedData [18:27:47]SAM_PROTO_SignData [18:27:47]wFMCommunicate request_size=4 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 0D 01 02 [18:27:47]Write to MH i2c: E2 08 00 AB 35 80 0D 01 02 00 00 00 00 59 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 AB 35 00 90 00 54 [18:27:47]RAPDU: 90 00 [18:27:47]wFMCommunicate OK [18:27:47]wFMCommunicate request_size=255 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 24 86 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 96 39 02 00 35 04 06 00 84 F6 0D 6F [18:27:47]Write to MH i2c: E2 02 01 AC 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 24 86 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 96 39 02 00 35 04 06 00 84 F6 0D 6F 00 00 D1 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]OFD Sender: No OFD packet to send [18:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 AC 35 00 90 00 55 [18:27:47]RAPDU: 90 00 [18:27:47]wFMCommunicate OK [18:27:47]wFMCommunicate request_size=7 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 0D 02 02 02 A8 85 [18:27:47]Write to MH i2c: E2 0A 00 AD 35 80 0D 02 02 02 00 A8 85 00 00 8D [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 AD 35 00 90 00 56 [18:27:47]RAPDU: 90 00 [18:27:47]wFMCommunicate OK [18:27:47]wFMCommunicate request_size=4 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 0D 03 02 [18:27:47]Write to MH i2c: E2 08 00 AE 35 80 0D 03 02 00 00 00 00 5E [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 0B 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 0B 00 AE 35 00 3D C2 DB 8C DA 7E CA 85 90 00 6C [18:27:47]RAPDU: 3D C2 DB 8C DA 7E CA 85 90 00 [18:27:47]wFMCommunicate OK [18:27:47]SAM_PROTO_SignData done [18:27:47]FM_MakeSignedData done [18:27:47]CreateOFDProtocolMessage [18:27:47]wFMCommunicate request_size=4 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 11 00 00 [18:27:47]Write to MH i2c: E2 08 00 AF 35 80 11 00 00 00 00 00 00 5E [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 17 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 17 00 AF 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B1 [18:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:27:47]wFMCommunicate OK [18:27:47]CreateOFDProtocolMessage done [18:27:47]OFDSenderStorePacket 145814 [18:27:47]StoreOFDPacket docnum=145814 [18:27:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 10 3C 04 01 DE 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 24 86 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 96 39 02 00 35 04 06 00 84 F6 0D 6F A8 85 3D C2 DB 8C DA 7E CA 85 [18:27:47]CheckFolder [18:27:47]dirname=/storage/ofd_packets [18:27:47]CheckFolder done [18:27:47]ProducePacketName [18:27:47]name=ofd_packets/00145814 [18:27:47]NVStorageSaveData ofd_packets/00145814 [18:27:47]File name is /storage/ofd_packets/00145814 [18:27:47]Write 298 bytes [18:27:47]NVStorageSaveData done [18:27:47]OFDSenderStorePacket done [18:27:47]KKMCreateOFDPacket done [18:27:47]NVStorageSaveData kkm_last_timestamp [18:27:47]File name is /storage/kkm_last_timestamp [18:27:47]Write 4 bytes [18:27:47]NVStorageSaveData done [18:27:47]ExternCall_PrintAddStr [18:27:47]wPrintStart [18:27:47]Write to MH i2c: 01 00 00 B0 35 E5 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: 01 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: 01 07 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: 01 07 00 B0 35 00 00 00 00 00 FF 0F FA [18:27:47]RasterBufferAndPrint [18:27:47]line Счет N : (1)160571 [18:27:47]line ИНН: 02508201610067 [18:27:47]line Контрольно-Кассовый Чек [18:27:47]line ПРОДАЖА [18:27:47]line ТРК (МРК, ГНК) : 21 [18:27:47]line Товар: 2710194210 [18:27:47]line ДТ-К-2 [18:27:47]line 26.250 * 76.20 [18:27:47]line = 2000.25 [18:27:47]line НДС 12% НСП 1% [18:27:47]line > о реализуемом товаре [18:27:47]line ОКРУГЛЕНИЕ: -0.25 [18:27:47]line ИТОГО: 2000.00 [18:27:47]line Внесено: 2000.00 [18:27:47]line СДАЧА: 0.00 [18:27:47]line НСП 1% : 17.70 [18:27:47]line НДС 12% : 212.42 [18:27:47]line Наличными: 2000.00 [18:27:47]line Безнал.: 0.00 [18:27:47]line Место: АЗС № 126 "Партнер Нефть" [18:27:47]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:27:47]line СНО: Общий режим [18:27:47]line Чек 237 27.10.2024 18:27 [18:27:47]line Смена: 545 ФФД: 1.0 [18:27:47]line ЗНМ: 0300000085 [18:27:47]line РНМ: 0000000000091683 [18:27:47]line Версия ККМ: 001 [18:27:47]line ФМ: 0000000000871745 [18:27:47]line ФД: 145814 [18:27:47]line ФПД: 146192322242693 [18:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182748&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145814&fm=146192322242693&tin=02508201610067®Number=0000000000091683&sum=200000 [18:27:47]OFD Sender: Processing packet 145814 [packets to send 206, broken 205] [18:27:47]ProducePacketName [18:27:47]name=ofd_packets/00145814 [18:27:47]OFD Sender: To server: pG, [18:27:47]CommunicateWithHost lk.salyk.kg:30040 [18:27:47]ConnectInit lk.salyk.kg [18:27:47]written 0, free lines is 4095 [18:27:48]Connected sock=10 [18:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 10 3C 04 01 DE 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 24 86 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 96 39 02 00 35 04 06 00 84 F6 0D 6F A8 85 3D C2 DB 8C DA 7E CA 85 [18:27:48]Write to MH i2c: 01 00 00 DB 35 10 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: 01 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: 01 07 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: 01 07 00 DB 35 00 00 00 00 00 B3 0C D6 [18:27:48]RasterBufferAndPrint [18:27:48]line [18:27:48]line [18:27:48]line [18:27:48]line [18:27:48]line [18:27:48]written 0, free lines is 3256 [18:27:48]MH_Cut [18:27:48]Write to MH i2c: D1 01 00 E2 35 01 E9 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: D1 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: D1 01 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: D1 01 00 E2 35 00 E8 [18:27:48]Write to MH i2c: 01 00 00 E3 35 18 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 17 2A 47 00 60 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 31 37 34 35 10 04 04 00 96 39 02 00 F4 03 04 00 51 2B 1E 67 B6 04 01 00 00 12 71 00 C6 72 E1 D1 8B [18:27:48]CommunicateWithHost err = 0 [18:27:48]CheckOFDResponse [18:27:48]1017 (14) - 77093643461234 [18:27:48]1041 (16) - 0000000000871745 [18:27:48]1040 (4) - 145814 [18:27:48]1012 (4) - 27.10.2024 12:00 [18:27:48]1206 (1) - 0 [18:27:48]OFD Sender: Remove packet 145814 [18:27:48]ProducePacketName [18:27:48]name=ofd_packets/00145814 [18:27:48]NVStorageDeleteData [18:27:48]OFD Sender: No OFD packet to send [18:27:49]*** Cut start [18:27:49]*** Partial cut [18:27:49]*** CUTSNS_PIN = 1 [18:27:49]*** CUTSNS_PIN = 0 [18:27:49]*** Brake cut motor [18:27:49]Read from MH i2c: 01 [18:27:49]MH_I2C_Read... [18:27:49]*** Stop cut motor [18:27:49]*** Cut end [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 E3 35 00 00 00 00 00 FF 0F 2D [18:27:49]process_action close_receipt done [18:27:49]requested_data is exist [18:27:49]produce_requested_data [18:27:49]requested_item fm.sn is exist - process it [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 E4 35 80 11 00 00 00 00 00 00 93 [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 E4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E6 [18:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:27:49]wFMCommunicate OK [18:27:49]requested_item fd.num is exist - process it [18:27:49]SAM_PROTO_GetFieldsCounters [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 13 00 00 [18:27:49]Write to MH i2c: E2 08 00 E5 35 80 13 00 00 00 00 00 00 96 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 62 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 62 00 E5 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 96 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [18:27:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 96 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:49]wFMCommunicate OK [18:27:49]SAM_PROTO_GetFieldsCounters done [18:27:49]requested_item shift.num is exist - process it [18:27:49]requested_item shift.opened is exist - process it [18:27:49]req_shift_opened [18:27:49]FM_GetShiftState [18:27:49]SAM_PROTO_GetShiftState [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 13 01 00 [18:27:49]Write to MH i2c: E2 08 00 E6 35 80 13 01 00 00 00 00 00 98 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 0E 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 0E 00 E6 35 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 10 [18:27:49]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:27:49]wFMCommunicate OK [18:27:49]SAM_PROTO_GetShiftState done [18:27:49]FM_GetShiftState done [18:27:49]req_shift_opened done [18:27:49]requested_item shift.open_date is exist - process it [18:27:49]req_shift_open_date [18:27:49]req_shift_open_date done [18:27:49]produce_requested_data done [18:27:49]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145814,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:27:49]process_action_free close_receipt [18:27:49]json_value_free [18:27:49]json_value_free done [18:27:49]process_json_proto returns [18:27:49]Send response to host [18:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145814,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:27:49]free response buf [18:27:49]execute_script done [18:27:49]execute_script returns [18:27:49]free content buf [18:27:49]Sock 7.Close socket [18:27:49]Sock 7.Thread stoped [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:17]int [18:32:17]Write to MH i2c: 01 00 00 E7 35 1C [18:32:17]*** FLAG_PRN_KEY set [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 E7 35 00 08 00 00 00 FF 0F 39 [18:32:17]state=0 [18:32:17]Key pressed [18:32:17]Feed [18:32:17]Write to MH i2c: D8 00 00 E8 35 F4 [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: D8 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: D8 01 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: D8 01 00 E8 35 00 F5 [18:32:17]int [18:32:17]Write to MH i2c: 01 00 00 E9 35 1E [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 E9 35 00 48 00 00 00 3C 00 A9 [18:32:17]state=2 [18:32:17]Key pressed [18:32:17]int [18:32:17]Write to MH i2c: 01 00 00 EA 35 1F [18:32:17]*** FLAG_PRN_KEY reset [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 EA 35 00 00 00 00 00 F7 0F 2C [18:32:17]state=2 [18:32:17]Stop feed [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:27]accept exits with 9 [18:33:27]New connection [18:33:27]New thread 3066596708 created [18:33:27]Thread 3066740068 joined [18:33:27]Waiting for new connection... [18:33:27] Sock 9.Parse request [18:33:27]Sock 9.Check first char [18:33:27]Sock 9.First char is OK [18:33:27]request: POST /json_proto HTTP/1.0 [18:33:27]Method: POST [18:33:27]URL: /json_proto [18:33:27]Method is POST - this is cgi request [18:33:27]url: /json_proto [18:33:27]query_string will be loaded in cgi processing [18:33:27]execute_cgi json_proto POST (null) [18:33:27]execute_cgi path=json_proto method=POST [18:33:27]POST find Content-Length [18:33:27]Host: 172.17.40.195:8080 [18:33:27]Content-Length: 682 [18:33:27]Content-Type: application/json [18:33:27] [18:33:27]POST finish read [18:33:27]Found Content-Length = 682 [18:33:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:27]execute_script... [18:33:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:27]POST & json_proto [18:33:27]process_json_proto [18:33:27]json parsed OK: [18:33:27]protocol is kg_v1.0 [18:33:27]action value=close_receipt [18:33:27]process_action close_receipt [18:33:27]cmd_close_receipt [18:33:27]MH_GetDate [18:33:27]Write to MH i2c: F0 00 00 EB 35 0F [18:33:27]Write i2c OK [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: F0 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: F0 09 00 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: F0 09 00 EB 35 00 7A 87 1E 67 D5 8D 6C 64 D0 [18:33:27]GetLastDocTimeStamp 1730053668 [18:33:27]current date 1730054010 [18:33:27]FM_GetShiftState [18:33:27]SAM_PROTO_GetShiftState [18:33:27]wFMCommunicate request_size=4 [18:33:27]MH_SAM_APDU [18:33:27]CAPDU: 80 13 01 00 [18:33:27]Write to MH i2c: E2 08 00 EC 35 80 13 01 00 00 00 00 00 9E [18:33:27]Write i2c OK [18:33:27]MH_I2C_Read... [18:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:27]Read from MH i2c: E2 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: E2 0E 00 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: E2 0E 00 EC 35 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 16 [18:33:27]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:33:27]wFMCommunicate OK [18:33:27]SAM_PROTO_GetShiftState done [18:33:27]FM_GetShiftState done [18:33:27]opened in 1729988959 [18:33:27]opened+sec_in_day 1730075359 [18:33:27]quantity*price = 100015 [18:33:27]sum+1 = 100017 [18:33:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 238 27.10.2024 18:33 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145815 ФПД: 163338211742452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183330&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145815&fm=163338211742452&tin=02508201610067®Number=0000000000091683&sum=100000 [18:33:28]StoreToDocumentArchive [18:33:28]shift 545 fd 145815 [18:33:28]save to /storage/0545/doc_00145815 [18:33:28]save last doc name /storage/0545/doc_00145815 to /storage/kkm_last_doc_name [18:33:28]save OK [18:33:28]Clear old archive folders... [18:33:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:28]tlvbuf is 005577C0 [18:33:28]SAM_PROTO_ClearQueue [18:33:28]wFMCommunicate request_size=4 [18:33:28]MH_SAM_APDU [18:33:28]CAPDU: 80 09 00 00 [18:33:28]Write to MH i2c: E2 08 00 F9 35 80 09 00 00 00 00 00 00 A0 [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:28]Read from MH i2c: E2 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 03 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 03 00 F9 35 00 90 00 A2 [18:33:28]RAPDU: 90 00 [18:33:28]wFMCommunicate OK [18:33:28]SAM_PROTO_ClearQueue done [18:33:28]KKMCreateOFDPacket [18:33:28]OFDProtocolAddRootSTLVToBuf [18:33:28]FM_MakeSignedData [18:33:28]FM_MakeSignedData [18:33:28]SAM_PROTO_SignData [18:33:28]wFMCommunicate request_size=4 [18:33:28]MH_SAM_APDU [18:33:28]CAPDU: 80 0D 01 02 [18:33:28]Write to MH i2c: E2 08 00 FA 35 80 0D 01 02 00 00 00 00 A8 [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:28]Read from MH i2c: E2 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 03 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 03 00 FA 35 00 90 00 A3 [18:33:28]RAPDU: 90 00 [18:33:28]wFMCommunicate OK [18:33:28]wFMCommunicate request_size=255 [18:33:28]MH_SAM_APDU [18:33:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 7A 87 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 97 39 02 00 35 04 06 00 94 [18:33:28]Write to MH i2c: E2 02 01 FB 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 7A 87 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 97 39 02 00 35 04 06 00 94 00 00 2D [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:28]Read from MH i2c: E2 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 03 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 03 00 FB 35 00 90 00 A4 [18:33:28]RAPDU: 90 00 [18:33:28]wFMCommunicate OK [18:33:28]wFMCommunicate request_size=10 [18:33:28]MH_SAM_APDU [18:33:28]CAPDU: 80 0D 02 02 05 8E 24 16 D2 F4 [18:33:28]Write to MH i2c: E2 0D 00 FC 35 80 0D 02 02 05 00 8E 24 16 D2 F4 00 00 43 [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:28]Read from MH i2c: E2 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 03 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 03 00 FC 35 00 90 00 A5 [18:33:28]RAPDU: 90 00 [18:33:28]wFMCommunicate OK [18:33:28]wFMCommunicate request_size=4 [18:33:28]MH_SAM_APDU [18:33:28]CAPDU: 80 0D 03 02 [18:33:28]Write to MH i2c: E2 08 00 FD 35 80 0D 03 02 00 00 00 00 AD [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:28]Read from MH i2c: E2 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 0B 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 0B 00 FD 35 00 CC 55 BE 5E 7A 74 81 BF 90 00 19 [18:33:28]RAPDU: CC 55 BE 5E 7A 74 81 BF 90 00 [18:33:28]wFMCommunicate OK [18:33:28]SAM_PROTO_SignData done [18:33:28]FM_MakeSignedData done [18:33:28]CreateOFDProtocolMessage [18:33:28]wFMCommunicate request_size=4 [18:33:28]MH_SAM_APDU [18:33:28]CAPDU: 80 11 00 00 [18:33:28]Write to MH i2c: E2 08 00 FE 35 80 11 00 00 00 00 00 00 AD [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:28]Read from MH i2c: E2 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 17 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 17 00 FE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 00 [18:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:33:28]wFMCommunicate OK [18:33:28]CreateOFDProtocolMessage done [18:33:28]OFDSenderStorePacket 145815 [18:33:28]StoreOFDPacket docnum=145815 [18:33:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 53 10 07 01 24 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 7A 87 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 97 39 02 00 35 04 06 00 94 8E 24 16 D2 F4 CC 55 BE 5E 7A 74 81 BF [18:33:28]CheckFolder [18:33:28]dirname=/storage/ofd_packets [18:33:28]CheckFolder done [18:33:28]ProducePacketName [18:33:28]name=ofd_packets/00145815 [18:33:28]NVStorageSaveData ofd_packets/00145815 [18:33:28]File name is /storage/ofd_packets/00145815 [18:33:28]Write 301 bytes [18:33:28]NVStorageSaveData done [18:33:28]OFDSenderStorePacket done [18:33:28]KKMCreateOFDPacket done [18:33:28]NVStorageSaveData kkm_last_timestamp [18:33:28]File name is /storage/kkm_last_timestamp [18:33:28]Write 4 bytes [18:33:28]NVStorageSaveData done [18:33:28]ExternCall_PrintAddStr [18:33:28]wPrintStart [18:33:28]Write to MH i2c: 01 00 00 FF 35 34 [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: 01 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: 01 07 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: 01 07 00 FF 35 00 00 00 00 00 FF 0F 49 [18:33:28]RasterBufferAndPrint [18:33:28]line Счет N : (1)160572 [18:33:28]line ИНН: 02508201610067 [18:33:28]line Контрольно-Кассовый Чек [18:33:28]line ПРОДАЖА [18:33:28]line ТРК (МРК, ГНК) : 52 [18:33:28]line Товар: 2710124130 [18:33:28]line Аи-92-К-2 [18:33:28]line 14.950 * 66.90 [18:33:28]line = 1000.16 [18:33:28]line НДС 12% НСП 1% [18:33:28]line > о реализуемом товаре [18:33:28]line ОКРУГЛЕНИЕ: -0.16 [18:33:28]line ИТОГО: 1000.00 [18:33:28]line Внесено: 1000.00 [18:33:28]line СДАЧА: 0.00 [18:33:28]line НСП 1% : 8.85 [18:33:28]line НДС 12% : 106.21 [18:33:28]line Наличными: 1000.00 [18:33:28]line Безнал.: 0.00 [18:33:28]line Место: АЗС № 126 "Партнер Нефть" [18:33:28]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:33:28]line СНО: Общий режим [18:33:28]line Чек 238 27.10.2024 18:33 [18:33:28]line Смена: 545 ФФД: 1.0 [18:33:28]line ЗНМ: 0300000085 [18:33:28]line РНМ: 0000000000091683 [18:33:28]line Версия ККМ: 001 [18:33:28]line ФМ: 0000000000871745 [18:33:28]line ФД: 145815 [18:33:28]line ФПД: 163338211742452 [18:33:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183330&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145815&fm=163338211742452&tin=02508201610067®Number=0000000000091683&sum=100000 [18:33:29]OFD Sender: Processing packet 145815 [packets to send 206, broken 205] [18:33:29]ProducePacketName [18:33:29]name=ofd_packets/00145815 [18:33:29]OFD Sender: To server: pG, [18:33:29]CommunicateWithHost lk.salyk.kg:30040 [18:33:29]ConnectInit lk.salyk.kg [18:33:29]written 0, free lines is 4095 [18:33:29]Connected sock=10 [18:33:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 53 10 07 01 24 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 7A 87 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 97 39 02 00 35 04 06 00 94 8E 24 16 D2 F4 CC 55 BE 5E 7A 74 81 BF [18:33:29]Write to MH i2c: 01 00 00 2A 36 60 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: 01 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: 01 07 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: 01 07 00 2A 36 00 00 00 00 00 B3 0C 26 [18:33:29]RasterBufferAndPrint [18:33:29]line [18:33:29]line [18:33:29]line [18:33:29]line [18:33:29]line [18:33:29]written 0, free lines is 3257 [18:33:29]MH_Cut [18:33:29]Write to MH i2c: D1 01 00 31 36 01 39 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: D1 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: D1 01 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: D1 01 00 31 36 00 38 [18:33:29]Write to MH i2c: 01 00 00 32 36 68 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D9 56 47 00 CF A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 97 39 02 00 F4 03 04 00 A6 2C 1E 67 B6 04 01 00 00 E2 5B F0 49 EF 91 41 1D [18:33:29]CommunicateWithHost err = 0 [18:33:29]CheckOFDResponse [18:33:29]1017 (14) - 77093643461234 [18:33:29]1041 (16) - 0000000000871745 [18:33:29]1040 (4) - 145815 [18:33:29]1012 (4) - 27.10.2024 12:05 [18:33:29]1206 (1) - 0 [18:33:29]OFD Sender: Remove packet 145815 [18:33:29]ProducePacketName [18:33:29]name=ofd_packets/00145815 [18:33:29]NVStorageDeleteData [18:33:30]OFD Sender: No OFD packet to send [18:33:30]*** Cut start [18:33:30]*** Partial cut [18:33:30]*** CUTSNS_PIN = 1 [18:33:30]*** CUTSNS_PIN = 0 [18:33:30]*** Brake cut motor [18:33:31]Read from MH i2c: 01 [18:33:31]MH_I2C_Read... [18:33:31]*** Stop cut motor [18:33:31]*** Cut end [18:33:31]Read from MH i2c: 01 07 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: 01 07 00 32 36 00 00 00 00 00 FF 0F 7D [18:33:31]process_action close_receipt done [18:33:31]requested_data is exist [18:33:31]produce_requested_data [18:33:31]requested_item fm.sn is exist - process it [18:33:31]wFMCommunicate request_size=4 [18:33:31]MH_SAM_APDU [18:33:31]CAPDU: 80 11 00 00 [18:33:31]Write to MH i2c: E2 08 00 33 36 80 11 00 00 00 00 00 00 E3 [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 17 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 17 00 33 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 36 [18:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:33:31]wFMCommunicate OK [18:33:31]requested_item fd.num is exist - process it [18:33:31]SAM_PROTO_GetFieldsCounters [18:33:31]wFMCommunicate request_size=4 [18:33:31]MH_SAM_APDU [18:33:31]CAPDU: 80 13 00 00 [18:33:31]Write to MH i2c: E2 08 00 34 36 80 13 00 00 00 00 00 00 E6 [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 62 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 62 00 34 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 97 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [18:33:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 97 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:31]wFMCommunicate OK [18:33:31]SAM_PROTO_GetFieldsCounters done [18:33:31]requested_item shift.num is exist - process it [18:33:31]requested_item shift.opened is exist - process it [18:33:31]req_shift_opened [18:33:31]FM_GetShiftState [18:33:31]SAM_PROTO_GetShiftState [18:33:31]wFMCommunicate request_size=4 [18:33:31]MH_SAM_APDU [18:33:31]CAPDU: 80 13 01 00 [18:33:31]Write to MH i2c: E2 08 00 35 36 80 13 01 00 00 00 00 00 E8 [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 0E 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 0E 00 35 36 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 60 [18:33:31]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:33:31]wFMCommunicate OK [18:33:31]SAM_PROTO_GetShiftState done [18:33:31]FM_GetShiftState done [18:33:31]req_shift_opened done [18:33:31]requested_item shift.open_date is exist - process it [18:33:31]req_shift_open_date [18:33:31]req_shift_open_date done [18:33:31]produce_requested_data done [18:33:31]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145815,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:33:31]process_action_free close_receipt [18:33:31]json_value_free [18:33:31]json_value_free done [18:33:31]process_json_proto returns [18:33:31]Send response to host [18:33:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145815,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:33:31]free response buf [18:33:31]execute_script done [18:33:31]execute_script returns [18:33:31]free content buf [18:33:31]Sock 9.Close socket [18:33:31]Sock 9.Thread stoped [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:09]accept exits with 7 [18:45:09]New connection [18:45:09]New thread 3066740068 created [18:45:09]Thread 3066596708 joined [18:45:09]Waiting for new connection... [18:45:09] Sock 7.Parse request [18:45:09]Sock 7.Check first char [18:45:09]Sock 7.First char is OK [18:45:09]request: POST /json_proto HTTP/1.0 [18:45:09]Method: POST [18:45:09]URL: /json_proto [18:45:09]Method is POST - this is cgi request [18:45:09]url: /json_proto [18:45:09]query_string will be loaded in cgi processing [18:45:09]execute_cgi json_proto POST (null) [18:45:09]execute_cgi path=json_proto method=POST [18:45:09]POST find Content-Length [18:45:09]Host: 172.17.40.195:8080 [18:45:09]Content-Length: 674 [18:45:09]Content-Type: application/json [18:45:09] [18:45:09]POST finish read [18:45:09]Found Content-Length = 674 [18:45:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:09]execute_script... [18:45: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)160573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:09]POST & json_proto [18:45:09]process_json_proto [18:45:09]json parsed OK: [18:45:09]protocol is kg_v1.0 [18:45:09]action value=close_receipt [18:45:09]process_action close_receipt [18:45:09]cmd_close_receipt [18:45:09]MH_GetDate [18:45:09]Write to MH i2c: F0 00 00 36 36 5B [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: F0 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: F0 09 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: F0 09 00 36 36 00 38 8A 1E 67 D5 8D 6C 64 DD [18:45:09]GetLastDocTimeStamp 1730054010 [18:45:09]current date 1730054712 [18:45:09]FM_GetShiftState [18:45:09]SAM_PROTO_GetShiftState [18:45:09]wFMCommunicate request_size=4 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 13 01 00 [18:45:09]Write to MH i2c: E2 08 00 37 36 80 13 01 00 00 00 00 00 EA [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 0E 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 0E 00 37 36 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 62 [18:45:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:45:09]wFMCommunicate OK [18:45:09]SAM_PROTO_GetShiftState done [18:45:09]FM_GetShiftState done [18:45:09]opened in 1729988959 [18:45:09]opened+sec_in_day 1730075359 [18:45:09]quantity*price = 50063 [18:45:09]sum+1 = 50064 [18:45:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 239 27.10.2024 18:45 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145816 ФПД: 82493194979327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184512&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145816&fm=82493194979327&tin=02508201610067®Number=0000000000091683&sum=50000 [18:45:10]StoreToDocumentArchive [18:45:10]shift 545 fd 145816 [18:45:10]save to /storage/0545/doc_00145816 [18:45:10]save last doc name /storage/0545/doc_00145816 to /storage/kkm_last_doc_name [18:45:10]save OK [18:45:10]Clear old archive folders... [18:45:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:45:10]tlvbuf is 00419960 [18:45:10]SAM_PROTO_ClearQueue [18:45:10]wFMCommunicate request_size=4 [18:45:10]MH_SAM_APDU [18:45:10]CAPDU: 80 09 00 00 [18:45:10]Write to MH i2c: E2 08 00 44 36 80 09 00 00 00 00 00 00 EC [18:45:10]Write i2c OK [18:45:10]MH_I2C_Read... [18:45:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:10]Read from MH i2c: E2 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 03 00 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 03 00 44 36 00 90 00 EE [18:45:10]RAPDU: 90 00 [18:45:10]wFMCommunicate OK [18:45:10]SAM_PROTO_ClearQueue done [18:45:10]KKMCreateOFDPacket [18:45:10]OFDProtocolAddRootSTLVToBuf [18:45:10]FM_MakeSignedData [18:45:10]FM_MakeSignedData [18:45:10]SAM_PROTO_SignData [18:45:10]wFMCommunicate request_size=4 [18:45:10]MH_SAM_APDU [18:45:10]CAPDU: 80 0D 01 02 [18:45:10]Write to MH i2c: E2 08 00 45 36 80 0D 01 02 00 00 00 00 F4 [18:45:10]Write i2c OK [18:45:10]MH_I2C_Read... [18:45:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:10]Read from MH i2c: E2 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 03 00 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 03 00 45 36 00 90 00 EF [18:45:10]RAPDU: 90 00 [18:45:10]wFMCommunicate OK [18:45:10]wFMCommunicate request_size=255 [18:45:10]MH_SAM_APDU [18:45:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 38 8A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 98 39 02 00 35 04 06 00 4B 06 F1 95 [18:45:10]Write to MH i2c: E2 02 01 46 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 38 8A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 98 39 02 00 35 04 06 00 4B 06 F1 95 00 00 03 [18:45:10]Write i2c OK [18:45:10]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 46 36 00 90 00 F0 [18:45:11]RAPDU: 90 00 [18:45:11]wFMCommunicate OK [18:45:11]wFMCommunicate request_size=7 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 0D 02 02 02 47 FF [18:45:11]Write to MH i2c: E2 0A 00 47 36 80 0D 02 02 02 00 47 FF 00 00 41 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 47 36 00 90 00 F1 [18:45:11]RAPDU: 90 00 [18:45:11]wFMCommunicate OK [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 0D 03 02 [18:45:11]Write to MH i2c: E2 08 00 48 36 80 0D 03 02 00 00 00 00 F9 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0B 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0B 00 48 36 00 7E B2 1E ED FA 63 A8 84 90 00 BE [18:45:11]RAPDU: 7E B2 1E ED FA 63 A8 84 90 00 [18:45:11]wFMCommunicate OK [18:45:11]SAM_PROTO_SignData done [18:45:11]FM_MakeSignedData done [18:45:11]CreateOFDProtocolMessage [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 49 36 80 11 00 00 00 00 00 00 F9 [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 49 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 4C [18:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:45:11]wFMCommunicate OK [18:45:11]CreateOFDProtocolMessage done [18:45:11]OFDSenderStorePacket 145816 [18:45:11]StoreOFDPacket docnum=145816 [18:45:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 1E 31 04 01 05 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 38 8A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 98 39 02 00 35 04 06 00 4B 06 F1 95 47 FF 7E B2 1E ED FA 63 A8 84 [18:45:11]CheckFolder [18:45:11]dirname=/storage/ofd_packets [18:45:11]CheckFolder done [18:45:11]ProducePacketName [18:45:11]name=ofd_packets/00145816 [18:45:11]NVStorageSaveData ofd_packets/00145816 [18:45:11]File name is /storage/ofd_packets/00145816 [18:45:11]Write 298 bytes [18:45:11]NVStorageSaveData done [18:45:11]OFDSenderStorePacket done [18:45:11]KKMCreateOFDPacket done [18:45:11]NVStorageSaveData kkm_last_timestamp [18:45:11]File name is /storage/kkm_last_timestamp [18:45:11]Write 4 bytes [18:45:11]NVStorageSaveData done [18:45:11]ExternCall_PrintAddStr [18:45:11]wPrintStart [18:45:11]Write to MH i2c: 01 00 00 4A 36 80 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: 01 [18:45:11]MH_I2C_Read... [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 4A 36 00 00 00 00 00 FF 0F 95 [18:45:11]RasterBufferAndPrint [18:45:11]line Счет N : (1)160573 [18:45:11]line ИНН: 02508201610067 [18:45:11]line Контрольно-Кассовый Чек [18:45:11]line ПРОДАЖА [18:45:11]line ТРК (МРК, ГНК) : 11 [18:45:11]line Товар: 2710194210 [18:45:11]line ДТ-К-2 [18:45:11]line 6.570 * 76.20 [18:45:11]line = 500.63 [18:45:11]line НДС 12% НСП 1% [18:45:11]line > о реализуемом товаре [18:45:11]line ОКРУГЛЕНИЕ: -0.63 [18:45:11]line ИТОГО: 500.00 [18:45:11]line Внесено: 500.00 [18:45:11]line СДАЧА: 0.00 [18:45:11]line НСП 1% : 4.43 [18:45:11]line НДС 12% : 53.16 [18:45:11]line Наличными: 500.00 [18:45:11]line Безнал.: 0.00 [18:45:11]line Место: АЗС № 126 "Партнер Нефть" [18:45:11]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:45:11]line СНО: Общий режим [18:45:11]line Чек 239 27.10.2024 18:45 [18:45:11]line Смена: 545 ФФД: 1.0 [18:45:11]line ЗНМ: 0300000085 [18:45:11]line РНМ: 0000000000091683 [18:45:11]line Версия ККМ: 001 [18:45:11]line ФМ: 0000000000871745 [18:45:11]line ФД: 145816 [18:45:11]line ФПД: 82493194979327 [18:45:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184512&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145816&fm=82493194979327&tin=02508201610067®Number=0000000000091683&sum=50000 [18:45:11]OFD Sender: Processing packet 145816 [packets to send 206, broken 205] [18:45:11]ProducePacketName [18:45:11]name=ofd_packets/00145816 [18:45:11]OFD Sender: To server: pG, [18:45:11]CommunicateWithHost lk.salyk.kg:30040 [18:45:11]ConnectInit lk.salyk.kg [18:45:11]written 0, free lines is 4095 [18:45:11]Connected sock=10 [18:45:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 1E 31 04 01 05 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 38 8A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 98 39 02 00 35 04 06 00 4B 06 F1 95 47 FF 7E B2 1E ED FA 63 A8 84 [18:45:12]Write to MH i2c: 01 00 00 75 36 AB [18:45:12]Write i2c OK [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: 01 [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: 01 07 00 [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: 01 07 00 75 36 00 00 00 00 00 97 0C 55 [18:45:12]RasterBufferAndPrint [18:45:12]line [18:45:12]line [18:45:12]line [18:45:12]line [18:45:12]line [18:45:12]written 0, free lines is 3230 [18:45:12]MH_Cut [18:45:12]Write to MH i2c: D1 01 00 7C 36 01 84 [18:45:12]Write i2c OK [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: D1 [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: D1 01 00 [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: D1 01 00 7C 36 00 83 [18:45:12]Write to MH i2c: 01 00 00 7D 36 B3 [18:45:12]Write i2c OK [18:45:12]MH_I2C_Read... [18:45:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A6 B6 47 00 0E 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 98 39 02 00 F4 03 04 00 65 2F 1E 67 B6 04 01 00 00 94 0F E0 96 D3 A7 62 70 [18:45:12]CommunicateWithHost err = 0 [18:45:12]CheckOFDResponse [18:45:12]1017 (14) - 77093643461234 [18:45:12]1041 (16) - 0000000000871745 [18:45:12]1040 (4) - 145816 [18:45:12]1012 (4) - 27.10.2024 12:17 [18:45:12]1206 (1) - 0 [18:45:12]OFD Sender: Remove packet 145816 [18:45:12]ProducePacketName [18:45:12]name=ofd_packets/00145816 [18:45:12]NVStorageDeleteData [18:45:12]OFD Sender: No OFD packet to send [18:45:12]*** Cut start [18:45:12]*** Partial cut [18:45:12]*** CUTSNS_PIN = 1 [18:45:12]*** CUTSNS_PIN = 0 [18:45:13]*** Brake cut motor [18:45:13]Read from MH i2c: 01 [18:45:13]MH_I2C_Read... [18:45:13]*** Stop cut motor [18:45:13]*** Cut end [18:45:13]Read from MH i2c: 01 07 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: 01 07 00 7D 36 00 00 00 00 00 FF 0F C8 [18:45:13]process_action close_receipt done [18:45:13]requested_data is exist [18:45:13]produce_requested_data [18:45:13]requested_item fm.sn is exist - process it [18:45:13]wFMCommunicate request_size=4 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 11 00 00 [18:45:13]Write to MH i2c: E2 08 00 7E 36 80 11 00 00 00 00 00 00 2E [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 17 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 17 00 7E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 81 [18:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:45:13]wFMCommunicate OK [18:45:13]requested_item fd.num is exist - process it [18:45:13]SAM_PROTO_GetFieldsCounters [18:45:13]wFMCommunicate request_size=4 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 13 00 00 [18:45:13]Write to MH i2c: E2 08 00 7F 36 80 13 00 00 00 00 00 00 31 [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 62 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 62 00 7F 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 98 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [18:45:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 98 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:13]wFMCommunicate OK [18:45:13]SAM_PROTO_GetFieldsCounters done [18:45:13]requested_item shift.num is exist - process it [18:45:13]requested_item shift.opened is exist - process it [18:45:13]req_shift_opened [18:45:13]FM_GetShiftState [18:45:13]SAM_PROTO_GetShiftState [18:45:13]wFMCommunicate request_size=4 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 13 01 00 [18:45:13]Write to MH i2c: E2 08 00 80 36 80 13 01 00 00 00 00 00 33 [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 0E 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 0E 00 80 36 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AB [18:45:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:45:13]wFMCommunicate OK [18:45:13]SAM_PROTO_GetShiftState done [18:45:13]FM_GetShiftState done [18:45:13]req_shift_opened done [18:45:13]requested_item shift.open_date is exist - process it [18:45:13]req_shift_open_date [18:45:13]req_shift_open_date done [18:45:13]produce_requested_data done [18:45:13]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145816,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:45:13]process_action_free close_receipt [18:45:13]json_value_free [18:45:13]json_value_free done [18:45:13]process_json_proto returns [18:45:13]Send response to host [18:45:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145816,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:45:13]free response buf [18:45:13]execute_script done [18:45:13]execute_script returns [18:45:13]free content buf [18:45:13]Sock 7.Close socket [18:45:13]Sock 7.Thread stoped [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]accept exits with 9 [18:46:57]New connection [18:46:57]New thread 3066596708 created [18:46:57]Thread 3066740068 joined [18:46:57]Waiting for new connection... [18:46:57] Sock 9.Parse request [18:46:57]Sock 9.Check first char [18:46:57]Sock 9.First char is OK [18:46:57]request: POST /json_proto HTTP/1.0 [18:46:57]Method: POST [18:46:57]URL: /json_proto [18:46:57]Method is POST - this is cgi request [18:46:57]url: /json_proto [18:46:57]query_string will be loaded in cgi processing [18:46:57]execute_cgi json_proto POST (null) [18:46:57]execute_cgi path=json_proto method=POST [18:46:57]POST find Content-Length [18:46:57]Host: 172.17.40.195:8080 [18:46:57]Content-Length: 682 [18:46:57]Content-Type: application/json [18:46:57] [18:46:57]POST finish read [18:46:57]Found Content-Length = 682 [18:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:57]execute_script... [18:46: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)160574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:57]POST & json_proto [18:46:57]process_json_proto [18:46:57]json parsed OK: [18:46:57]protocol is kg_v1.0 [18:46:57]action value=close_receipt [18:46:57]process_action close_receipt [18:46:57]cmd_close_receipt [18:46:57]MH_GetDate [18:46:57]Write to MH i2c: F0 00 00 81 36 A6 [18:46:57]Write i2c OK [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: F0 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: F0 09 00 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: F0 09 00 81 36 00 A4 8A 1E 67 D5 8D 6C 64 94 [18:46:57]GetLastDocTimeStamp 1730054712 [18:46:57]current date 1730054820 [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 82 36 80 13 01 00 00 00 00 00 35 [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 82 36 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AD [18:46:57]RAPDU: 09 00 01 5F 89 1D 67 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]opened in 1729988959 [18:46:57]opened+sec_in_day 1730075359 [18:46:57]quantity*price = 120018 [18:46:57]sum+1 = 120020 [18:46:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 240 27.10.2024 18:47 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145817 ФПД: 2273515030489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184700&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145817&fm=2273515030489&tin=02508201610067®Number=0000000000091683&sum=120000 [18:46:58]StoreToDocumentArchive [18:46:58]shift 545 fd 145817 [18:46:58]save to /storage/0545/doc_00145817 [18:46:58]save last doc name /storage/0545/doc_00145817 to /storage/kkm_last_doc_name [18:46:58]save OK [18:46:58]Clear old archive folders... [18:46:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:58]tlvbuf is 004195E0 [18:46:58]SAM_PROTO_ClearQueue [18:46:58]wFMCommunicate request_size=4 [18:46:58]MH_SAM_APDU [18:46:58]CAPDU: 80 09 00 00 [18:46:58]Write to MH i2c: E2 08 00 8F 36 80 09 00 00 00 00 00 00 37 [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 03 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 03 00 8F 36 00 90 00 39 [18:46:58]RAPDU: 90 00 [18:46:58]wFMCommunicate OK [18:46:58]SAM_PROTO_ClearQueue done [18:46:58]KKMCreateOFDPacket [18:46:58]OFDProtocolAddRootSTLVToBuf [18:46:58]FM_MakeSignedData [18:46:58]FM_MakeSignedData [18:46:58]SAM_PROTO_SignData [18:46:58]wFMCommunicate request_size=4 [18:46:58]MH_SAM_APDU [18:46:58]CAPDU: 80 0D 01 02 [18:46:58]Write to MH i2c: E2 08 00 90 36 80 0D 01 02 00 00 00 00 3F [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 03 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 03 00 90 36 00 90 00 3A [18:46:58]RAPDU: 90 00 [18:46:58]wFMCommunicate OK [18:46:58]wFMCommunicate request_size=255 [18:46:58]MH_SAM_APDU [18:46: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 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 A4 8A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 99 39 02 00 35 04 06 00 02 [18:46:58]Write to MH i2c: E2 02 01 91 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 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 A4 8A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 99 39 02 00 35 04 06 00 02 00 00 70 [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 03 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 03 00 91 36 00 90 00 3B [18:46:58]RAPDU: 90 00 [18:46:58]wFMCommunicate OK [18:46:58]wFMCommunicate request_size=10 [18:46:58]MH_SAM_APDU [18:46:58]CAPDU: 80 0D 02 02 05 11 58 0E 47 D9 [18:46:58]Write to MH i2c: E2 0D 00 92 36 80 0D 02 02 05 00 11 58 0E 47 D9 00 00 E3 [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 03 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 03 00 92 36 00 90 00 3C [18:46:58]RAPDU: 90 00 [18:46:58]wFMCommunicate OK [18:46:58]wFMCommunicate request_size=4 [18:46:58]MH_SAM_APDU [18:46:58]CAPDU: 80 0D 03 02 [18:46:58]Write to MH i2c: E2 08 00 93 36 80 0D 03 02 00 00 00 00 44 [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 0B 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 0B 00 93 36 00 3C 47 52 F8 DE 47 56 EF 90 00 7C [18:46:58]RAPDU: 3C 47 52 F8 DE 47 56 EF 90 00 [18:46:58]wFMCommunicate OK [18:46:58]SAM_PROTO_SignData done [18:46:58]FM_MakeSignedData done [18:46:58]CreateOFDProtocolMessage [18:46:58]wFMCommunicate request_size=4 [18:46:58]MH_SAM_APDU [18:46:58]CAPDU: 80 11 00 00 [18:46:58]Write to MH i2c: E2 08 00 94 36 80 11 00 00 00 00 00 00 44 [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 17 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 17 00 94 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 97 [18:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:46:58]wFMCommunicate OK [18:46:58]CreateOFDProtocolMessage done [18:46:58]OFDSenderStorePacket 145817 [18:46:58]StoreOFDPacket docnum=145817 [18:46:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 72 5B 07 01 E1 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 A4 8A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 99 39 02 00 35 04 06 00 02 11 58 0E 47 D9 3C 47 52 F8 DE 47 56 EF [18:46:58]CheckFolder [18:46:58]dirname=/storage/ofd_packets [18:46:58]CheckFolder done [18:46:58]ProducePacketName [18:46:58]name=ofd_packets/00145817 [18:46:58]NVStorageSaveData ofd_packets/00145817 [18:46:58]File name is /storage/ofd_packets/00145817 [18:46:58]Write 301 bytes [18:46:58]NVStorageSaveData done [18:46:58]OFDSenderStorePacket done [18:46:58]KKMCreateOFDPacket done [18:46:58]NVStorageSaveData kkm_last_timestamp [18:46:58]File name is /storage/kkm_last_timestamp [18:46:58]Write 4 bytes [18:46:58]NVStorageSaveData done [18:46:58]ExternCall_PrintAddStr [18:46:58]wPrintStart [18:46:58]Write to MH i2c: 01 00 00 95 36 CB [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: 01 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: 01 07 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: 01 07 00 95 36 00 00 00 00 00 FF 0F E0 [18:46:58]RasterBufferAndPrint [18:46:58]line Счет N : (1)160574 [18:46:58]line ИНН: 02508201610067 [18:46:58]line Контрольно-Кассовый Чек [18:46:58]line ПРОДАЖА [18:46:58]line ТРК (МРК, ГНК) : 52 [18:46:58]line Товар: 2710124130 [18:46:58]line Аи-92-К-2 [18:46:58]line 17.940 * 66.90 [18:46:58]line = 1200.19 [18:46:58]line НДС 12% НСП 1% [18:46:58]line > о реализуемом товаре [18:46:58]line ОКРУГЛЕНИЕ: -0.19 [18:46:58]line ИТОГО: 1200.00 [18:46:58]line Внесено: 1200.00 [18:46:58]line СДАЧА: 0.00 [18:46:58]line НСП 1% : 10.62 [18:46:58]line НДС 12% : 127.45 [18:46:58]line Наличными: 1200.00 [18:46:58]line Безнал.: 0.00 [18:46:58]line Место: АЗС № 126 "Партнер Нефть" [18:46:58]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:46:58]line СНО: Общий режим [18:46:58]line Чек 240 27.10.2024 18:47 [18:46:58]line Смена: 545 ФФД: 1.0 [18:46:58]line ЗНМ: 0300000085 [18:46:58]line РНМ: 0000000000091683 [18:46:58]line Версия ККМ: 001 [18:46:58]line ФМ: 0000000000871745 [18:46:58]line ФД: 145817 [18:46:58]line ФПД: 2273515030489 [18:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184700&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145817&fm=2273515030489&tin=02508201610067®Number=0000000000091683&sum=120000 [18:46:59]written 0, free lines is 4095 [18:46:59]OFD Sender: Processing packet 145817 [packets to send 206, broken 205] [18:46:59]ProducePacketName [18:46:59]name=ofd_packets/00145817 [18:46:59]OFD Sender: To server: pG, [18:46:59]CommunicateWithHost lk.salyk.kg:30040 [18:46:59]ConnectInit lk.salyk.kg [18:46:59]Connected sock=10 [18:46:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 72 5B 07 01 E1 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 A4 8A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 99 39 02 00 35 04 06 00 02 11 58 0E 47 D9 3C 47 52 F8 DE 47 56 EF [18:46:59]Write to MH i2c: 01 00 00 C0 36 F6 [18:46:59]Write i2c OK [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: 01 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: 01 07 00 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: 01 07 00 C0 36 00 00 00 00 00 A5 0C AE [18:46:59]RasterBufferAndPrint [18:46:59]line [18:46:59]line [18:46:59]line [18:46:59]line [18:46:59]line [18:46:59]written 0, free lines is 3242 [18:46:59]MH_Cut [18:46:59]Write to MH i2c: D1 01 00 C7 36 01 CF [18:46:59]Write i2c OK [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: D1 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: D1 01 00 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: D1 01 00 C7 36 00 CE [18:46:59]Write to MH i2c: 01 00 00 C8 36 FE [18:46:59]Write i2c OK [18:46:59]MH_I2C_Read... [18:46:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 66 85 47 00 CE DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 99 39 02 00 F4 03 04 00 D0 2F 1E 67 B6 04 01 00 00 C8 BB 09 AF 01 B5 B8 C3 [18:46:59]CommunicateWithHost err = 0 [18:46:59]CheckOFDResponse [18:46:59]1017 (14) - 77093643461234 [18:46:59]1041 (16) - 0000000000871745 [18:46:59]1040 (4) - 145817 [18:46:59]1012 (4) - 27.10.2024 12:19 [18:46:59]1206 (1) - 0 [18:46:59]OFD Sender: Remove packet 145817 [18:46:59]ProducePacketName [18:46:59]name=ofd_packets/00145817 [18:46:59]NVStorageDeleteData [18:47:00]OFD Sender: No OFD packet to send [18:47:00]*** Cut start [18:47:00]*** Partial cut [18:47:00]*** CUTSNS_PIN = 1 [18:47:00]*** CUTSNS_PIN = 0 [18:47:00]*** Brake cut motor [18:47:01]Read from MH i2c: 01 [18:47:01]MH_I2C_Read... [18:47:01]*** Stop cut motor [18:47:01]*** Cut end [18:47:01]Read from MH i2c: 01 07 00 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: 01 07 00 C8 36 00 00 00 00 00 FF 0F 13 [18:47:01]process_action close_receipt done [18:47:01]requested_data is exist [18:47:01]produce_requested_data [18:47:01]requested_item fm.sn is exist - process it [18:47:01]wFMCommunicate request_size=4 [18:47:01]MH_SAM_APDU [18:47:01]CAPDU: 80 11 00 00 [18:47:01]Write to MH i2c: E2 08 00 C9 36 80 11 00 00 00 00 00 00 79 [18:47:01]Write i2c OK [18:47:01]MH_I2C_Read... [18:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:01]Read from MH i2c: E2 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 17 00 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 17 00 C9 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 CC [18:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:47:01]wFMCommunicate OK [18:47:01]requested_item fd.num is exist - process it [18:47:01]SAM_PROTO_GetFieldsCounters [18:47:01]wFMCommunicate request_size=4 [18:47:01]MH_SAM_APDU [18:47:01]CAPDU: 80 13 00 00 [18:47:01]Write to MH i2c: E2 08 00 CA 36 80 13 00 00 00 00 00 00 7C [18:47:01]Write i2c OK [18:47:01]MH_I2C_Read... [18:47:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:01]Read from MH i2c: E2 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 62 00 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 62 00 CA 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 99 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [18:47:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 99 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:01]wFMCommunicate OK [18:47:01]SAM_PROTO_GetFieldsCounters done [18:47:01]requested_item shift.num is exist - process it [18:47:01]requested_item shift.opened is exist - process it [18:47:01]req_shift_opened [18:47:01]FM_GetShiftState [18:47:01]SAM_PROTO_GetShiftState [18:47:01]wFMCommunicate request_size=4 [18:47:01]MH_SAM_APDU [18:47:01]CAPDU: 80 13 01 00 [18:47:01]Write to MH i2c: E2 08 00 CB 36 80 13 01 00 00 00 00 00 7E [18:47:01]Write i2c OK [18:47:01]MH_I2C_Read... [18:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:01]Read from MH i2c: E2 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 0E 00 [18:47:01]MH_I2C_Read... [18:47:01]Read from MH i2c: E2 0E 00 CB 36 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F6 [18:47:01]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:47:01]wFMCommunicate OK [18:47:01]SAM_PROTO_GetShiftState done [18:47:01]FM_GetShiftState done [18:47:01]req_shift_opened done [18:47:01]requested_item shift.open_date is exist - process it [18:47:01]req_shift_open_date [18:47:01]req_shift_open_date done [18:47:01]produce_requested_data done [18:47:01]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145817,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:47:01]process_action_free close_receipt [18:47:01]json_value_free [18:47:01]json_value_free done [18:47:01]process_json_proto returns [18:47:01]Send response to host [18:47:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145817,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:47:01]free response buf [18:47:01]execute_script done [18:47:01]execute_script returns [18:47:01]free content buf [18:47:01]Sock 9.Close socket [18:47:01]Sock 9.Thread stoped [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:31]accept exits with 7 [18:47:31]New connection [18:47:31]New thread 3066740068 created [18:47:31]Thread 3066596708 joined [18:47:31]Waiting for new connection... [18:47:31] Sock 7.Parse request [18:47:31]Sock 7.Check first char [18:47:31]Sock 7.First char is OK [18:47:31]request: POST /json_proto HTTP/1.0 [18:47:31]Method: POST [18:47:31]URL: /json_proto [18:47:31]Method is POST - this is cgi request [18:47:31]url: /json_proto [18:47:31]query_string will be loaded in cgi processing [18:47:31]execute_cgi json_proto POST (null) [18:47:31]execute_cgi path=json_proto method=POST [18:47:31]POST find Content-Length [18:47:31]Host: 172.17.40.195:8080 [18:47:31]Content-Length: 792 [18:47:31]Content-Type: application/json [18:47:31] [18:47:31]POST finish read [18:47:31]Found Content-Length = 792 [18:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65732", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:31]execute_script... [18:47: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)160575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65732", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:31]POST & json_proto [18:47:31]process_json_proto [18:47:31]json parsed OK: [18:47:31]protocol is kg_v1.0 [18:47:31]action value=close_receipt [18:47:31]process_action close_receipt [18:47:31]cmd_close_receipt [18:47:31]MH_GetDate [18:47:31]Write to MH i2c: F0 00 00 CC 36 F1 [18:47:31]Write i2c OK [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: F0 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: F0 09 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: F0 09 00 CC 36 00 C6 8A 1E 67 D5 8D 6C 64 01 [18:47:31]GetLastDocTimeStamp 1730054820 [18:47:31]current date 1730054854 [18:47:31]FM_GetShiftState [18:47:31]SAM_PROTO_GetShiftState [18:47:31]wFMCommunicate request_size=4 [18:47:31]MH_SAM_APDU [18:47:31]CAPDU: 80 13 01 00 [18:47:31]Write to MH i2c: E2 08 00 CD 36 80 13 01 00 00 00 00 00 80 [18:47:31]Write i2c OK [18:47:31]MH_I2C_Read... [18:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:31]Read from MH i2c: E2 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 0E 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 0E 00 CD 36 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F8 [18:47:31]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:47:31]wFMCommunicate OK [18:47:31]SAM_PROTO_GetShiftState done [18:47:31]FM_GetShiftState done [18:47:31]opened in 1729988959 [18:47:31]opened+sec_in_day 1730075359 [18:47:31]quantity*price = 0 [18:47:31]sum+1 = 1 [18:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 241 27.10.2024 18:47 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: Топливная Карта 65732 ФМ: 0000000000871745 ФД: 145818 ФПД: 97939379119932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184734&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145818&fm=97939379119932&tin=02508201610067®Number=0000000000091683&sum=0 [18:47:32]StoreToDocumentArchive [18:47:32]shift 545 fd 145818 [18:47:32]save to /storage/0545/doc_00145818 [18:47:32]save last doc name /storage/0545/doc_00145818 to /storage/kkm_last_doc_name [18:47:32]save OK [18:47:32]Clear old archive folders... [18:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:32]tlvbuf is 004377D0 [18:47:32]SAM_PROTO_ClearQueue [18:47:32]wFMCommunicate request_size=4 [18:47:32]MH_SAM_APDU [18:47:32]CAPDU: 80 09 00 00 [18:47:32]Write to MH i2c: E2 08 00 DA 36 80 09 00 00 00 00 00 00 82 [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 DA 36 00 90 00 84 [18:47:32]RAPDU: 90 00 [18:47:32]wFMCommunicate OK [18:47:32]SAM_PROTO_ClearQueue done [18:47:32]KKMCreateOFDPacket [18:47:32]OFDProtocolAddRootSTLVToBuf [18:47:32]FM_MakeSignedData [18:47:32]FM_MakeSignedData [18:47:32]SAM_PROTO_SignData [18:47:32]wFMCommunicate request_size=4 [18:47:32]MH_SAM_APDU [18:47:32]CAPDU: 80 0D 01 02 [18:47:32]Write to MH i2c: E2 08 00 DB 36 80 0D 01 02 00 00 00 00 8A [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 03 00 DB 36 00 90 00 85 [18:47:32]RAPDU: 90 00 [18:47:32]wFMCommunicate OK [18:47:32]wFMCommunicate request_size=255 [18:47:32]MH_SAM_APDU [18:47: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 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 C6 8A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9A 39 02 00 35 04 06 00 59 [18:47:32]Write to MH i2c: E2 02 01 DC 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 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 C6 8A 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9A 39 02 00 35 04 06 00 59 00 00 4F [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 DC 36 00 90 00 86 [18:47:33]RAPDU: 90 00 [18:47:33]wFMCommunicate OK [18:47:33]wFMCommunicate request_size=10 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 0D 02 02 05 13 49 E6 E7 3C [18:47:33]Write to MH i2c: E2 0D 00 DD 36 80 0D 02 02 05 00 13 49 E6 E7 3C 00 00 FC [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 DD 36 00 90 00 87 [18:47:33]RAPDU: 90 00 [18:47:33]wFMCommunicate OK [18:47:33]wFMCommunicate request_size=4 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 0D 03 02 [18:47:33]Write to MH i2c: E2 08 00 DE 36 80 0D 03 02 00 00 00 00 8F [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 0B 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 0B 00 DE 36 00 71 6D 8C A6 9E 97 2D EF 90 00 F1 [18:47:33]RAPDU: 71 6D 8C A6 9E 97 2D EF 90 00 [18:47:33]wFMCommunicate OK [18:47:33]SAM_PROTO_SignData done [18:47:33]FM_MakeSignedData done [18:47:33]CreateOFDProtocolMessage [18:47:33]wFMCommunicate request_size=4 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 11 00 00 [18:47:33]Write to MH i2c: E2 08 00 DF 36 80 11 00 00 00 00 00 00 8F [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 17 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 17 00 DF 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E2 [18:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:47:33]wFMCommunicate OK [18:47:33]CreateOFDProtocolMessage done [18:47:33]OFDSenderStorePacket 145818 [18:47:33]StoreOFDPacket docnum=145818 [18:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145818,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:47:35]free response buf [18:47:35]execute_script done [18:47:35]execute_script returns [18:47:35]free content buf [18:47:35]Sock 7.Close socket [18:47:35]Sock 7.Thread stoped [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:02]int [18:48:02]Write to MH i2c: 01 00 00 16 37 4D [18:48:02]*** FLAG_PRN_KEY set [18:48:02]Write i2c OK [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: 01 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: 01 07 00 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: 01 07 00 16 37 00 08 00 00 00 FF 0F 6A [18:48:02]state=0 [18:48:02]Key pressed [18:48:02]Feed [18:48:02]Write to MH i2c: D8 00 00 17 37 25 [18:48:02]Write i2c OK [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: D8 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: D8 01 00 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: D8 01 00 17 37 00 26 [18:48:02]int [18:48:02]Write to MH i2c: 01 00 00 18 37 4F [18:48:02]Write i2c OK [18:48:02]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 18 37 00 48 00 00 00 3C 00 DA [18:48:03]state=2 [18:48:03]Key pressed [18:48:03]int [18:48:03]Write to MH i2c: 01 00 00 19 37 50 [18:48:03]*** FLAG_PRN_KEY reset [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 19 37 00 00 00 00 00 FB 0F 61 [18:48:03]state=2 [18:48:03]Stop feed [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:48]accept exits with 9 [18:48:48]New connection [18:48:48]New thread 3066596708 created [18:48:48]Thread 3066740068 joined [18:48:48]Waiting for new connection... [18:48:48] Sock 9.Parse request [18:48:48]Sock 9.Check first char [18:48:48]Sock 9.First char is OK [18:48:48]request: POST /json_proto HTTP/1.0 [18:48:48]Method: POST [18:48:48]URL: /json_proto [18:48:48]Method is POST - this is cgi request [18:48:48]url: /json_proto [18:48:48]query_string will be loaded in cgi processing [18:48:48]execute_cgi json_proto POST (null) [18:48:48]execute_cgi path=json_proto method=POST [18:48:48]POST find Content-Length [18:48:48]Host: 172.17.40.195:8080 [18:48:48]Content-Length: 682 [18:48:48]Content-Type: application/json [18:48:48] [18:48:48]POST finish read [18:48:48]Found Content-Length = 682 [18:48:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" ] } } [18:48:48]execute_script... [18:48: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)160576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" ] } } [18:48:48]POST & json_proto [18:48:48]process_json_proto [18:48:48]json parsed OK: [18:48:48]protocol is kg_v1.0 [18:48:48]action value=close_receipt [18:48:48]process_action close_receipt [18:48:48]cmd_close_receipt [18:48:48]MH_GetDate [18:48:48]Write to MH i2c: F0 00 00 1A 37 40 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: F0 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: F0 09 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: F0 09 00 1A 37 00 13 8B 1E 67 D5 8D 6C 64 9E [18:48:48]GetLastDocTimeStamp 1730054854 [18:48:48]current date 1730054931 [18:48:48]FM_GetShiftState [18:48:48]SAM_PROTO_GetShiftState [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 13 01 00 [18:48:48]Write to MH i2c: E2 08 00 1B 37 80 13 01 00 00 00 00 00 CF [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 0E 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 0E 00 1B 37 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 47 [18:48:48]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:48:48]wFMCommunicate OK [18:48:48]SAM_PROTO_GetShiftState done [18:48:48]FM_GetShiftState done [18:48:48]opened in 1729988959 [18:48:48]opened+sec_in_day 1730075359 [18:48:48]quantity*price = 300064 [18:48:48]sum+1 = 300066 [18:48:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 242 27.10.2024 18:48 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145819 ФПД: 164979274464341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184851&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145819&fm=164979274464341&tin=02508201610067®Number=0000000000091683&sum=300000 [18:48:49]StoreToDocumentArchive [18:48:49]shift 545 fd 145819 [18:48:49]save to /storage/0545/doc_00145819 [18:48:49]save last doc name /storage/0545/doc_00145819 to /storage/kkm_last_doc_name [18:48:49]save OK [18:48:49]Clear old archive folders... [18:48:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:49]tlvbuf is 00428B60 [18:48:49]SAM_PROTO_ClearQueue [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 09 00 00 [18:48:49]Write to MH i2c: E2 08 00 28 37 80 09 00 00 00 00 00 00 D1 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 28 37 00 90 00 D3 [18:48:49]RAPDU: 90 00 [18:48:49]wFMCommunicate OK [18:48:49]SAM_PROTO_ClearQueue done [18:48:49]KKMCreateOFDPacket [18:48:49]OFDProtocolAddRootSTLVToBuf [18:48:49]FM_MakeSignedData [18:48:49]FM_MakeSignedData [18:48:49]SAM_PROTO_SignData [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 0D 01 02 [18:48:49]Write to MH i2c: E2 08 00 29 37 80 0D 01 02 00 00 00 00 D9 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:49]OFD Sender: No OFD packet to send [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 29 37 00 90 00 D4 [18:48:49]RAPDU: 90 00 [18:48:49]wFMCommunicate OK [18:48:49]wFMCommunicate request_size=255 [18:48:49]MH_SAM_APDU [18:48: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 F2 00 00 00 F4 03 04 00 13 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9B 39 02 00 35 04 06 00 96 [18:48:49]Write to MH i2c: E2 02 01 2A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 F2 00 00 00 F4 03 04 00 13 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9B 39 02 00 35 04 06 00 96 00 00 3D [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 2A 37 00 90 00 D5 [18:48:49]RAPDU: 90 00 [18:48:49]wFMCommunicate OK [18:48:49]wFMCommunicate request_size=10 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 0D 02 02 05 0C 3B 0C BC 55 [18:48:49]Write to MH i2c: E2 0D 00 2B 37 80 0D 02 02 05 00 0C 3B 0C BC 55 00 00 4A [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 2B 37 00 90 00 D6 [18:48:49]RAPDU: 90 00 [18:48:49]wFMCommunicate OK [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 0D 03 02 [18:48:49]Write to MH i2c: E2 08 00 2C 37 80 0D 03 02 00 00 00 00 DE [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 0B 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 0B 00 2C 37 00 4D B8 A7 A5 EC 2F 17 7D 90 00 DF [18:48:49]RAPDU: 4D B8 A7 A5 EC 2F 17 7D 90 00 [18:48:49]wFMCommunicate OK [18:48:49]SAM_PROTO_SignData done [18:48:49]FM_MakeSignedData done [18:48:49]CreateOFDProtocolMessage [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 11 00 00 [18:48:49]Write to MH i2c: E2 08 00 2D 37 80 11 00 00 00 00 00 00 DE [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 17 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 17 00 2D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 31 [18:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:48:49]wFMCommunicate OK [18:48:49]CreateOFDProtocolMessage done [18:48:49]OFDSenderStorePacket 145819 [18:48:49]StoreOFDPacket docnum=145819 [18:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 57 B1 07 01 67 4E 5A 03 01 00 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 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 F2 00 00 00 F4 03 04 00 13 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9B 39 02 00 35 04 06 00 96 0C 3B 0C BC 55 4D B8 A7 A5 EC 2F 17 7D [18:48:49]CheckFolder [18:48:49]dirname=/storage/ofd_packets [18:48:49]CheckFolder done [18:48:49]ProducePacketName [18:48:49]name=ofd_packets/00145819 [18:48:49]NVStorageSaveData ofd_packets/00145819 [18:48:49]File name is /storage/ofd_packets/00145819 [18:48:49]Write 301 bytes [18:48:49]NVStorageSaveData done [18:48:49]OFDSenderStorePacket done [18:48:49]KKMCreateOFDPacket done [18:48:49]NVStorageSaveData kkm_last_timestamp [18:48:49]File name is /storage/kkm_last_timestamp [18:48:49]Write 4 bytes [18:48:49]NVStorageSaveData done [18:48:49]ExternCall_PrintAddStr [18:48:49]wPrintStart [18:48:49]Write to MH i2c: 01 00 00 2E 37 65 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: 01 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: 01 07 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: 01 07 00 2E 37 00 00 00 00 00 FF 0F 7A [18:48:49]RasterBufferAndPrint [18:48:49]line Счет N : (1)160576 [18:48:49]line ИНН: 02508201610067 [18:48:49]line Контрольно-Кассовый Чек [18:48:49]line ПРОДАЖА [18:48:49]line ТРК (МРК, ГНК) : 63 [18:48:49]line Товар: 2710124500 [18:48:49]line Аи-95-К-3 [18:48:49]line 40.440 * 74.20 [18:48:49]line = 3000.65 [18:48:49]line НДС 12% НСП 1% [18:48:49]line > о реализуемом товаре [18:48:49]line ОКРУГЛЕНИЕ: -0.65 [18:48:49]line ИТОГО: 3000.00 [18:48:49]line Внесено: 3000.00 [18:48:49]line СДАЧА: 0.00 [18:48:49]line НСП 1% : 26.55 [18:48:49]line НДС 12% : 318.65 [18:48:49]line Наличными: 3000.00 [18:48:49]line Безнал.: 0.00 [18:48:49]line Место: АЗС № 126 "Партнер Нефть" [18:48:49]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:48:49]line СНО: Общий режим [18:48:49]line Чек 242 27.10.2024 18:48 [18:48:49]line Смена: 545 ФФД: 1.0 [18:48:49]line ЗНМ: 0300000085 [18:48:49]line РНМ: 0000000000091683 [18:48:49]line Версия ККМ: 001 [18:48:49]line ФМ: 0000000000871745 [18:48:49]line ФД: 145819 [18:48:49]line ФПД: 164979274464341 [18:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184851&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145819&fm=164979274464341&tin=02508201610067®Number=0000000000091683&sum=300000 [18:48:49]written 0, free lines is 4095 [18:48:49]OFD Sender: Processing packet 145819 [packets to send 206, broken 205] [18:48:49]ProducePacketName [18:48:49]name=ofd_packets/00145819 [18:48:49]OFD Sender: To server: pG, [18:48:49]CommunicateWithHost lk.salyk.kg:30040 [18:48:49]ConnectInit lk.salyk.kg [18:48:50]Connected sock=11 [18:48:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 57 B1 07 01 67 4E 5A 03 01 00 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 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 F2 00 00 00 F4 03 04 00 13 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9B 39 02 00 35 04 06 00 96 0C 3B 0C BC 55 4D B8 A7 A5 EC 2F 17 7D [18:48:50]Write to MH i2c: 01 00 00 59 37 90 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 07 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 07 00 59 37 00 00 00 00 00 AE 0C 51 [18:48:50]RasterBufferAndPrint [18:48:50]line [18:48:50]line [18:48:50]line [18:48:50]line [18:48:50]line [18:48:50]written 0, free lines is 3252 [18:48:50]MH_Cut [18:48:50]Write to MH i2c: D1 01 00 60 37 01 69 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: D1 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: D1 01 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: D1 01 00 60 37 00 68 [18:48:50]Write to MH i2c: 01 00 00 61 37 98 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 FD 9F 47 00 5E 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9B 39 02 00 F4 03 04 00 3F 30 1E 67 B6 04 01 00 00 5E 36 88 7A 51 8A F9 B6 [18:48:50]CommunicateWithHost err = 0 [18:48:50]CheckOFDResponse [18:48:50]1017 (14) - 77093643461234 [18:48:50]1041 (16) - 0000000000871745 [18:48:50]1040 (4) - 145819 [18:48:50]1012 (4) - 27.10.2024 12:21 [18:48:50]1206 (1) - 0 [18:48:50]OFD Sender: Remove packet 145819 [18:48:50]ProducePacketName [18:48:50]name=ofd_packets/00145819 [18:48:50]NVStorageDeleteData [18:48:50]OFD Sender: No OFD packet to send [18:48:51]*** Cut start [18:48:51]*** Partial cut [18:48:51]*** CUTSNS_PIN = 1 [18:48:51]*** CUTSNS_PIN = 0 [18:48:51]*** Brake cut motor [18:48:51]Read from MH i2c: 01 [18:48:51]MH_I2C_Read... [18:48:51]*** Stop cut motor [18:48:51]*** Cut end [18:48:51]Read from MH i2c: 01 07 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: 01 07 00 61 37 00 00 00 00 00 FF 0F AD [18:48:51]process_action close_receipt done [18:48:51]requested_data is exist [18:48:51]produce_requested_data [18:48:51]requested_item fm.sn is exist - process it [18:48:51]wFMCommunicate request_size=4 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 11 00 00 [18:48:51]Write to MH i2c: E2 08 00 62 37 80 11 00 00 00 00 00 00 13 [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:51]Read from MH i2c: E2 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 17 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 17 00 62 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 66 [18:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:48:51]wFMCommunicate OK [18:48:51]requested_item fd.num is exist - process it [18:48:51]SAM_PROTO_GetFieldsCounters [18:48:51]wFMCommunicate request_size=4 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 13 00 00 [18:48:51]Write to MH i2c: E2 08 00 63 37 80 13 00 00 00 00 00 00 16 [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:51]Read from MH i2c: E2 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 62 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 62 00 63 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 9B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [18:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 9B 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:51]wFMCommunicate OK [18:48:51]SAM_PROTO_GetFieldsCounters done [18:48:51]requested_item shift.num is exist - process it [18:48:51]requested_item shift.opened is exist - process it [18:48:51]req_shift_opened [18:48:51]FM_GetShiftState [18:48:51]SAM_PROTO_GetShiftState [18:48:51]wFMCommunicate request_size=4 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 13 01 00 [18:48:51]Write to MH i2c: E2 08 00 64 37 80 13 01 00 00 00 00 00 18 [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:52]Read from MH i2c: E2 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: E2 0E 00 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: E2 0E 00 64 37 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 90 [18:48:52]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:48:52]wFMCommunicate OK [18:48:52]SAM_PROTO_GetShiftState done [18:48:52]FM_GetShiftState done [18:48:52]req_shift_opened done [18:48:52]requested_item shift.open_date is exist - process it [18:48:52]req_shift_open_date [18:48:52]req_shift_open_date done [18:48:52]produce_requested_data done [18:48:52]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145819,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:48:52]process_action_free close_receipt [18:48:52]json_value_free [18:48:52]json_value_free done [18:48:52]process_json_proto returns [18:48:52]Send response to host [18:48:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145819,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:48:52]free response buf [18:48:52]execute_script done [18:48:52]execute_script returns [18:48:52]free content buf [18:48:52]Sock 9.Close socket [18:48:52]Sock 9.Thread stoped [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:34]accept exits with 7 [18:49:34]New connection [18:49:34]New thread 3066740068 created [18:49:34]Thread 3066596708 joined [18:49:34]Waiting for new connection... [18:49:34] Sock 7.Parse request [18:49:34]Sock 7.Check first char [18:49:34]Sock 7.First char is OK [18:49:34]request: POST /json_proto HTTP/1.0 [18:49:34]Method: POST [18:49:34]URL: /json_proto [18:49:34]Method is POST - this is cgi request [18:49:34]url: /json_proto [18:49:34]query_string will be loaded in cgi processing [18:49:34]execute_cgi json_proto POST (null) [18:49:34]execute_cgi path=json_proto method=POST [18:49:34]POST find Content-Length [18:49:34]Host: 172.17.40.195:8080 [18:49:34]Content-Length: 789 [18:49:34]Content-Type: application/json [18:49:34] [18:49:34]POST finish read [18:49:34]Found Content-Length = 789 [18:49:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:34]execute_script... [18:49: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)160577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:34]POST & json_proto [18:49:34]process_json_proto [18:49:34]json parsed OK: [18:49:34]protocol is kg_v1.0 [18:49:34]action value=close_receipt [18:49:34]process_action close_receipt [18:49:34]cmd_close_receipt [18:49:34]MH_GetDate [18:49:34]Write to MH i2c: F0 00 00 65 37 8B [18:49:34]Write i2c OK [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: F0 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: F0 09 00 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: F0 09 00 65 37 00 41 8B 1E 67 D5 8D 6C 64 17 [18:49:34]GetLastDocTimeStamp 1730054931 [18:49:34]current date 1730054977 [18:49:34]FM_GetShiftState [18:49:34]SAM_PROTO_GetShiftState [18:49:34]wFMCommunicate request_size=4 [18:49:34]MH_SAM_APDU [18:49:34]CAPDU: 80 13 01 00 [18:49:34]Write to MH i2c: E2 08 00 66 37 80 13 01 00 00 00 00 00 1A [18:49:34]Write i2c OK [18:49:34]MH_I2C_Read... [18:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:34]Read from MH i2c: E2 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: E2 0E 00 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: E2 0E 00 66 37 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 92 [18:49:34]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:49:34]wFMCommunicate OK [18:49:34]SAM_PROTO_GetShiftState done [18:49:34]FM_GetShiftState done [18:49:34]opened in 1729988959 [18:49:34]opened+sec_in_day 1730075359 [18:49:34]quantity*price = 0 [18:49:34]sum+1 = 1 [18:49:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 243 27.10.2024 18:49 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: Топливная Карта 81640 ФМ: 0000000000871745 ФД: 145820 ФПД: 84712225335137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184937&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145820&fm=84712225335137&tin=02508201610067®Number=0000000000091683&sum=0 [18:49:35]StoreToDocumentArchive [18:49:35]shift 545 fd 145820 [18:49:35]save to /storage/0545/doc_00145820 [18:49:35]save last doc name /storage/0545/doc_00145820 to /storage/kkm_last_doc_name [18:49:35]save OK [18:49:35]Clear old archive folders... [18:49:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:49:35]tlvbuf is 00544BA0 [18:49:35]SAM_PROTO_ClearQueue [18:49:35]wFMCommunicate request_size=4 [18:49:35]MH_SAM_APDU [18:49:35]CAPDU: 80 09 00 00 [18:49:35]Write to MH i2c: E2 08 00 73 37 80 09 00 00 00 00 00 00 1C [18:49:35]Write i2c OK [18:49:35]MH_I2C_Read... [18:49:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:35]Read from MH i2c: E2 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 03 00 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 03 00 73 37 00 90 00 1E [18:49:35]RAPDU: 90 00 [18:49:35]wFMCommunicate OK [18:49:35]SAM_PROTO_ClearQueue done [18:49:35]KKMCreateOFDPacket [18:49:35]OFDProtocolAddRootSTLVToBuf [18:49:35]FM_MakeSignedData [18:49:35]FM_MakeSignedData [18:49:35]SAM_PROTO_SignData [18:49:35]wFMCommunicate request_size=4 [18:49:35]MH_SAM_APDU [18:49:35]CAPDU: 80 0D 01 02 [18:49:35]Write to MH i2c: E2 08 00 74 37 80 0D 01 02 00 00 00 00 24 [18:49:35]Write i2c OK [18:49:35]MH_I2C_Read... [18:49:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:35]Read from MH i2c: E2 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 03 00 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 03 00 74 37 00 90 00 1F [18:49:35]RAPDU: 90 00 [18:49:35]wFMCommunicate OK [18:49:35]wFMCommunicate request_size=255 [18:49:35]MH_SAM_APDU [18:49: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 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 41 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9C 39 02 00 35 04 06 00 4D 0B 9A 19 [18:49:36]Write to MH i2c: E2 02 01 75 37 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 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 41 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9C 39 02 00 35 04 06 00 4D 0B 9A 19 00 00 09 [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]OFD Sender: No OFD packet to send [18:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:36]Read from MH i2c: E2 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 03 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 03 00 75 37 00 90 00 20 [18:49:36]RAPDU: 90 00 [18:49:36]wFMCommunicate OK [18:49:36]wFMCommunicate request_size=7 [18:49:36]MH_SAM_APDU [18:49:36]CAPDU: 80 0D 02 02 02 67 61 [18:49:36]Write to MH i2c: E2 0A 00 76 37 80 0D 02 02 02 00 67 61 00 00 F3 [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:36]Read from MH i2c: E2 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 03 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 03 00 76 37 00 90 00 21 [18:49:36]RAPDU: 90 00 [18:49:36]wFMCommunicate OK [18:49:36]wFMCommunicate request_size=4 [18:49:36]MH_SAM_APDU [18:49:36]CAPDU: 80 0D 03 02 [18:49:36]Write to MH i2c: E2 08 00 77 37 80 0D 03 02 00 00 00 00 29 [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:36]Read from MH i2c: E2 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 0B 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 0B 00 77 37 00 B9 2C 5B 68 BC 43 6A 9D 90 00 D8 [18:49:36]RAPDU: B9 2C 5B 68 BC 43 6A 9D 90 00 [18:49:36]wFMCommunicate OK [18:49:36]SAM_PROTO_SignData done [18:49:36]FM_MakeSignedData done [18:49:36]CreateOFDProtocolMessage [18:49:36]wFMCommunicate request_size=4 [18:49:36]MH_SAM_APDU [18:49:36]CAPDU: 80 11 00 00 [18:49:36]Write to MH i2c: E2 08 00 78 37 80 11 00 00 00 00 00 00 29 [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:36]Read from MH i2c: E2 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 17 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: E2 17 00 78 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 7C [18:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:49:36]wFMCommunicate OK [18:49:36]CreateOFDProtocolMessage done [18:49:36]OFDSenderStorePacket 145820 [18:49:36]StoreOFDPacket docnum=145820 [18:49:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 88 49 04 01 A1 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 41 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9C 39 02 00 35 04 06 00 4D 0B 9A 19 67 61 B9 2C 5B 68 BC 43 6A 9D [18:49:36]CheckFolder [18:49:36]dirname=/storage/ofd_packets [18:49:36]CheckFolder done [18:49:36]ProducePacketName [18:49:36]name=ofd_packets/00145820 [18:49:36]NVStorageSaveData ofd_packets/00145820 [18:49:36]File name is /storage/ofd_packets/00145820 [18:49:36]Write 298 bytes [18:49:36]NVStorageSaveData done [18:49:36]OFDSenderStorePacket done [18:49:36]KKMCreateOFDPacket done [18:49:36]NVStorageSaveData kkm_last_timestamp [18:49:36]File name is /storage/kkm_last_timestamp [18:49:36]Write 4 bytes [18:49:36]NVStorageSaveData done [18:49:36]ExternCall_PrintAddStr [18:49:36]wPrintStart [18:49:36]Write to MH i2c: 01 00 00 79 37 B0 [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: 01 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: 01 07 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: 01 07 00 79 37 00 00 00 00 00 FF 0F C5 [18:49:36]RasterBufferAndPrint [18:49:36]line Счет N : (1)160577 [18:49:36]line ИНН: 02508201610067 [18:49:36]line Контрольно-Кассовый Чек [18:49:36]line ПРОДАЖА [18:49:36]line ТРК (МРК, ГНК) : 21 [18:49:36]line Товар: 2710194210 [18:49:36]line ДТ-К-2 [18:49:36]line 35.000 * 0.00 [18:49:36]line = 0.00 [18:49:36]line НДС 12% НСП 1% [18:49:36]line > о реализуемом товаре [18:49:36]line ИТОГО: 0.00 [18:49:36]line НСП 1% : 0.00 [18:49:36]line НДС 12% : 0.00 [18:49:36]line Наличными: 0.00 [18:49:36]line Безнал.: 0.00 [18:49:36]line Место: АЗС № 126 "Партнер Нефть" [18:49:36]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:49:36]line СНО: Общий режим [18:49:36]line Чек 243 27.10.2024 18:49 [18:49:36]line Смена: 545 ФФД: 1.0 [18:49:36]line ЗНМ: 0300000085 [18:49:36]line РНМ: 0000000000091683 [18:49:36]line Версия ККМ: 001 [18:49:36]line Талоны: Топливная Карта [18:49:36]line 81640 [18:49:36]line ФМ: 0000000000871745 [18:49:36]line ФД: 145820 [18:49:36]line ФПД: 84712225335137 [18:49:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184937&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145820&fm=84712225335137&tin=02508201610067®Number=0000000000091683&sum=0 [18:49:36]written 0, free lines is 4095 [18:49:36]OFD Sender: Processing packet 145820 [packets to send 206, broken 205] [18:49:36]ProducePacketName [18:49:36]name=ofd_packets/00145820 [18:49:36]OFD Sender: To server: pG, [18:49:36]CommunicateWithHost lk.salyk.kg:30040 [18:49:36]ConnectInit lk.salyk.kg [18:49:36]Connected sock=11 [18:49:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 88 49 04 01 A1 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 41 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9C 39 02 00 35 04 06 00 4D 0B 9A 19 67 61 B9 2C 5B 68 BC 43 6A 9D [18:49:36]Write to MH i2c: 01 00 00 A3 37 DA [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: 01 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: 01 07 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: 01 07 00 A3 37 00 00 00 00 00 C1 0C AE [18:49:36]RasterBufferAndPrint [18:49:36]line [18:49:36]line [18:49:36]line [18:49:36]line [18:49:36]line [18:49:36]written 0, free lines is 3281 [18:49:36]MH_Cut [18:49:36]Write to MH i2c: D1 01 00 AA 37 01 B3 [18:49:36]Write i2c OK [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: D1 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: D1 01 00 [18:49:36]MH_I2C_Read... [18:49:36]Read from MH i2c: D1 01 00 AA 37 00 B2 [18:49:37]Write to MH i2c: 01 00 00 AB 37 E2 [18:49:37]Write i2c OK [18:49:37]MH_I2C_Read... [18:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E6 6A 47 00 B6 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9C 39 02 00 F4 03 04 00 6E 30 1E 67 B6 04 01 00 00 35 00 64 F0 B3 7D 43 CF [18:49:37]CommunicateWithHost err = 0 [18:49:37]CheckOFDResponse [18:49:37]1017 (14) - 77093643461234 [18:49:37]1041 (16) - 0000000000871745 [18:49:37]1040 (4) - 145820 [18:49:37]1012 (4) - 27.10.2024 12:22 [18:49:37]1206 (1) - 0 [18:49:37]OFD Sender: Remove packet 145820 [18:49:37]ProducePacketName [18:49:37]name=ofd_packets/00145820 [18:49:37]NVStorageDeleteData [18:49:37]OFD Sender: No OFD packet to send [18:49:37]*** Cut start [18:49:37]*** Partial cut [18:49:37]*** CUTSNS_PIN = 1 [18:49:37]*** CUTSNS_PIN = 0 [18:49:38]*** Brake cut motor [18:49:38]Read from MH i2c: 01 [18:49:38]MH_I2C_Read... [18:49:38]*** Stop cut motor [18:49:38]*** Cut end [18:49:38]Read from MH i2c: 01 07 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: 01 07 00 AB 37 00 00 00 00 00 FF 0F F7 [18:49:38]process_action close_receipt done [18:49:38]requested_data is exist [18:49:38]produce_requested_data [18:49:38]requested_item fm.sn is exist - process it [18:49:38]wFMCommunicate request_size=4 [18:49:38]MH_SAM_APDU [18:49:38]CAPDU: 80 11 00 00 [18:49:38]Write to MH i2c: E2 08 00 AC 37 80 11 00 00 00 00 00 00 5D [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:38]Read from MH i2c: E2 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 17 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 17 00 AC 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B0 [18:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:49:38]wFMCommunicate OK [18:49:38]requested_item fd.num is exist - process it [18:49:38]SAM_PROTO_GetFieldsCounters [18:49:38]wFMCommunicate request_size=4 [18:49:38]MH_SAM_APDU [18:49:38]CAPDU: 80 13 00 00 [18:49:38]Write to MH i2c: E2 08 00 AD 37 80 13 00 00 00 00 00 00 60 [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:38]Read from MH i2c: E2 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 62 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 62 00 AD 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 9C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [18:49:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 9C 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:38]wFMCommunicate OK [18:49:38]SAM_PROTO_GetFieldsCounters done [18:49:38]requested_item shift.num is exist - process it [18:49:38]requested_item shift.opened is exist - process it [18:49:38]req_shift_opened [18:49:38]FM_GetShiftState [18:49:38]SAM_PROTO_GetShiftState [18:49:38]wFMCommunicate request_size=4 [18:49:38]MH_SAM_APDU [18:49:38]CAPDU: 80 13 01 00 [18:49:38]Write to MH i2c: E2 08 00 AE 37 80 13 01 00 00 00 00 00 62 [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:38]Read from MH i2c: E2 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 0E 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 0E 00 AE 37 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 DA [18:49:38]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:49:38]wFMCommunicate OK [18:49:38]SAM_PROTO_GetShiftState done [18:49:38]FM_GetShiftState done [18:49:38]req_shift_opened done [18:49:38]requested_item shift.open_date is exist - process it [18:49:38]req_shift_open_date [18:49:38]req_shift_open_date done [18:49:38]produce_requested_data done [18:49:38]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145820,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:49:38]process_action_free close_receipt [18:49:38]json_value_free [18:49:38]json_value_free done [18:49:38]process_json_proto returns [18:49:38]Send response to host [18:49:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145820,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:49:38]free response buf [18:49:38]execute_script done [18:49:38]execute_script returns [18:49:38]free content buf [18:49:38]Sock 7.Close socket [18:49:38]Sock 7.Thread stoped [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:11]accept exits with 9 [18:50:11]New connection [18:50:11]New thread 3066596708 created [18:50:11]Thread 3066740068 joined [18:50:11]Waiting for new connection... [18:50:11] Sock 9.Parse request [18:50:11]Sock 9.Check first char [18:50:11]Sock 9.First char is OK [18:50:11]request: POST /json_proto HTTP/1.0 [18:50:11]Method: POST [18:50:11]URL: /json_proto [18:50:11]Method is POST - this is cgi request [18:50:11]url: /json_proto [18:50:11]query_string will be loaded in cgi processing [18:50:11]execute_cgi json_proto POST (null) [18:50:11]execute_cgi path=json_proto method=POST [18:50:11]POST find Content-Length [18:50:11]Host: 172.17.40.195:8080 [18:50:11]Content-Length: 819 [18:50:11]Content-Type: application/json [18:50:11] [18:50:11]POST finish read [18:50:11]Found Content-Length = 819 [18:50:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:11]execute_script... [18:50: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)160578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:11]POST & json_proto [18:50:11]process_json_proto [18:50:11]json parsed OK: [18:50:11]protocol is kg_v1.0 [18:50:11]action value=close_receipt [18:50:11]process_action close_receipt [18:50:11]cmd_close_receipt [18:50:11]MH_GetDate [18:50:11]Write to MH i2c: F0 00 00 AF 37 D5 [18:50:11]Write i2c OK [18:50:11]MH_I2C_Read... [18:50:11]Read from MH i2c: F0 [18:50:11]MH_I2C_Read... [18:50:11]Read from MH i2c: F0 09 00 [18:50:11]MH_I2C_Read... [18:50:11]Read from MH i2c: F0 09 00 AF 37 00 66 8B 1E 67 D5 8D 6C 64 86 [18:50:11]GetLastDocTimeStamp 1730054977 [18:50:11]current date 1730055014 [18:50:11]FM_GetShiftState [18:50:11]SAM_PROTO_GetShiftState [18:50:11]wFMCommunicate request_size=4 [18:50:11]MH_SAM_APDU [18:50:11]CAPDU: 80 13 01 00 [18:50:11]Write to MH i2c: E2 08 00 B0 37 80 13 01 00 00 00 00 00 64 [18:50:11]Write i2c OK [18:50:11]MH_I2C_Read... [18:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:11]Read from MH i2c: E2 [18:50:11]MH_I2C_Read... [18:50:11]Read from MH i2c: E2 0E 00 [18:50:11]MH_I2C_Read... [18:50:11]Read from MH i2c: E2 0E 00 B0 37 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 DC [18:50:11]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:50:11]wFMCommunicate OK [18:50:11]SAM_PROTO_GetShiftState done [18:50:11]FM_GetShiftState done [18:50:11]opened in 1729988959 [18:50:11]opened+sec_in_day 1730075359 [18:50:11]quantity*price = 100021 [18:50:11]sum+1 = 100023 [18:50:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 244 27.10.2024 18:50 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871745 ФД: 145821 ФПД: 241915795362568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185014&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145821&fm=241915795362568&tin=02508201610067®Number=0000000000091683&sum=100022 [18:50:12]StoreToDocumentArchive [18:50:12]shift 545 fd 145821 [18:50:12]save to /storage/0545/doc_00145821 [18:50:12]save last doc name /storage/0545/doc_00145821 to /storage/kkm_last_doc_name [18:50:12]save OK [18:50:12]Clear old archive folders... [18:50:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:12]tlvbuf is B6E8D860 [18:50:12]SAM_PROTO_ClearQueue [18:50:12]wFMCommunicate request_size=4 [18:50:12]MH_SAM_APDU [18:50:12]CAPDU: 80 09 00 00 [18:50:12]Write to MH i2c: E2 08 00 BD 37 80 09 00 00 00 00 00 00 66 [18:50:12]Write i2c OK [18:50:12]MH_I2C_Read... [18:50:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:12]Read from MH i2c: E2 [18:50:12]MH_I2C_Read... [18:50:12]Read from MH i2c: E2 03 00 [18:50:12]MH_I2C_Read... [18:50:12]Read from MH i2c: E2 03 00 BD 37 00 90 00 68 [18:50:12]RAPDU: 90 00 [18:50:12]wFMCommunicate OK [18:50:12]SAM_PROTO_ClearQueue done [18:50:12]KKMCreateOFDPacket [18:50:12]OFDProtocolAddRootSTLVToBuf [18:50:12]FM_MakeSignedData [18:50:12]FM_MakeSignedData [18:50:12]SAM_PROTO_SignData [18:50:12]wFMCommunicate request_size=4 [18:50:12]MH_SAM_APDU [18:50:12]CAPDU: 80 0D 01 02 [18:50:12]Write to MH i2c: E2 08 00 BE 37 80 0D 01 02 00 00 00 00 6E [18:50:12]Write i2c OK [18:50:12]MH_I2C_Read... [18:50:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:12]Read from MH i2c: E2 [18:50:12]MH_I2C_Read... [18:50:12]Read from MH i2c: E2 03 00 [18:50:12]MH_I2C_Read... [18:50:12]Read from MH i2c: E2 03 00 BE 37 00 90 00 69 [18:50:12]RAPDU: 90 00 [18:50:12]wFMCommunicate OK [18:50:12]wFMCommunicate request_size=255 [18:50:12]MH_SAM_APDU [18:50: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 66 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9D 39 02 00 35 04 06 00 DC [18:50:12]Write to MH i2c: E2 02 01 BF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 66 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9D 39 02 00 35 04 06 00 DC 00 00 87 [18:50:12]Write i2c OK [18:50:12]MH_I2C_Read... [18:50:12]OFD Sender: No OFD packet to send [18:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:12]Read from MH i2c: E2 [18:50:12]MH_I2C_Read... [18:50:12]Read from MH i2c: E2 03 00 [18:50:12]MH_I2C_Read... [18:50:12]Read from MH i2c: E2 03 00 BF 37 00 90 00 6A [18:50:12]RAPDU: 90 00 [18:50:12]wFMCommunicate OK [18:50:12]wFMCommunicate request_size=10 [18:50:12]MH_SAM_APDU [18:50:12]CAPDU: 80 0D 02 02 05 05 69 0C 53 08 [18:50:12]Write to MH i2c: E2 0D 00 C0 37 80 0D 02 02 05 00 05 69 0C 53 08 00 00 50 [18:50:13]Write i2c OK [18:50:13]MH_I2C_Read... [18:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:13]Read from MH i2c: E2 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: E2 03 00 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: E2 03 00 C0 37 00 90 00 6B [18:50:13]RAPDU: 90 00 [18:50:13]wFMCommunicate OK [18:50:13]wFMCommunicate request_size=4 [18:50:13]MH_SAM_APDU [18:50:13]CAPDU: 80 0D 03 02 [18:50:13]Write to MH i2c: E2 08 00 C1 37 80 0D 03 02 00 00 00 00 73 [18:50:13]Write i2c OK [18:50:13]MH_I2C_Read... [18:50:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:13]Read from MH i2c: E2 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: E2 0B 00 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: E2 0B 00 C1 37 00 A0 24 F4 F4 03 94 79 9C 90 00 CC [18:50:13]RAPDU: A0 24 F4 F4 03 94 79 9C 90 00 [18:50:13]wFMCommunicate OK [18:50:13]SAM_PROTO_SignData done [18:50:13]FM_MakeSignedData done [18:50:13]CreateOFDProtocolMessage [18:50:13]wFMCommunicate request_size=4 [18:50:13]MH_SAM_APDU [18:50:13]CAPDU: 80 11 00 00 [18:50:13]Write to MH i2c: E2 08 00 C2 37 80 11 00 00 00 00 00 00 73 [18:50:13]Write i2c OK [18:50:13]MH_I2C_Read... [18:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:13]Read from MH i2c: E2 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: E2 17 00 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: E2 17 00 C2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C6 [18:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:50:13]wFMCommunicate OK [18:50:13]CreateOFDProtocolMessage done [18:50:13]OFDSenderStorePacket 145821 [18:50:13]StoreOFDPacket docnum=145821 [18:50:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 B4 38 07 01 1A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 66 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9D 39 02 00 35 04 06 00 DC 05 69 0C 53 08 A0 24 F4 F4 03 94 79 9C [18:50:13]CheckFolder [18:50:13]dirname=/storage/ofd_packets [18:50:13]CheckFolder done [18:50:13]ProducePacketName [18:50:13]name=ofd_packets/00145821 [18:50:13]NVStorageSaveData ofd_packets/00145821 [18:50:13]File name is /storage/ofd_packets/00145821 [18:50:13]Write 301 bytes [18:50:13]NVStorageSaveData done [18:50:13]OFDSenderStorePacket done [18:50:13]KKMCreateOFDPacket done [18:50:13]NVStorageSaveData kkm_last_timestamp [18:50:13]File name is /storage/kkm_last_timestamp [18:50:13]Write 4 bytes [18:50:13]NVStorageSaveData done [18:50:13]ExternCall_PrintAddStr [18:50:13]wPrintStart [18:50:13]Write to MH i2c: 01 00 00 C3 37 FA [18:50:13]Write i2c OK [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: 01 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: 01 07 00 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: 01 07 00 C3 37 00 00 00 00 00 FF 0F 0F [18:50:13]RasterBufferAndPrint [18:50:13]line Счет N : (1)160578 [18:50:13]line ИНН: 02508201610067 [18:50:13]line Контрольно-Кассовый Чек [18:50:13]line ПРОДАЖА [18:50:13]line ТРК (МРК, ГНК) : 43 [18:50:13]line Товар: 2710124500 [18:50:13]line Аи-95-К-3 [18:50:13]line 13.480 * 74.20 [18:50:13]line = 1000.22 [18:50:13]line НДС 12% НСП 1% [18:50:13]line > о реализуемом товаре [18:50:13]line ИТОГО: 1000.22 [18:50:13]line НСП 1% : 8.85 [18:50:13]line НДС 12% : 106.22 [18:50:13]line Наличными: 0.00 [18:50:13]line Безнал.: 1000.22 [18:50:13]line Место: АЗС № 126 "Партнер Нефть" [18:50:13]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:50:13]line СНО: Общий режим [18:50:13]line Чек 244 27.10.2024 18:50 [18:50:13]line Смена: 545 ФФД: 1.0 [18:50:13]line ЗНМ: 0300000085 [18:50:13]line РНМ: 0000000000091683 [18:50:13]line Версия ККМ: 001 [18:50:13]line Платежная система: Бакай Банк [18:50:13]line ФМ: 0000000000871745 [18:50:13]line ФД: 145821 [18:50:13]line ФПД: 241915795362568 [18:50:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185014&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145821&fm=241915795362568&tin=02508201610067®Number=0000000000091683&sum=100022 [18:50:13]written 0, free lines is 4095 [18:50:13]OFD Sender: Processing packet 145821 [packets to send 206, broken 205] [18:50:13]ProducePacketName [18:50:13]name=ofd_packets/00145821 [18:50:13]OFD Sender: To server: pG, [18:50:13]CommunicateWithHost lk.salyk.kg:30040 [18:50:13]ConnectInit lk.salyk.kg [18:50:13]Connected sock=11 [18:50:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 B4 38 07 01 1A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 66 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9D 39 02 00 35 04 06 00 DC 05 69 0C 53 08 A0 24 F4 F4 03 94 79 9C [18:50:13]Write to MH i2c: 01 00 00 ED 37 24 [18:50:13]Write i2c OK [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: 01 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: 01 07 00 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: 01 07 00 ED 37 00 00 00 00 00 D3 0C 0A [18:50:13]RasterBufferAndPrint [18:50:13]line [18:50:13]line [18:50:13]line [18:50:13]line [18:50:13]line [18:50:13]written 0, free lines is 3309 [18:50:13]MH_Cut [18:50:13]Write to MH i2c: D1 01 00 F4 37 01 FD [18:50:13]Write i2c OK [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: D1 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: D1 01 00 [18:50:13]MH_I2C_Read... [18:50:13]Read from MH i2c: D1 01 00 F4 37 00 FC [18:50:13]Write to MH i2c: 01 00 00 F5 37 2C [18:50:13]Write i2c OK [18:50:13]MH_I2C_Read... [18:50:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 0E EE 47 00 15 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 31 37 34 35 10 04 04 00 9D 39 02 00 F4 03 04 00 93 30 1E 67 B6 04 01 00 00 EC A0 1F D7 90 B7 BA AB [18:50:13]CommunicateWithHost err = 0 [18:50:13]CheckOFDResponse [18:50:13]1017 (14) - 77093643461234 [18:50:13]1041 (16) - 0000000000871745 [18:50:13]1040 (4) - 145821 [18:50:13]1012 (4) - 27.10.2024 12:22 [18:50:13]1206 (1) - 0 [18:50:13]OFD Sender: Remove packet 145821 [18:50:13]ProducePacketName [18:50:13]name=ofd_packets/00145821 [18:50:13]NVStorageDeleteData [18:50:14]OFD Sender: No OFD packet to send [18:50:14]*** Cut start [18:50:14]*** Partial cut [18:50:14]*** CUTSNS_PIN = 1 [18:50:14]*** CUTSNS_PIN = 0 [18:50:14]*** Brake cut motor [18:50:15]Read from MH i2c: 01 [18:50:15]MH_I2C_Read... [18:50:15]*** Stop cut motor [18:50:15]*** Cut end [18:50:15]Read from MH i2c: 01 07 00 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: 01 07 00 F5 37 00 00 00 00 00 FF 0F 41 [18:50:15]process_action close_receipt done [18:50:15]requested_data is exist [18:50:15]produce_requested_data [18:50:15]requested_item fm.sn is exist - process it [18:50:15]wFMCommunicate request_size=4 [18:50:15]MH_SAM_APDU [18:50:15]CAPDU: 80 11 00 00 [18:50:15]Write to MH i2c: E2 08 00 F6 37 80 11 00 00 00 00 00 00 A7 [18:50:15]Write i2c OK [18:50:15]MH_I2C_Read... [18:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:15]Read from MH i2c: E2 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 17 00 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 17 00 F6 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 FA [18:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:50:15]wFMCommunicate OK [18:50:15]requested_item fd.num is exist - process it [18:50:15]SAM_PROTO_GetFieldsCounters [18:50:15]wFMCommunicate request_size=4 [18:50:15]MH_SAM_APDU [18:50:15]CAPDU: 80 13 00 00 [18:50:15]Write to MH i2c: E2 08 00 F7 37 80 13 00 00 00 00 00 00 AA [18:50:15]Write i2c OK [18:50:15]MH_I2C_Read... [18:50:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:15]Read from MH i2c: E2 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 62 00 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 62 00 F7 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 9D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [18:50:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 9D 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:15]wFMCommunicate OK [18:50:15]SAM_PROTO_GetFieldsCounters done [18:50:15]requested_item shift.num is exist - process it [18:50:15]requested_item shift.opened is exist - process it [18:50:15]req_shift_opened [18:50:15]FM_GetShiftState [18:50:15]SAM_PROTO_GetShiftState [18:50:15]wFMCommunicate request_size=4 [18:50:15]MH_SAM_APDU [18:50:15]CAPDU: 80 13 01 00 [18:50:15]Write to MH i2c: E2 08 00 F8 37 80 13 01 00 00 00 00 00 AC [18:50:15]Write i2c OK [18:50:15]MH_I2C_Read... [18:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:15]Read from MH i2c: E2 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 0E 00 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 0E 00 F8 37 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 24 [18:50:15]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:50:15]wFMCommunicate OK [18:50:15]SAM_PROTO_GetShiftState done [18:50:15]FM_GetShiftState done [18:50:15]req_shift_opened done [18:50:15]requested_item shift.open_date is exist - process it [18:50:15]req_shift_open_date [18:50:15]req_shift_open_date done [18:50:15]produce_requested_data done [18:50:15]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145821,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:50:15]process_action_free close_receipt [18:50:15]json_value_free [18:50:15]json_value_free done [18:50:15]process_json_proto returns [18:50:15]Send response to host [18:50:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145821,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:50:15]free response buf [18:50:15]execute_script done [18:50:15]execute_script returns [18:50:15]free content buf [18:50:15]Sock 9.Close socket [18:50:15]Sock 9.Thread stoped [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:44]accept exits with 7 [18:50:44]New connection [18:50:44]New thread 3066740068 created [18:50:44]Thread 3066596708 joined [18:50:44]Waiting for new connection... [18:50:44] Sock 7.Parse request [18:50:44]Sock 7.Check first char [18:50:44]Sock 7.First char is OK [18:50:44]request: POST /json_proto HTTP/1.0 [18:50:44]Method: POST [18:50:44]URL: /json_proto [18:50:44]Method is POST - this is cgi request [18:50:44]url: /json_proto [18:50:44]query_string will be loaded in cgi processing [18:50:44]execute_cgi json_proto POST (null) [18:50:44]execute_cgi path=json_proto method=POST [18:50:44]POST find Content-Length [18:50:44]Host: 172.17.40.195:8080 [18:50:44]Content-Length: 679 [18:50:44]Content-Type: application/json [18:50:44] [18:50:44]POST finish read [18:50:44]Found Content-Length = 679 [18:50:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:44]execute_script... [18:50: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)160579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:44]POST & json_proto [18:50:44]process_json_proto [18:50:44]json parsed OK: [18:50:44]protocol is kg_v1.0 [18:50:44]action value=close_receipt [18:50:44]process_action close_receipt [18:50:44]cmd_close_receipt [18:50:44]MH_GetDate [18:50:44]Write to MH i2c: F0 00 00 F9 37 1F [18:50:44]Write i2c OK [18:50:44]MH_I2C_Read... [18:50:44]Read from MH i2c: F0 [18:50:44]MH_I2C_Read... [18:50:44]Read from MH i2c: F0 09 00 [18:50:44]MH_I2C_Read... [18:50:44]Read from MH i2c: F0 09 00 F9 37 00 87 8B 1E 67 D5 8D 6C 64 F1 [18:50:44]GetLastDocTimeStamp 1730055014 [18:50:44]current date 1730055047 [18:50:44]FM_GetShiftState [18:50:44]SAM_PROTO_GetShiftState [18:50:44]wFMCommunicate request_size=4 [18:50:44]MH_SAM_APDU [18:50:44]CAPDU: 80 13 01 00 [18:50:44]Write to MH i2c: E2 08 00 FA 37 80 13 01 00 00 00 00 00 AE [18:50:44]Write i2c OK [18:50:44]MH_I2C_Read... [18:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:44]Read from MH i2c: E2 [18:50:44]MH_I2C_Read... [18:50:44]Read from MH i2c: E2 0E 00 [18:50:44]MH_I2C_Read... [18:50:44]Read from MH i2c: E2 0E 00 FA 37 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 26 [18:50:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:50:44]wFMCommunicate OK [18:50:44]SAM_PROTO_GetShiftState done [18:50:44]FM_GetShiftState done [18:50:44]opened in 1729988959 [18:50:44]opened+sec_in_day 1730075359 [18:50:44]quantity*price = 200025 [18:50:44]sum+1 = 200026 [18:50:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 245 27.10.2024 18:50 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145822 ФПД: 119145448087798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185047&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145822&fm=119145448087798&tin=02508201610067®Number=0000000000091683&sum=200000 [18:50:46]StoreToDocumentArchive [18:50:46]shift 545 fd 145822 [18:50:46]save to /storage/0545/doc_00145822 [18:50:46]save last doc name /storage/0545/doc_00145822 to /storage/kkm_last_doc_name [18:50:46]save OK [18:50:46]Clear old archive folders... [18:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:50:46]tlvbuf is 005BCD10 [18:50:46]SAM_PROTO_ClearQueue [18:50:46]wFMCommunicate request_size=4 [18:50:46]MH_SAM_APDU [18:50:46]CAPDU: 80 09 00 00 [18:50:46]Write to MH i2c: E2 08 00 07 38 80 09 00 00 00 00 00 00 B1 [18:50:46]Write i2c OK [18:50:46]MH_I2C_Read... [18:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:46]Read from MH i2c: E2 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 03 00 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 03 00 07 38 00 90 00 B3 [18:50:46]RAPDU: 90 00 [18:50:46]wFMCommunicate OK [18:50:46]SAM_PROTO_ClearQueue done [18:50:46]KKMCreateOFDPacket [18:50:46]OFDProtocolAddRootSTLVToBuf [18:50:46]FM_MakeSignedData [18:50:46]FM_MakeSignedData [18:50:46]SAM_PROTO_SignData [18:50:46]wFMCommunicate request_size=4 [18:50:46]MH_SAM_APDU [18:50:46]CAPDU: 80 0D 01 02 [18:50:46]Write to MH i2c: E2 08 00 08 38 80 0D 01 02 00 00 00 00 B9 [18:50:46]Write i2c OK [18:50:46]MH_I2C_Read... [18:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:46]Read from MH i2c: E2 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 03 00 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 03 00 08 38 00 90 00 B4 [18:50:46]RAPDU: 90 00 [18:50:46]wFMCommunicate OK [18:50:46]wFMCommunicate request_size=255 [18:50:46]MH_SAM_APDU [18:50:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 87 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9E 39 02 00 35 04 06 00 6C 5C B6 1C [18:50:46]Write to MH i2c: E2 02 01 09 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 87 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9E 39 02 00 35 04 06 00 6C 5C B6 1C 00 00 4D [18:50:46]Write i2c OK [18:50:46]MH_I2C_Read... [18:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:46]Read from MH i2c: E2 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 03 00 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 03 00 09 38 00 90 00 B5 [18:50:46]RAPDU: 90 00 [18:50:46]wFMCommunicate OK [18:50:46]wFMCommunicate request_size=7 [18:50:46]MH_SAM_APDU [18:50:46]CAPDU: 80 0D 02 02 02 20 F6 [18:50:46]Write to MH i2c: E2 0A 00 0A 38 80 0D 02 02 02 00 20 F6 00 00 D6 [18:50:46]Write i2c OK [18:50:46]MH_I2C_Read... [18:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:46]Read from MH i2c: E2 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 03 00 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 03 00 0A 38 00 90 00 B6 [18:50:46]RAPDU: 90 00 [18:50:46]wFMCommunicate OK [18:50:46]wFMCommunicate request_size=4 [18:50:46]MH_SAM_APDU [18:50:46]CAPDU: 80 0D 03 02 [18:50:46]Write to MH i2c: E2 08 00 0B 38 80 0D 03 02 00 00 00 00 BE [18:50:46]Write i2c OK [18:50:46]MH_I2C_Read... [18:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:46]Read from MH i2c: E2 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 0B 00 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 0B 00 0B 38 00 2E EC 77 8D 22 BA 2C EA 90 00 CF [18:50:46]RAPDU: 2E EC 77 8D 22 BA 2C EA 90 00 [18:50:46]wFMCommunicate OK [18:50:46]SAM_PROTO_SignData done [18:50:46]FM_MakeSignedData done [18:50:46]CreateOFDProtocolMessage [18:50:46]wFMCommunicate request_size=4 [18:50:46]MH_SAM_APDU [18:50:46]CAPDU: 80 11 00 00 [18:50:46]Write to MH i2c: E2 08 00 0C 38 80 11 00 00 00 00 00 00 BE [18:50:46]Write i2c OK [18:50:46]MH_I2C_Read... [18:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:46]Read from MH i2c: E2 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 17 00 [18:50:46]MH_I2C_Read... [18:50:46]Read from MH i2c: E2 17 00 0C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 11 [18:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:50:47]wFMCommunicate OK [18:50:47]CreateOFDProtocolMessage done [18:50:47]OFDSenderStorePacket 145822 [18:50:47]StoreOFDPacket docnum=145822 [18:50:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 63 10 04 01 B0 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 87 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9E 39 02 00 35 04 06 00 6C 5C B6 1C 20 F6 2E EC 77 8D 22 BA 2C EA [18:50:47]CheckFolder [18:50:47]dirname=/storage/ofd_packets [18:50:47]CheckFolder done [18:50:47]ProducePacketName [18:50:47]name=ofd_packets/00145822 [18:50:47]NVStorageSaveData ofd_packets/00145822 [18:50:47]File name is /storage/ofd_packets/00145822 [18:50:47]Write 298 bytes [18:50:47]NVStorageSaveData done [18:50:47]OFDSenderStorePacket done [18:50:47]KKMCreateOFDPacket done [18:50:47]NVStorageSaveData kkm_last_timestamp [18:50:47]File name is /storage/kkm_last_timestamp [18:50:47]Write 4 bytes [18:50:47]NVStorageSaveData done [18:50:47]ExternCall_PrintAddStr [18:50:47]wPrintStart [18:50:47]Write to MH i2c: 01 00 00 0D 38 45 [18:50:47]Write i2c OK [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: 01 [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: 01 07 00 [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: 01 07 00 0D 38 00 00 00 00 00 FF 0F 5A [18:50:47]RasterBufferAndPrint [18:50:47]line Счет N : (1)160579 [18:50:47]line ИНН: 02508201610067 [18:50:47]line Контрольно-Кассовый Чек [18:50:47]line ПРОДАЖА [18:50:47]line ТРК (МРК, ГНК) : 11 [18:50:47]line Товар: 2710194210 [18:50:47]line ДТ-К-2 [18:50:47]line 26.250 * 76.20 [18:50:47]line = 2000.25 [18:50:47]line НДС 12% НСП 1% [18:50:47]line > о реализуемом товаре [18:50:47]line ОКРУГЛЕНИЕ: -0.25 [18:50:47]line ИТОГО: 2000.00 [18:50:47]line Внесено: 2000.00 [18:50:47]line СДАЧА: 0.00 [18:50:47]line НСП 1% : 17.70 [18:50:47]line НДС 12% : 212.42 [18:50:47]line Наличными: 2000.00 [18:50:47]line Безнал.: 0.00 [18:50:47]line Место: АЗС № 126 "Партнер Нефть" [18:50:47]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:50:47]line СНО: Общий режим [18:50:47]line Чек 245 27.10.2024 18:50 [18:50:47]line Смена: 545 ФФД: 1.0 [18:50:47]line ЗНМ: 0300000085 [18:50:47]line РНМ: 0000000000091683 [18:50:47]line Версия ККМ: 001 [18:50:47]line ФМ: 0000000000871745 [18:50:47]line ФД: 145822 [18:50:47]line ФПД: 119145448087798 [18:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185047&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145822&fm=119145448087798&tin=02508201610067®Number=0000000000091683&sum=200000 [18:50:47]written 0, free lines is 4095 [18:50:47]OFD Sender: Processing packet 145822 [packets to send 206, broken 205] [18:50:47]ProducePacketName [18:50:47]name=ofd_packets/00145822 [18:50:47]OFD Sender: To server: pG, [18:50:47]CommunicateWithHost lk.salyk.kg:30040 [18:50:47]ConnectInit lk.salyk.kg [18:50:47]Connected sock=11 [18:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 63 10 04 01 B0 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 87 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9E 39 02 00 35 04 06 00 6C 5C B6 1C 20 F6 2E EC 77 8D 22 BA 2C EA [18:50:47]Write to MH i2c: 01 00 00 38 38 70 [18:50:47]Write i2c OK [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: 01 [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: 01 07 00 [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: 01 07 00 38 38 00 00 00 00 00 C0 0C 43 [18:50:47]RasterBufferAndPrint [18:50:47]line [18:50:47]line [18:50:47]line [18:50:47]line [18:50:47]line [18:50:47]written 0, free lines is 3296 [18:50:47]MH_Cut [18:50:47]Write to MH i2c: D1 01 00 3F 38 01 49 [18:50:47]Write i2c OK [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: D1 [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: D1 01 00 [18:50:47]MH_I2C_Read... [18:50:47]Read from MH i2c: D1 01 00 3F 38 00 48 [18:50:47]Write to MH i2c: 01 00 00 40 38 78 [18:50:47]Write i2c OK [18:50:47]MH_I2C_Read... [18:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 05 76 47 00 9A A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9E 39 02 00 F4 03 04 00 B4 30 1E 67 B6 04 01 00 00 5F B3 DF A8 B1 7E B8 D3 [18:50:47]CommunicateWithHost err = 0 [18:50:47]CheckOFDResponse [18:50:47]1017 (14) - 77093643461234 [18:50:47]1041 (16) - 0000000000871745 [18:50:47]1040 (4) - 145822 [18:50:47]1012 (4) - 27.10.2024 12:23 [18:50:47]1206 (1) - 0 [18:50:47]OFD Sender: Remove packet 145822 [18:50:47]ProducePacketName [18:50:47]name=ofd_packets/00145822 [18:50:47]NVStorageDeleteData [18:50:48]*** Cut start [18:50:48]*** Partial cut [18:50:48]*** CUTSNS_PIN = 1 [18:50:48]*** CUTSNS_PIN = 0 [18:50:48]OFD Sender: No OFD packet to send [18:50:48]*** Brake cut motor [18:50:48]Read from MH i2c: 01 [18:50:48]MH_I2C_Read... [18:50:48]*** Stop cut motor [18:50:48]*** Cut end [18:50:48]Read from MH i2c: 01 07 00 [18:50:48]MH_I2C_Read... [18:50:48]Read from MH i2c: 01 07 00 40 38 00 00 00 00 00 FF 0F 8D [18:50:48]process_action close_receipt done [18:50:48]requested_data is exist [18:50:48]produce_requested_data [18:50:48]requested_item fm.sn is exist - process it [18:50:48]wFMCommunicate request_size=4 [18:50:48]MH_SAM_APDU [18:50:48]CAPDU: 80 11 00 00 [18:50:48]Write to MH i2c: E2 08 00 41 38 80 11 00 00 00 00 00 00 F3 [18:50:48]Write i2c OK [18:50:48]MH_I2C_Read... [18:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:49]Read from MH i2c: E2 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 17 00 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 17 00 41 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 46 [18:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:50:49]wFMCommunicate OK [18:50:49]requested_item fd.num is exist - process it [18:50:49]SAM_PROTO_GetFieldsCounters [18:50:49]wFMCommunicate request_size=4 [18:50:49]MH_SAM_APDU [18:50:49]CAPDU: 80 13 00 00 [18:50:49]Write to MH i2c: E2 08 00 42 38 80 13 00 00 00 00 00 00 F6 [18:50:49]Write i2c OK [18:50:49]MH_I2C_Read... [18:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:49]Read from MH i2c: E2 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 62 00 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 62 00 42 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 9E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [18:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 9E 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:49]wFMCommunicate OK [18:50:49]SAM_PROTO_GetFieldsCounters done [18:50:49]requested_item shift.num is exist - process it [18:50:49]requested_item shift.opened is exist - process it [18:50:49]req_shift_opened [18:50:49]FM_GetShiftState [18:50:49]SAM_PROTO_GetShiftState [18:50:49]wFMCommunicate request_size=4 [18:50:49]MH_SAM_APDU [18:50:49]CAPDU: 80 13 01 00 [18:50:49]Write to MH i2c: E2 08 00 43 38 80 13 01 00 00 00 00 00 F8 [18:50:49]Write i2c OK [18:50:49]MH_I2C_Read... [18:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:49]Read from MH i2c: E2 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 0E 00 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 0E 00 43 38 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 70 [18:50:49]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:50:49]wFMCommunicate OK [18:50:49]SAM_PROTO_GetShiftState done [18:50:49]FM_GetShiftState done [18:50:49]req_shift_opened done [18:50:49]requested_item shift.open_date is exist - process it [18:50:49]req_shift_open_date [18:50:49]req_shift_open_date done [18:50:49]produce_requested_data done [18:50:49]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145822,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:50:49]process_action_free close_receipt [18:50:49]json_value_free [18:50:49]json_value_free done [18:50:49]process_json_proto returns [18:50:49]Send response to host [18:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145822,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:50:49]free response buf [18:50:49]execute_script done [18:50:49]execute_script returns [18:50:49]free content buf [18:50:49]Sock 7.Close socket [18:50:49]Sock 7.Thread stoped [18:50:53]OFD Sender: No OFD packet to send [18:50:56]accept exits with 9 [18:50:56]New connection [18:50:56]New thread 3066596708 created [18:50:56]Thread 3066740068 joined [18:50:56]Waiting for new connection... [18:50:56] Sock 9.Parse request [18:50:56]Sock 9.Check first char [18:50:56]Sock 9.First char is OK [18:50:56]request: POST /json_proto HTTP/1.0 [18:50:56]Method: POST [18:50:56]URL: /json_proto [18:50:56]Method is POST - this is cgi request [18:50:56]url: /json_proto [18:50:56]query_string will be loaded in cgi processing [18:50:56]execute_cgi json_proto POST (null) [18:50:56]execute_cgi path=json_proto method=POST [18:50:56]POST find Content-Length [18:50:56]Host: 172.17.40.195:8080 [18:50:56]Content-Length: 682 [18:50:56]Content-Type: application/json [18:50:56] [18:50:56]POST finish read [18:50:56]Found Content-Length = 682 [18:50:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" ] } } [18:50:56]execute_script... [18:50: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)160580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" ] } } [18:50:56]POST & json_proto [18:50:56]process_json_proto [18:50:56]json parsed OK: [18:50:56]protocol is kg_v1.0 [18:50:56]action value=close_receipt [18:50:56]process_action close_receipt [18:50:56]cmd_close_receipt [18:50:56]MH_GetDate [18:50:56]Write to MH i2c: F0 00 00 44 38 6B [18:50:56]Write i2c OK [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: F0 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: F0 09 00 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: F0 09 00 44 38 00 93 8B 1E 67 D5 8D 6C 64 49 [18:50:57]GetLastDocTimeStamp 1730055047 [18:50:57]current date 1730055059 [18:50:57]FM_GetShiftState [18:50:57]SAM_PROTO_GetShiftState [18:50:57]wFMCommunicate request_size=4 [18:50:57]MH_SAM_APDU [18:50:57]CAPDU: 80 13 01 00 [18:50:57]Write to MH i2c: E2 08 00 45 38 80 13 01 00 00 00 00 00 FA [18:50:57]Write i2c OK [18:50:57]MH_I2C_Read... [18:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:57]Read from MH i2c: E2 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: E2 0E 00 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: E2 0E 00 45 38 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 72 [18:50:57]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:50:57]wFMCommunicate OK [18:50:57]SAM_PROTO_GetShiftState done [18:50:57]FM_GetShiftState done [18:50:57]opened in 1729988959 [18:50:57]opened+sec_in_day 1730075359 [18:50:57]quantity*price = 300064 [18:50:57]sum+1 = 300066 [18:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 246 27.10.2024 18:51 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145823 ФПД: 257561457603733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185100&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145823&fm=257561457603733&tin=02508201610067®Number=0000000000091683&sum=300000 [18:50:58]StoreToDocumentArchive [18:50:58]shift 545 fd 145823 [18:50:58]save to /storage/0545/doc_00145823 [18:50:58]save last doc name /storage/0545/doc_00145823 to /storage/kkm_last_doc_name [18:50:58]save OK [18:50:58]Clear old archive folders... [18:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:58]tlvbuf is 005EA450 [18:50:58]SAM_PROTO_ClearQueue [18:50:58]wFMCommunicate request_size=4 [18:50:58]MH_SAM_APDU [18:50:58]CAPDU: 80 09 00 00 [18:50:58]Write to MH i2c: E2 08 00 52 38 80 09 00 00 00 00 00 00 FC [18:50:58]Write i2c OK [18:50:58]MH_I2C_Read... [18:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:58]Read from MH i2c: E2 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 52 38 00 90 00 FE [18:50:58]RAPDU: 90 00 [18:50:58]wFMCommunicate OK [18:50:58]SAM_PROTO_ClearQueue done [18:50:58]KKMCreateOFDPacket [18:50:58]OFDProtocolAddRootSTLVToBuf [18:50:58]FM_MakeSignedData [18:50:58]FM_MakeSignedData [18:50:58]SAM_PROTO_SignData [18:50:58]wFMCommunicate request_size=4 [18:50:58]MH_SAM_APDU [18:50:58]CAPDU: 80 0D 01 02 [18:50:58]Write to MH i2c: E2 08 00 53 38 80 0D 01 02 00 00 00 00 04 [18:50:58]Write i2c OK [18:50:58]MH_I2C_Read... [18:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:58]Read from MH i2c: E2 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 03 00 53 38 00 90 00 FF [18:50:58]RAPDU: 90 00 [18:50:58]wFMCommunicate OK [18:50:58]wFMCommunicate request_size=255 [18:50:58]MH_SAM_APDU [18:50:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 F6 00 00 00 F4 03 04 00 94 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9F 39 02 00 35 04 06 00 EA [18:50:58]Write to MH i2c: E2 02 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 F6 00 00 00 F4 03 04 00 94 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9F 39 02 00 35 04 06 00 EA 00 00 45 [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 03 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 03 00 54 38 00 90 00 00 [18:50:59]RAPDU: 90 00 [18:50:59]wFMCommunicate OK [18:50:59]wFMCommunicate request_size=10 [18:50:59]MH_SAM_APDU [18:50:59]CAPDU: 80 0D 02 02 05 40 33 30 34 95 [18:50:59]Write to MH i2c: E2 0D 00 55 38 80 0D 02 02 05 00 40 33 30 34 95 00 00 7D [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 03 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 03 00 55 38 00 90 00 01 [18:50:59]RAPDU: 90 00 [18:50:59]wFMCommunicate OK [18:50:59]wFMCommunicate request_size=4 [18:50:59]MH_SAM_APDU [18:50:59]CAPDU: 80 0D 03 02 [18:50:59]Write to MH i2c: E2 08 00 56 38 80 0D 03 02 00 00 00 00 09 [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 0B 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 0B 00 56 38 00 58 8A 08 46 16 00 C4 46 90 00 5A [18:50:59]RAPDU: 58 8A 08 46 16 00 C4 46 90 00 [18:50:59]wFMCommunicate OK [18:50:59]SAM_PROTO_SignData done [18:50:59]FM_MakeSignedData done [18:50:59]CreateOFDProtocolMessage [18:50:59]wFMCommunicate request_size=4 [18:50:59]MH_SAM_APDU [18:50:59]CAPDU: 80 11 00 00 [18:50:59]Write to MH i2c: E2 08 00 57 38 80 11 00 00 00 00 00 00 09 [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 17 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 17 00 57 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 5C [18:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:50:59]wFMCommunicate OK [18:50:59]CreateOFDProtocolMessage done [18:50:59]OFDSenderStorePacket 145823 [18:50:59]StoreOFDPacket docnum=145823 [18:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 8A 2D 07 01 1F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 F6 00 00 00 F4 03 04 00 94 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9F 39 02 00 35 04 06 00 EA 40 33 30 34 95 58 8A 08 46 16 00 C4 46 [18:50:59]CheckFolder [18:50:59]dirname=/storage/ofd_packets [18:50:59]CheckFolder done [18:50:59]ProducePacketName [18:50:59]name=ofd_packets/00145823 [18:50:59]NVStorageSaveData ofd_packets/00145823 [18:50:59]File name is /storage/ofd_packets/00145823 [18:50:59]Write 301 bytes [18:50:59]NVStorageSaveData done [18:50:59]OFDSenderStorePacket done [18:50:59]KKMCreateOFDPacket done [18:50:59]NVStorageSaveData kkm_last_timestamp [18:50:59]File name is /storage/kkm_last_timestamp [18:50:59]Write 4 bytes [18:50:59]NVStorageSaveData done [18:50:59]ExternCall_PrintAddStr [18:50:59]wPrintStart [18:50:59]Write to MH i2c: 01 00 00 58 38 90 [18:50:59]OFD Sender: Processing packet 145823 [packets to send 206, broken 205] [18:50:59]ProducePacketName [18:50:59]name=ofd_packets/00145823 [18:50:59]OFD Sender: To server: pG, [18:50:59]CommunicateWithHost lk.salyk.kg:30040 [18:50:59]ConnectInit lk.salyk.kg [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 07 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 07 00 58 38 00 00 00 00 00 FF 0F A5 [18:50:59]RasterBufferAndPrint [18:50:59]line Счет N : (1)160580 [18:50:59]line ИНН: 02508201610067 [18:50:59]line Контрольно-Кассовый Чек [18:50:59]line ПРОДАЖА [18:50:59]line ТРК (МРК, ГНК) : 53 [18:50:59]line Товар: 2710124500 [18:50:59]line Аи-95-К-3 [18:50:59]line 40.440 * 74.20 [18:50:59]line = 3000.65 [18:50:59]line НДС 12% НСП 1% [18:50:59]line > о реализуемом товаре [18:50:59]line ОКРУГЛЕНИЕ: -0.65 [18:50:59]line ИТОГО: 3000.00 [18:50:59]line Внесено: 3000.00 [18:50:59]line СДАЧА: 0.00 [18:50:59]line НСП 1% : 26.55 [18:50:59]line НДС 12% : 318.65 [18:50:59]line Наличными: 3000.00 [18:50:59]line Безнал.: 0.00 [18:50:59]line Место: АЗС № 126 "Партнер Нефть" [18:50:59]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:50:59]line СНО: Общий режим [18:50:59]line Чек 246 27.10.2024 18:51 [18:50:59]line Смена: 545 ФФД: 1.0 [18:50:59]line ЗНМ: 0300000085 [18:50:59]line РНМ: 0000000000091683 [18:50:59]line Версия ККМ: 001 [18:50:59]line ФМ: 0000000000871745 [18:50:59]line ФД: 145823 [18:50:59]line ФПД: 257561457603733 [18:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185100&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145823&fm=257561457603733&tin=02508201610067®Number=0000000000091683&sum=300000 [18:50:59]written 0, free lines is 4095 [18:50:59]Connected sock=11 [18:50:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 8A 2D 07 01 1F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 F6 00 00 00 F4 03 04 00 94 8B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9F 39 02 00 35 04 06 00 EA 40 33 30 34 95 58 8A 08 46 16 00 C4 46 [18:51:00]Write to MH i2c: 01 00 00 83 38 BB [18:51:00]Write i2c OK [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: 01 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: 01 07 00 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: 01 07 00 83 38 00 00 00 00 00 D3 0C A1 [18:51:00]RasterBufferAndPrint [18:51:00]line [18:51:00]line [18:51:00]line [18:51:00]line [18:51:00]line [18:51:00]written 0, free lines is 3324 [18:51:00]MH_Cut [18:51:00]Write to MH i2c: D1 01 00 8A 38 01 94 [18:51:00]Write i2c OK [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: D1 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: D1 01 00 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: D1 01 00 8A 38 00 93 [18:51:00]Write to MH i2c: 01 00 00 8B 38 C3 [18:51:00]Write i2c OK [18:51:00]MH_I2C_Read... [18:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 12 6B 47 00 2A 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 9F 39 02 00 F4 03 04 00 C1 30 1E 67 B6 04 01 00 00 85 98 E8 EF F5 AC A2 8F [18:51:00]CommunicateWithHost err = 0 [18:51:00]CheckOFDResponse [18:51:00]1017 (14) - 77093643461234 [18:51:00]1041 (16) - 0000000000871745 [18:51:00]1040 (4) - 145823 [18:51:00]1012 (4) - 27.10.2024 12:23 [18:51:00]1206 (1) - 0 [18:51:00]OFD Sender: Remove packet 145823 [18:51:00]ProducePacketName [18:51:00]name=ofd_packets/00145823 [18:51:00]NVStorageDeleteData [18:51:01]*** Cut start [18:51:01]*** Partial cut [18:51:01]*** CUTSNS_PIN = 1 [18:51:01]*** CUTSNS_PIN = 0 [18:51:01]OFD Sender: No OFD packet to send [18:51:01]*** Brake cut motor [18:51:01]Read from MH i2c: 01 [18:51:01]MH_I2C_Read... [18:51:01]*** Stop cut motor [18:51:01]*** Cut end [18:51:01]Read from MH i2c: 01 07 00 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: 01 07 00 8B 38 00 00 00 00 00 FF 0F D8 [18:51:01]process_action close_receipt done [18:51:01]requested_data is exist [18:51:01]produce_requested_data [18:51:01]requested_item fm.sn is exist - process it [18:51:01]wFMCommunicate request_size=4 [18:51:01]MH_SAM_APDU [18:51:01]CAPDU: 80 11 00 00 [18:51:01]Write to MH i2c: E2 08 00 8C 38 80 11 00 00 00 00 00 00 3E [18:51:01]Write i2c OK [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 [18:51:01]MH_I2C_Read... [18:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:01]Read from MH i2c: E2 17 00 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 17 00 8C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 91 [18:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:51:01]wFMCommunicate OK [18:51:01]requested_item fd.num is exist - process it [18:51:01]SAM_PROTO_GetFieldsCounters [18:51:01]wFMCommunicate request_size=4 [18:51:01]MH_SAM_APDU [18:51:01]CAPDU: 80 13 00 00 [18:51:01]Write to MH i2c: E2 08 00 8D 38 80 13 00 00 00 00 00 00 41 [18:51:01]Write i2c OK [18:51:01]MH_I2C_Read... [18:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:01]Read from MH i2c: E2 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 62 00 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 62 00 8D 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 9F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [18:51:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 9F 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:02]wFMCommunicate OK [18:51:02]SAM_PROTO_GetFieldsCounters done [18:51:02]requested_item shift.num is exist - process it [18:51:02]requested_item shift.opened is exist - process it [18:51:02]req_shift_opened [18:51:02]FM_GetShiftState [18:51:02]SAM_PROTO_GetShiftState [18:51:02]wFMCommunicate request_size=4 [18:51:02]MH_SAM_APDU [18:51:02]CAPDU: 80 13 01 00 [18:51:02]Write to MH i2c: E2 08 00 8E 38 80 13 01 00 00 00 00 00 43 [18:51:02]Write i2c OK [18:51:02]MH_I2C_Read... [18:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:02]Read from MH i2c: E2 [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: E2 0E 00 [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: E2 0E 00 8E 38 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 BB [18:51:02]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:51:02]wFMCommunicate OK [18:51:02]SAM_PROTO_GetShiftState done [18:51:02]FM_GetShiftState done [18:51:02]req_shift_opened done [18:51:02]requested_item shift.open_date is exist - process it [18:51:02]req_shift_open_date [18:51:02]req_shift_open_date done [18:51:02]produce_requested_data done [18:51:02]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145823,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:51:02]process_action_free close_receipt [18:51:02]json_value_free [18:51:02]json_value_free done [18:51:02]process_json_proto returns [18:51:02]Send response to host [18:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145823,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:51:02]free response buf [18:51:02]execute_script done [18:51:02]execute_script returns [18:51:02]free content buf [18:51:02]Sock 9.Close socket [18:51:02]Sock 9.Thread stoped [18:51:02]ConnectInit Can't connect to host [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]accept exits with 7 [18:54:51]New connection [18:54:51]New thread 3066740068 created [18:54:51]Thread 3066596708 joined [18:54:51]Waiting for new connection... [18:54:51] Sock 7.Parse request [18:54:51]Sock 7.Check first char [18:54:51]Sock 7.First char is OK [18:54:51]request: POST /json_proto HTTP/1.0 [18:54:51]Method: POST [18:54:51]URL: /json_proto [18:54:51]Method is POST - this is cgi request [18:54:51]url: /json_proto [18:54:51]query_string will be loaded in cgi processing [18:54:51]execute_cgi json_proto POST (null) [18:54:51]execute_cgi path=json_proto method=POST [18:54:51]POST find Content-Length [18:54:51]Host: 172.17.40.195:8080 [18:54:51]Content-Length: 978 [18:54:51]Content-Type: application/json [18:54:51] [18:54:51]POST finish read [18:54:51]Found Content-Length = 978 [18:54:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 63.830, "sum" : 4800.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 63.83 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 4800.00, "payments": [ { "type": 0, "sum" : 4800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:51]execute_script... [18:54: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)160581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 63.830, "sum" : 4800.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 63.83 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 4800.00, "payments": [ { "type": 0, "sum" : 4800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:51]POST & json_proto [18:54:51]process_json_proto [18:54:51]json parsed OK: [18:54:51]protocol is kg_v1.0 [18:54:51]action value=close_receipt [18:54:51]process_action close_receipt [18:54:51]cmd_close_receipt [18:54:51]MH_GetDate [18:54:51]Write to MH i2c: F0 00 00 8F 38 B6 [18:54:51]Write i2c OK [18:54:51]MH_I2C_Read... [18:54:51]Read from MH i2c: F0 [18:54:51]MH_I2C_Read... [18:54:51]Read from MH i2c: F0 09 00 [18:54:51]MH_I2C_Read... [18:54:51]Read from MH i2c: F0 09 00 8F 38 00 7E 8C 1E 67 D5 8D 6C 64 80 [18:54:51]GetLastDocTimeStamp 1730055060 [18:54:51]current date 1730055294 [18:54:51]FM_GetShiftState [18:54:51]SAM_PROTO_GetShiftState [18:54:51]wFMCommunicate request_size=4 [18:54:51]MH_SAM_APDU [18:54:51]CAPDU: 80 13 01 00 [18:54:51]Write to MH i2c: E2 08 00 90 38 80 13 01 00 00 00 00 00 45 [18:54:51]Write i2c OK [18:54:51]MH_I2C_Read... [18:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:51]Read from MH i2c: E2 [18:54:51]MH_I2C_Read... [18:54:51]Read from MH i2c: E2 0E 00 [18:54:51]MH_I2C_Read... [18:54:51]Read from MH i2c: E2 0E 00 90 38 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 BD [18:54:51]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:54:51]wFMCommunicate OK [18:54:51]SAM_PROTO_GetShiftState done [18:54:51]FM_GetShiftState done [18:54:51]opened in 1729988959 [18:54:51]opened+sec_in_day 1730075359 [18:54:51]quantity*price = 480001 [18:54:51]sum+1 = 480003 [18:54:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 4800.00 Внесено: 5000.00 СДАЧА: 200.00 НСП 1% : 42.48 НДС 12% : 509.74 Наличными: 4800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 247 27.10.2024 18:54 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа ДТ номер 126 сэкономлено 63.83 сом ФМ: 0000000000871745 ФД: 145824 ФПД: 37882746357083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185454&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145824&fm=37882746357083&tin=02508201610067®Number=0000000000091683&sum=480000 [18:54:52]StoreToDocumentArchive [18:54:52]shift 545 fd 145824 [18:54:52]save to /storage/0545/doc_00145824 [18:54:52]save last doc name /storage/0545/doc_00145824 to /storage/kkm_last_doc_name [18:54:52]save OK [18:54:52]Clear old archive folders... [18:54:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:54:52]tlvbuf is 00451940 [18:54:52]SAM_PROTO_ClearQueue [18:54:52]wFMCommunicate request_size=4 [18:54:52]MH_SAM_APDU [18:54:52]CAPDU: 80 09 00 00 [18:54:52]Write to MH i2c: E2 08 00 9D 38 80 09 00 00 00 00 00 00 47 [18:54:52]Write i2c OK [18:54:52]MH_I2C_Read... [18:54:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:52]Read from MH i2c: E2 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 03 00 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 03 00 9D 38 00 90 00 49 [18:54:52]RAPDU: 90 00 [18:54:52]wFMCommunicate OK [18:54:52]SAM_PROTO_ClearQueue done [18:54:52]KKMCreateOFDPacket [18:54:52]OFDProtocolAddRootSTLVToBuf [18:54:52]FM_MakeSignedData [18:54:52]FM_MakeSignedData [18:54:52]SAM_PROTO_SignData [18:54:52]wFMCommunicate request_size=4 [18:54:52]MH_SAM_APDU [18:54:52]CAPDU: 80 0D 01 02 [18:54:52]Write to MH i2c: E2 08 00 9E 38 80 0D 01 02 00 00 00 00 4F [18:54:52]Write i2c OK [18:54:52]MH_I2C_Read... [18:54:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:52]Read from MH i2c: E2 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 03 00 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 03 00 9E 38 00 90 00 4A [18:54:52]RAPDU: 90 00 [18:54:52]wFMCommunicate OK [18:54:52]wFMCommunicate request_size=255 [18:54:52]MH_SAM_APDU [18:54: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 32 FF 03 08 00 03 56 F9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 02 53 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 53 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E C7 00 00 00 00 07 04 06 00 00 53 07 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 7E 8C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A0 39 02 00 35 04 06 00 22 74 43 A3 [18:54:52]Write to MH i2c: E2 02 01 9F 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 32 FF 03 08 00 03 56 F9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 02 53 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 53 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E C7 00 00 00 00 07 04 06 00 00 53 07 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 7E 8C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A0 39 02 00 35 04 06 00 22 74 43 A3 00 00 14 [18:54:52]Write i2c OK [18:54:52]MH_I2C_Read... [18:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:52]Read from MH i2c: E2 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 03 00 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 03 00 9F 38 00 90 00 4B [18:54:52]RAPDU: 90 00 [18:54:52]wFMCommunicate OK [18:54:52]wFMCommunicate request_size=7 [18:54:52]MH_SAM_APDU [18:54:52]CAPDU: 80 0D 02 02 02 C5 5B [18:54:52]Write to MH i2c: E2 0A 00 A0 38 80 0D 02 02 02 00 C5 5B 00 00 76 [18:54:52]Write i2c OK [18:54:52]MH_I2C_Read... [18:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:52]Read from MH i2c: E2 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 03 00 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 03 00 A0 38 00 90 00 4C [18:54:52]RAPDU: 90 00 [18:54:52]wFMCommunicate OK [18:54:52]wFMCommunicate request_size=4 [18:54:52]MH_SAM_APDU [18:54:52]CAPDU: 80 0D 03 02 [18:54:52]Write to MH i2c: E2 08 00 A1 38 80 0D 03 02 00 00 00 00 54 [18:54:52]Write i2c OK [18:54:52]MH_I2C_Read... [18:54:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:52]Read from MH i2c: E2 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 0B 00 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 0B 00 A1 38 00 16 D4 5E 78 03 AE CB 22 90 00 B3 [18:54:52]RAPDU: 16 D4 5E 78 03 AE CB 22 90 00 [18:54:52]wFMCommunicate OK [18:54:52]SAM_PROTO_SignData done [18:54:52]FM_MakeSignedData done [18:54:52]CreateOFDProtocolMessage [18:54:52]wFMCommunicate request_size=4 [18:54:52]MH_SAM_APDU [18:54:52]CAPDU: 80 11 00 00 [18:54:52]Write to MH i2c: E2 08 00 A2 38 80 11 00 00 00 00 00 00 54 [18:54:52]Write i2c OK [18:54:52]MH_I2C_Read... [18:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:53]Read from MH i2c: E2 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: E2 17 00 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: E2 17 00 A2 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A7 [18:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:54:53]wFMCommunicate OK [18:54:53]CreateOFDProtocolMessage done [18:54:53]OFDSenderStorePacket 145824 [18:54:53]StoreOFDPacket docnum=145824 [18:54:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 BA F0 04 01 78 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 56 F9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 02 53 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 53 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E C7 00 00 00 00 07 04 06 00 00 53 07 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 7E 8C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A0 39 02 00 35 04 06 00 22 74 43 A3 C5 5B 16 D4 5E 78 03 AE CB 22 [18:54:53]CheckFolder [18:54:53]dirname=/storage/ofd_packets [18:54:53]CheckFolder done [18:54:53]ProducePacketName [18:54:53]name=ofd_packets/00145824 [18:54:53]NVStorageSaveData ofd_packets/00145824 [18:54:53]File name is /storage/ofd_packets/00145824 [18:54:53]Write 298 bytes [18:54:53]NVStorageSaveData done [18:54:53]OFDSenderStorePacket done [18:54:53]KKMCreateOFDPacket done [18:54:53]NVStorageSaveData kkm_last_timestamp [18:54:53]File name is /storage/kkm_last_timestamp [18:54:53]Write 4 bytes [18:54:53]NVStorageSaveData done [18:54:53]ExternCall_PrintAddStr [18:54:53]wPrintStart [18:54:53]Write to MH i2c: 01 00 00 A3 38 DB [18:54:53]Write i2c OK [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: 01 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: 01 07 00 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: 01 07 00 A3 38 00 00 00 00 00 FF 0F F0 [18:54:53]RasterBufferAndPrint [18:54:53]line Счет N : (1)160581 [18:54:53]line ИНН: 02508201610067 [18:54:53]line Контрольно-Кассовый Чек [18:54:53]line ПРОДАЖА [18:54:53]line ТРК (МРК, ГНК) : 11 [18:54:53]line Товар: 2710194210 [18:54:53]line ДТ-К-2 [18:54:53]line 63.830 * 75.20 [18:54:53]line = 4800.02 [18:54:53]line НДС 12% НСП 1% [18:54:53]line > о реализуемом товаре [18:54:53]line ОКРУГЛЕНИЕ: -0.02 [18:54:53]line ИТОГО: 4800.00 [18:54:53]line Внесено: 5000.00 [18:54:53]line СДАЧА: 200.00 [18:54:53]line НСП 1% : 42.48 [18:54:53]line НДС 12% : 509.74 [18:54:53]line Наличными: 4800.00 [18:54:53]line Безнал.: 0.00 [18:54:53]line Место: АЗС № 126 "Партнер Нефть" [18:54:53]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:54:53]line СНО: Общий режим [18:54:53]line Чек 247 27.10.2024 18:54 [18:54:53]line Смена: 545 ФФД: 1.0 [18:54:53]line ЗНМ: 0300000085 [18:54:53]line РНМ: 0000000000091683 [18:54:53]line Версия ККМ: 001 [18:54:53]line [18:54:53]line Дисконтная программа [18:54:53]line ДТ [18:54:53]line номер 126 [18:54:53]line сэкономлено 63.83 сом [18:54:53]line ФМ: 0000000000871745 [18:54:53]line ФД: 145824 [18:54:53]line ФПД: 37882746357083 [18:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185454&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145824&fm=37882746357083&tin=02508201610067®Number=0000000000091683&sum=480000 [18:54:53]OFD Sender: Processing packet 145824 [packets to send 206, broken 205] [18:54:53]ProducePacketName [18:54:53]name=ofd_packets/00145824 [18:54:53]OFD Sender: To server: pG, [18:54:53]CommunicateWithHost lk.salyk.kg:30040 [18:54:53]ConnectInit lk.salyk.kg [18:54:53]written 0, free lines is 4095 [18:54:53]Connected sock=10 [18:54:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 BA F0 04 01 78 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 56 F9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 02 53 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 53 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E C7 00 00 00 00 07 04 06 00 00 53 07 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 7E 8C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A0 39 02 00 35 04 06 00 22 74 43 A3 C5 5B 16 D4 5E 78 03 AE CB 22 [18:54:53]Write to MH i2c: 01 00 00 D3 38 0B [18:54:53]Write i2c OK [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: 01 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: 01 07 00 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: 01 07 00 D3 38 00 00 00 00 00 54 0C 72 [18:54:53]RasterBufferAndPrint [18:54:53]line [18:54:53]line [18:54:53]line [18:54:53]line [18:54:53]line [18:54:53]written 0, free lines is 3161 [18:54:53]MH_Cut [18:54:53]Write to MH i2c: D1 01 00 DA 38 01 E4 [18:54:53]Write i2c OK [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: D1 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: D1 01 00 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: D1 01 00 DA 38 00 E3 [18:54:53]Write to MH i2c: 01 00 00 DB 38 13 [18:54:53]Write i2c OK [18:54:53]MH_I2C_Read... [18:54:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 83 22 47 00 00 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 31 37 34 35 10 04 04 00 A0 39 02 00 F4 03 04 00 AB 31 1E 67 B6 04 01 00 00 B9 1F E8 21 77 46 BC 64 [18:54:53]CommunicateWithHost err = 0 [18:54:53]CheckOFDResponse [18:54:53]1017 (14) - 77093643461234 [18:54:53]1041 (16) - 0000000000871745 [18:54:53]1040 (4) - 145824 [18:54:53]1012 (4) - 27.10.2024 12:27 [18:54:53]1206 (1) - 0 [18:54:53]OFD Sender: Remove packet 145824 [18:54:53]ProducePacketName [18:54:53]name=ofd_packets/00145824 [18:54:53]NVStorageDeleteData [18:54:54]OFD Sender: No OFD packet to send [18:54:54]*** Cut start [18:54:54]*** Partial cut [18:54:54]*** CUTSNS_PIN = 1 [18:54:54]*** CUTSNS_PIN = 0 [18:54:54]*** Brake cut motor [18:54:55]Read from MH i2c: 01 [18:54:55]MH_I2C_Read... [18:54:55]*** Stop cut motor [18:54:55]*** Cut end [18:54:55]Read from MH i2c: 01 07 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 07 00 DB 38 00 00 00 00 00 FF 0F 28 [18:54:55]process_action close_receipt done [18:54:55]requested_data is exist [18:54:55]produce_requested_data [18:54:55]requested_item fm.sn is exist - process it [18:54:55]wFMCommunicate request_size=4 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 11 00 00 [18:54:55]Write to MH i2c: E2 08 00 DC 38 80 11 00 00 00 00 00 00 8E [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 17 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 17 00 DC 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E1 [18:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:54:55]wFMCommunicate OK [18:54:55]requested_item fd.num is exist - process it [18:54:55]SAM_PROTO_GetFieldsCounters [18:54:55]wFMCommunicate request_size=4 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 13 00 00 [18:54:55]Write to MH i2c: E2 08 00 DD 38 80 13 00 00 00 00 00 00 91 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 62 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 62 00 DD 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A0 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [18:54:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A0 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:55]wFMCommunicate OK [18:54:55]SAM_PROTO_GetFieldsCounters done [18:54:55]requested_item shift.num is exist - process it [18:54:55]requested_item shift.opened is exist - process it [18:54:55]req_shift_opened [18:54:55]FM_GetShiftState [18:54:55]SAM_PROTO_GetShiftState [18:54:55]wFMCommunicate request_size=4 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 13 01 00 [18:54:55]Write to MH i2c: E2 08 00 DE 38 80 13 01 00 00 00 00 00 93 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 0E 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 0E 00 DE 38 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0B [18:54:55]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:54:55]wFMCommunicate OK [18:54:55]SAM_PROTO_GetShiftState done [18:54:55]FM_GetShiftState done [18:54:55]req_shift_opened done [18:54:55]requested_item shift.open_date is exist - process it [18:54:55]req_shift_open_date [18:54:55]req_shift_open_date done [18:54:55]produce_requested_data done [18:54:55]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145824,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:54:55]process_action_free close_receipt [18:54:55]json_value_free [18:54:55]json_value_free done [18:54:55]process_json_proto returns [18:54:55]Send response to host [18:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145824,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:54:55]free response buf [18:54:55]execute_script done [18:54:55]execute_script returns [18:54:55]free content buf [18:54:55]Sock 7.Close socket [18:54:55]Sock 7.Thread stoped [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:54]accept exits with 9 [18:55:54]New connection [18:55:54]New thread 3066596708 created [18:55:54]Thread 3066740068 joined [18:55:54]Waiting for new connection... [18:55:54] Sock 9.Parse request [18:55:54]Sock 9.Check first char [18:55:54]Sock 9.First char is OK [18:55:54]request: POST /json_proto HTTP/1.0 [18:55:54]Method: POST [18:55:54]URL: /json_proto [18:55:54]Method is POST - this is cgi request [18:55:54]url: /json_proto [18:55:54]query_string will be loaded in cgi processing [18:55:54]execute_cgi json_proto POST (null) [18:55:54]execute_cgi path=json_proto method=POST [18:55:54]POST find Content-Length [18:55:54]Host: 172.17.40.195:8080 [18:55:54]Content-Length: 677 [18:55:54]Content-Type: application/json [18:55:54] [18:55:54]POST finish read [18:55:54]Found Content-Length = 677 [18:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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" ] } } [18:55:54]execute_script... [18:55: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)160582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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" ] } } [18:55:54]POST & json_proto [18:55:54]process_json_proto [18:55:54]json parsed OK: [18:55:54]protocol is kg_v1.0 [18:55:54]action value=close_receipt [18:55:54]process_action close_receipt [18:55:54]cmd_close_receipt [18:55:54]MH_GetDate [18:55:54]Write to MH i2c: F0 00 00 DF 38 06 [18:55:54]Write i2c OK [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: F0 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: F0 09 00 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: F0 09 00 DF 38 00 BD 8C 1E 67 D5 8D 6C 64 0F [18:55:54]GetLastDocTimeStamp 1730055294 [18:55:54]current date 1730055357 [18:55:54]FM_GetShiftState [18:55:54]SAM_PROTO_GetShiftState [18:55:54]wFMCommunicate request_size=4 [18:55:54]MH_SAM_APDU [18:55:54]CAPDU: 80 13 01 00 [18:55:54]Write to MH i2c: E2 08 00 E0 38 80 13 01 00 00 00 00 00 95 [18:55:54]Write i2c OK [18:55:54]MH_I2C_Read... [18:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:54]Read from MH i2c: E2 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 0E 00 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 0E 00 E0 38 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0D [18:55:54]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:55:54]wFMCommunicate OK [18:55:54]SAM_PROTO_GetShiftState done [18:55:54]FM_GetShiftState done [18:55:54]opened in 1729988959 [18:55:54]opened+sec_in_day 1730075359 [18:55:54]quantity*price = 40068 [18:55:54]sum+1 = 40069 [18:55:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 248 27.10.2024 18:55 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145825 ФПД: 55572650203362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185557&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145825&fm=55572650203362&tin=02508201610067®Number=0000000000091683&sum=40000 [18:55:55]StoreToDocumentArchive [18:55:55]shift 545 fd 145825 [18:55:55]save to /storage/0545/doc_00145825 [18:55:55]save last doc name /storage/0545/doc_00145825 to /storage/kkm_last_doc_name [18:55:55]save OK [18:55:55]Clear old archive folders... [18:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:55]tlvbuf is 00405430 [18:55:55]SAM_PROTO_ClearQueue [18:55:55]wFMCommunicate request_size=4 [18:55:55]MH_SAM_APDU [18:55:55]CAPDU: 80 09 00 00 [18:55:55]Write to MH i2c: E2 08 00 ED 38 80 09 00 00 00 00 00 00 97 [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 ED 38 00 90 00 99 [18:55:55]RAPDU: 90 00 [18:55:55]wFMCommunicate OK [18:55:55]SAM_PROTO_ClearQueue done [18:55:55]KKMCreateOFDPacket [18:55:55]OFDProtocolAddRootSTLVToBuf [18:55:55]FM_MakeSignedData [18:55:55]FM_MakeSignedData [18:55:55]SAM_PROTO_SignData [18:55:55]wFMCommunicate request_size=4 [18:55:55]MH_SAM_APDU [18:55:55]CAPDU: 80 0D 01 02 [18:55:55]Write to MH i2c: E2 08 00 EE 38 80 0D 01 02 00 00 00 00 9F [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 EE 38 00 90 00 9A [18:55:55]RAPDU: 90 00 [18:55:55]wFMCommunicate OK [18:55:55]wFMCommunicate request_size=255 [18:55:55]MH_SAM_APDU [18:55:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 F8 00 00 00 F4 03 04 00 BD 8C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A1 39 02 00 35 04 06 00 32 [18:55:55]Write to MH i2c: E2 02 01 EF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 F8 00 00 00 F4 03 04 00 BD 8C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A1 39 02 00 35 04 06 00 32 00 00 D4 [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:56]Read from MH i2c: E2 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 03 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 03 00 EF 38 00 90 00 9B [18:55:56]RAPDU: 90 00 [18:55:56]wFMCommunicate OK [18:55:56]wFMCommunicate request_size=10 [18:55:56]MH_SAM_APDU [18:55:56]CAPDU: 80 0D 02 02 05 8B 04 13 18 E2 [18:55:56]Write to MH i2c: E2 0D 00 F0 38 80 0D 02 02 05 00 8B 04 13 18 E2 00 00 48 [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:56]Read from MH i2c: E2 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 03 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 03 00 F0 38 00 90 00 9C [18:55:56]RAPDU: 90 00 [18:55:56]wFMCommunicate OK [18:55:56]wFMCommunicate request_size=4 [18:55:56]MH_SAM_APDU [18:55:56]CAPDU: 80 0D 03 02 [18:55:56]Write to MH i2c: E2 08 00 F1 38 80 0D 03 02 00 00 00 00 A4 [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:56]Read from MH i2c: E2 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 0B 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 0B 00 F1 38 00 B1 54 0C 7E 12 11 A2 62 90 00 5B [18:55:56]RAPDU: B1 54 0C 7E 12 11 A2 62 90 00 [18:55:56]wFMCommunicate OK [18:55:56]SAM_PROTO_SignData done [18:55:56]FM_MakeSignedData done [18:55:56]CreateOFDProtocolMessage [18:55:56]wFMCommunicate request_size=4 [18:55:56]MH_SAM_APDU [18:55:56]CAPDU: 80 11 00 00 [18:55:56]Write to MH i2c: E2 08 00 F2 38 80 11 00 00 00 00 00 00 A4 [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:56]Read from MH i2c: E2 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 17 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 17 00 F2 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F7 [18:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:55:56]wFMCommunicate OK [18:55:56]CreateOFDProtocolMessage done [18:55:56]OFDSenderStorePacket 145825 [18:55:56]StoreOFDPacket docnum=145825 [18:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9B 18 07 01 C7 5F 5A 03 01 00 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 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 F8 00 00 00 F4 03 04 00 BD 8C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A1 39 02 00 35 04 06 00 32 8B 04 13 18 E2 B1 54 0C 7E 12 11 A2 62 [18:55:56]CheckFolder [18:55:56]dirname=/storage/ofd_packets [18:55:56]CheckFolder done [18:55:56]ProducePacketName [18:55:56]name=ofd_packets/00145825 [18:55:56]NVStorageSaveData ofd_packets/00145825 [18:55:56]File name is /storage/ofd_packets/00145825 [18:55:56]Write 301 bytes [18:55:56]NVStorageSaveData done [18:55:56]OFDSenderStorePacket done [18:55:56]KKMCreateOFDPacket done [18:55:56]NVStorageSaveData kkm_last_timestamp [18:55:56]File name is /storage/kkm_last_timestamp [18:55:56]Write 4 bytes [18:55:56]NVStorageSaveData done [18:55:56]ExternCall_PrintAddStr [18:55:56]wPrintStart [18:55:56]Write to MH i2c: 01 00 00 F3 38 2B [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 07 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 07 00 F3 38 00 00 00 00 00 FF 0F 40 [18:55:56]RasterBufferAndPrint [18:55:56]line Счет N : (1)160582 [18:55:56]line ИНН: 02508201610067 [18:55:56]line Контрольно-Кассовый Чек [18:55:56]line ПРОДАЖА [18:55:56]line ТРК (МРК, ГНК) : 43 [18:55:56]line Товар: 2710124500 [18:55:56]line Аи-95-К-3 [18:55:56]line 5.400 * 74.20 [18:55:56]line = 400.68 [18:55:56]line НДС 12% НСП 1% [18:55:56]line > о реализуемом товаре [18:55:56]line ОКРУГЛЕНИЕ: -0.68 [18:55:56]line ИТОГО: 400.00 [18:55:56]line Внесено: 400.00 [18:55:56]line СДАЧА: 0.00 [18:55:56]line НСП 1% : 3.55 [18:55:56]line НДС 12% : 42.55 [18:55:56]line Наличными: 400.00 [18:55:56]line Безнал.: 0.00 [18:55:56]line Место: АЗС № 126 "Партнер Нефть" [18:55:56]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [18:55:56]line СНО: Общий режим [18:55:56]line Чек 248 27.10.2024 18:55 [18:55:56]line Смена: 545 ФФД: 1.0 [18:55:56]line ЗНМ: 0300000085 [18:55:56]line РНМ: 0000000000091683 [18:55:56]line Версия ККМ: 001 [18:55:56]line ФМ: 0000000000871745 [18:55:56]line ФД: 145825 [18:55:56]line ФПД: 55572650203362 [18:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185557&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145825&fm=55572650203362&tin=02508201610067®Number=0000000000091683&sum=40000 [18:55:56]written 0, free lines is 4095 [18:55:56]OFD Sender: Processing packet 145825 [packets to send 206, broken 205] [18:55:56]ProducePacketName [18:55:56]name=ofd_packets/00145825 [18:55:56]OFD Sender: To server: pG, [18:55:56]CommunicateWithHost lk.salyk.kg:30040 [18:55:56]ConnectInit lk.salyk.kg [18:55:56]Connected sock=10 [18:55:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9B 18 07 01 C7 5F 5A 03 01 00 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 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 F8 00 00 00 F4 03 04 00 BD 8C 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A1 39 02 00 35 04 06 00 32 8B 04 13 18 E2 B1 54 0C 7E 12 11 A2 62 [18:55:56]Write to MH i2c: 01 00 00 1E 39 57 [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 07 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 07 00 1E 39 00 00 00 00 00 B1 0C 1B [18:55:56]RasterBufferAndPrint [18:55:56]line [18:55:56]line [18:55:56]line [18:55:56]line [18:55:56]line [18:55:56]written 0, free lines is 3255 [18:55:56]MH_Cut [18:55:56]Write to MH i2c: D1 01 00 25 39 01 30 [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: D1 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: D1 01 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: D1 01 00 25 39 00 2F [18:55:56]Write to MH i2c: 01 00 00 26 39 5F [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E8 D0 47 00 3A 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A1 39 02 00 F4 03 04 00 EA 31 1E 67 B6 04 01 00 00 5B 16 9E B0 ED 2A 56 F7 [18:55:56]CommunicateWithHost err = 0 [18:55:56]CheckOFDResponse [18:55:56]1017 (14) - 77093643461234 [18:55:56]1041 (16) - 0000000000871745 [18:55:56]1040 (4) - 145825 [18:55:56]1012 (4) - 27.10.2024 12:28 [18:55:56]1206 (1) - 0 [18:55:56]OFD Sender: Remove packet 145825 [18:55:56]ProducePacketName [18:55:56]name=ofd_packets/00145825 [18:55:56]NVStorageDeleteData [18:55:57]OFD Sender: No OFD packet to send [18:55:57]*** Cut start [18:55:57]*** Partial cut [18:55:57]*** CUTSNS_PIN = 1 [18:55:57]*** CUTSNS_PIN = 0 [18:55:57]*** Brake cut motor [18:55:58]Read from MH i2c: 01 [18:55:58]MH_I2C_Read... [18:55:58]*** Stop cut motor [18:55:58]*** Cut end [18:55:58]Read from MH i2c: 01 07 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: 01 07 00 26 39 00 00 00 00 00 FF 0F 74 [18:55:58]process_action close_receipt done [18:55:58]requested_data is exist [18:55:58]produce_requested_data [18:55:58]requested_item fm.sn is exist - process it [18:55:58]wFMCommunicate request_size=4 [18:55:58]MH_SAM_APDU [18:55:58]CAPDU: 80 11 00 00 [18:55:58]Write to MH i2c: E2 08 00 27 39 80 11 00 00 00 00 00 00 DA [18:55:58]Write i2c OK [18:55:58]MH_I2C_Read... [18:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:58]Read from MH i2c: E2 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 17 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 17 00 27 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2D [18:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [18:55:58]wFMCommunicate OK [18:55:58]requested_item fd.num is exist - process it [18:55:58]SAM_PROTO_GetFieldsCounters [18:55:58]wFMCommunicate request_size=4 [18:55:58]MH_SAM_APDU [18:55:58]CAPDU: 80 13 00 00 [18:55:58]Write to MH i2c: E2 08 00 28 39 80 13 00 00 00 00 00 00 DD [18:55:58]Write i2c OK [18:55:58]MH_I2C_Read... [18:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:58]Read from MH i2c: E2 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 62 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 62 00 28 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A1 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [18:55:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A1 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:58]wFMCommunicate OK [18:55:58]SAM_PROTO_GetFieldsCounters done [18:55:58]requested_item shift.num is exist - process it [18:55:58]requested_item shift.opened is exist - process it [18:55:58]req_shift_opened [18:55:58]FM_GetShiftState [18:55:58]SAM_PROTO_GetShiftState [18:55:58]wFMCommunicate request_size=4 [18:55:58]MH_SAM_APDU [18:55:58]CAPDU: 80 13 01 00 [18:55:58]Write to MH i2c: E2 08 00 29 39 80 13 01 00 00 00 00 00 DF [18:55:58]Write i2c OK [18:55:58]MH_I2C_Read... [18:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:58]Read from MH i2c: E2 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 0E 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 0E 00 29 39 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 57 [18:55:58]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [18:55:58]wFMCommunicate OK [18:55:58]SAM_PROTO_GetShiftState done [18:55:58]FM_GetShiftState done [18:55:58]req_shift_opened done [18:55:58]requested_item shift.open_date is exist - process it [18:55:58]req_shift_open_date [18:55:58]req_shift_open_date done [18:55:58]produce_requested_data done [18:55:58]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145825,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [18:55:58]process_action_free close_receipt [18:55:58]json_value_free [18:55:58]json_value_free done [18:55:58]process_json_proto returns [18:55:58]Send response to host [18:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145825,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [18:55:58]free response buf [18:55:58]execute_script done [18:55:58]execute_script returns [18:55:58]free content buf [18:55:58]Sock 9.Close socket [18:55:58]Sock 9.Thread stoped [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]int [19:00:02]Write to MH i2c: 01 00 00 2A 39 63 [19:00:02]*** FLAG_PRN_KEY set [19:00:02]Write i2c OK [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: 01 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: 01 07 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: 01 07 00 2A 39 00 08 00 00 00 FF 0F 80 [19:00:02]state=0 [19:00:02]Key pressed [19:00:02]Feed [19:00:02]Write to MH i2c: D8 00 00 2B 39 3B [19:00:02]Write i2c OK [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: D8 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: D8 01 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: D8 01 00 2B 39 00 3C [19:00:02]int [19:00:02]Write to MH i2c: 01 00 00 2C 39 65 [19:00:02]Write i2c OK [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: 01 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: 01 07 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: 01 07 00 2C 39 00 48 00 00 00 3C 00 F0 [19:00:02]state=2 [19:00:02]Key pressed [19:00:02]int [19:00:02]Write to MH i2c: 01 00 00 2D 39 66 [19:00:02]*** FLAG_PRN_KEY reset [19:00:02]Write i2c OK [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: 01 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: 01 07 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: 01 07 00 2D 39 00 00 00 00 00 FD 0F 79 [19:00:02]state=2 [19:00:02]Stop feed [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:10]accept exits with 7 [19:01:10]New connection [19:01:10]New thread 3066740068 created [19:01:10]Thread 3066596708 joined [19:01:10]Waiting for new connection... [19:01:10] Sock 7.Parse request [19:01:10]Sock 7.Check first char [19:01:10]Sock 7.First char is OK [19:01:10]request: POST /json_proto HTTP/1.0 [19:01:10]Method: POST [19:01:10]URL: /json_proto [19:01:10]Method is POST - this is cgi request [19:01:10]url: /json_proto [19:01:10]query_string will be loaded in cgi processing [19:01:10]execute_cgi json_proto POST (null) [19:01:10]execute_cgi path=json_proto method=POST [19:01:10]POST find Content-Length [19:01:10]Host: 172.17.40.195:8080 [19:01:10]Content-Length: 769 [19:01:10]Content-Type: application/json [19:01:10] [19:01:10]POST finish read [19:01:10]Found Content-Length = 769 [19:01:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:10]execute_script... [19:01: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)160583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:10]POST & json_proto [19:01:10]process_json_proto [19:01:10]json parsed OK: [19:01:10]protocol is kg_v1.0 [19:01:10]action value=close_receipt [19:01:10]process_action close_receipt [19:01:10]cmd_close_receipt [19:01:10]MH_GetDate [19:01:10]Write to MH i2c: F0 00 00 2E 39 56 [19:01:10]Write i2c OK [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: F0 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: F0 09 00 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: F0 09 00 2E 39 00 F9 8D 1E 67 D5 8D 6C 64 9C [19:01:10]GetLastDocTimeStamp 1730055357 [19:01:10]current date 1730055673 [19:01:10]FM_GetShiftState [19:01:10]SAM_PROTO_GetShiftState [19:01:10]wFMCommunicate request_size=4 [19:01:10]MH_SAM_APDU [19:01:10]CAPDU: 80 13 01 00 [19:01:10]Write to MH i2c: E2 08 00 2F 39 80 13 01 00 00 00 00 00 E5 [19:01:10]Write i2c OK [19:01:10]MH_I2C_Read... [19:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:10]Read from MH i2c: E2 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: E2 0E 00 [19:01:10]MH_I2C_Read... [19:01:10]Read from MH i2c: E2 0E 00 2F 39 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5D [19:01:10]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:01:10]wFMCommunicate OK [19:01:10]SAM_PROTO_GetShiftState done [19:01:10]FM_GetShiftState done [19:01:10]opened in 1729988959 [19:01:10]opened+sec_in_day 1730075359 [19:01:10]quantity*price = 100015 [19:01:10]sum+1 = 100017 [19:01:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 249 27.10.2024 19:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145826 ФПД: 156423404501855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190113&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145826&fm=156423404501855&tin=02508201610067®Number=0000000000091683&sum=100016 [19:01:11]StoreToDocumentArchive [19:01:11]shift 545 fd 145826 [19:01:11]save to /storage/0545/doc_00145826 [19:01:11]save last doc name /storage/0545/doc_00145826 to /storage/kkm_last_doc_name [19:01:11]save OK [19:01:11]Clear old archive folders... [19:01:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:11]tlvbuf is 004056F0 [19:01:11]SAM_PROTO_ClearQueue [19:01:11]wFMCommunicate request_size=4 [19:01:11]MH_SAM_APDU [19:01:11]CAPDU: 80 09 00 00 [19:01:11]Write to MH i2c: E2 08 00 3C 39 80 09 00 00 00 00 00 00 E7 [19:01:11]Write i2c OK [19:01:11]MH_I2C_Read... [19:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:12]Read from MH i2c: E2 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 03 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 03 00 3C 39 00 90 00 E9 [19:01:12]RAPDU: 90 00 [19:01:12]wFMCommunicate OK [19:01:12]SAM_PROTO_ClearQueue done [19:01:12]KKMCreateOFDPacket [19:01:12]OFDProtocolAddRootSTLVToBuf [19:01:12]FM_MakeSignedData [19:01:12]FM_MakeSignedData [19:01:12]SAM_PROTO_SignData [19:01:12]wFMCommunicate request_size=4 [19:01:12]MH_SAM_APDU [19:01:12]CAPDU: 80 0D 01 02 [19:01:12]Write to MH i2c: E2 08 00 3D 39 80 0D 01 02 00 00 00 00 EF [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:12]Read from MH i2c: E2 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 03 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 03 00 3D 39 00 90 00 EA [19:01:12]RAPDU: 90 00 [19:01:12]wFMCommunicate OK [19:01:12]wFMCommunicate request_size=255 [19:01:12]MH_SAM_APDU [19:01: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 F9 8D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A2 39 02 00 35 04 06 00 8E [19:01:12]Write to MH i2c: E2 02 01 3E 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 F9 8D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A2 39 02 00 35 04 06 00 8E 00 00 29 [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:12]Read from MH i2c: E2 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 03 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 03 00 3E 39 00 90 00 EB [19:01:12]RAPDU: 90 00 [19:01:12]wFMCommunicate OK [19:01:12]wFMCommunicate request_size=10 [19:01:12]MH_SAM_APDU [19:01:12]CAPDU: 80 0D 02 02 05 44 29 75 BB 5F [19:01:12]Write to MH i2c: E2 0D 00 3F 39 80 0D 02 02 05 00 44 29 75 BB 5F 00 00 F8 [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:12]Read from MH i2c: E2 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 03 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 03 00 3F 39 00 90 00 EC [19:01:12]RAPDU: 90 00 [19:01:12]wFMCommunicate OK [19:01:12]wFMCommunicate request_size=4 [19:01:12]MH_SAM_APDU [19:01:12]CAPDU: 80 0D 03 02 [19:01:12]Write to MH i2c: E2 08 00 40 39 80 0D 03 02 00 00 00 00 F4 [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:12]Read from MH i2c: E2 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 0B 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 0B 00 40 39 00 92 37 9C 86 97 02 FA BD 90 00 30 [19:01:12]RAPDU: 92 37 9C 86 97 02 FA BD 90 00 [19:01:12]wFMCommunicate OK [19:01:12]SAM_PROTO_SignData done [19:01:12]FM_MakeSignedData done [19:01:12]CreateOFDProtocolMessage [19:01:12]wFMCommunicate request_size=4 [19:01:12]MH_SAM_APDU [19:01:12]CAPDU: 80 11 00 00 [19:01:12]Write to MH i2c: E2 08 00 41 39 80 11 00 00 00 00 00 00 F4 [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:12]Read from MH i2c: E2 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 17 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 17 00 41 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 47 [19:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:01:12]wFMCommunicate OK [19:01:12]CreateOFDProtocolMessage done [19:01:12]OFDSenderStorePacket 145826 [19:01:12]StoreOFDPacket docnum=145826 [19:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DD 91 07 01 C2 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 F9 8D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A2 39 02 00 35 04 06 00 8E 44 29 75 BB 5F 92 37 9C 86 97 02 FA BD [19:01:12]CheckFolder [19:01:12]dirname=/storage/ofd_packets [19:01:12]CheckFolder done [19:01:12]ProducePacketName [19:01:12]name=ofd_packets/00145826 [19:01:12]NVStorageSaveData ofd_packets/00145826 [19:01:12]File name is /storage/ofd_packets/00145826 [19:01:12]Write 301 bytes [19:01:12]NVStorageSaveData done [19:01:12]OFDSenderStorePacket done [19:01:12]KKMCreateOFDPacket done [19:01:12]NVStorageSaveData kkm_last_timestamp [19:01:12]File name is /storage/kkm_last_timestamp [19:01:12]Write 4 bytes [19:01:12]NVStorageSaveData done [19:01:12]ExternCall_PrintAddStr [19:01:12]wPrintStart [19:01:12]Write to MH i2c: 01 00 00 42 39 7B [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: 01 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: 01 07 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: 01 07 00 42 39 00 00 00 00 00 FF 0F 90 [19:01:12]RasterBufferAndPrint [19:01:12]line Счет N : (1)160583 [19:01:12]line ИНН: 02508201610067 [19:01:12]line Контрольно-Кассовый Чек [19:01:12]line ПРОДАЖА [19:01:12]line ТРК (МРК, ГНК) : 32 [19:01:12]line Товар: 2710124130 [19:01:12]line Аи-92-К-2 [19:01:12]line 14.950 * 66.90 [19:01:12]line = 1000.16 [19:01:12]line НДС 12% НСП 1% [19:01:12]line > о реализуемом товаре [19:01:12]line ИТОГО: 1000.16 [19:01:12]line НСП 1% : 8.85 [19:01:12]line НДС 12% : 106.21 [19:01:12]line Наличными: 0.00 [19:01:12]line Безнал.: 1000.16 [19:01:12]line Место: АЗС № 126 "Партнер Нефть" [19:01:12]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:01:12]line СНО: Общий режим [19:01:12]line Чек 249 27.10.2024 19:01 [19:01:12]line Смена: 545 ФФД: 1.0 [19:01:12]line ЗНМ: 0300000085 [19:01:12]line РНМ: 0000000000091683 [19:01:12]line Версия ККМ: 001 [19:01:12]line Платежная система: Mbank [19:01:12]line ФМ: 0000000000871745 [19:01:12]line ФД: 145826 [19:01:12]line ФПД: 156423404501855 [19:01:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190113&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145826&fm=156423404501855&tin=02508201610067®Number=0000000000091683&sum=100016 [19:01:12]written 0, free lines is 4095 [19:01:12]OFD Sender: Processing packet 145826 [packets to send 206, broken 205] [19:01:12]ProducePacketName [19:01:12]name=ofd_packets/00145826 [19:01:12]OFD Sender: To server: pG, [19:01:12]CommunicateWithHost lk.salyk.kg:30040 [19:01:12]ConnectInit lk.salyk.kg [19:01:12]Connected sock=10 [19:01:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 DD 91 07 01 C2 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 F9 8D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A2 39 02 00 35 04 06 00 8E 44 29 75 BB 5F 92 37 9C 86 97 02 FA BD [19:01:12]Write to MH i2c: 01 00 00 6B 39 A4 [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: 01 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: 01 07 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: 01 07 00 6B 39 00 00 00 00 00 DD 0C 94 [19:01:12]RasterBufferAndPrint [19:01:12]line [19:01:12]line [19:01:12]line [19:01:12]line [19:01:12]line [19:01:12]written 0, free lines is 3299 [19:01:12]MH_Cut [19:01:12]Write to MH i2c: D1 01 00 72 39 01 7D [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: D1 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: D1 01 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: D1 01 00 72 39 00 7C [19:01:12]Write to MH i2c: 01 00 00 73 39 AC [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 B2 01 47 00 81 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A2 39 02 00 F4 03 04 00 26 33 1E 67 B6 04 01 00 00 4B DB EF 4A AB 40 DC DC [19:01:13]CommunicateWithHost err = 0 [19:01:13]CheckOFDResponse [19:01:13]1017 (14) - 77093643461234 [19:01:13]1041 (16) - 0000000000871745 [19:01:13]1040 (4) - 145826 [19:01:13]1012 (4) - 27.10.2024 12:33 [19:01:13]1206 (1) - 0 [19:01:13]OFD Sender: Remove packet 145826 [19:01:13]ProducePacketName [19:01:13]name=ofd_packets/00145826 [19:01:13]NVStorageDeleteData [19:01:13]OFD Sender: No OFD packet to send [19:01:13]*** Cut start [19:01:13]*** Partial cut [19:01:13]*** CUTSNS_PIN = 1 [19:01:13]*** CUTSNS_PIN = 0 [19:01:13]*** Brake cut motor [19:01:14]Read from MH i2c: 01 [19:01:14]MH_I2C_Read... [19:01:14]*** Stop cut motor [19:01:14]*** Cut end [19:01:14]Read from MH i2c: 01 07 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: 01 07 00 73 39 00 00 00 00 00 FF 0F C1 [19:01:14]process_action close_receipt done [19:01:14]requested_data is exist [19:01:14]produce_requested_data [19:01:14]requested_item fm.sn is exist - process it [19:01:14]wFMCommunicate request_size=4 [19:01:14]MH_SAM_APDU [19:01:14]CAPDU: 80 11 00 00 [19:01:14]Write to MH i2c: E2 08 00 74 39 80 11 00 00 00 00 00 00 27 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:14]Read from MH i2c: E2 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 17 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 17 00 74 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 7A [19:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:01:14]wFMCommunicate OK [19:01:14]requested_item fd.num is exist - process it [19:01:14]SAM_PROTO_GetFieldsCounters [19:01:14]wFMCommunicate request_size=4 [19:01:14]MH_SAM_APDU [19:01:14]CAPDU: 80 13 00 00 [19:01:14]Write to MH i2c: E2 08 00 75 39 80 13 00 00 00 00 00 00 2A [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:14]Read from MH i2c: E2 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 62 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 62 00 75 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [19:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:14]wFMCommunicate OK [19:01:14]SAM_PROTO_GetFieldsCounters done [19:01:14]requested_item shift.num is exist - process it [19:01:14]requested_item shift.opened is exist - process it [19:01:14]req_shift_opened [19:01:14]FM_GetShiftState [19:01:14]SAM_PROTO_GetShiftState [19:01:14]wFMCommunicate request_size=4 [19:01:14]MH_SAM_APDU [19:01:14]CAPDU: 80 13 01 00 [19:01:14]Write to MH i2c: E2 08 00 76 39 80 13 01 00 00 00 00 00 2C [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:14]Read from MH i2c: E2 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0E 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0E 00 76 39 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A4 [19:01:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:01:14]wFMCommunicate OK [19:01:14]SAM_PROTO_GetShiftState done [19:01:14]FM_GetShiftState done [19:01:14]req_shift_opened done [19:01:14]requested_item shift.open_date is exist - process it [19:01:14]req_shift_open_date [19:01:14]req_shift_open_date done [19:01:14]produce_requested_data done [19:01:14]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145826,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:01:14]process_action_free close_receipt [19:01:14]json_value_free [19:01:14]json_value_free done [19:01:14]process_json_proto returns [19:01:14]Send response to host [19:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145826,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:01:14]free response buf [19:01:14]execute_script done [19:01:14]execute_script returns [19:01:14]free content buf [19:01:14]Sock 7.Close socket [19:01:14]Sock 7.Thread stoped [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:14]accept exits with 9 [19:03:14]New connection [19:03:14]New thread 3066596708 created [19:03:14]Thread 3066740068 joined [19:03:14]Waiting for new connection... [19:03:14] Sock 9.Parse request [19:03:14]Sock 9.Check first char [19:03:14]Sock 9.First char is OK [19:03:14]request: POST /json_proto HTTP/1.0 [19:03:14]Method: POST [19:03:14]URL: /json_proto [19:03:14]Method is POST - this is cgi request [19:03:14]url: /json_proto [19:03:14]query_string will be loaded in cgi processing [19:03:14]execute_cgi json_proto POST (null) [19:03:14]execute_cgi path=json_proto method=POST [19:03:14]POST find Content-Length [19:03:14]Host: 172.17.40.195:8080 [19:03:14]Content-Length: 679 [19:03:14]Content-Type: application/json [19:03:14] [19:03:14]POST finish read [19:03:14]Found Content-Length = 679 [19:03:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:14]execute_script... [19:03: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)160584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:14]POST & json_proto [19:03:14]process_json_proto [19:03:14]json parsed OK: [19:03:14]protocol is kg_v1.0 [19:03:14]action value=close_receipt [19:03:14]process_action close_receipt [19:03:14]cmd_close_receipt [19:03:14]MH_GetDate [19:03:14]Write to MH i2c: F0 00 00 77 39 9F [19:03:14]Write i2c OK [19:03:14]MH_I2C_Read... [19:03:14]Read from MH i2c: F0 [19:03:14]MH_I2C_Read... [19:03:14]Read from MH i2c: F0 09 00 [19:03:14]MH_I2C_Read... [19:03:14]Read from MH i2c: F0 09 00 77 39 00 75 8E 1E 67 D5 8D 6C 64 62 [19:03:14]GetLastDocTimeStamp 1730055673 [19:03:14]current date 1730055797 [19:03:14]FM_GetShiftState [19:03:14]SAM_PROTO_GetShiftState [19:03:14]wFMCommunicate request_size=4 [19:03:14]MH_SAM_APDU [19:03:14]CAPDU: 80 13 01 00 [19:03:14]Write to MH i2c: E2 08 00 78 39 80 13 01 00 00 00 00 00 2E [19:03:14]Write i2c OK [19:03:14]MH_I2C_Read... [19:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:14]Read from MH i2c: E2 [19:03:14]MH_I2C_Read... [19:03:14]Read from MH i2c: E2 0E 00 [19:03:14]MH_I2C_Read... [19:03:14]Read from MH i2c: E2 0E 00 78 39 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A6 [19:03:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:03:14]wFMCommunicate OK [19:03:14]SAM_PROTO_GetShiftState done [19:03:14]FM_GetShiftState done [19:03:14]opened in 1729988959 [19:03:14]opened+sec_in_day 1730075359 [19:03:14]quantity*price = 120015 [19:03:14]sum+1 = 120016 [19:03:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 250 27.10.2024 19:03 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145827 ФПД: 129376600468028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190317&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145827&fm=129376600468028&tin=02508201610067®Number=0000000000091683&sum=120000 [19:03:15]StoreToDocumentArchive [19:03:15]shift 545 fd 145827 [19:03:15]save to /storage/0545/doc_00145827 [19:03:15]save last doc name /storage/0545/doc_00145827 to /storage/kkm_last_doc_name [19:03:15]save OK [19:03:15]Clear old archive folders... [19:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:03:15]tlvbuf is 0045CCB0 [19:03:15]SAM_PROTO_ClearQueue [19:03:15]wFMCommunicate request_size=4 [19:03:15]MH_SAM_APDU [19:03:15]CAPDU: 80 09 00 00 [19:03:15]Write to MH i2c: E2 08 00 85 39 80 09 00 00 00 00 00 00 30 [19:03:15]Write i2c OK [19:03:15]MH_I2C_Read... [19:03:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:15]Read from MH i2c: E2 [19:03:15]MH_I2C_Read... [19:03:15]Read from MH i2c: E2 03 00 [19:03:15]MH_I2C_Read... [19:03:15]Read from MH i2c: E2 03 00 85 39 00 90 00 32 [19:03:15]RAPDU: 90 00 [19:03:15]wFMCommunicate OK [19:03:15]SAM_PROTO_ClearQueue done [19:03:15]KKMCreateOFDPacket [19:03:15]OFDProtocolAddRootSTLVToBuf [19:03:15]FM_MakeSignedData [19:03:15]FM_MakeSignedData [19:03:15]SAM_PROTO_SignData [19:03:15]wFMCommunicate request_size=4 [19:03:15]MH_SAM_APDU [19:03:15]CAPDU: 80 0D 01 02 [19:03:15]Write to MH i2c: E2 08 00 86 39 80 0D 01 02 00 00 00 00 38 [19:03:15]Write i2c OK [19:03:15]MH_I2C_Read... [19:03:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:15]Read from MH i2c: E2 [19:03:15]MH_I2C_Read... [19:03:15]Read from MH i2c: E2 03 00 [19:03:15]MH_I2C_Read... [19:03:15]Read from MH i2c: E2 03 00 86 39 00 90 00 33 [19:03:15]RAPDU: 90 00 [19:03:15]wFMCommunicate OK [19:03:15]wFMCommunicate request_size=255 [19:03:15]MH_SAM_APDU [19:03: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 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 75 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A3 39 02 00 35 04 06 00 75 AA D6 50 [19:03:15]Write to MH i2c: E2 02 01 87 39 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 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 75 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A3 39 02 00 35 04 06 00 75 AA D6 50 00 00 F2 [19:03:15]Write i2c OK [19:03:15]MH_I2C_Read... [19:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:16]Read from MH i2c: E2 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: E2 03 00 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: E2 03 00 87 39 00 90 00 34 [19:03:16]RAPDU: 90 00 [19:03:16]wFMCommunicate OK [19:03:16]wFMCommunicate request_size=7 [19:03:16]MH_SAM_APDU [19:03:16]CAPDU: 80 0D 02 02 02 2A 3C [19:03:16]Write to MH i2c: E2 0A 00 88 39 80 0D 02 02 02 00 2A 3C 00 00 A5 [19:03:16]Write i2c OK [19:03:16]MH_I2C_Read... [19:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:16]Read from MH i2c: E2 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: E2 03 00 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: E2 03 00 88 39 00 90 00 35 [19:03:16]RAPDU: 90 00 [19:03:16]wFMCommunicate OK [19:03:16]wFMCommunicate request_size=4 [19:03:16]MH_SAM_APDU [19:03:16]CAPDU: 80 0D 03 02 [19:03:16]Write to MH i2c: E2 08 00 89 39 80 0D 03 02 00 00 00 00 3D [19:03:16]Write i2c OK [19:03:16]MH_I2C_Read... [19:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:16]Read from MH i2c: E2 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: E2 0B 00 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: E2 0B 00 89 39 00 82 5E 9F F1 99 E2 6B FE 90 00 92 [19:03:16]RAPDU: 82 5E 9F F1 99 E2 6B FE 90 00 [19:03:16]wFMCommunicate OK [19:03:16]SAM_PROTO_SignData done [19:03:16]FM_MakeSignedData done [19:03:16]CreateOFDProtocolMessage [19:03:16]wFMCommunicate request_size=4 [19:03:16]MH_SAM_APDU [19:03:16]CAPDU: 80 11 00 00 [19:03:16]Write to MH i2c: E2 08 00 8A 39 80 11 00 00 00 00 00 00 3D [19:03:16]Write i2c OK [19:03:16]MH_I2C_Read... [19:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:16]Read from MH i2c: E2 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: E2 17 00 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: E2 17 00 8A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 90 [19:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:03:16]wFMCommunicate OK [19:03:16]CreateOFDProtocolMessage done [19:03:16]OFDSenderStorePacket 145827 [19:03:16]StoreOFDPacket docnum=145827 [19:03:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 95 4C 04 01 07 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 75 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A3 39 02 00 35 04 06 00 75 AA D6 50 2A 3C 82 5E 9F F1 99 E2 6B FE [19:03:16]CheckFolder [19:03:16]dirname=/storage/ofd_packets [19:03:16]CheckFolder done [19:03:16]ProducePacketName [19:03:16]name=ofd_packets/00145827 [19:03:16]NVStorageSaveData ofd_packets/00145827 [19:03:16]File name is /storage/ofd_packets/00145827 [19:03:16]Write 298 bytes [19:03:16]NVStorageSaveData done [19:03:16]OFDSenderStorePacket done [19:03:16]KKMCreateOFDPacket done [19:03:16]NVStorageSaveData kkm_last_timestamp [19:03:16]File name is /storage/kkm_last_timestamp [19:03:16]Write 4 bytes [19:03:16]NVStorageSaveData done [19:03:16]ExternCall_PrintAddStr [19:03:16]wPrintStart [19:03:16]Write to MH i2c: 01 00 00 8B 39 C4 [19:03:16]Write i2c OK [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: 01 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: 01 07 00 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: 01 07 00 8B 39 00 00 00 00 00 FF 0F D9 [19:03:16]RasterBufferAndPrint [19:03:16]line Счет N : (1)160584 [19:03:16]line ИНН: 02508201610067 [19:03:16]line Контрольно-Кассовый Чек [19:03:16]line ПРОДАЖА [19:03:16]line ТРК (МРК, ГНК) : 11 [19:03:16]line Товар: 2710194210 [19:03:16]line ДТ-К-2 [19:03:16]line 15.750 * 76.20 [19:03:16]line = 1200.15 [19:03:16]line НДС 12% НСП 1% [19:03:16]line > о реализуемом товаре [19:03:16]line ОКРУГЛЕНИЕ: -0.15 [19:03:16]line ИТОГО: 1200.00 [19:03:16]line Внесено: 1200.00 [19:03:16]line СДАЧА: 0.00 [19:03:16]line НСП 1% : 10.62 [19:03:16]line НДС 12% : 127.45 [19:03:16]line Наличными: 1200.00 [19:03:16]line Безнал.: 0.00 [19:03:16]line Место: АЗС № 126 "Партнер Нефть" [19:03:16]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:03:16]line СНО: Общий режим [19:03:16]line Чек 250 27.10.2024 19:03 [19:03:16]line Смена: 545 ФФД: 1.0 [19:03:16]line ЗНМ: 0300000085 [19:03:16]line РНМ: 0000000000091683 [19:03:16]line Версия ККМ: 001 [19:03:16]line ФМ: 0000000000871745 [19:03:16]line ФД: 145827 [19:03:16]line ФПД: 129376600468028 [19:03:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190317&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145827&fm=129376600468028&tin=02508201610067®Number=0000000000091683&sum=120000 [19:03:16]OFD Sender: Processing packet 145827 [packets to send 206, broken 205] [19:03:16]ProducePacketName [19:03:16]name=ofd_packets/00145827 [19:03:16]OFD Sender: To server: pG, [19:03:16]CommunicateWithHost lk.salyk.kg:30040 [19:03:16]ConnectInit lk.salyk.kg [19:03:16]written 0, free lines is 4095 [19:03:16]Connected sock=10 [19:03:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 95 4C 04 01 07 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 75 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A3 39 02 00 35 04 06 00 75 AA D6 50 2A 3C 82 5E 9F F1 99 E2 6B FE [19:03:16]Write to MH i2c: 01 00 00 B6 39 EF [19:03:16]Write i2c OK [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: 01 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: 01 07 00 [19:03:16]MH_I2C_Read... [19:03:16]Read from MH i2c: 01 07 00 B6 39 00 00 00 00 00 AB 0C AD [19:03:16]RasterBufferAndPrint [19:03:16]line [19:03:16]line [19:03:16]line [19:03:16]line [19:03:16]line [19:03:16]written 0, free lines is 3250 [19:03:17]MH_Cut [19:03:17]Write to MH i2c: D1 01 00 BD 39 01 C8 [19:03:17]Write i2c OK [19:03:17]MH_I2C_Read... [19:03:17]Read from MH i2c: D1 [19:03:17]MH_I2C_Read... [19:03:17]Read from MH i2c: D1 01 00 [19:03:17]MH_I2C_Read... [19:03:17]Read from MH i2c: D1 01 00 BD 39 00 C7 [19:03:17]Write to MH i2c: 01 00 00 BE 39 F7 [19:03:17]Write i2c OK [19:03:17]MH_I2C_Read... [19:03:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 CA 68 47 00 6F 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A3 39 02 00 F4 03 04 00 A2 33 1E 67 B6 04 01 00 00 E6 CD 4E 28 EA 62 8F E3 [19:03:17]CommunicateWithHost err = 0 [19:03:17]CheckOFDResponse [19:03:17]1017 (14) - 77093643461234 [19:03:17]1041 (16) - 0000000000871745 [19:03:17]1040 (4) - 145827 [19:03:17]1012 (4) - 27.10.2024 12:35 [19:03:17]1206 (1) - 0 [19:03:17]OFD Sender: Remove packet 145827 [19:03:17]ProducePacketName [19:03:17]name=ofd_packets/00145827 [19:03:17]NVStorageDeleteData [19:03:17]OFD Sender: No OFD packet to send [19:03:17]*** Cut start [19:03:17]*** Partial cut [19:03:17]*** CUTSNS_PIN = 1 [19:03:17]*** CUTSNS_PIN = 0 [19:03:18]*** Brake cut motor [19:03:18]Read from MH i2c: 01 [19:03:18]MH_I2C_Read... [19:03:18]*** Stop cut motor [19:03:18]*** Cut end [19:03:18]Read from MH i2c: 01 07 00 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: 01 07 00 BE 39 00 00 00 00 00 FF 0F 0C [19:03:18]process_action close_receipt done [19:03:18]requested_data is exist [19:03:18]produce_requested_data [19:03:18]requested_item fm.sn is exist - process it [19:03:18]wFMCommunicate request_size=4 [19:03:18]MH_SAM_APDU [19:03:18]CAPDU: 80 11 00 00 [19:03:18]Write to MH i2c: E2 08 00 BF 39 80 11 00 00 00 00 00 00 72 [19:03:18]Write i2c OK [19:03:18]MH_I2C_Read... [19:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:18]Read from MH i2c: E2 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 17 00 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 17 00 BF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C5 [19:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:03:18]wFMCommunicate OK [19:03:18]requested_item fd.num is exist - process it [19:03:18]SAM_PROTO_GetFieldsCounters [19:03:18]wFMCommunicate request_size=4 [19:03:18]MH_SAM_APDU [19:03:18]CAPDU: 80 13 00 00 [19:03:18]Write to MH i2c: E2 08 00 C0 39 80 13 00 00 00 00 00 00 75 [19:03:18]Write i2c OK [19:03:18]MH_I2C_Read... [19:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:18]Read from MH i2c: E2 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 62 00 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 62 00 C0 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A3 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [19:03:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A3 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:18]wFMCommunicate OK [19:03:18]SAM_PROTO_GetFieldsCounters done [19:03:18]requested_item shift.num is exist - process it [19:03:18]requested_item shift.opened is exist - process it [19:03:18]req_shift_opened [19:03:18]FM_GetShiftState [19:03:18]SAM_PROTO_GetShiftState [19:03:18]wFMCommunicate request_size=4 [19:03:18]MH_SAM_APDU [19:03:18]CAPDU: 80 13 01 00 [19:03:18]Write to MH i2c: E2 08 00 C1 39 80 13 01 00 00 00 00 00 77 [19:03:18]Write i2c OK [19:03:18]MH_I2C_Read... [19:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:18]Read from MH i2c: E2 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 0E 00 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 0E 00 C1 39 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EF [19:03:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:03:18]wFMCommunicate OK [19:03:18]SAM_PROTO_GetShiftState done [19:03:18]FM_GetShiftState done [19:03:18]req_shift_opened done [19:03:18]requested_item shift.open_date is exist - process it [19:03:18]req_shift_open_date [19:03:18]req_shift_open_date done [19:03:18]produce_requested_data done [19:03:18]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145827,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:03:18]process_action_free close_receipt [19:03:18]json_value_free [19:03:18]json_value_free done [19:03:18]process_json_proto returns [19:03:18]Send response to host [19:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145827,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:03:18]free response buf [19:03:18]execute_script done [19:03:18]execute_script returns [19:03:18]free content buf [19:03:18]Sock 9.Close socket [19:03:18]Sock 9.Thread stoped [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:40]accept exits with 7 [19:04:40]New connection [19:04:40]New thread 3066740068 created [19:04:40]Thread 3066596708 joined [19:04:40]Waiting for new connection... [19:04:40] Sock 7.Parse request [19:04:40]Sock 7.Check first char [19:04:40]Sock 7.First char is OK [19:04:40]request: POST /json_proto HTTP/1.0 [19:04:40]Method: POST [19:04:40]URL: /json_proto [19:04:40]Method is POST - this is cgi request [19:04:40]url: /json_proto [19:04:40]query_string will be loaded in cgi processing [19:04:40]execute_cgi json_proto POST (null) [19:04:40]execute_cgi path=json_proto method=POST [19:04:40]POST find Content-Length [19:04:40]Host: 172.17.40.195:8080 [19:04:40]Content-Length: 769 [19:04:40]Content-Type: application/json [19:04:40] [19:04:40]POST finish read [19:04:40]Found Content-Length = 769 [19:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:40]execute_script... [19:04: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)160585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:40]POST & json_proto [19:04:40]process_json_proto [19:04:40]json parsed OK: [19:04:40]protocol is kg_v1.0 [19:04:40]action value=close_receipt [19:04:40]process_action close_receipt [19:04:40]cmd_close_receipt [19:04:40]MH_GetDate [19:04:40]Write to MH i2c: F0 00 00 C2 39 EA [19:04:40]Write i2c OK [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: F0 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: F0 09 00 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: F0 09 00 C2 39 00 CB 8E 1E 67 D5 8D 6C 64 03 [19:04:40]GetLastDocTimeStamp 1730055797 [19:04:40]current date 1730055883 [19:04:40]FM_GetShiftState [19:04:40]SAM_PROTO_GetShiftState [19:04:40]wFMCommunicate request_size=4 [19:04:40]MH_SAM_APDU [19:04:40]CAPDU: 80 13 01 00 [19:04:40]Write to MH i2c: E2 08 00 C3 39 80 13 01 00 00 00 00 00 79 [19:04:40]Write i2c OK [19:04:40]MH_I2C_Read... [19:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:40]Read from MH i2c: E2 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: E2 0E 00 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: E2 0E 00 C3 39 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F1 [19:04:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:04:40]wFMCommunicate OK [19:04:40]SAM_PROTO_GetShiftState done [19:04:40]FM_GetShiftState done [19:04:40]opened in 1729988959 [19:04:40]opened+sec_in_day 1730075359 [19:04:40]quantity*price = 150056 [19:04:40]sum+1 = 150058 [19:04:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 251 27.10.2024 19:04 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145828 ФПД: 75866153577118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190443&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145828&fm=75866153577118&tin=02508201610067®Number=0000000000091683&sum=150057 [19:04:41]StoreToDocumentArchive [19:04:41]shift 545 fd 145828 [19:04:41]save to /storage/0545/doc_00145828 [19:04:41]save last doc name /storage/0545/doc_00145828 to /storage/kkm_last_doc_name [19:04:41]save OK [19:04:41]Clear old archive folders... [19:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:04:41]tlvbuf is B6EA6350 [19:04:41]SAM_PROTO_ClearQueue [19:04:41]wFMCommunicate request_size=4 [19:04:41]MH_SAM_APDU [19:04:41]CAPDU: 80 09 00 00 [19:04:41]Write to MH i2c: E2 08 00 D0 39 80 09 00 00 00 00 00 00 7B [19:04:41]Write i2c OK [19:04:41]MH_I2C_Read... [19:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:41]Read from MH i2c: E2 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 03 00 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 03 00 D0 39 00 90 00 7D [19:04:41]RAPDU: 90 00 [19:04:41]wFMCommunicate OK [19:04:41]SAM_PROTO_ClearQueue done [19:04:41]KKMCreateOFDPacket [19:04:41]OFDProtocolAddRootSTLVToBuf [19:04:41]FM_MakeSignedData [19:04:41]FM_MakeSignedData [19:04:41]SAM_PROTO_SignData [19:04:41]wFMCommunicate request_size=4 [19:04:41]MH_SAM_APDU [19:04:41]CAPDU: 80 0D 01 02 [19:04:41]Write to MH i2c: E2 08 00 D1 39 80 0D 01 02 00 00 00 00 83 [19:04:41]Write i2c OK [19:04:41]MH_I2C_Read... [19:04:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:41]Read from MH i2c: E2 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 03 00 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 03 00 D1 39 00 90 00 7E [19:04:41]RAPDU: 90 00 [19:04:41]wFMCommunicate OK [19:04:41]wFMCommunicate request_size=255 [19:04:41]MH_SAM_APDU [19:04: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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CB 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A4 39 02 00 35 04 06 00 44 [19:04:41]Write to MH i2c: E2 02 01 D2 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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CB 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A4 39 02 00 35 04 06 00 44 00 00 ED [19:04:41]Write i2c OK [19:04:41]MH_I2C_Read... [19:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:41]Read from MH i2c: E2 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 03 00 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 03 00 D2 39 00 90 00 7F [19:04:41]RAPDU: 90 00 [19:04:41]wFMCommunicate OK [19:04:41]wFMCommunicate request_size=10 [19:04:41]MH_SAM_APDU [19:04:41]CAPDU: 80 0D 02 02 05 FF F7 22 6A 9E [19:04:41]Write to MH i2c: E2 0D 00 D3 39 80 0D 02 02 05 00 FF F7 22 6A 9E 00 00 B0 [19:04:41]Write i2c OK [19:04:41]MH_I2C_Read... [19:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:41]Read from MH i2c: E2 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 03 00 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 03 00 D3 39 00 90 00 80 [19:04:41]RAPDU: 90 00 [19:04:41]wFMCommunicate OK [19:04:41]wFMCommunicate request_size=4 [19:04:41]MH_SAM_APDU [19:04:41]CAPDU: 80 0D 03 02 [19:04:41]Write to MH i2c: E2 08 00 D4 39 80 0D 03 02 00 00 00 00 88 [19:04:41]Write i2c OK [19:04:41]MH_I2C_Read... [19:04:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:41]Read from MH i2c: E2 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 0B 00 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 0B 00 D4 39 00 BC 54 45 FB EF A6 4C 22 90 00 DC [19:04:41]RAPDU: BC 54 45 FB EF A6 4C 22 90 00 [19:04:41]wFMCommunicate OK [19:04:41]SAM_PROTO_SignData done [19:04:41]FM_MakeSignedData done [19:04:41]CreateOFDProtocolMessage [19:04:41]wFMCommunicate request_size=4 [19:04:41]MH_SAM_APDU [19:04:41]CAPDU: 80 11 00 00 [19:04:41]Write to MH i2c: E2 08 00 D5 39 80 11 00 00 00 00 00 00 88 [19:04:41]Write i2c OK [19:04:41]MH_I2C_Read... [19:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:41]Read from MH i2c: E2 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 17 00 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: E2 17 00 D5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 DB [19:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:04:41]wFMCommunicate OK [19:04:41]CreateOFDProtocolMessage done [19:04:41]OFDSenderStorePacket 145828 [19:04:41]StoreOFDPacket docnum=145828 [19:04:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 AE CA 07 01 F7 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CB 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A4 39 02 00 35 04 06 00 44 FF F7 22 6A 9E BC 54 45 FB EF A6 4C 22 [19:04:41]CheckFolder [19:04:41]dirname=/storage/ofd_packets [19:04:41]CheckFolder done [19:04:41]ProducePacketName [19:04:41]name=ofd_packets/00145828 [19:04:41]NVStorageSaveData ofd_packets/00145828 [19:04:41]File name is /storage/ofd_packets/00145828 [19:04:41]Write 301 bytes [19:04:41]NVStorageSaveData done [19:04:41]OFDSenderStorePacket done [19:04:41]KKMCreateOFDPacket done [19:04:41]NVStorageSaveData kkm_last_timestamp [19:04:41]File name is /storage/kkm_last_timestamp [19:04:41]Write 4 bytes [19:04:41]NVStorageSaveData done [19:04:41]ExternCall_PrintAddStr [19:04:41]wPrintStart [19:04:41]Write to MH i2c: 01 00 00 D6 39 0F [19:04:41]Write i2c OK [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: 01 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: 01 07 00 [19:04:41]MH_I2C_Read... [19:04:41]Read from MH i2c: 01 07 00 D6 39 00 00 00 00 00 FF 0F 24 [19:04:41]RasterBufferAndPrint [19:04:41]line Счет N : (1)160585 [19:04:41]line ИНН: 02508201610067 [19:04:41]line Контрольно-Кассовый Чек [19:04:41]line ПРОДАЖА [19:04:41]line ТРК (МРК, ГНК) : 42 [19:04:41]line Товар: 2710124130 [19:04:41]line Аи-92-К-2 [19:04:41]line 22.430 * 66.90 [19:04:41]line = 1500.57 [19:04:41]line НДС 12% НСП 1% [19:04:41]line > о реализуемом товаре [19:04:41]line ИТОГО: 1500.57 [19:04:41]line НСП 1% : 13.28 [19:04:41]line НДС 12% : 159.35 [19:04:41]line Наличными: 0.00 [19:04:41]line Безнал.: 1500.57 [19:04:41]line Место: АЗС № 126 "Партнер Нефть" [19:04:41]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:04:41]line СНО: Общий режим [19:04:41]line Чек 251 27.10.2024 19:04 [19:04:41]line Смена: 545 ФФД: 1.0 [19:04:41]line ЗНМ: 0300000085 [19:04:41]line РНМ: 0000000000091683 [19:04:41]line Версия ККМ: 001 [19:04:41]line Платежная система: Mbank [19:04:41]line ФМ: 0000000000871745 [19:04:41]line ФД: 145828 [19:04:41]line ФПД: 75866153577118 [19:04:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190443&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145828&fm=75866153577118&tin=02508201610067®Number=0000000000091683&sum=150057 [19:04:41]written 0, free lines is 4095 [19:04:41]OFD Sender: Processing packet 145828 [packets to send 206, broken 205] [19:04:41]ProducePacketName [19:04:41]name=ofd_packets/00145828 [19:04:41]OFD Sender: To server: pG, [19:04:41]CommunicateWithHost lk.salyk.kg:30040 [19:04:41]ConnectInit lk.salyk.kg [19:04:42]Connected sock=10 [19:04:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 AE CA 07 01 F7 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CB 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A4 39 02 00 35 04 06 00 44 FF F7 22 6A 9E BC 54 45 FB EF A6 4C 22 [19:04:42]Write to MH i2c: 01 00 00 FF 39 38 [19:04:42]Write i2c OK [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: 01 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: 01 07 00 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: 01 07 00 FF 39 00 00 00 00 00 D9 0C 24 [19:04:42]RasterBufferAndPrint [19:04:42]line [19:04:42]line [19:04:42]line [19:04:42]line [19:04:42]line [19:04:42]written 0, free lines is 3295 [19:04:42]MH_Cut [19:04:42]Write to MH i2c: D1 01 00 06 3A 01 12 [19:04:42]Write i2c OK [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: D1 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: D1 01 00 [19:04:42]MH_I2C_Read... [19:04:42]Read from MH i2c: D1 01 00 06 3A 00 11 [19:04:42]Write to MH i2c: 01 00 00 07 3A 41 [19:04:42]Write i2c OK [19:04:42]MH_I2C_Read... [19:04:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 54 C6 47 00 33 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A4 39 02 00 F4 03 04 00 F7 33 1E 67 B6 04 01 00 00 CB 78 FB A7 20 93 4F 10 [19:04:42]CommunicateWithHost err = 0 [19:04:42]CheckOFDResponse [19:04:42]1017 (14) - 77093643461234 [19:04:42]1041 (16) - 0000000000871745 [19:04:42]1040 (4) - 145828 [19:04:42]1012 (4) - 27.10.2024 12:37 [19:04:42]1206 (1) - 0 [19:04:42]OFD Sender: Remove packet 145828 [19:04:42]ProducePacketName [19:04:42]name=ofd_packets/00145828 [19:04:42]NVStorageDeleteData [19:04:43]OFD Sender: No OFD packet to send [19:04:43]*** Cut start [19:04:43]*** Partial cut [19:04:43]*** CUTSNS_PIN = 1 [19:04:43]*** CUTSNS_PIN = 0 [19:04:43]*** Brake cut motor [19:04:43]Read from MH i2c: 01 [19:04:43]MH_I2C_Read... [19:04:43]*** Stop cut motor [19:04:43]*** Cut end [19:04:43]Read from MH i2c: 01 07 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: 01 07 00 07 3A 00 00 00 00 00 FF 0F 56 [19:04:43]process_action close_receipt done [19:04:43]requested_data is exist [19:04:43]produce_requested_data [19:04:43]requested_item fm.sn is exist - process it [19:04:43]wFMCommunicate request_size=4 [19:04:43]MH_SAM_APDU [19:04:43]CAPDU: 80 11 00 00 [19:04:43]Write to MH i2c: E2 08 00 08 3A 80 11 00 00 00 00 00 00 BC [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:43]Read from MH i2c: E2 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: E2 17 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: E2 17 00 08 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0F [19:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:04:43]wFMCommunicate OK [19:04:43]requested_item fd.num is exist - process it [19:04:43]SAM_PROTO_GetFieldsCounters [19:04:43]wFMCommunicate request_size=4 [19:04:43]MH_SAM_APDU [19:04:43]CAPDU: 80 13 00 00 [19:04:43]Write to MH i2c: E2 08 00 09 3A 80 13 00 00 00 00 00 00 BF [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:43]Read from MH i2c: E2 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: E2 62 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: E2 62 00 09 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A4 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [19: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A4 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:43]wFMCommunicate OK [19:04:43]SAM_PROTO_GetFieldsCounters done [19:04:43]requested_item shift.num is exist - process it [19:04:43]requested_item shift.opened is exist - process it [19:04:43]req_shift_opened [19:04:43]FM_GetShiftState [19:04:43]SAM_PROTO_GetShiftState [19:04:43]wFMCommunicate request_size=4 [19:04:43]MH_SAM_APDU [19:04:43]CAPDU: 80 13 01 00 [19:04:43]Write to MH i2c: E2 08 00 0A 3A 80 13 01 00 00 00 00 00 C1 [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:44]Read from MH i2c: E2 [19:04:44]MH_I2C_Read... [19:04:44]Read from MH i2c: E2 0E 00 [19:04:44]MH_I2C_Read... [19:04:44]Read from MH i2c: E2 0E 00 0A 3A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 39 [19:04:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:04:44]wFMCommunicate OK [19:04:44]SAM_PROTO_GetShiftState done [19:04:44]FM_GetShiftState done [19:04:44]req_shift_opened done [19:04:44]requested_item shift.open_date is exist - process it [19:04:44]req_shift_open_date [19:04:44]req_shift_open_date done [19:04:44]produce_requested_data done [19:04:44]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145828,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:04:44]process_action_free close_receipt [19:04:44]json_value_free [19:04:44]json_value_free done [19:04:44]process_json_proto returns [19:04:44]Send response to host [19:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145828,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:04:44]free response buf [19:04:44]execute_script done [19:04:44]execute_script returns [19:04:44]free content buf [19:04:44]Sock 7.Close socket [19:04:44]Sock 7.Thread stoped [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:02]accept exits with 9 [19:05:02]New connection [19:05:02]New thread 3066596708 created [19:05:02]Thread 3066740068 joined [19:05:02]Waiting for new connection... [19:05:02] Sock 9.Parse request [19:05:02]Sock 9.Check first char [19:05:02]Sock 9.First char is OK [19:05:02]request: POST /json_proto HTTP/1.0 [19:05:02]Method: POST [19:05:02]URL: /json_proto [19:05:02]Method is POST - this is cgi request [19:05:02]url: /json_proto [19:05:02]query_string will be loaded in cgi processing [19:05:02]execute_cgi json_proto POST (null) [19:05:02]execute_cgi path=json_proto method=POST [19:05:02]POST find Content-Length [19:05:02]Host: 172.17.40.195:8080 [19:05:02]Content-Length: 682 [19:05:02]Content-Type: application/json [19:05:02] [19:05:02]POST finish read [19:05:02]Found Content-Length = 682 [19:05:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:02]execute_script... [19:05: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)160586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:02]POST & json_proto [19:05:02]process_json_proto [19:05:02]json parsed OK: [19:05:02]protocol is kg_v1.0 [19:05:02]action value=close_receipt [19:05:02]process_action close_receipt [19:05:02]cmd_close_receipt [19:05:02]MH_GetDate [19:05:02]Write to MH i2c: F0 00 00 0B 3A 34 [19:05:02]Write i2c OK [19:05:02]MH_I2C_Read... [19:05:02]Read from MH i2c: F0 [19:05:02]MH_I2C_Read... [19:05:02]Read from MH i2c: F0 09 00 [19:05:02]MH_I2C_Read... [19:05:02]Read from MH i2c: F0 09 00 0B 3A 00 E1 8E 1E 67 D5 8D 6C 64 63 [19:05:02]GetLastDocTimeStamp 1730055883 [19:05:02]current date 1730055905 [19:05:02]FM_GetShiftState [19:05:02]SAM_PROTO_GetShiftState [19:05:02]wFMCommunicate request_size=4 [19:05:02]MH_SAM_APDU [19:05:02]CAPDU: 80 13 01 00 [19:05:02]Write to MH i2c: E2 08 00 0C 3A 80 13 01 00 00 00 00 00 C3 [19:05:02]Write i2c OK [19:05:02]MH_I2C_Read... [19:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:02]Read from MH i2c: E2 [19:05:02]MH_I2C_Read... [19:05:02]Read from MH i2c: E2 0E 00 [19:05:02]MH_I2C_Read... [19:05:02]Read from MH i2c: E2 0E 00 0C 3A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3B [19:05:02]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:05:02]wFMCommunicate OK [19:05:02]SAM_PROTO_GetShiftState done [19:05:02]FM_GetShiftState done [19:05:02]opened in 1729988959 [19:05:02]opened+sec_in_day 1730075359 [19:05:02]quantity*price = 100015 [19:05:02]sum+1 = 100017 [19:05:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 252 27.10.2024 19:05 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145829 ФПД: 27406611787777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190505&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145829&fm=27406611787777&tin=02508201610067®Number=0000000000091683&sum=100000 [19:05:04]StoreToDocumentArchive [19:05:04]shift 545 fd 145829 [19:05:04]save to /storage/0545/doc_00145829 [19:05:04]save last doc name /storage/0545/doc_00145829 to /storage/kkm_last_doc_name [19:05:04]save OK [19:05:04]Clear old archive folders... [19:05:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:04]tlvbuf is B6F24BD0 [19:05:04]SAM_PROTO_ClearQueue [19:05:04]wFMCommunicate request_size=4 [19:05:04]MH_SAM_APDU [19:05:04]CAPDU: 80 09 00 00 [19:05:04]Write to MH i2c: E2 08 00 19 3A 80 09 00 00 00 00 00 00 C5 [19:05:04]Write i2c OK [19:05:04]MH_I2C_Read... [19:05:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:04]Read from MH i2c: E2 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 03 00 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 03 00 19 3A 00 90 00 C7 [19:05:04]RAPDU: 90 00 [19:05:04]wFMCommunicate OK [19:05:04]SAM_PROTO_ClearQueue done [19:05:04]KKMCreateOFDPacket [19:05:04]OFDProtocolAddRootSTLVToBuf [19:05:04]FM_MakeSignedData [19:05:04]FM_MakeSignedData [19:05:04]SAM_PROTO_SignData [19:05:04]wFMCommunicate request_size=4 [19:05:04]MH_SAM_APDU [19:05:04]CAPDU: 80 0D 01 02 [19:05:04]Write to MH i2c: E2 08 00 1A 3A 80 0D 01 02 00 00 00 00 CD [19:05:04]Write i2c OK [19:05:04]MH_I2C_Read... [19:05:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:04]Read from MH i2c: E2 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 03 00 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 03 00 1A 3A 00 90 00 C8 [19:05:04]RAPDU: 90 00 [19:05:04]wFMCommunicate OK [19:05:04]wFMCommunicate request_size=255 [19:05:04]MH_SAM_APDU [19:05: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E1 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A5 39 02 00 35 04 06 00 18 [19:05:04]Write to MH i2c: E2 02 01 1B 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E1 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A5 39 02 00 35 04 06 00 18 00 00 60 [19:05:04]Write i2c OK [19:05:04]MH_I2C_Read... [19:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:04]Read from MH i2c: E2 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 03 00 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 03 00 1B 3A 00 90 00 C9 [19:05:04]RAPDU: 90 00 [19:05:04]wFMCommunicate OK [19:05:04]wFMCommunicate request_size=10 [19:05:04]MH_SAM_APDU [19:05:04]CAPDU: 80 0D 02 02 05 ED 19 5C 30 01 [19:05:04]Write to MH i2c: E2 0D 00 1C 3A 80 0D 02 02 05 00 ED 19 5C 30 01 00 00 6D [19:05:04]Write i2c OK [19:05:04]MH_I2C_Read... [19:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:04]Read from MH i2c: E2 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 03 00 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 03 00 1C 3A 00 90 00 CA [19:05:04]RAPDU: 90 00 [19:05:04]wFMCommunicate OK [19:05:04]wFMCommunicate request_size=4 [19:05:04]MH_SAM_APDU [19:05:04]CAPDU: 80 0D 03 02 [19:05:04]Write to MH i2c: E2 08 00 1D 3A 80 0D 03 02 00 00 00 00 D2 [19:05:04]Write i2c OK [19:05:04]MH_I2C_Read... [19:05:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:04]Read from MH i2c: E2 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 0B 00 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 0B 00 1D 3A 00 A8 23 5F B3 90 9E CC 02 90 00 AC [19:05:04]RAPDU: A8 23 5F B3 90 9E CC 02 90 00 [19:05:04]wFMCommunicate OK [19:05:04]SAM_PROTO_SignData done [19:05:04]FM_MakeSignedData done [19:05:04]CreateOFDProtocolMessage [19:05:04]wFMCommunicate request_size=4 [19:05:04]MH_SAM_APDU [19:05:04]CAPDU: 80 11 00 00 [19:05:04]Write to MH i2c: E2 08 00 1E 3A 80 11 00 00 00 00 00 00 D2 [19:05:04]Write i2c OK [19:05:04]MH_I2C_Read... [19:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:04]Read from MH i2c: E2 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 17 00 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: E2 17 00 1E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 25 [19:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:05:04]wFMCommunicate OK [19:05:04]CreateOFDProtocolMessage done [19:05:04]OFDSenderStorePacket 145829 [19:05:04]StoreOFDPacket docnum=145829 [19:05:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 85 A9 07 01 69 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E1 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A5 39 02 00 35 04 06 00 18 ED 19 5C 30 01 A8 23 5F B3 90 9E CC 02 [19:05:04]CheckFolder [19:05:04]dirname=/storage/ofd_packets [19:05:04]CheckFolder done [19:05:04]ProducePacketName [19:05:04]name=ofd_packets/00145829 [19:05:04]NVStorageSaveData ofd_packets/00145829 [19:05:04]File name is /storage/ofd_packets/00145829 [19:05:04]Write 301 bytes [19:05:04]NVStorageSaveData done [19:05:04]OFDSenderStorePacket done [19:05:04]KKMCreateOFDPacket done [19:05:04]NVStorageSaveData kkm_last_timestamp [19:05:04]File name is /storage/kkm_last_timestamp [19:05:04]Write 4 bytes [19:05:04]NVStorageSaveData done [19:05:04]ExternCall_PrintAddStr [19:05:04]wPrintStart [19:05:04]Write to MH i2c: 01 00 00 1F 3A 59 [19:05:04]Write i2c OK [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: 01 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: 01 07 00 [19:05:04]MH_I2C_Read... [19:05:04]Read from MH i2c: 01 07 00 1F 3A 00 00 00 00 00 FF 0F 6E [19:05:04]RasterBufferAndPrint [19:05:04]line Счет N : (1)160586 [19:05:04]line ИНН: 02508201610067 [19:05:04]line Контрольно-Кассовый Чек [19:05:04]line ПРОДАЖА [19:05:04]line ТРК (МРК, ГНК) : 32 [19:05:04]line Товар: 2710124130 [19:05:04]line Аи-92-К-2 [19:05:04]line 14.950 * 66.90 [19:05:04]line = 1000.16 [19:05:04]line НДС 12% НСП 1% [19:05:04]line > о реализуемом товаре [19:05:04]line ОКРУГЛЕНИЕ: -0.16 [19:05:04]line ИТОГО: 1000.00 [19:05:04]line Внесено: 1000.00 [19:05:04]line СДАЧА: 0.00 [19:05:04]line НСП 1% : 8.85 [19:05:04]line НДС 12% : 106.21 [19:05:04]line Наличными: 1000.00 [19:05:04]line Безнал.: 0.00 [19:05:04]line Место: АЗС № 126 "Партнер Нефть" [19:05:04]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:05:04]line СНО: Общий режим [19:05:04]line Чек 252 27.10.2024 19:05 [19:05:04]line Смена: 545 ФФД: 1.0 [19:05:04]line ЗНМ: 0300000085 [19:05:04]line РНМ: 0000000000091683 [19:05:04]line Версия ККМ: 001 [19:05:04]line ФМ: 0000000000871745 [19:05:04]line ФД: 145829 [19:05:04]line ФПД: 27406611787777 [19:05:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190505&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145829&fm=27406611787777&tin=02508201610067®Number=0000000000091683&sum=100000 [19:05:04]OFD Sender: Processing packet 145829 [packets to send 206, broken 205] [19:05:04]ProducePacketName [19:05:04]name=ofd_packets/00145829 [19:05:04]OFD Sender: To server: pG, [19:05:04]CommunicateWithHost lk.salyk.kg:30040 [19:05:04]ConnectInit lk.salyk.kg [19:05:04]written 0, free lines is 4095 [19:05:05]Connected sock=10 [19:05:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 85 A9 07 01 69 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E1 8E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A5 39 02 00 35 04 06 00 18 ED 19 5C 30 01 A8 23 5F B3 90 9E CC 02 [19:05:05]Write to MH i2c: 01 00 00 4A 3A 84 [19:05:05]Write i2c OK [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: 01 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: 01 07 00 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: 01 07 00 4A 3A 00 00 00 00 00 B6 0C 4D [19:05:05]RasterBufferAndPrint [19:05:05]line [19:05:05]line [19:05:05]line [19:05:05]line [19:05:05]line [19:05:05]written 0, free lines is 3259 [19:05:05]MH_Cut [19:05:05]Write to MH i2c: D1 01 00 51 3A 01 5D [19:05:05]Write i2c OK [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: D1 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: D1 01 00 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: D1 01 00 51 3A 00 5C [19:05:05]Write to MH i2c: 01 00 00 52 3A 8C [19:05:05]Write i2c OK [19:05:05]MH_I2C_Read... [19:05:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E5 84 47 00 33 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A5 39 02 00 F4 03 04 00 0E 34 1E 67 B6 04 01 00 00 31 74 A5 FD CE E1 F0 94 [19:05:05]CommunicateWithHost err = 0 [19:05:05]CheckOFDResponse [19:05:05]1017 (14) - 77093643461234 [19:05:05]1041 (16) - 0000000000871745 [19:05:05]1040 (4) - 145829 [19:05:05]1012 (4) - 27.10.2024 12:37 [19:05:05]1206 (1) - 0 [19:05:05]OFD Sender: Remove packet 145829 [19:05:05]ProducePacketName [19:05:05]name=ofd_packets/00145829 [19:05:05]NVStorageDeleteData [19:05:05]OFD Sender: No OFD packet to send [19:05:06]*** Cut start [19:05:06]*** Partial cut [19:05:06]*** CUTSNS_PIN = 1 [19:05:06]*** CUTSNS_PIN = 0 [19:05:06]*** Brake cut motor [19:05:06]Read from MH i2c: 01 [19:05:06]MH_I2C_Read... [19:05:06]*** Stop cut motor [19:05:06]*** Cut end [19:05:06]Read from MH i2c: 01 07 00 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: 01 07 00 52 3A 00 00 00 00 00 FF 0F A1 [19:05:06]process_action close_receipt done [19:05:06]requested_data is exist [19:05:06]produce_requested_data [19:05:06]requested_item fm.sn is exist - process it [19:05:06]wFMCommunicate request_size=4 [19:05:06]MH_SAM_APDU [19:05:06]CAPDU: 80 11 00 00 [19:05:06]Write to MH i2c: E2 08 00 53 3A 80 11 00 00 00 00 00 00 07 [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:06]Read from MH i2c: E2 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 17 00 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 17 00 53 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 5A [19:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:05:06]wFMCommunicate OK [19:05:06]requested_item fd.num is exist - process it [19:05:06]SAM_PROTO_GetFieldsCounters [19:05:06]wFMCommunicate request_size=4 [19:05:06]MH_SAM_APDU [19:05:06]CAPDU: 80 13 00 00 [19:05:06]Write to MH i2c: E2 08 00 54 3A 80 13 00 00 00 00 00 00 0A [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:06]Read from MH i2c: E2 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 62 00 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 62 00 54 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A5 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [19:05:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A5 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:07]wFMCommunicate OK [19:05:07]SAM_PROTO_GetFieldsCounters done [19:05:07]requested_item shift.num is exist - process it [19:05:07]requested_item shift.opened is exist - process it [19:05:07]req_shift_opened [19:05:07]FM_GetShiftState [19:05:07]SAM_PROTO_GetShiftState [19:05:07]wFMCommunicate request_size=4 [19:05:07]MH_SAM_APDU [19:05:07]CAPDU: 80 13 01 00 [19:05:07]Write to MH i2c: E2 08 00 55 3A 80 13 01 00 00 00 00 00 0C [19:05:07]Write i2c OK [19:05:07]MH_I2C_Read... [19:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:07]Read from MH i2c: E2 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: E2 0E 00 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: E2 0E 00 55 3A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 84 [19:05:07]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:05:07]wFMCommunicate OK [19:05:07]SAM_PROTO_GetShiftState done [19:05:07]FM_GetShiftState done [19:05:07]req_shift_opened done [19:05:07]requested_item shift.open_date is exist - process it [19:05:07]req_shift_open_date [19:05:07]req_shift_open_date done [19:05:07]produce_requested_data done [19:05:07]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145829,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:05:07]process_action_free close_receipt [19:05:07]json_value_free [19:05:07]json_value_free done [19:05:07]process_json_proto returns [19:05:07]Send response to host [19:05:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145829,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:05:07]free response buf [19:05:07]execute_script done [19:05:07]execute_script returns [19:05:07]free content buf [19:05:07]Sock 9.Close socket [19:05:07]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:13]int [19:08:13]Write to MH i2c: 01 00 00 56 3A 90 [19:08:13]*** FLAG_PRN_KEY set [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 07 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 07 00 56 3A 00 08 00 00 00 FF 0F AD [19:08:13]state=0 [19:08:13]Key pressed [19:08:13]Feed [19:08:13]Write to MH i2c: D8 00 00 57 3A 68 [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: D8 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: D8 01 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: D8 01 00 57 3A 00 69 [19:08:13]int [19:08:13]Write to MH i2c: 01 00 00 58 3A 92 [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 07 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 07 00 58 3A 00 48 00 00 00 3C 00 1D [19:08:13]state=2 [19:08:13]Key pressed [19:08:13]int [19:08:13]Write to MH i2c: 01 00 00 59 3A 93 [19:08:13]*** FLAG_PRN_KEY reset [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 07 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: 01 07 00 59 3A 00 00 00 00 00 FB 0F A4 [19:08:13]state=2 [19:08:13]Stop feed [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:24]accept exits with 7 [19:10:24]New connection [19:10:24]New thread 3066740068 created [19:10:24]Thread 3066596708 joined [19:10:24]Waiting for new connection... [19:10:24] Sock 7.Parse request [19:10:24]Sock 7.Check first char [19:10:24]Sock 7.First char is OK [19:10:24]request: POST /json_proto HTTP/1.0 [19:10:24]Method: POST [19:10:24]URL: /json_proto [19:10:24]Method is POST - this is cgi request [19:10:24]url: /json_proto [19:10:24]query_string will be loaded in cgi processing [19:10:24]execute_cgi json_proto POST (null) [19:10:24]execute_cgi path=json_proto method=POST [19:10:24]POST find Content-Length [19:10:24]Host: 172.17.40.195:8080 [19:10:24]Content-Length: 688 [19:10:24]Content-Type: application/json [19:10:24] [19:10:24]POST finish read [19:10:24]Found Content-Length = 688 [19:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 41.460, "sum" : 3200.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:24]execute_script... [19:10: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)160587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 41.460, "sum" : 3200.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:24]POST & json_proto [19:10:24]process_json_proto [19:10:24]json parsed OK: [19:10:24]protocol is kg_v1.0 [19:10:24]action value=close_receipt [19:10:24]process_action close_receipt [19:10:24]cmd_close_receipt [19:10:24]MH_GetDate [19:10:24]Write to MH i2c: F0 00 00 5A 3A 83 [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: F0 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: F0 09 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: F0 09 00 5A 3A 00 23 90 1E 67 D5 8D 6C 64 F6 [19:10:24]GetLastDocTimeStamp 1730055905 [19:10:24]current date 1730056227 [19:10:24]FM_GetShiftState [19:10:24]SAM_PROTO_GetShiftState [19:10:24]wFMCommunicate request_size=4 [19:10:24]MH_SAM_APDU [19:10:24]CAPDU: 80 13 01 00 [19:10:24]Write to MH i2c: E2 08 00 5B 3A 80 13 01 00 00 00 00 00 12 [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:24]Read from MH i2c: E2 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 0E 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 0E 00 5B 3A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8A [19:10:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:10:24]wFMCommunicate OK [19:10:24]SAM_PROTO_GetShiftState done [19:10:24]FM_GetShiftState done [19:10:24]opened in 1729988959 [19:10:24]opened+sec_in_day 1730075359 [19:10:24]quantity*price = 320071 [19:10:24]sum+1 = 320072 [19:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 3200.00 Внесено: 3200.00 СДАЧА: 0.00 НСП 1% : 28.32 НДС 12% : 339.90 Наличными: 3200.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 253 27.10.2024 19:10 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145830 ФПД: 202486942456791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191027&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145830&fm=202486942456791&tin=02508201610067®Number=0000000000091683&sum=320000 [19:10:25]StoreToDocumentArchive [19:10:25]shift 545 fd 145830 [19:10:25]save to /storage/0545/doc_00145830 [19:10:25]save last doc name /storage/0545/doc_00145830 to /storage/kkm_last_doc_name [19:10:25]save OK [19:10:25]Clear old archive folders... [19:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:10:25]tlvbuf is 00557490 [19:10:25]SAM_PROTO_ClearQueue [19:10:25]wFMCommunicate request_size=4 [19:10:25]MH_SAM_APDU [19:10:25]CAPDU: 80 09 00 00 [19:10:25]Write to MH i2c: E2 08 00 68 3A 80 09 00 00 00 00 00 00 14 [19:10:25]Write i2c OK [19:10:25]MH_I2C_Read... [19:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:26]Read from MH i2c: E2 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 03 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 03 00 68 3A 00 90 00 16 [19:10:26]RAPDU: 90 00 [19:10:26]wFMCommunicate OK [19:10:26]SAM_PROTO_ClearQueue done [19:10:26]KKMCreateOFDPacket [19:10:26]OFDProtocolAddRootSTLVToBuf [19:10:26]FM_MakeSignedData [19:10:26]FM_MakeSignedData [19:10:26]SAM_PROTO_SignData [19:10:26]wFMCommunicate request_size=4 [19:10:26]MH_SAM_APDU [19:10:26]CAPDU: 80 0D 01 02 [19:10:26]Write to MH i2c: E2 08 00 69 3A 80 0D 01 02 00 00 00 00 1C [19:10:26]Write i2c OK [19:10:26]MH_I2C_Read... [19:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:26]Read from MH i2c: E2 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 03 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 03 00 69 3A 00 90 00 17 [19:10:26]RAPDU: 90 00 [19:10:26]wFMCommunicate OK [19:10:26]wFMCommunicate request_size=255 [19:10:26]MH_SAM_APDU [19:10:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 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 23 90 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A6 39 02 [19:10:26]Write to MH i2c: E2 02 01 6A 3A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 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 23 90 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A6 39 02 00 00 A6 [19:10:26]Write i2c OK [19:10:26]MH_I2C_Read... [19:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:26]Read from MH i2c: E2 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 03 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 03 00 6A 3A 00 90 00 18 [19:10:26]RAPDU: 90 00 [19:10:26]wFMCommunicate OK [19:10:26]wFMCommunicate request_size=16 [19:10:26]MH_SAM_APDU [19:10:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B8 29 2A 46 DB D7 [19:10:26]Write to MH i2c: E2 13 00 6B 3A 80 0D 02 02 0B 00 00 35 04 06 00 B8 29 2A 46 DB D7 00 00 77 [19:10:26]Write i2c OK [19:10:26]MH_I2C_Read... [19:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:26]Read from MH i2c: E2 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 03 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 03 00 6B 3A 00 90 00 19 [19:10:26]RAPDU: 90 00 [19:10:26]wFMCommunicate OK [19:10:26]wFMCommunicate request_size=4 [19:10:26]MH_SAM_APDU [19:10:26]CAPDU: 80 0D 03 02 [19:10:26]Write to MH i2c: E2 08 00 6C 3A 80 0D 03 02 00 00 00 00 21 [19:10:26]Write i2c OK [19:10:26]MH_I2C_Read... [19:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:26]Read from MH i2c: E2 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 0B 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 0B 00 6C 3A 00 56 E2 DD 56 CC E5 3E 61 90 00 DD [19:10:26]RAPDU: 56 E2 DD 56 CC E5 3E 61 90 00 [19:10:26]wFMCommunicate OK [19:10:26]SAM_PROTO_SignData done [19:10:26]FM_MakeSignedData done [19:10:26]CreateOFDProtocolMessage [19:10:26]wFMCommunicate request_size=4 [19:10:26]MH_SAM_APDU [19:10:26]CAPDU: 80 11 00 00 [19:10:26]Write to MH i2c: E2 08 00 6D 3A 80 11 00 00 00 00 00 00 21 [19:10:26]Write i2c OK [19:10:26]MH_I2C_Read... [19:10:26]OFD Sender: No OFD packet to send [19:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:26]Read from MH i2c: E2 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 17 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 17 00 6D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 74 [19:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:10:26]wFMCommunicate OK [19:10:26]CreateOFDProtocolMessage done [19:10:26]OFDSenderStorePacket 145830 [19:10:26]StoreOFDPacket docnum=145830 [19:10:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 49 5E 0D 01 D3 0A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 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 23 90 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A6 39 02 00 35 04 06 00 B8 29 2A 46 DB D7 56 E2 DD 56 CC E5 3E 61 [19:10:26]CheckFolder [19:10:26]dirname=/storage/ofd_packets [19:10:26]CheckFolder done [19:10:26]ProducePacketName [19:10:26]name=ofd_packets/00145830 [19:10:26]NVStorageSaveData ofd_packets/00145830 [19:10:26]File name is /storage/ofd_packets/00145830 [19:10:26]Write 307 bytes [19:10:26]NVStorageSaveData done [19:10:26]OFDSenderStorePacket done [19:10:26]KKMCreateOFDPacket done [19:10:26]NVStorageSaveData kkm_last_timestamp [19:10:26]File name is /storage/kkm_last_timestamp [19:10:26]Write 4 bytes [19:10:26]NVStorageSaveData done [19:10:26]ExternCall_PrintAddStr [19:10:26]wPrintStart [19:10:26]Write to MH i2c: 01 00 00 6E 3A A8 [19:10:26]Write i2c OK [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: 01 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: 01 07 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: 01 07 00 6E 3A 00 00 00 00 00 FF 0F BD [19:10:26]RasterBufferAndPrint [19:10:26]line Счет N : (1)160587 [19:10:26]line ИНН: 02508201610067 [19:10:26]line Контрольно-Кассовый Чек [19:10:26]line ПРОДАЖА [19:10:26]line ТРК (МРК, ГНК) : 31 [19:10:26]line Товар: 2710194240 [19:10:26]line D-Energy Дт-К-2 [19:10:26]line 41.460 * 77.20 [19:10:26]line = 3200.71 [19:10:26]line НДС 12% НСП 1% [19:10:26]line > о реализуемом товаре [19:10:26]line ОКРУГЛЕНИЕ: -0.71 [19:10:26]line ИТОГО: 3200.00 [19:10:26]line Внесено: 3200.00 [19:10:26]line СДАЧА: 0.00 [19:10:26]line НСП 1% : 28.32 [19:10:26]line НДС 12% : 339.90 [19:10:26]line Наличными: 3200.00 [19:10:26]line Безнал.: 0.00 [19:10:26]line Место: АЗС № 126 "Партнер Нефть" [19:10:26]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:10:26]line СНО: Общий режим [19:10:26]line Чек 253 27.10.2024 19:10 [19:10:26]line Смена: 545 ФФД: 1.0 [19:10:26]line ЗНМ: 0300000085 [19:10:26]line РНМ: 0000000000091683 [19:10:26]line Версия ККМ: 001 [19:10:26]line ФМ: 0000000000871745 [19:10:26]line ФД: 145830 [19:10:26]line ФПД: 202486942456791 [19:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191027&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145830&fm=202486942456791&tin=02508201610067®Number=0000000000091683&sum=320000 [19:10:26]written 0, free lines is 4095 [19:10:26]OFD Sender: Processing packet 145830 [packets to send 206, broken 205] [19:10:26]ProducePacketName [19:10:26]name=ofd_packets/00145830 [19:10:26]OFD Sender: To server: pG, [19:10:26]CommunicateWithHost lk.salyk.kg:30040 [19:10:26]ConnectInit lk.salyk.kg [19:10:26]Connected sock=10 [19:10:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 49 5E 0D 01 D3 0A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 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 23 90 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A6 39 02 00 35 04 06 00 B8 29 2A 46 DB D7 56 E2 DD 56 CC E5 3E 61 [19:10:26]Write to MH i2c: 01 00 00 99 3A D3 [19:10:26]Write i2c OK [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: 01 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: 01 07 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: 01 07 00 99 3A 00 00 00 00 00 B8 0C 9E [19:10:26]RasterBufferAndPrint [19:10:26]line [19:10:26]line [19:10:26]line [19:10:26]line [19:10:26]line [19:10:26]written 0, free lines is 3263 [19:10:26]MH_Cut [19:10:26]Write to MH i2c: D1 01 00 A0 3A 01 AC [19:10:26]Write i2c OK [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: D1 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: D1 01 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: D1 01 00 A0 3A 00 AB [19:10:27]Write to MH i2c: 01 00 00 A1 3A DB [19:10:27]Write i2c OK [19:10:27]MH_I2C_Read... [19:10:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 B7 E5 47 00 BF B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A6 39 02 00 F4 03 04 00 50 35 1E 67 B6 04 01 00 00 12 0D 8A B8 6B 93 E9 AE [19:10:27]CommunicateWithHost err = 0 [19:10:27]CheckOFDResponse [19:10:27]1017 (14) - 77093643461234 [19:10:27]1041 (16) - 0000000000871745 [19:10:27]1040 (4) - 145830 [19:10:27]1012 (4) - 27.10.2024 12:42 [19:10:27]1206 (1) - 0 [19:10:27]OFD Sender: Remove packet 145830 [19:10:27]ProducePacketName [19:10:27]name=ofd_packets/00145830 [19:10:27]NVStorageDeleteData [19:10:27]OFD Sender: No OFD packet to send [19:10:27]*** Cut start [19:10:27]*** Partial cut [19:10:27]*** CUTSNS_PIN = 1 [19:10:27]*** CUTSNS_PIN = 0 [19:10:28]*** Brake cut motor [19:10:28]Read from MH i2c: 01 [19:10:28]MH_I2C_Read... [19:10:28]*** Stop cut motor [19:10:28]*** Cut end [19:10:28]Read from MH i2c: 01 07 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: 01 07 00 A1 3A 00 00 00 00 00 FF 0F F0 [19:10:28]process_action close_receipt done [19:10:28]requested_data is exist [19:10:28]produce_requested_data [19:10:28]requested_item fm.sn is exist - process it [19:10:28]wFMCommunicate request_size=4 [19:10:28]MH_SAM_APDU [19:10:28]CAPDU: 80 11 00 00 [19:10:28]Write to MH i2c: E2 08 00 A2 3A 80 11 00 00 00 00 00 00 56 [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:28]Read from MH i2c: E2 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 17 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 17 00 A2 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A9 [19:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:10:28]wFMCommunicate OK [19:10:28]requested_item fd.num is exist - process it [19:10:28]SAM_PROTO_GetFieldsCounters [19:10:28]wFMCommunicate request_size=4 [19:10:28]MH_SAM_APDU [19:10:28]CAPDU: 80 13 00 00 [19:10:28]Write to MH i2c: E2 08 00 A3 3A 80 13 00 00 00 00 00 00 59 [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:28]Read from MH i2c: E2 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 62 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 62 00 A3 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A6 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [19:10:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A6 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:28]wFMCommunicate OK [19:10:28]SAM_PROTO_GetFieldsCounters done [19:10:28]requested_item shift.num is exist - process it [19:10:28]requested_item shift.opened is exist - process it [19:10:28]req_shift_opened [19:10:28]FM_GetShiftState [19:10:28]SAM_PROTO_GetShiftState [19:10:28]wFMCommunicate request_size=4 [19:10:28]MH_SAM_APDU [19:10:28]CAPDU: 80 13 01 00 [19:10:28]Write to MH i2c: E2 08 00 A4 3A 80 13 01 00 00 00 00 00 5B [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:28]Read from MH i2c: E2 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 0E 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 0E 00 A4 3A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D3 [19:10:28]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:10:28]wFMCommunicate OK [19:10:28]SAM_PROTO_GetShiftState done [19:10:28]FM_GetShiftState done [19:10:28]req_shift_opened done [19:10:28]requested_item shift.open_date is exist - process it [19:10:28]req_shift_open_date [19:10:28]req_shift_open_date done [19:10:28]produce_requested_data done [19:10:28]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145830,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:10:28]process_action_free close_receipt [19:10:28]json_value_free [19:10:28]json_value_free done [19:10:28]process_json_proto returns [19:10:28]Send response to host [19:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145830,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:10:28]free response buf [19:10:28]execute_script done [19:10:28]execute_script returns [19:10:28]free content buf [19:10:28]Sock 7.Close socket [19:10:28]Sock 7.Thread stoped [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [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:24]accept exits with 9 [19:12:24]New connection [19:12:24]New thread 3066596708 created [19:12:24]Thread 3066740068 joined [19:12:24]Waiting for new connection... [19:12:24] Sock 9.Parse request [19:12:24]Sock 9.Check first char [19:12:24]Sock 9.First char is OK [19:12:24]request: POST /json_proto HTTP/1.0 [19:12:24]Method: POST [19:12:24]URL: /json_proto [19:12:24]Method is POST - this is cgi request [19:12:24]url: /json_proto [19:12:24]query_string will be loaded in cgi processing [19:12:24]execute_cgi json_proto POST (null) [19:12:24]execute_cgi path=json_proto method=POST [19:12:24]POST find Content-Length [19:12:24]Host: 172.17.40.195:8080 [19:12:24]Content-Length: 682 [19:12:24]Content-Type: application/json [19:12:24] [19:12:24]POST finish read [19:12:24]Found Content-Length = 682 [19:12:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 45.010, "sum" : 3011.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3011.00, "payments": [ { "type": 0, "sum" : 3011.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:24]execute_script... [19: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)160588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 45.010, "sum" : 3011.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3011.00, "payments": [ { "type": 0, "sum" : 3011.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:24]POST & json_proto [19:12:24]process_json_proto [19:12:24]json parsed OK: [19:12:24]protocol is kg_v1.0 [19:12:24]action value=close_receipt [19:12:24]process_action close_receipt [19:12:24]cmd_close_receipt [19:12:24]MH_GetDate [19:12:24]Write to MH i2c: F0 00 00 A5 3A CE [19:12:24]Write i2c OK [19:12:24]MH_I2C_Read... [19:12:24]Read from MH i2c: F0 [19:12:24]MH_I2C_Read... [19:12:24]Read from MH i2c: F0 09 00 [19:12:24]MH_I2C_Read... [19:12:24]Read from MH i2c: F0 09 00 A5 3A 00 9B 90 1E 67 D5 8D 6C 64 B9 [19:12:24]GetLastDocTimeStamp 1730056227 [19:12:24]current date 1730056347 [19:12:24]FM_GetShiftState [19:12:24]SAM_PROTO_GetShiftState [19:12:24]wFMCommunicate request_size=4 [19:12:24]MH_SAM_APDU [19:12:24]CAPDU: 80 13 01 00 [19:12:24]Write to MH i2c: E2 08 00 A6 3A 80 13 01 00 00 00 00 00 5D [19:12:24]Write i2c OK [19:12:24]MH_I2C_Read... [19:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:24]Read from MH i2c: E2 [19:12:24]MH_I2C_Read... [19:12:24]Read from MH i2c: E2 0E 00 [19:12:24]MH_I2C_Read... [19:12:24]Read from MH i2c: E2 0E 00 A6 3A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D5 [19:12:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:12:24]wFMCommunicate OK [19:12:24]SAM_PROTO_GetShiftState done [19:12:24]FM_GetShiftState done [19:12:24]opened in 1729988959 [19:12:24]opened+sec_in_day 1730075359 [19:12:24]quantity*price = 301116 [19:12:24]sum+1 = 301118 [19:12:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 3011.00 Внесено: 5000.00 СДАЧА: 1989.00 НСП 1% : 26.65 НДС 12% : 319.77 Наличными: 3011.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 254 27.10.2024 19:12 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145831 ФПД: 116164235544059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191227&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145831&fm=116164235544059&tin=02508201610067®Number=0000000000091683&sum=301100 [19:12:25]StoreToDocumentArchive [19:12:25]shift 545 fd 145831 [19:12:25]save to /storage/0545/doc_00145831 [19:12:25]save last doc name /storage/0545/doc_00145831 to /storage/kkm_last_doc_name [19:12:25]save OK [19:12:25]Clear old archive folders... [19:12:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:25]tlvbuf is 0041F210 [19:12:25]SAM_PROTO_ClearQueue [19:12:25]wFMCommunicate request_size=4 [19:12:25]MH_SAM_APDU [19:12:25]CAPDU: 80 09 00 00 [19:12:25]Write to MH i2c: E2 08 00 B3 3A 80 09 00 00 00 00 00 00 5F [19:12:25]Write i2c OK [19:12:25]MH_I2C_Read... [19:12:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:25]Read from MH i2c: E2 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 03 00 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 03 00 B3 3A 00 90 00 61 [19:12:25]RAPDU: 90 00 [19:12:25]wFMCommunicate OK [19:12:25]SAM_PROTO_ClearQueue done [19:12:25]KKMCreateOFDPacket [19:12:25]OFDProtocolAddRootSTLVToBuf [19:12:25]FM_MakeSignedData [19:12:25]FM_MakeSignedData [19:12:25]SAM_PROTO_SignData [19:12:25]wFMCommunicate request_size=4 [19:12:25]MH_SAM_APDU [19:12:25]CAPDU: 80 0D 01 02 [19:12:25]Write to MH i2c: E2 08 00 B4 3A 80 0D 01 02 00 00 00 00 67 [19:12:25]Write i2c OK [19:12:25]MH_I2C_Read... [19:12:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:25]Read from MH i2c: E2 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 03 00 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 03 00 B4 3A 00 90 00 62 [19:12:25]RAPDU: 90 00 [19:12:25]wFMCommunicate OK [19:12:25]wFMCommunicate request_size=255 [19:12:25]MH_SAM_APDU [19: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 32 FF 03 08 00 03 D2 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D 98 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 98 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 7C 00 00 00 00 07 04 06 00 2C 98 04 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 9B 90 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A7 39 02 00 35 04 06 00 69 [19:12:25]Write to MH i2c: E2 02 01 B5 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 32 FF 03 08 00 03 D2 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D 98 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 98 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 7C 00 00 00 00 07 04 06 00 2C 98 04 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 9B 90 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A7 39 02 00 35 04 06 00 69 00 00 8A [19:12:25]Write i2c OK [19:12:25]MH_I2C_Read... [19:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:25]Read from MH i2c: E2 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 03 00 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 03 00 B5 3A 00 90 00 63 [19:12:25]RAPDU: 90 00 [19:12:25]wFMCommunicate OK [19:12:25]wFMCommunicate request_size=10 [19:12:25]MH_SAM_APDU [19:12:25]CAPDU: 80 0D 02 02 05 A6 97 FE C5 FB [19:12:25]Write to MH i2c: E2 0D 00 B6 3A 80 0D 02 02 05 00 A6 97 FE C5 FB 00 00 6F [19:12:25]Write i2c OK [19:12:25]MH_I2C_Read... [19:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:25]Read from MH i2c: E2 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 03 00 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 03 00 B6 3A 00 90 00 64 [19:12:25]RAPDU: 90 00 [19:12:25]wFMCommunicate OK [19:12:25]wFMCommunicate request_size=4 [19:12:25]MH_SAM_APDU [19:12:25]CAPDU: 80 0D 03 02 [19:12:25]Write to MH i2c: E2 08 00 B7 3A 80 0D 03 02 00 00 00 00 6C [19:12:25]Write i2c OK [19:12:25]MH_I2C_Read... [19:12:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:25]Read from MH i2c: E2 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 0B 00 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 0B 00 B7 3A 00 16 03 D6 85 BB C7 57 87 90 00 41 [19:12:25]RAPDU: 16 03 D6 85 BB C7 57 87 90 00 [19:12:25]wFMCommunicate OK [19:12:25]SAM_PROTO_SignData done [19:12:25]FM_MakeSignedData done [19:12:25]CreateOFDProtocolMessage [19:12:25]wFMCommunicate request_size=4 [19:12:25]MH_SAM_APDU [19:12:25]CAPDU: 80 11 00 00 [19:12:25]Write to MH i2c: E2 08 00 B8 3A 80 11 00 00 00 00 00 00 6C [19:12:25]Write i2c OK [19:12:25]MH_I2C_Read... [19:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:25]Read from MH i2c: E2 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 17 00 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 17 00 B8 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BF [19:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:12:25]wFMCommunicate OK [19:12:25]CreateOFDProtocolMessage done [19:12:25]OFDSenderStorePacket 145831 [19:12:25]StoreOFDPacket docnum=145831 [19:12:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 AA CD 07 01 75 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D 98 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 98 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 7C 00 00 00 00 07 04 06 00 2C 98 04 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 9B 90 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A7 39 02 00 35 04 06 00 69 A6 97 FE C5 FB 16 03 D6 85 BB C7 57 87 [19:12:25]CheckFolder [19:12:25]dirname=/storage/ofd_packets [19:12:25]CheckFolder done [19:12:25]ProducePacketName [19:12:25]name=ofd_packets/00145831 [19:12:25]NVStorageSaveData ofd_packets/00145831 [19:12:25]File name is /storage/ofd_packets/00145831 [19:12:25]Write 301 bytes [19:12:25]NVStorageSaveData done [19:12:25]OFDSenderStorePacket done [19:12:25]KKMCreateOFDPacket done [19:12:25]NVStorageSaveData kkm_last_timestamp [19:12:25]File name is /storage/kkm_last_timestamp [19:12:25]Write 4 bytes [19:12:25]NVStorageSaveData done [19:12:25]ExternCall_PrintAddStr [19:12:25]wPrintStart [19:12:25]Write to MH i2c: 01 00 00 B9 3A F3 [19:12:25]Write i2c OK [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: 01 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: 01 07 00 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: 01 07 00 B9 3A 00 00 00 00 00 FF 0F 08 [19:12:25]RasterBufferAndPrint [19:12:25]line Счет N : (1)160588 [19:12:25]line ИНН: 02508201610067 [19:12:25]line Контрольно-Кассовый Чек [19:12:25]line ПРОДАЖА [19:12:25]line ТРК (МРК, ГНК) : 42 [19:12:25]line Товар: 2710124130 [19:12:25]line Аи-92-К-2 [19:12:25]line 45.010 * 66.90 [19:12:25]line = 3011.17 [19:12:25]line НДС 12% НСП 1% [19:12:25]line > о реализуемом товаре [19:12:25]line ОКРУГЛЕНИЕ: -0.17 [19:12:25]line ИТОГО: 3011.00 [19:12:25]line Внесено: 5000.00 [19:12:25]line СДАЧА: 1989.00 [19:12:25]line НСП 1% : 26.65 [19:12:25]line НДС 12% : 319.77 [19:12:25]line Наличными: 3011.00 [19:12:25]line Безнал.: 0.00 [19:12:25]line Место: АЗС № 126 "Партнер Нефть" [19:12:25]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:12:25]line СНО: Общий режим [19:12:25]line Чек 254 27.10.2024 19:12 [19:12:25]line Смена: 545 ФФД: 1.0 [19:12:25]line ЗНМ: 0300000085 [19:12:25]line РНМ: 0000000000091683 [19:12:25]line Версия ККМ: 001 [19:12:25]line ФМ: 0000000000871745 [19:12:25]line ФД: 145831 [19:12:25]line ФПД: 116164235544059 [19:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191227&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145831&fm=116164235544059&tin=02508201610067®Number=0000000000091683&sum=301100 [19:12:26]OFD Sender: Processing packet 145831 [packets to send 206, broken 205] [19:12:26]ProducePacketName [19:12:26]name=ofd_packets/00145831 [19:12:26]OFD Sender: To server: pG, [19:12:26]CommunicateWithHost lk.salyk.kg:30040 [19:12:26]ConnectInit lk.salyk.kg [19:12:26]written 0, free lines is 4095 [19:12:26]Connected sock=10 [19: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 31 37 34 35 0F 01 00 00 AA CD 07 01 75 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D 98 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 98 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 7C 00 00 00 00 07 04 06 00 2C 98 04 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 9B 90 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A7 39 02 00 35 04 06 00 69 A6 97 FE C5 FB 16 03 D6 85 BB C7 57 87 [19:12:26]Write to MH i2c: 01 00 00 E4 3A 1E [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: 01 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: 01 07 00 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: 01 07 00 E4 3A 00 00 00 00 00 B7 0C E8 [19:12:26]RasterBufferAndPrint [19:12:26]line [19:12:26]line [19:12:26]line [19:12:26]line [19:12:26]line [19:12:26]written 0, free lines is 3262 [19:12:26]MH_Cut [19:12:26]Write to MH i2c: D1 01 00 EB 3A 01 F7 [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: D1 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: D1 01 00 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: D1 01 00 EB 3A 00 F6 [19:12:26]Write to MH i2c: 01 00 00 EC 3A 26 [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 BC A0 47 00 AA C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A7 39 02 00 F4 03 04 00 C7 35 1E 67 B6 04 01 00 00 06 8E 0D 01 50 35 69 DC [19:12:26]CommunicateWithHost err = 0 [19:12:26]CheckOFDResponse [19:12:26]1017 (14) - 77093643461234 [19:12:26]1041 (16) - 0000000000871745 [19:12:26]1040 (4) - 145831 [19:12:26]1012 (4) - 27.10.2024 12:44 [19:12:26]1206 (1) - 0 [19:12:26]OFD Sender: Remove packet 145831 [19:12:26]ProducePacketName [19:12:26]name=ofd_packets/00145831 [19:12:26]NVStorageDeleteData [19:12:27]OFD Sender: No OFD packet to send [19:12:27]*** Cut start [19:12:27]*** Partial cut [19:12:27]*** CUTSNS_PIN = 1 [19:12:27]*** CUTSNS_PIN = 0 [19:12:27]*** Brake cut motor [19:12:27]Read from MH i2c: 01 [19:12:27]MH_I2C_Read... [19:12:27]*** Stop cut motor [19:12:27]*** Cut end [19:12:27]Read from MH i2c: 01 07 00 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: 01 07 00 EC 3A 00 00 00 00 00 FF 0F 3B [19:12:27]process_action close_receipt done [19:12:27]requested_data is exist [19:12:27]produce_requested_data [19:12:27]requested_item fm.sn is exist - process it [19:12:27]wFMCommunicate request_size=4 [19:12:27]MH_SAM_APDU [19:12:28]CAPDU: 80 11 00 00 [19:12:28]Write to MH i2c: E2 08 00 ED 3A 80 11 00 00 00 00 00 00 A1 [19:12:28]Write i2c OK [19:12:28]MH_I2C_Read... [19:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:28]Read from MH i2c: E2 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: E2 17 00 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: E2 17 00 ED 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F4 [19:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:12:28]wFMCommunicate OK [19:12:28]requested_item fd.num is exist - process it [19:12:28]SAM_PROTO_GetFieldsCounters [19:12:28]wFMCommunicate request_size=4 [19:12:28]MH_SAM_APDU [19:12:28]CAPDU: 80 13 00 00 [19:12:28]Write to MH i2c: E2 08 00 EE 3A 80 13 00 00 00 00 00 00 A4 [19:12:28]Write i2c OK [19:12:28]MH_I2C_Read... [19:12:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:28]Read from MH i2c: E2 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: E2 62 00 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: E2 62 00 EE 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A7 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [19: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A7 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:28]wFMCommunicate OK [19:12:28]SAM_PROTO_GetFieldsCounters done [19:12:28]requested_item shift.num is exist - process it [19:12:28]requested_item shift.opened is exist - process it [19:12:28]req_shift_opened [19:12:28]FM_GetShiftState [19:12:28]SAM_PROTO_GetShiftState [19:12:28]wFMCommunicate request_size=4 [19:12:28]MH_SAM_APDU [19:12:28]CAPDU: 80 13 01 00 [19:12:28]Write to MH i2c: E2 08 00 EF 3A 80 13 01 00 00 00 00 00 A6 [19:12:28]Write i2c OK [19:12:28]MH_I2C_Read... [19:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:28]Read from MH i2c: E2 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: E2 0E 00 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: E2 0E 00 EF 3A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1E [19:12:28]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:12:28]wFMCommunicate OK [19:12:28]SAM_PROTO_GetShiftState done [19:12:28]FM_GetShiftState done [19:12:28]req_shift_opened done [19:12:28]requested_item shift.open_date is exist - process it [19:12:28]req_shift_open_date [19:12:28]req_shift_open_date done [19:12:28]produce_requested_data done [19:12:28]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145831,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:12:28]process_action_free close_receipt [19:12:28]json_value_free [19:12:28]json_value_free done [19:12:28]process_json_proto returns [19:12:28]Send response to host [19:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145831,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:12:28]free response buf [19:12:28]execute_script done [19:12:28]execute_script returns [19:12:28]free content buf [19:12:28]Sock 9.Close socket [19:12:28]Sock 9.Thread stoped [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:49]accept exits with 7 [19:16:49]New connection [19:16:49]New thread 3066740068 created [19:16:49]Thread 3066596708 joined [19:16:49]Waiting for new connection... [19:16:49] Sock 7.Parse request [19:16:49]Sock 7.Check first char [19:16:49]Sock 7.First char is OK [19:16:49]request: POST /json_proto HTTP/1.0 [19:16:49]Method: POST [19:16:49]URL: /json_proto [19:16:49]Method is POST - this is cgi request [19:16:49]url: /json_proto [19:16:49]query_string will be loaded in cgi processing [19:16:49]execute_cgi json_proto POST (null) [19:16:49]execute_cgi path=json_proto method=POST [19:16:49]POST find Content-Length [19:16:49]Host: 172.17.40.195:8080 [19:16:49]Content-Length: 769 [19:16:49]Content-Type: application/json [19:16:49] [19:16:49]POST finish read [19:16:49]Found Content-Length = 769 [19:16:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:49]execute_script... [19:16: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)160589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:49]POST & json_proto [19:16:49]process_json_proto [19:16:49]json parsed OK: [19:16:49]protocol is kg_v1.0 [19:16:49]action value=close_receipt [19:16:49]process_action close_receipt [19:16:49]cmd_close_receipt [19:16:49]MH_GetDate [19:16:49]Write to MH i2c: F0 00 00 F0 3A 19 [19:16:49]Write i2c OK [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: F0 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: F0 09 00 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: F0 09 00 F0 3A 00 A4 91 1E 67 D5 8D 6C 64 0E [19:16:49]GetLastDocTimeStamp 1730056347 [19:16:49]current date 1730056612 [19:16:49]FM_GetShiftState [19:16:49]SAM_PROTO_GetShiftState [19:16:49]wFMCommunicate request_size=4 [19:16:49]MH_SAM_APDU [19:16:49]CAPDU: 80 13 01 00 [19:16:49]Write to MH i2c: E2 08 00 F1 3A 80 13 01 00 00 00 00 00 A8 [19:16:49]Write i2c OK [19:16:49]MH_I2C_Read... [19:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:49]Read from MH i2c: E2 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 0E 00 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 0E 00 F1 3A 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 20 [19:16:49]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:16:49]wFMCommunicate OK [19:16:49]SAM_PROTO_GetShiftState done [19:16:49]FM_GetShiftState done [19:16:49]opened in 1729988959 [19:16:49]opened+sec_in_day 1730075359 [19:16:49]quantity*price = 100015 [19:16:49]sum+1 = 100017 [19:16:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 255 27.10.2024 19:16 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145832 ФПД: 276083827681517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191652&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145832&fm=276083827681517&tin=02508201610067®Number=0000000000091683&sum=100016 [19:16:50]StoreToDocumentArchive [19:16:50]shift 545 fd 145832 [19:16:50]save to /storage/0545/doc_00145832 [19:16:50]save last doc name /storage/0545/doc_00145832 to /storage/kkm_last_doc_name [19:16:50]save OK [19:16:50]Clear old archive folders... [19:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:50]tlvbuf is 0041F210 [19:16:50]SAM_PROTO_ClearQueue [19:16:50]wFMCommunicate request_size=4 [19:16:50]MH_SAM_APDU [19:16:50]CAPDU: 80 09 00 00 [19:16:50]Write to MH i2c: E2 08 00 FE 3A 80 09 00 00 00 00 00 00 AA [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:50]Read from MH i2c: E2 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 03 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 03 00 FE 3A 00 90 00 AC [19:16:50]RAPDU: 90 00 [19:16:50]wFMCommunicate OK [19:16:50]SAM_PROTO_ClearQueue done [19:16:50]KKMCreateOFDPacket [19:16:50]OFDProtocolAddRootSTLVToBuf [19:16:50]FM_MakeSignedData [19:16:50]FM_MakeSignedData [19:16:50]SAM_PROTO_SignData [19:16:50]wFMCommunicate request_size=4 [19:16:50]MH_SAM_APDU [19:16:50]CAPDU: 80 0D 01 02 [19:16:50]Write to MH i2c: E2 08 00 FF 3A 80 0D 01 02 00 00 00 00 B2 [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:50]Read from MH i2c: E2 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 03 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 03 00 FF 3A 00 90 00 AD [19:16:50]RAPDU: 90 00 [19:16:50]wFMCommunicate OK [19:16:50]wFMCommunicate request_size=255 [19:16:50]MH_SAM_APDU [19:16: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 A4 91 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A8 39 02 00 35 04 06 00 FB [19:16:50]Write to MH i2c: E2 02 01 00 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 A4 91 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A8 39 02 00 35 04 06 00 FB 00 00 15 [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:51]Read from MH i2c: E2 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: E2 03 00 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: E2 03 00 00 3B 00 90 00 AF [19:16:51]RAPDU: 90 00 [19:16:51]wFMCommunicate OK [19:16:51]wFMCommunicate request_size=10 [19:16:51]MH_SAM_APDU [19:16:51]CAPDU: 80 0D 02 02 05 18 C6 7A 28 ED [19:16:51]Write to MH i2c: E2 0D 00 01 3B 80 0D 02 02 05 00 18 C6 7A 28 ED 00 00 2D [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:51]Read from MH i2c: E2 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: E2 03 00 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: E2 03 00 01 3B 00 90 00 B0 [19:16:51]RAPDU: 90 00 [19:16:51]wFMCommunicate OK [19:16:51]wFMCommunicate request_size=4 [19:16:51]MH_SAM_APDU [19:16:51]CAPDU: 80 0D 03 02 [19:16:51]Write to MH i2c: E2 08 00 02 3B 80 0D 03 02 00 00 00 00 B8 [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:51]Read from MH i2c: E2 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: E2 0B 00 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: E2 0B 00 02 3B 00 41 64 66 9A 9C ED F3 E1 90 00 BB [19:16:51]RAPDU: 41 64 66 9A 9C ED F3 E1 90 00 [19:16:51]wFMCommunicate OK [19:16:51]SAM_PROTO_SignData done [19:16:51]FM_MakeSignedData done [19:16:51]CreateOFDProtocolMessage [19:16:51]wFMCommunicate request_size=4 [19:16:51]MH_SAM_APDU [19:16:51]CAPDU: 80 11 00 00 [19:16:51]Write to MH i2c: E2 08 00 03 3B 80 11 00 00 00 00 00 00 B8 [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:51]Read from MH i2c: E2 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: E2 17 00 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: E2 17 00 03 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0B [19:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:16:51]wFMCommunicate OK [19:16:51]CreateOFDProtocolMessage done [19:16:51]OFDSenderStorePacket 145832 [19:16:51]StoreOFDPacket docnum=145832 [19:16:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BB BC 07 01 EB 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 A4 91 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A8 39 02 00 35 04 06 00 FB 18 C6 7A 28 ED 41 64 66 9A 9C ED F3 E1 [19:16:51]CheckFolder [19:16:51]dirname=/storage/ofd_packets [19:16:51]CheckFolder done [19:16:51]ProducePacketName [19:16:51]name=ofd_packets/00145832 [19:16:51]NVStorageSaveData ofd_packets/00145832 [19:16:51]File name is /storage/ofd_packets/00145832 [19:16:51]Write 301 bytes [19:16:51]NVStorageSaveData done [19:16:51]OFDSenderStorePacket done [19:16:51]KKMCreateOFDPacket done [19:16:51]NVStorageSaveData kkm_last_timestamp [19:16:51]File name is /storage/kkm_last_timestamp [19:16:51]Write 4 bytes [19:16:51]NVStorageSaveData done [19:16:51]ExternCall_PrintAddStr [19:16:51]wPrintStart [19:16:51]Write to MH i2c: 01 00 00 04 3B 3F [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: 01 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: 01 07 00 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: 01 07 00 04 3B 00 00 00 00 00 FF 0F 54 [19:16:51]RasterBufferAndPrint [19:16:51]line Счет N : (1)160589 [19:16:51]line ИНН: 02508201610067 [19:16:51]line Контрольно-Кассовый Чек [19:16:51]line ПРОДАЖА [19:16:51]line ТРК (МРК, ГНК) : 32 [19:16:51]line Товар: 2710124130 [19:16:51]line Аи-92-К-2 [19:16:51]line 14.950 * 66.90 [19:16:51]line = 1000.16 [19:16:51]line НДС 12% НСП 1% [19:16:51]line > о реализуемом товаре [19:16:51]line ИТОГО: 1000.16 [19:16:51]line НСП 1% : 8.85 [19:16:51]line НДС 12% : 106.21 [19:16:51]line Наличными: 0.00 [19:16:51]line Безнал.: 1000.16 [19:16:51]line Место: АЗС № 126 "Партнер Нефть" [19:16:51]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:16:51]line СНО: Общий режим [19:16:51]line Чек 255 27.10.2024 19:16 [19:16:51]line Смена: 545 ФФД: 1.0 [19:16:51]line ЗНМ: 0300000085 [19:16:51]line РНМ: 0000000000091683 [19:16:51]line Версия ККМ: 001 [19:16:51]line Платежная система: Mbank [19:16:51]line ФМ: 0000000000871745 [19:16:51]line ФД: 145832 [19:16:51]line ФПД: 276083827681517 [19:16:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191652&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145832&fm=276083827681517&tin=02508201610067®Number=0000000000091683&sum=100016 [19:16:51]written 0, free lines is 4095 [19:16:51]OFD Sender: Processing packet 145832 [packets to send 206, broken 205] [19:16:51]ProducePacketName [19:16:51]name=ofd_packets/00145832 [19:16:51]OFD Sender: To server: pG, [19:16:51]CommunicateWithHost lk.salyk.kg:30040 [19:16:51]ConnectInit lk.salyk.kg [19:16:51]Connected sock=10 [19:16:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BB BC 07 01 EB 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 A4 91 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A8 39 02 00 35 04 06 00 FB 18 C6 7A 28 ED 41 64 66 9A 9C ED F3 E1 [19:16:51]Write to MH i2c: 01 00 00 2D 3B 68 [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: 01 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: 01 07 00 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: 01 07 00 2D 3B 00 00 00 00 00 D7 0C 52 [19:16:51]RasterBufferAndPrint [19:16:51]line [19:16:51]line [19:16:51]line [19:16:51]line [19:16:51]line [19:16:51]written 0, free lines is 3294 [19:16:51]MH_Cut [19:16:51]Write to MH i2c: D1 01 00 34 3B 01 41 [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: D1 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: D1 01 00 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: D1 01 00 34 3B 00 40 [19:16:51]Write to MH i2c: 01 00 00 35 3B 70 [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 20 1B 47 00 6C 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A8 39 02 00 F4 03 04 00 D1 36 1E 67 B6 04 01 00 00 FC 9D 7A 7C CE 76 20 1C [19:16:51]CommunicateWithHost err = 0 [19:16:51]CheckOFDResponse [19:16:51]1017 (14) - 77093643461234 [19:16:51]1041 (16) - 0000000000871745 [19:16:51]1040 (4) - 145832 [19:16:51]1012 (4) - 27.10.2024 12:49 [19:16:51]1206 (1) - 0 [19:16:51]OFD Sender: Remove packet 145832 [19:16:51]ProducePacketName [19:16:51]name=ofd_packets/00145832 [19:16:51]NVStorageDeleteData [19:16:52]OFD Sender: No OFD packet to send [19:16:52]*** Cut start [19:16:52]*** Partial cut [19:16:52]*** CUTSNS_PIN = 1 [19:16:52]*** CUTSNS_PIN = 0 [19:16:52]*** Brake cut motor [19:16:53]Read from MH i2c: 01 [19:16:53]MH_I2C_Read... [19:16:53]*** Stop cut motor [19:16:53]*** Cut end [19:16:53]Read from MH i2c: 01 07 00 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: 01 07 00 35 3B 00 00 00 00 00 FF 0F 85 [19:16:53]process_action close_receipt done [19:16:53]requested_data is exist [19:16:53]produce_requested_data [19:16:53]requested_item fm.sn is exist - process it [19:16:53]wFMCommunicate request_size=4 [19:16:53]MH_SAM_APDU [19:16:53]CAPDU: 80 11 00 00 [19:16:53]Write to MH i2c: E2 08 00 36 3B 80 11 00 00 00 00 00 00 EB [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 [19:16:53]MH_I2C_Read... [19:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:53]Read from MH i2c: E2 17 00 [19:16:53]MH_I2C_Read... [19:16:53]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 31 37 34 35 90 00 3E [19:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:16:53]wFMCommunicate OK [19:16:53]requested_item fd.num is exist - process it [19:16:53]SAM_PROTO_GetFieldsCounters [19:16:53]wFMCommunicate request_size=4 [19:16:53]MH_SAM_APDU [19:16:53]CAPDU: 80 13 00 00 [19:16:53]Write to MH i2c: E2 08 00 37 3B 80 13 00 00 00 00 00 00 EE [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:53]Read from MH i2c: E2 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 62 00 [19:16:53]MH_I2C_Read... [19:16:53]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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A8 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [19:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A8 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:53]wFMCommunicate OK [19:16:53]SAM_PROTO_GetFieldsCounters done [19:16:53]requested_item shift.num is exist - process it [19:16:53]requested_item shift.opened is exist - process it [19:16:53]req_shift_opened [19:16:53]FM_GetShiftState [19:16:53]SAM_PROTO_GetShiftState [19:16:53]wFMCommunicate request_size=4 [19:16:53]MH_SAM_APDU [19:16:53]CAPDU: 80 13 01 00 [19:16:53]Write to MH i2c: E2 08 00 38 3B 80 13 01 00 00 00 00 00 F0 [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:53]Read from MH i2c: E2 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 0E 00 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 0E 00 38 3B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 68 [19:16:53]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:16:53]wFMCommunicate OK [19:16:53]SAM_PROTO_GetShiftState done [19:16:53]FM_GetShiftState done [19:16:53]req_shift_opened done [19:16:53]requested_item shift.open_date is exist - process it [19:16:53]req_shift_open_date [19:16:53]req_shift_open_date done [19:16:53]produce_requested_data done [19:16:53]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145832,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:16:53]process_action_free close_receipt [19:16:53]json_value_free [19:16:53]json_value_free done [19:16:53]process_json_proto returns [19:16:53]Send response to host [19:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145832,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:16:53]free response buf [19:16:53]execute_script done [19:16:53]execute_script returns [19:16:53]free content buf [19:16:53]Sock 7.Close socket [19:16:53]Sock 7.Thread stoped [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]accept exits with 9 [19:19:37]New connection [19:19:37]New thread 3066596708 created [19:19:37]Thread 3066740068 joined [19:19:37]Waiting for new connection... [19:19:37] Sock 9.Parse request [19:19:37]Sock 9.Check first char [19:19:37]Sock 9.First char is OK [19:19:37]request: POST /json_proto HTTP/1.0 [19:19:37]Method: POST [19:19:37]URL: /json_proto [19:19:37]Method is POST - this is cgi request [19:19:37]url: /json_proto [19:19:37]query_string will be loaded in cgi processing [19:19:37]execute_cgi json_proto POST (null) [19:19:37]execute_cgi path=json_proto method=POST [19:19:37]POST find Content-Length [19:19:37]Host: 172.17.40.195:8080 [19:19:37]Content-Length: 682 [19:19:37]Content-Type: application/json [19:19:37] [19:19:37]POST finish read [19:19:37]Found Content-Length = 682 [19:19:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:37]execute_script... [19:19:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:37]POST & json_proto [19:19:37]process_json_proto [19:19:37]json parsed OK: [19:19:37]protocol is kg_v1.0 [19:19:37]action value=close_receipt [19:19:37]process_action close_receipt [19:19:37]cmd_close_receipt [19:19:37]MH_GetDate [19:19:37]Write to MH i2c: F0 00 00 39 3B 63 [19:19:37]Write i2c OK [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: F0 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: F0 09 00 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: F0 09 00 39 3B 00 4C 92 1E 67 D5 8D 6C 64 01 [19:19:37]GetLastDocTimeStamp 1730056612 [19:19:37]current date 1730056780 [19:19:37]FM_GetShiftState [19:19:37]SAM_PROTO_GetShiftState [19:19:37]wFMCommunicate request_size=4 [19:19:37]MH_SAM_APDU [19:19:37]CAPDU: 80 13 01 00 [19:19:37]Write to MH i2c: E2 08 00 3A 3B 80 13 01 00 00 00 00 00 F2 [19:19:37]Write i2c OK [19:19:37]MH_I2C_Read... [19:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:37]Read from MH i2c: E2 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 0E 00 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 0E 00 3A 3B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6A [19:19:37]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:19:37]wFMCommunicate OK [19:19:37]SAM_PROTO_GetShiftState done [19:19:37]FM_GetShiftState done [19:19:37]opened in 1729988959 [19:19:37]opened+sec_in_day 1730075359 [19:19:37]quantity*price = 100015 [19:19:37]sum+1 = 100017 [19:19:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 256 27.10.2024 19:19 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145833 ФПД: 123119771143655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191940&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145833&fm=123119771143655&tin=02508201610067®Number=0000000000091683&sum=100000 [19:19:38]StoreToDocumentArchive [19:19:38]shift 545 fd 145833 [19:19:38]save to /storage/0545/doc_00145833 [19:19:38]save last doc name /storage/0545/doc_00145833 to /storage/kkm_last_doc_name [19:19:38]save OK [19:19:38]Clear old archive folders... [19:19:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:38]tlvbuf is 0041F4D0 [19:19:38]SAM_PROTO_ClearQueue [19:19:38]wFMCommunicate request_size=4 [19:19:38]MH_SAM_APDU [19:19:38]CAPDU: 80 09 00 00 [19:19:38]Write to MH i2c: E2 08 00 47 3B 80 09 00 00 00 00 00 00 F4 [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:38]Read from MH i2c: E2 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 03 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 03 00 47 3B 00 90 00 F6 [19:19:38]RAPDU: 90 00 [19:19:38]wFMCommunicate OK [19:19:38]SAM_PROTO_ClearQueue done [19:19:38]KKMCreateOFDPacket [19:19:38]OFDProtocolAddRootSTLVToBuf [19:19:38]FM_MakeSignedData [19:19:38]FM_MakeSignedData [19:19:38]SAM_PROTO_SignData [19:19:38]wFMCommunicate request_size=4 [19:19:38]MH_SAM_APDU [19:19:38]CAPDU: 80 0D 01 02 [19:19:38]Write to MH i2c: E2 08 00 48 3B 80 0D 01 02 00 00 00 00 FC [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:38]Read from MH i2c: E2 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 03 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 03 00 48 3B 00 90 00 F7 [19:19:38]RAPDU: 90 00 [19:19:38]wFMCommunicate OK [19:19:38]wFMCommunicate request_size=255 [19:19:38]MH_SAM_APDU [19:19:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 4C 92 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A9 39 02 00 35 04 06 00 6F [19:19:38]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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 4C 92 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A9 39 02 00 35 04 06 00 6F 00 00 5E [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:38]Read from MH i2c: E2 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 03 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 03 00 49 3B 00 90 00 F8 [19:19:38]RAPDU: 90 00 [19:19:38]wFMCommunicate OK [19:19:38]wFMCommunicate request_size=10 [19:19:38]MH_SAM_APDU [19:19:38]CAPDU: 80 0D 02 02 05 FA 0E 39 4D E7 [19:19:38]Write to MH i2c: E2 0D 00 4A 3B 80 0D 02 02 05 00 FA 0E 39 4D E7 00 00 7E [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:38]Read from MH i2c: E2 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 03 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 03 00 4A 3B 00 90 00 F9 [19:19:38]RAPDU: 90 00 [19:19:38]wFMCommunicate OK [19:19:38]wFMCommunicate request_size=4 [19:19:38]MH_SAM_APDU [19:19:38]CAPDU: 80 0D 03 02 [19:19:38]Write to MH i2c: E2 08 00 4B 3B 80 0D 03 02 00 00 00 00 01 [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:38]Read from MH i2c: E2 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 0B 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 0B 00 4B 3B 00 F4 E9 3D F3 BE AC 63 DC 90 00 B8 [19:19:38]RAPDU: F4 E9 3D F3 BE AC 63 DC 90 00 [19:19:38]wFMCommunicate OK [19:19:38]SAM_PROTO_SignData done [19:19:38]FM_MakeSignedData done [19:19:38]CreateOFDProtocolMessage [19:19:38]wFMCommunicate request_size=4 [19:19:38]MH_SAM_APDU [19:19:38]CAPDU: 80 11 00 00 [19:19:38]Write to MH i2c: E2 08 00 4C 3B 80 11 00 00 00 00 00 00 01 [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:38]Read from MH i2c: E2 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 17 00 [19:19:38]MH_I2C_Read... [19:19:38]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 31 37 34 35 90 00 54 [19:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:19:38]wFMCommunicate OK [19:19:38]CreateOFDProtocolMessage done [19:19:38]OFDSenderStorePacket 145833 [19:19:38]StoreOFDPacket docnum=145833 [19:19:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A9 58 07 01 A4 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 4C 92 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A9 39 02 00 35 04 06 00 6F FA 0E 39 4D E7 F4 E9 3D F3 BE AC 63 DC [19:19:38]CheckFolder [19:19:38]dirname=/storage/ofd_packets [19:19:38]CheckFolder done [19:19:38]ProducePacketName [19:19:38]name=ofd_packets/00145833 [19:19:38]NVStorageSaveData ofd_packets/00145833 [19:19:38]File name is /storage/ofd_packets/00145833 [19:19:38]Write 301 bytes [19:19:38]NVStorageSaveData done [19:19:38]OFDSenderStorePacket done [19:19:38]KKMCreateOFDPacket done [19:19:38]NVStorageSaveData kkm_last_timestamp [19:19:38]File name is /storage/kkm_last_timestamp [19:19:38]Write 4 bytes [19:19:38]NVStorageSaveData done [19:19:38]ExternCall_PrintAddStr [19:19:38]wPrintStart [19:19:38]Write to MH i2c: 01 00 00 4D 3B 88 [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: 01 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: 01 07 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: 01 07 00 4D 3B 00 00 00 00 00 FF 0F 9D [19:19:38]RasterBufferAndPrint [19:19:38]line Счет N : (1)160590 [19:19:38]line ИНН: 02508201610067 [19:19:38]line Контрольно-Кассовый Чек [19:19:38]line ПРОДАЖА [19:19:38]line ТРК (МРК, ГНК) : 42 [19:19:38]line Товар: 2710124130 [19:19:38]line Аи-92-К-2 [19:19:38]line 14.950 * 66.90 [19:19:38]line = 1000.16 [19:19:38]line НДС 12% НСП 1% [19:19:38]line > о реализуемом товаре [19:19:38]line ОКРУГЛЕНИЕ: -0.16 [19:19:38]line ИТОГО: 1000.00 [19:19:38]line Внесено: 1000.00 [19:19:38]line СДАЧА: 0.00 [19:19:38]line НСП 1% : 8.85 [19:19:38]line НДС 12% : 106.21 [19:19:38]line Наличными: 1000.00 [19:19:38]line Безнал.: 0.00 [19:19:38]line Место: АЗС № 126 "Партнер Нефть" [19:19:38]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:19:38]line СНО: Общий режим [19:19:38]line Чек 256 27.10.2024 19:19 [19:19:38]line Смена: 545 ФФД: 1.0 [19:19:38]line ЗНМ: 0300000085 [19:19:38]line РНМ: 0000000000091683 [19:19:38]line Версия ККМ: 001 [19:19:38]line ФМ: 0000000000871745 [19:19:38]line ФД: 145833 [19:19:38]line ФПД: 123119771143655 [19:19:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191940&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145833&fm=123119771143655&tin=02508201610067®Number=0000000000091683&sum=100000 [19:19:39]OFD Sender: Processing packet 145833 [packets to send 206, broken 205] [19:19:39]ProducePacketName [19:19:39]name=ofd_packets/00145833 [19:19:39]OFD Sender: To server: pG, [19:19:39]CommunicateWithHost lk.salyk.kg:30040 [19:19:39]ConnectInit lk.salyk.kg [19:19:39]written 0, free lines is 4095 [19:19:39]Connected sock=10 [19:19:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A9 58 07 01 A4 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 4C 92 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A9 39 02 00 35 04 06 00 6F FA 0E 39 4D E7 F4 E9 3D F3 BE AC 63 DC [19:19:39]Write to MH i2c: 01 00 00 78 3B B3 [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: 01 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: 01 07 00 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: 01 07 00 78 3B 00 00 00 00 00 A4 0C 6A [19:19:39]RasterBufferAndPrint [19:19:39]line [19:19:39]line [19:19:39]line [19:19:39]line [19:19:39]line [19:19:39]written 0, free lines is 3242 [19:19:39]MH_Cut [19:19:39]Write to MH i2c: D1 01 00 7F 3B 01 8C [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: D1 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: D1 01 00 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: D1 01 00 7F 3B 00 8B [19:19:39]Write to MH i2c: 01 00 00 80 3B BB [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 9E 78 47 00 27 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 A9 39 02 00 F4 03 04 00 78 37 1E 67 B6 04 01 00 00 46 A1 14 15 79 7D C7 28 [19:19:39]CommunicateWithHost err = 0 [19:19:39]CheckOFDResponse [19:19:39]1017 (14) - 77093643461234 [19:19:39]1041 (16) - 0000000000871745 [19:19:39]1040 (4) - 145833 [19:19:39]1012 (4) - 27.10.2024 12:52 [19:19:39]1206 (1) - 0 [19:19:39]OFD Sender: Remove packet 145833 [19:19:39]ProducePacketName [19:19:39]name=ofd_packets/00145833 [19:19:39]NVStorageDeleteData [19:19:40]OFD Sender: No OFD packet to send [19:19:40]*** Cut start [19:19:40]*** Partial cut [19:19:40]*** CUTSNS_PIN = 1 [19:19:40]*** CUTSNS_PIN = 0 [19:19:40]*** Brake cut motor [19:19:40]Read from MH i2c: 01 [19:19:40]MH_I2C_Read... [19:19:40]*** Stop cut motor [19:19:41]*** Cut end [19:19:41]Read from MH i2c: 01 07 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: 01 07 00 80 3B 00 00 00 00 00 FF 0F D0 [19:19:41]process_action close_receipt done [19:19:41]requested_data is exist [19:19:41]produce_requested_data [19:19:41]requested_item fm.sn is exist - process it [19:19:41]wFMCommunicate request_size=4 [19:19:41]MH_SAM_APDU [19:19:41]CAPDU: 80 11 00 00 [19:19:41]Write to MH i2c: E2 08 00 81 3B 80 11 00 00 00 00 00 00 36 [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:41]Read from MH i2c: E2 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 17 00 [19:19:41]MH_I2C_Read... [19:19:41]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 31 37 34 35 90 00 89 [19:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:19:41]wFMCommunicate OK [19:19:41]requested_item fd.num is exist - process it [19:19:41]SAM_PROTO_GetFieldsCounters [19:19:41]wFMCommunicate request_size=4 [19:19:41]MH_SAM_APDU [19:19:41]CAPDU: 80 13 00 00 [19:19:41]Write to MH i2c: E2 08 00 82 3B 80 13 00 00 00 00 00 00 39 [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:41]Read from MH i2c: E2 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 62 00 [19:19:41]MH_I2C_Read... [19:19:41]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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A9 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [19:19:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 A9 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:41]wFMCommunicate OK [19:19:41]SAM_PROTO_GetFieldsCounters done [19:19:41]requested_item shift.num is exist - process it [19:19:41]requested_item shift.opened is exist - process it [19:19:41]req_shift_opened [19:19:41]FM_GetShiftState [19:19:41]SAM_PROTO_GetShiftState [19:19:41]wFMCommunicate request_size=4 [19:19:41]MH_SAM_APDU [19:19:41]CAPDU: 80 13 01 00 [19:19:41]Write to MH i2c: E2 08 00 83 3B 80 13 01 00 00 00 00 00 3B [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:41]Read from MH i2c: E2 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 0E 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 0E 00 83 3B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B3 [19:19:41]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:19:41]wFMCommunicate OK [19:19:41]SAM_PROTO_GetShiftState done [19:19:41]FM_GetShiftState done [19:19:41]req_shift_opened done [19:19:41]requested_item shift.open_date is exist - process it [19:19:41]req_shift_open_date [19:19:41]req_shift_open_date done [19:19:41]produce_requested_data done [19:19:41]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145833,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:19:41]process_action_free close_receipt [19:19:41]json_value_free [19:19:41]json_value_free done [19:19:41]process_json_proto returns [19:19:41]Send response to host [19:19:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145833,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:19:41]free response buf [19:19:41]execute_script done [19:19:41]execute_script returns [19:19:41]free content buf [19:19:41]Sock 9.Close socket [19:19:41]Sock 9.Thread stoped [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:22:58]accept exits with 7 [19:22:58]New connection [19:22:58]New thread 3066740068 created [19:22:58]Thread 3066596708 joined [19:22:58]Waiting for new connection... [19:22:58] Sock 7.Parse request [19:22:58]Sock 7.Check first char [19:22:58]Sock 7.First char is OK [19:22:58]request: POST /json_proto HTTP/1.0 [19:22:58]Method: POST [19:22:58]URL: /json_proto [19:22:58]Method is POST - this is cgi request [19:22:58]url: /json_proto [19:22:58]query_string will be loaded in cgi processing [19:22:58]execute_cgi json_proto POST (null) [19:22:58]execute_cgi path=json_proto method=POST [19:22:58]POST find Content-Length [19:22:58]Host: 172.17.40.195:8080 [19:22:58]Content-Length: 981 [19:22:58]Content-Type: application/json [19:22:58] [19:22:58]POST finish read [19:22:58]Found Content-Length = 981 [19:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:58]execute_script... [19:22: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)160591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:58]POST & json_proto [19:22:58]process_json_proto [19:22:58]json parsed OK: [19:22:58]protocol is kg_v1.0 [19:22:58]action value=close_receipt [19:22:58]process_action close_receipt [19:22:58]cmd_close_receipt [19:22:58]MH_GetDate [19:22:58]Write to MH i2c: F0 00 00 84 3B AE [19:22:58]Write i2c OK [19:22:58]MH_I2C_Read... [19:22:58]Read from MH i2c: F0 [19:22:58]MH_I2C_Read... [19:22:58]Read from MH i2c: F0 09 00 [19:22:58]MH_I2C_Read... [19:22:58]Read from MH i2c: F0 09 00 84 3B 00 15 93 1E 67 D5 8D 6C 64 16 [19:22:58]GetLastDocTimeStamp 1730056780 [19:22:58]current date 1730056981 [19:22:58]FM_GetShiftState [19:22:58]SAM_PROTO_GetShiftState [19:22:58]wFMCommunicate request_size=4 [19:22:58]MH_SAM_APDU [19:22:58]CAPDU: 80 13 01 00 [19:22:58]Write to MH i2c: E2 08 00 85 3B 80 13 01 00 00 00 00 00 3D [19:22:58]Write i2c OK [19:22:58]MH_I2C_Read... [19:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:58]Read from MH i2c: E2 [19:22:58]MH_I2C_Read... [19:22:58]Read from MH i2c: E2 0E 00 [19:22:58]MH_I2C_Read... [19:22:58]Read from MH i2c: E2 0E 00 85 3B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B5 [19:22:58]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:22:58]wFMCommunicate OK [19:22:58]SAM_PROTO_GetShiftState done [19:22:58]FM_GetShiftState done [19:22:58]opened in 1729988959 [19:22:58]opened+sec_in_day 1730075359 [19:22:58]quantity*price = 999032 [19:22:58]sum+1 = 999033 [19:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 9990.00 Внесено: 10000.00 СДАЧА: 10.00 НСП 1% : 88.41 НДС 12% : 1060.92 Наличными: 9990.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 257 27.10.2024 19:23 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа ДТ номер 126 сэкономлено 132.85 сом ФМ: 0000000000871745 ФД: 145834 ФПД: 123164666219784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192301&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145834&fm=123164666219784&tin=02508201610067®Number=0000000000091683&sum=999000 [19:22:59]StoreToDocumentArchive [19:22:59]shift 545 fd 145834 [19:22:59]save to /storage/0545/doc_00145834 [19:22:59]save last doc name /storage/0545/doc_00145834 to /storage/kkm_last_doc_name [19:22:59]save OK [19:22:59]Clear old archive folders... [19:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:22:59]tlvbuf is 0041F7B0 [19:22:59]SAM_PROTO_ClearQueue [19:22:59]wFMCommunicate request_size=4 [19:22:59]MH_SAM_APDU [19:22:59]CAPDU: 80 09 00 00 [19:22:59]Write to MH i2c: E2 08 00 92 3B 80 09 00 00 00 00 00 00 3F [19:22:59]Write i2c OK [19:22:59]MH_I2C_Read... [19:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:59]Read from MH i2c: E2 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 03 00 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 03 00 92 3B 00 90 00 41 [19:22:59]RAPDU: 90 00 [19:22:59]wFMCommunicate OK [19:22:59]SAM_PROTO_ClearQueue done [19:22:59]KKMCreateOFDPacket [19:22:59]OFDProtocolAddRootSTLVToBuf [19:22:59]FM_MakeSignedData [19:22:59]FM_MakeSignedData [19:22:59]SAM_PROTO_SignData [19:22:59]wFMCommunicate request_size=4 [19:22:59]MH_SAM_APDU [19:22:59]CAPDU: 80 0D 01 02 [19:22:59]Write to MH i2c: E2 08 00 93 3B 80 0D 01 02 00 00 00 00 47 [19:22:59]Write i2c OK [19:22:59]MH_I2C_Read... [19:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:59]Read from MH i2c: E2 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 03 00 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 03 00 93 3B 00 90 00 42 [19:22:59]RAPDU: 90 00 [19:22:59]wFMCommunicate OK [19:22:59]wFMCommunicate request_size=255 [19:22:59]MH_SAM_APDU [19:22: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 32 FF 03 08 00 03 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 15 93 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AA 39 02 00 35 04 06 00 70 04 82 2D [19:22:59]Write to MH i2c: E2 02 01 94 3B 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 32 FF 03 08 00 03 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 15 93 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AA 39 02 00 35 04 06 00 70 04 82 2D 00 00 39 [19:22:59]Write i2c OK [19:22:59]MH_I2C_Read... [19:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:00]Read from MH i2c: E2 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 03 00 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 03 00 94 3B 00 90 00 43 [19:23:00]RAPDU: 90 00 [19:23:00]wFMCommunicate OK [19:23:00]wFMCommunicate request_size=7 [19:23:00]MH_SAM_APDU [19:23:00]CAPDU: 80 0D 02 02 02 CD 08 [19:23:00]Write to MH i2c: E2 0A 00 95 3B 80 0D 02 02 02 00 CD 08 00 00 23 [19:23:00]Write i2c OK [19:23:00]MH_I2C_Read... [19:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:00]Read from MH i2c: E2 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 03 00 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 03 00 95 3B 00 90 00 44 [19:23:00]RAPDU: 90 00 [19:23:00]wFMCommunicate OK [19:23:00]wFMCommunicate request_size=4 [19:23:00]MH_SAM_APDU [19:23:00]CAPDU: 80 0D 03 02 [19:23:00]Write to MH i2c: E2 08 00 96 3B 80 0D 03 02 00 00 00 00 4C [19:23:00]Write i2c OK [19:23:00]MH_I2C_Read... [19:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:00]Read from MH i2c: E2 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 0B 00 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 0B 00 96 3B 00 5A 7C 36 8D F6 B3 EB 37 90 00 B1 [19:23:00]RAPDU: 5A 7C 36 8D F6 B3 EB 37 90 00 [19:23:00]wFMCommunicate OK [19:23:00]SAM_PROTO_SignData done [19:23:00]FM_MakeSignedData done [19:23:00]CreateOFDProtocolMessage [19:23:00]wFMCommunicate request_size=4 [19:23:00]MH_SAM_APDU [19:23:00]CAPDU: 80 11 00 00 [19:23:00]Write to MH i2c: E2 08 00 97 3B 80 11 00 00 00 00 00 00 4C [19:23:00]Write i2c OK [19:23:00]MH_I2C_Read... [19:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:00]Read from MH i2c: E2 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 17 00 [19:23:00]MH_I2C_Read... [19:23:00]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 31 37 34 35 90 00 9F [19:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:23:00]wFMCommunicate OK [19:23:00]CreateOFDProtocolMessage done [19:23:00]OFDSenderStorePacket 145834 [19:23:00]StoreOFDPacket docnum=145834 [19:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 6E 2B 04 01 21 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 15 93 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AA 39 02 00 35 04 06 00 70 04 82 2D CD 08 5A 7C 36 8D F6 B3 EB 37 [19:23:00]CheckFolder [19:23:00]dirname=/storage/ofd_packets [19:23:00]CheckFolder done [19:23:00]ProducePacketName [19:23:00]name=ofd_packets/00145834 [19:23:00]NVStorageSaveData ofd_packets/00145834 [19:23:00]File name is /storage/ofd_packets/00145834 [19:23:00]Write 298 bytes [19:23:00]NVStorageSaveData done [19:23:00]OFDSenderStorePacket done [19:23:00]KKMCreateOFDPacket done [19:23:00]NVStorageSaveData kkm_last_timestamp [19:23:00]File name is /storage/kkm_last_timestamp [19:23:00]Write 4 bytes [19:23:00]NVStorageSaveData done [19:23:00]ExternCall_PrintAddStr [19:23:00]wPrintStart [19:23:00]Write to MH i2c: 01 00 00 98 3B D3 [19:23:00]Write i2c OK [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: 01 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: 01 07 00 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: 01 07 00 98 3B 00 00 00 00 00 FF 0F E8 [19:23:00]RasterBufferAndPrint [19:23:00]line Счет N : (1)160591 [19:23:00]line ИНН: 02508201610067 [19:23:00]line Контрольно-Кассовый Чек [19:23:00]line ПРОДАЖА [19:23:00]line ТРК (МРК, ГНК) : 21 [19:23:00]line Товар: 2710194210 [19:23:00]line ДТ-К-2 [19:23:00]line 132.850 * 75.20 [19:23:00]line = 9990.32 [19:23:00]line НДС 12% НСП 1% [19:23:00]line > о реализуемом товаре [19:23:00]line ОКРУГЛЕНИЕ: -0.32 [19:23:00]line ИТОГО: 9990.00 [19:23:00]line Внесено: 10000.00 [19:23:00]line СДАЧА: 10.00 [19:23:00]line НСП 1% : 88.41 [19:23:00]line НДС 12% : 1060.92 [19:23:00]line Наличными: 9990.00 [19:23:00]line Безнал.: 0.00 [19:23:00]line Место: АЗС № 126 "Партнер Нефть" [19:23:00]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:23:00]line СНО: Общий режим [19:23:00]line Чек 257 27.10.2024 19:23 [19:23:00]line Смена: 545 ФФД: 1.0 [19:23:00]line ЗНМ: 0300000085 [19:23:00]line РНМ: 0000000000091683 [19:23:00]line Версия ККМ: 001 [19:23:00]line [19:23:00]line Дисконтная программа [19:23:00]line ДТ [19:23:00]line номер 126 [19:23:00]line сэкономлено 132.85 сом [19:23:00]line ФМ: 0000000000871745 [19:23:00]line ФД: 145834 [19:23:00]line ФПД: 123164666219784 [19:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192301&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145834&fm=123164666219784&tin=02508201610067®Number=0000000000091683&sum=999000 [19:23:00]OFD Sender: Processing packet 145834 [packets to send 206, broken 205] [19:23:00]ProducePacketName [19:23:00]name=ofd_packets/00145834 [19:23:00]OFD Sender: To server: pG, [19:23:00]CommunicateWithHost lk.salyk.kg:30040 [19:23:00]ConnectInit lk.salyk.kg [19:23:00]written 0, free lines is 4095 [19:23:00]Connected sock=9 [19:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 6E 2B 04 01 21 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 15 93 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AA 39 02 00 35 04 06 00 70 04 82 2D CD 08 5A 7C 36 8D F6 B3 EB 37 [19:23:01]Write to MH i2c: 01 00 00 C8 3B 03 [19:23:01]Write i2c OK [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: 01 [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: 01 07 00 [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: 01 07 00 C8 3B 00 00 00 00 00 68 0C 7E [19:23:01]RasterBufferAndPrint [19:23:01]line [19:23:01]line [19:23:01]line [19:23:01]line [19:23:01]line [19:23:01]written 0, free lines is 3182 [19:23:01]MH_Cut [19:23:01]Write to MH i2c: D1 01 00 CF 3B 01 DC [19:23:01]Write i2c OK [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: D1 [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: D1 01 00 [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: D1 01 00 CF 3B 00 DB [19:23:01]Write to MH i2c: 01 00 00 D0 3B 0B [19:23:01]Write i2c OK [19:23:01]MH_I2C_Read... [19:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 FE 6A 47 00 3A 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 31 37 34 35 10 04 04 00 AA 39 02 00 F4 03 04 00 42 38 1E 67 B6 04 01 00 00 D0 4F CE B9 6E 7C 2C F7 [19:23:01]CommunicateWithHost err = 0 [19:23:01]CheckOFDResponse [19:23:01]1017 (14) - 77093643461234 [19:23:01]1041 (16) - 0000000000871745 [19:23:01]1040 (4) - 145834 [19:23:01]1012 (4) - 27.10.2024 12:55 [19:23:01]1206 (1) - 0 [19:23:01]OFD Sender: Remove packet 145834 [19:23:01]ProducePacketName [19:23:01]name=ofd_packets/00145834 [19:23:01]NVStorageDeleteData [19:23:01]OFD Sender: No OFD packet to send [19:23:02]*** Cut start [19:23:02]*** Partial cut [19:23:02]*** CUTSNS_PIN = 1 [19:23:02]*** CUTSNS_PIN = 0 [19:23:02]*** Brake cut motor [19:23:02]Read from MH i2c: 01 [19:23:02]MH_I2C_Read... [19:23:02]*** Stop cut motor [19:23:02]*** Cut end [19:23:02]Read from MH i2c: 01 07 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: 01 07 00 D0 3B 00 00 00 00 00 FF 0F 20 [19:23:02]process_action close_receipt done [19:23:02]requested_data is exist [19:23:02]produce_requested_data [19:23:02]requested_item fm.sn is exist - process it [19:23:02]wFMCommunicate request_size=4 [19:23:02]MH_SAM_APDU [19:23:02]CAPDU: 80 11 00 00 [19:23:02]Write to MH i2c: E2 08 00 D1 3B 80 11 00 00 00 00 00 00 86 [19:23:02]Write i2c OK [19:23:02]MH_I2C_Read... [19:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:02]Read from MH i2c: E2 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 17 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 17 00 D1 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D9 [19:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:23:02]wFMCommunicate OK [19:23:02]requested_item fd.num is exist - process it [19:23:02]SAM_PROTO_GetFieldsCounters [19:23:02]wFMCommunicate request_size=4 [19:23:02]MH_SAM_APDU [19:23:02]CAPDU: 80 13 00 00 [19:23:02]Write to MH i2c: E2 08 00 D2 3B 80 13 00 00 00 00 00 00 89 [19:23:02]Write i2c OK [19:23:02]MH_I2C_Read... [19:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:02]Read from MH i2c: E2 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 62 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 62 00 D2 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AA 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [19:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AA 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:02]wFMCommunicate OK [19:23:02]SAM_PROTO_GetFieldsCounters done [19:23:02]requested_item shift.num is exist - process it [19:23:02]requested_item shift.opened is exist - process it [19:23:02]req_shift_opened [19:23:02]FM_GetShiftState [19:23:02]SAM_PROTO_GetShiftState [19:23:02]wFMCommunicate request_size=4 [19:23:02]MH_SAM_APDU [19:23:02]CAPDU: 80 13 01 00 [19:23:02]Write to MH i2c: E2 08 00 D3 3B 80 13 01 00 00 00 00 00 8B [19:23:02]Write i2c OK [19:23:02]MH_I2C_Read... [19:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:02]Read from MH i2c: E2 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 0E 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 0E 00 D3 3B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 03 [19:23:02]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:23:02]wFMCommunicate OK [19:23:02]SAM_PROTO_GetShiftState done [19:23:02]FM_GetShiftState done [19:23:02]req_shift_opened done [19:23:02]requested_item shift.open_date is exist - process it [19:23:02]req_shift_open_date [19:23:02]req_shift_open_date done [19:23:02]produce_requested_data done [19:23:02]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145834,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:23:02]process_action_free close_receipt [19:23:02]json_value_free [19:23:02]json_value_free done [19:23:02]process_json_proto returns [19:23:02]Send response to host [19:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145834,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:23:02]free response buf [19:23:02]execute_script done [19:23:02]execute_script returns [19:23:02]free content buf [19:23:02]Sock 7.Close socket [19:23:02]Sock 7.Thread stoped [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:13]accept exits with 10 [19:27:13]New connection [19:27:13]New thread 3066596708 created [19:27:13]Thread 3066740068 joined [19:27:13]Waiting for new connection... [19:27:13] Sock 10.Parse request [19:27:13]Sock 10.Check first char [19:27:13]Sock 10.First char is OK [19:27:13]request: POST /json_proto HTTP/1.0 [19:27:13]Method: POST [19:27:13]URL: /json_proto [19:27:13]Method is POST - this is cgi request [19:27:13]url: /json_proto [19:27:13]query_string will be loaded in cgi processing [19:27:13]execute_cgi json_proto POST (null) [19:27:13]execute_cgi path=json_proto method=POST [19:27:13]POST find Content-Length [19:27:13]Host: 172.17.40.195:8080 [19:27:13]Content-Length: 675 [19:27:13]Content-Type: application/json [19:27:13] [19:27:13]POST finish read [19:27:13]Found Content-Length = 675 [19:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:13]execute_script... [19:27: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)160592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:13]POST & json_proto [19:27:13]process_json_proto [19:27:13]json parsed OK: [19:27:13]protocol is kg_v1.0 [19:27:13]action value=close_receipt [19:27:13]process_action close_receipt [19:27:13]cmd_close_receipt [19:27:13]MH_GetDate [19:27:13]Write to MH i2c: F0 00 00 D4 3B FE [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: F0 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: F0 09 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: F0 09 00 D4 3B 00 14 94 1E 67 D5 8D 6C 64 66 [19:27:13]GetLastDocTimeStamp 1730056981 [19:27:13]current date 1730057236 [19:27:13]FM_GetShiftState [19:27:13]SAM_PROTO_GetShiftState [19:27:13]wFMCommunicate request_size=4 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 13 01 00 [19:27:13]Write to MH i2c: E2 08 00 D5 3B 80 13 01 00 00 00 00 00 8D [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:13]Read from MH i2c: E2 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 0E 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 0E 00 D5 3B 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 05 [19:27:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:27:13]wFMCommunicate OK [19:27:13]SAM_PROTO_GetShiftState done [19:27:13]FM_GetShiftState done [19:27:13]opened in 1729988959 [19:27:13]opened+sec_in_day 1730075359 [19:27:13]quantity*price = 90068 [19:27:13]sum+1 = 90069 [19:27:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 258 27.10.2024 19:27 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145835 ФПД: 4257595232873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192716&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145835&fm=4257595232873&tin=02508201610067®Number=0000000000091683&sum=90000 [19:27:14]StoreToDocumentArchive [19:27:14]shift 545 fd 145835 [19:27:14]save to /storage/0545/doc_00145835 [19:27:14]save last doc name /storage/0545/doc_00145835 to /storage/kkm_last_doc_name [19:27:14]save OK [19:27:14]Clear old archive folders... [19:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:27:14]tlvbuf is 003FB840 [19:27:14]SAM_PROTO_ClearQueue [19:27:14]wFMCommunicate request_size=4 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 09 00 00 [19:27:14]Write to MH i2c: E2 08 00 E2 3B 80 09 00 00 00 00 00 00 8F [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 E2 3B 00 90 00 91 [19:27:14]RAPDU: 90 00 [19:27:14]wFMCommunicate OK [19:27:14]SAM_PROTO_ClearQueue done [19:27:14]KKMCreateOFDPacket [19:27:14]OFDProtocolAddRootSTLVToBuf [19:27:14]FM_MakeSignedData [19:27:14]FM_MakeSignedData [19:27:14]SAM_PROTO_SignData [19:27:14]wFMCommunicate request_size=4 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 0D 01 02 [19:27:14]Write to MH i2c: E2 08 00 E3 3B 80 0D 01 02 00 00 00 00 97 [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 E3 3B 00 90 00 92 [19:27:14]RAPDU: 90 00 [19:27:14]wFMCommunicate OK [19:27:14]wFMCommunicate request_size=255 [19:27:14]MH_SAM_APDU [19:27: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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 14 94 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AB 39 02 00 35 04 06 00 03 DF 4C 73 [19:27:14]Write to MH i2c: E2 02 01 E4 3B 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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 14 94 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AB 39 02 00 35 04 06 00 03 DF 4C 73 00 00 BE [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 E4 3B 00 90 00 93 [19:27:14]RAPDU: 90 00 [19:27:14]wFMCommunicate OK [19:27:14]wFMCommunicate request_size=7 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 0D 02 02 02 92 69 [19:27:14]Write to MH i2c: E2 0A 00 E5 3B 80 0D 02 02 02 00 92 69 00 00 99 [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 E5 3B 00 90 00 94 [19:27:14]RAPDU: 90 00 [19:27:14]wFMCommunicate OK [19:27:14]wFMCommunicate request_size=4 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 0D 03 02 [19:27:14]Write to MH i2c: E2 08 00 E6 3B 80 0D 03 02 00 00 00 00 9C [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:15]Read from MH i2c: E2 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 0B 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 0B 00 E6 3B 00 1E C6 39 C7 A8 C7 12 43 90 00 45 [19:27:15]RAPDU: 1E C6 39 C7 A8 C7 12 43 90 00 [19:27:15]wFMCommunicate OK [19:27:15]SAM_PROTO_SignData done [19:27:15]FM_MakeSignedData done [19:27:15]CreateOFDProtocolMessage [19:27:15]wFMCommunicate request_size=4 [19:27:15]MH_SAM_APDU [19:27:15]CAPDU: 80 11 00 00 [19:27:15]Write to MH i2c: E2 08 00 E7 3B 80 11 00 00 00 00 00 00 9C [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:15]Read from MH i2c: E2 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 17 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 17 00 E7 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EF [19:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:27:15]wFMCommunicate OK [19:27:15]CreateOFDProtocolMessage done [19:27:15]OFDSenderStorePacket 145835 [19:27:15]StoreOFDPacket docnum=145835 [19:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 66 8C 04 01 D8 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 14 94 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AB 39 02 00 35 04 06 00 03 DF 4C 73 92 69 1E C6 39 C7 A8 C7 12 43 [19:27:15]CheckFolder [19:27:15]dirname=/storage/ofd_packets [19:27:15]CheckFolder done [19:27:15]ProducePacketName [19:27:15]name=ofd_packets/00145835 [19:27:15]NVStorageSaveData ofd_packets/00145835 [19:27:15]File name is /storage/ofd_packets/00145835 [19:27:15]Write 298 bytes [19:27:15]NVStorageSaveData done [19:27:15]OFDSenderStorePacket done [19:27:15]KKMCreateOFDPacket done [19:27:15]NVStorageSaveData kkm_last_timestamp [19:27:15]File name is /storage/kkm_last_timestamp [19:27:15]Write 4 bytes [19:27:15]NVStorageSaveData done [19:27:15]ExternCall_PrintAddStr [19:27:15]wPrintStart [19:27:15]Write to MH i2c: 01 00 00 E8 3B 23 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 E8 3B 00 00 00 00 00 FF 0F 38 [19:27:15]RasterBufferAndPrint [19:27:15]line Счет N : (1)160592 [19:27:15]line ИНН: 02508201610067 [19:27:15]line Контрольно-Кассовый Чек [19:27:15]line ПРОДАЖА [19:27:15]line ТРК (МРК, ГНК) : 11 [19:27:15]line Товар: 2710194210 [19:27:15]line ДТ-К-2 [19:27:15]line 11.820 * 76.20 [19:27:15]line = 900.68 [19:27:15]line НДС 12% НСП 1% [19:27:15]line > о реализуемом товаре [19:27:15]line ОКРУГЛЕНИЕ: -0.68 [19:27:15]line ИТОГО: 900.00 [19:27:15]line Внесено: 900.00 [19:27:15]line СДАЧА: 0.00 [19:27:15]line НСП 1% : 7.97 [19:27:15]line НДС 12% : 95.65 [19:27:15]line Наличными: 900.00 [19:27:15]line Безнал.: 0.00 [19:27:15]line Место: АЗС № 126 "Партнер Нефть" [19:27:15]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:27:15]line СНО: Общий режим [19:27:15]line Чек 258 27.10.2024 19:27 [19:27:15]line Смена: 545 ФФД: 1.0 [19:27:15]line ЗНМ: 0300000085 [19:27:15]line РНМ: 0000000000091683 [19:27:15]line Версия ККМ: 001 [19:27:15]line ФМ: 0000000000871745 [19:27:15]line ФД: 145835 [19:27:15]line ФПД: 4257595232873 [19:27:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192716&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145835&fm=4257595232873&tin=02508201610067®Number=0000000000091683&sum=90000 [19:27:15]written 0, free lines is 4095 [19:27:15]OFD Sender: Processing packet 145835 [packets to send 206, broken 205] [19:27:15]ProducePacketName [19:27:15]name=ofd_packets/00145835 [19:27:15]OFD Sender: To server: pG, [19:27:15]CommunicateWithHost lk.salyk.kg:30040 [19:27:15]ConnectInit lk.salyk.kg [19:27:15]Write to MH i2c: 01 00 00 13 3C 4F [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 13 3C 00 00 00 00 00 A5 0C 07 [19:27:15]RasterBufferAndPrint [19:27:15]line [19:27:15]line [19:27:15]line [19:27:15]line [19:27:15]line [19:27:15]written 0, free lines is 3242 [19:27:15]MH_Cut [19:27:15]Write to MH i2c: D1 01 00 1A 3C 01 28 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: D1 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: D1 01 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: D1 01 00 1A 3C 00 27 [19:27:15]Write to MH i2c: 01 00 00 1B 3C 57 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:16]*** Cut start [19:27:16]*** Partial cut [19:27:16]*** CUTSNS_PIN = 1 [19:27:16]*** CUTSNS_PIN = 0 [19:27:16]*** Brake cut motor [19:27:16]Read from MH i2c: 01 [19:27:16]MH_I2C_Read... [19:27:16]*** Stop cut motor [19:27:16]*** Cut end [19:27:16]Read from MH i2c: 01 07 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: 01 07 00 1B 3C 00 00 00 00 00 FF 0F 6C [19:27:16]process_action close_receipt done [19:27:16]requested_data is exist [19:27:16]produce_requested_data [19:27:16]requested_item fm.sn is exist - process it [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 11 00 00 [19:27:16]Write to MH i2c: E2 08 00 1C 3C 80 11 00 00 00 00 00 00 D2 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:17]Read from MH i2c: E2 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: E2 17 00 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: E2 17 00 1C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 25 [19:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:27:17]wFMCommunicate OK [19:27:17]requested_item fd.num is exist - process it [19:27:17]SAM_PROTO_GetFieldsCounters [19:27:17]wFMCommunicate request_size=4 [19:27:17]MH_SAM_APDU [19:27:17]CAPDU: 80 13 00 00 [19:27:17]Write to MH i2c: E2 08 00 1D 3C 80 13 00 00 00 00 00 00 D5 [19:27:17]Write i2c OK [19:27:17]MH_I2C_Read... [19:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:17]Read from MH i2c: E2 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: E2 62 00 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: E2 62 00 1D 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AB 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [19:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AB 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:17]wFMCommunicate OK [19:27:17]SAM_PROTO_GetFieldsCounters done [19:27:17]requested_item shift.num is exist - process it [19:27:17]requested_item shift.opened is exist - process it [19:27:17]req_shift_opened [19:27:17]FM_GetShiftState [19:27:17]SAM_PROTO_GetShiftState [19:27:17]wFMCommunicate request_size=4 [19:27:17]MH_SAM_APDU [19:27:17]CAPDU: 80 13 01 00 [19:27:17]Write to MH i2c: E2 08 00 1E 3C 80 13 01 00 00 00 00 00 D7 [19:27:17]Write i2c OK [19:27:17]MH_I2C_Read... [19:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:17]Read from MH i2c: E2 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: E2 0E 00 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: E2 0E 00 1E 3C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4F [19:27:17]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:27:17]wFMCommunicate OK [19:27:17]SAM_PROTO_GetShiftState done [19:27:17]FM_GetShiftState done [19:27:17]req_shift_opened done [19:27:17]requested_item shift.open_date is exist - process it [19:27:17]req_shift_open_date [19:27:17]req_shift_open_date done [19:27:17]produce_requested_data done [19:27:17]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145835,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:27:17]process_action_free close_receipt [19:27:17]json_value_free [19:27:17]json_value_free done [19:27:17]process_json_proto returns [19:27:17]Send response to host [19:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145835,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:27:17]free response buf [19:27:17]execute_script done [19:27:17]execute_script returns [19:27:17]free content buf [19:27:17]Sock 10.Close socket [19:27:17]Sock 10.Thread stoped [19:29:26]ConnectInit Can't connect to host [19:29:26]CommunicateWithHost connect error [19:29:26]CommunicateWithHost err = -1 [19:29:26]OFD Sender: Server communicate error [19:29:31]OFD Sender: Processing packet 145835 [packets to send 206, broken 205] [19:29:31]ProducePacketName [19:29:31]name=ofd_packets/00145835 [19:29:31]OFD Sender: To server: pG, [19:29:31]CommunicateWithHost lk.salyk.kg:30040 [19:29:31]ConnectInit lk.salyk.kg [19:29:32]Connected sock=10 [19:29:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 66 8C 04 01 D8 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 14 94 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AB 39 02 00 35 04 06 00 03 DF 4C 73 92 69 1E C6 39 C7 A8 C7 12 43 [19:29:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D1 07 47 00 36 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AB 39 02 00 F4 03 04 00 C9 39 1E 67 B6 04 01 00 00 87 82 BE F9 2C 6A D1 8F [19:29:32]CommunicateWithHost err = 0 [19:29:32]CheckOFDResponse [19:29:32]1017 (14) - 77093643461234 [19:29:32]1041 (16) - 0000000000871745 [19:29:32]1040 (4) - 145835 [19:29:32]1012 (4) - 27.10.2024 13:02 [19:29:32]1206 (1) - 0 [19:29:32]OFD Sender: Remove packet 145835 [19:29:32]ProducePacketName [19:29:32]name=ofd_packets/00145835 [19:29:32]NVStorageDeleteData [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:58]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:24]accept exits with 7 [19:39:24]New connection [19:39:24]New thread 3066740068 created [19:39:24]Thread 3066596708 joined [19:39:24]Waiting for new connection... [19:39:24] Sock 7.Parse request [19:39:24]Sock 7.Check first char [19:39:24]Sock 7.First char is OK [19:39:24]request: POST /json_proto HTTP/1.0 [19:39:24]Method: POST [19:39:24]URL: /json_proto [19:39:24]Method is POST - this is cgi request [19:39:24]url: /json_proto [19:39:24]query_string will be loaded in cgi processing [19:39:24]execute_cgi json_proto POST (null) [19:39:24]execute_cgi path=json_proto method=POST [19:39:24]POST find Content-Length [19:39:24]Host: 172.17.40.195:8080 [19:39:24]Content-Length: 679 [19:39:24]Content-Type: application/json [19:39:24] [19:39:24]POST finish read [19:39:24]Found Content-Length = 679 [19:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "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" ] } } [19:39:24]execute_script... [19:39: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)160593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "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" ] } } [19:39:24]POST & json_proto [19:39:24]process_json_proto [19:39:24]json parsed OK: [19:39:24]protocol is kg_v1.0 [19:39:24]action value=close_receipt [19:39:24]process_action close_receipt [19:39:24]cmd_close_receipt [19:39:24]MH_GetDate [19:39:24]Write to MH i2c: F0 00 00 1F 3C 4A [19:39:24]Write i2c OK [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: F0 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: F0 09 00 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: F0 09 00 1F 3C 00 EF 96 1E 67 D5 8D 6C 64 8F [19:39:24]GetLastDocTimeStamp 1730057236 [19:39:24]current date 1730057967 [19:39:24]FM_GetShiftState [19:39:24]SAM_PROTO_GetShiftState [19:39:24]wFMCommunicate request_size=4 [19:39:24]MH_SAM_APDU [19:39:24]CAPDU: 80 13 01 00 [19:39:24]Write to MH i2c: E2 08 00 20 3C 80 13 01 00 00 00 00 00 D9 [19:39:24]Write i2c OK [19:39:24]MH_I2C_Read... [19:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:24]Read from MH i2c: E2 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: E2 0E 00 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: E2 0E 00 20 3C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 51 [19:39:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:39:24]wFMCommunicate OK [19:39:24]SAM_PROTO_GetShiftState done [19:39:24]FM_GetShiftState done [19:39:24]opened in 1729988959 [19:39:24]opened+sec_in_day 1730075359 [19:39:24]quantity*price = 300075 [19:39:24]sum+1 = 300077 [19:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 259 27.10.2024 19:39 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145836 ФПД: 223845916433421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193927&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145836&fm=223845916433421&tin=02508201610067®Number=0000000000091683&sum=300000 [19:39:25]StoreToDocumentArchive [19:39:25]shift 545 fd 145836 [19:39:25]save to /storage/0545/doc_00145836 [19:39:25]save last doc name /storage/0545/doc_00145836 to /storage/kkm_last_doc_name [19:39:25]save OK [19:39:25]Clear old archive folders... [19:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:39:25]tlvbuf is 004E3740 [19:39:25]SAM_PROTO_ClearQueue [19:39:25]wFMCommunicate request_size=4 [19:39:25]MH_SAM_APDU [19:39:25]CAPDU: 80 09 00 00 [19:39:25]Write to MH i2c: E2 08 00 2D 3C 80 09 00 00 00 00 00 00 DB [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:25]Read from MH i2c: E2 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 03 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 03 00 2D 3C 00 90 00 DD [19:39:25]RAPDU: 90 00 [19:39:25]wFMCommunicate OK [19:39:25]SAM_PROTO_ClearQueue done [19:39:25]KKMCreateOFDPacket [19:39:25]OFDProtocolAddRootSTLVToBuf [19:39:25]FM_MakeSignedData [19:39:25]FM_MakeSignedData [19:39:25]SAM_PROTO_SignData [19:39:25]wFMCommunicate request_size=4 [19:39:25]MH_SAM_APDU [19:39:25]CAPDU: 80 0D 01 02 [19:39:25]Write to MH i2c: E2 08 00 2E 3C 80 0D 01 02 00 00 00 00 E3 [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:25]Read from MH i2c: E2 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 03 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 03 00 2E 3C 00 90 00 DE [19:39:25]RAPDU: 90 00 [19:39:25]wFMCommunicate OK [19:39:25]wFMCommunicate request_size=255 [19:39:25]MH_SAM_APDU [19:39:25]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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 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 7A 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 03 01 00 00 F4 03 04 00 EF 96 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AC 39 02 00 35 04 06 00 CB 96 30 55 [19:39:25]Write to MH i2c: E2 02 01 2F 3C 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 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 7A 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 03 01 00 00 F4 03 04 00 EF 96 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AC 39 02 00 35 04 06 00 CB 96 30 55 00 00 9C [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:26]Read from MH i2c: E2 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 03 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 03 00 2F 3C 00 90 00 DF [19:39:26]RAPDU: 90 00 [19:39:26]wFMCommunicate OK [19:39:26]wFMCommunicate request_size=7 [19:39:26]MH_SAM_APDU [19:39:26]CAPDU: 80 0D 02 02 02 5C 0D [19:39:26]Write to MH i2c: E2 0A 00 30 3C 80 0D 02 02 02 00 5C 0D 00 00 53 [19:39:26]Write i2c OK [19:39:26]MH_I2C_Read... [19:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:26]Read from MH i2c: E2 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 03 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 03 00 30 3C 00 90 00 E0 [19:39:26]RAPDU: 90 00 [19:39:26]wFMCommunicate OK [19:39:26]wFMCommunicate request_size=4 [19:39:26]MH_SAM_APDU [19:39:26]CAPDU: 80 0D 03 02 [19:39:26]Write to MH i2c: E2 08 00 31 3C 80 0D 03 02 00 00 00 00 E8 [19:39:26]Write i2c OK [19:39:26]MH_I2C_Read... [19:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:26]Read from MH i2c: E2 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 0B 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 0B 00 31 3C 00 BC CB 7B C2 A4 89 6A 80 90 00 C4 [19:39:26]RAPDU: BC CB 7B C2 A4 89 6A 80 90 00 [19:39:26]wFMCommunicate OK [19:39:26]SAM_PROTO_SignData done [19:39:26]FM_MakeSignedData done [19:39:26]CreateOFDProtocolMessage [19:39:26]wFMCommunicate request_size=4 [19:39:26]MH_SAM_APDU [19:39:26]CAPDU: 80 11 00 00 [19:39:26]Write to MH i2c: E2 08 00 32 3C 80 11 00 00 00 00 00 00 E8 [19:39:26]Write i2c OK [19:39:26]MH_I2C_Read... [19:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:26]Read from MH i2c: E2 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 17 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 17 00 32 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 3B [19:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:39:26]wFMCommunicate OK [19:39:26]CreateOFDProtocolMessage done [19:39:26]OFDSenderStorePacket 145836 [19:39:26]StoreOFDPacket docnum=145836 [19:39:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 D3 0C 04 01 D0 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 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 7A 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 03 01 00 00 F4 03 04 00 EF 96 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AC 39 02 00 35 04 06 00 CB 96 30 55 5C 0D BC CB 7B C2 A4 89 6A 80 [19:39:26]CheckFolder [19:39:26]dirname=/storage/ofd_packets [19:39:26]CheckFolder done [19:39:26]ProducePacketName [19:39:26]name=ofd_packets/00145836 [19:39:26]NVStorageSaveData ofd_packets/00145836 [19:39:26]File name is /storage/ofd_packets/00145836 [19:39:26]Write 298 bytes [19:39:26]NVStorageSaveData done [19:39:26]OFDSenderStorePacket done [19:39:26]KKMCreateOFDPacket done [19:39:26]NVStorageSaveData kkm_last_timestamp [19:39:26]File name is /storage/kkm_last_timestamp [19:39:26]Write 4 bytes [19:39:26]NVStorageSaveData done [19:39:26]ExternCall_PrintAddStr [19:39:26]wPrintStart [19:39:26]Write to MH i2c: 01 00 00 33 3C 6F [19:39:26]Write i2c OK [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: 01 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: 01 07 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: 01 07 00 33 3C 00 00 00 00 00 FF 0F 84 [19:39:26]RasterBufferAndPrint [19:39:26]line Счет N : (1)160593 [19:39:26]line ИНН: 02508201610067 [19:39:26]line Контрольно-Кассовый Чек [19:39:26]line ПРОДАЖА [19:39:26]line ТРК (МРК, ГНК) : 11 [19:39:26]line Товар: 2710194210 [19:39:26]line ДТ-К-2 [19:39:26]line 39.380 * 76.20 [19:39:26]line = 3000.76 [19:39:26]line НДС 12% НСП 1% [19:39:26]line > о реализуемом товаре [19:39:26]line ОКРУГЛЕНИЕ: -0.76 [19:39:26]line ИТОГО: 3000.00 [19:39:26]line Внесено: 3000.00 [19:39:26]line СДАЧА: 0.00 [19:39:26]line НСП 1% : 26.55 [19:39:26]line НДС 12% : 318.66 [19:39:26]line Наличными: 3000.00 [19:39:26]line Безнал.: 0.00 [19:39:26]line Место: АЗС № 126 "Партнер Нефть" [19:39:26]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:39:26]line СНО: Общий режим [19:39:26]line Чек 259 27.10.2024 19:39 [19:39:26]line Смена: 545 ФФД: 1.0 [19:39:26]line ЗНМ: 0300000085 [19:39:26]line РНМ: 0000000000091683 [19:39:26]line Версия ККМ: 001 [19:39:26]line ФМ: 0000000000871745 [19:39:26]line ФД: 145836 [19:39:26]line ФПД: 223845916433421 [19:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193927&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145836&fm=223845916433421&tin=02508201610067®Number=0000000000091683&sum=300000 [19:39:26]OFD Sender: Processing packet 145836 [packets to send 206, broken 205] [19:39:26]ProducePacketName [19:39:26]name=ofd_packets/00145836 [19:39:26]OFD Sender: To server: pG, [19:39:26]CommunicateWithHost lk.salyk.kg:30040 [19:39:26]ConnectInit lk.salyk.kg [19:39:26]written 0, free lines is 4095 [19:39:26]Connected sock=10 [19:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 D3 0C 04 01 D0 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 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 7A 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 03 01 00 00 F4 03 04 00 EF 96 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AC 39 02 00 35 04 06 00 CB 96 30 55 5C 0D BC CB 7B C2 A4 89 6A 80 [19:39:27]Write to MH i2c: 01 00 00 5E 3C 9A [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: 01 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: 01 07 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: 01 07 00 5E 3C 00 00 00 00 00 B6 0C 63 [19:39:27]RasterBufferAndPrint [19:39:27]line [19:39:27]line [19:39:27]line [19:39:27]line [19:39:27]line [19:39:27]written 0, free lines is 3260 [19:39:27]MH_Cut [19:39:27]Write to MH i2c: D1 01 00 65 3C 01 73 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: D1 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: D1 01 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: D1 01 00 65 3C 00 72 [19:39:27]Write to MH i2c: 01 00 00 66 3C A2 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 64 2D 47 00 16 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AC 39 02 00 F4 03 04 00 1C 3C 1E 67 B6 04 01 00 00 BA 71 BA CE 0C F8 BC CF [19:39:27]CommunicateWithHost err = 0 [19:39:27]CheckOFDResponse [19:39:27]1017 (14) - 77093643461234 [19:39:27]1041 (16) - 0000000000871745 [19:39:27]1040 (4) - 145836 [19:39:27]1012 (4) - 27.10.2024 13:11 [19:39:27]1206 (1) - 0 [19:39:27]OFD Sender: Remove packet 145836 [19:39:27]ProducePacketName [19:39:27]name=ofd_packets/00145836 [19:39:27]NVStorageDeleteData [19:39:27]OFD Sender: No OFD packet to send [19:39:27]*** Cut start [19:39:27]*** Partial cut [19:39:27]*** CUTSNS_PIN = 1 [19:39:27]*** CUTSNS_PIN = 0 [19:39:28]*** Brake cut motor [19:39:28]Read from MH i2c: 01 [19:39:28]MH_I2C_Read... [19:39:28]*** Stop cut motor [19:39:28]*** Cut end [19:39:28]Read from MH i2c: 01 07 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: 01 07 00 66 3C 00 00 00 00 00 FF 0F B7 [19:39:28]process_action close_receipt done [19:39:28]requested_data is exist [19:39:28]produce_requested_data [19:39:28]requested_item fm.sn is exist - process it [19:39:28]wFMCommunicate request_size=4 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 11 00 00 [19:39:28]Write to MH i2c: E2 08 00 67 3C 80 11 00 00 00 00 00 00 1D [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 17 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 17 00 67 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 70 [19:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:39:28]wFMCommunicate OK [19:39:28]requested_item fd.num is exist - process it [19:39:28]SAM_PROTO_GetFieldsCounters [19:39:28]wFMCommunicate request_size=4 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 13 00 00 [19:39:28]Write to MH i2c: E2 08 00 68 3C 80 13 00 00 00 00 00 00 20 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 62 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 62 00 68 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AC 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [19:39:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AC 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:28]wFMCommunicate OK [19:39:28]SAM_PROTO_GetFieldsCounters done [19:39:28]requested_item shift.num is exist - process it [19:39:28]requested_item shift.opened is exist - process it [19:39:28]req_shift_opened [19:39:28]FM_GetShiftState [19:39:28]SAM_PROTO_GetShiftState [19:39:28]wFMCommunicate request_size=4 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 13 01 00 [19:39:28]Write to MH i2c: E2 08 00 69 3C 80 13 01 00 00 00 00 00 22 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 0E 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 0E 00 69 3C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9A [19:39:28]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:39:28]wFMCommunicate OK [19:39:28]SAM_PROTO_GetShiftState done [19:39:28]FM_GetShiftState done [19:39:28]req_shift_opened done [19:39:28]requested_item shift.open_date is exist - process it [19:39:28]req_shift_open_date [19:39:28]req_shift_open_date done [19:39:28]produce_requested_data done [19:39:28]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145836,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:39:28]process_action_free close_receipt [19:39:28]json_value_free [19:39:28]json_value_free done [19:39:28]process_json_proto returns [19:39:28]Send response to host [19:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145836,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:39:28]free response buf [19:39:28]execute_script done [19:39:28]execute_script returns [19:39:28]free content buf [19:39:28]Sock 7.Close socket [19:39:28]Sock 7.Thread stoped [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]accept exits with 9 [19:40:37]New connection [19:40:37]New thread 3066596708 created [19:40:37]Thread 3066740068 joined [19:40:37]Waiting for new connection... [19:40:37] Sock 9.Parse request [19:40:37]Sock 9.Check first char [19:40:37]Sock 9.First char is OK [19:40:37]request: POST /json_proto HTTP/1.0 [19:40:37]Method: POST [19:40:37]URL: /json_proto [19:40:37]Method is POST - this is cgi request [19:40:37]url: /json_proto [19:40:37]query_string will be loaded in cgi processing [19:40:37]execute_cgi json_proto POST (null) [19:40:37]execute_cgi path=json_proto method=POST [19:40:37]POST find Content-Length [19:40:37]Host: 172.17.40.195:8080 [19:40:37]Content-Length: 677 [19:40:37]Content-Type: application/json [19:40:37] [19:40:37]POST finish read [19:40:37]Found Content-Length = 677 [19:40:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:37]execute_script... [19:40: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)160594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:37]POST & json_proto [19:40:37]process_json_proto [19:40:37]json parsed OK: [19:40:37]protocol is kg_v1.0 [19:40:37]action value=close_receipt [19:40:37]process_action close_receipt [19:40:37]cmd_close_receipt [19:40:37]MH_GetDate [19:40:37]Write to MH i2c: F0 00 00 6A 3C 95 [19:40:37]Write i2c OK [19:40:37]MH_I2C_Read... [19:40:37]Read from MH i2c: F0 [19:40:37]MH_I2C_Read... [19:40:37]Read from MH i2c: F0 09 00 [19:40:37]MH_I2C_Read... [19:40:37]Read from MH i2c: F0 09 00 6A 3C 00 38 97 1E 67 D5 8D 6C 64 24 [19:40:37]GetLastDocTimeStamp 1730057967 [19:40:37]current date 1730058040 [19:40:37]FM_GetShiftState [19:40:37]SAM_PROTO_GetShiftState [19:40:37]wFMCommunicate request_size=4 [19:40:37]MH_SAM_APDU [19:40:37]CAPDU: 80 13 01 00 [19:40:37]Write to MH i2c: E2 08 00 6B 3C 80 13 01 00 00 00 00 00 24 [19:40:37]Write i2c OK [19:40:37]MH_I2C_Read... [19:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:37]Read from MH i2c: E2 [19:40:37]MH_I2C_Read... [19:40:37]Read from MH i2c: E2 0E 00 [19:40:37]MH_I2C_Read... [19:40:37]Read from MH i2c: E2 0E 00 6B 3C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9C [19:40:37]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:40:37]wFMCommunicate OK [19:40:37]SAM_PROTO_GetShiftState done [19:40:37]FM_GetShiftState done [19:40:37]opened in 1729988959 [19:40:37]opened+sec_in_day 1730075359 [19:40:37]quantity*price = 50041 [19:40:37]sum+1 = 50042 [19:40:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 260 27.10.2024 19:40 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145837 ФПД: 86369031110261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194040&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145837&fm=86369031110261&tin=02508201610067®Number=0000000000091683&sum=50000 [19:40:38]StoreToDocumentArchive [19:40:38]shift 545 fd 145837 [19:40:38]save to /storage/0545/doc_00145837 [19:40:38]save last doc name /storage/0545/doc_00145837 to /storage/kkm_last_doc_name [19:40:38]save OK [19:40:38]Clear old archive folders... [19:40:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:38]tlvbuf is 0042FEC0 [19:40:38]SAM_PROTO_ClearQueue [19:40:38]wFMCommunicate request_size=4 [19:40:38]MH_SAM_APDU [19:40:38]CAPDU: 80 09 00 00 [19:40:38]Write to MH i2c: E2 08 00 78 3C 80 09 00 00 00 00 00 00 26 [19:40:38]Write i2c OK [19:40:38]MH_I2C_Read... [19:40:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:38]Read from MH i2c: E2 [19:40:38]MH_I2C_Read... [19:40:38]Read from MH i2c: E2 03 00 [19:40:38]MH_I2C_Read... [19:40:38]Read from MH i2c: E2 03 00 78 3C 00 90 00 28 [19:40:38]RAPDU: 90 00 [19:40:38]wFMCommunicate OK [19:40:38]SAM_PROTO_ClearQueue done [19:40:38]KKMCreateOFDPacket [19:40:38]OFDProtocolAddRootSTLVToBuf [19:40:38]FM_MakeSignedData [19:40:38]FM_MakeSignedData [19:40:38]SAM_PROTO_SignData [19:40:38]wFMCommunicate request_size=4 [19:40:38]MH_SAM_APDU [19:40:38]CAPDU: 80 0D 01 02 [19:40:38]Write to MH i2c: E2 08 00 79 3C 80 0D 01 02 00 00 00 00 2E [19:40:38]Write i2c OK [19:40:38]MH_I2C_Read... [19:40:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:38]Read from MH i2c: E2 [19:40:38]MH_I2C_Read... [19:40:38]Read from MH i2c: E2 03 00 [19:40:38]MH_I2C_Read... [19:40:38]Read from MH i2c: E2 03 00 79 3C 00 90 00 29 [19:40:38]RAPDU: 90 00 [19:40:38]wFMCommunicate OK [19:40:38]wFMCommunicate request_size=255 [19:40:38]MH_SAM_APDU [19:40: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 38 97 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AD 39 02 00 35 04 06 00 4E [19:40:38]Write to MH i2c: E2 02 01 7A 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 38 97 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AD 39 02 00 35 04 06 00 4E 00 00 6E [19:40:38]Write i2c OK [19:40:38]MH_I2C_Read... [19:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:39]Read from MH i2c: E2 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: E2 03 00 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: E2 03 00 7A 3C 00 90 00 2A [19:40:39]RAPDU: 90 00 [19:40:39]wFMCommunicate OK [19:40:39]wFMCommunicate request_size=10 [19:40:39]MH_SAM_APDU [19:40:39]CAPDU: 80 0D 02 02 05 8D 5B 6B 3E 75 [19:40:39]Write to MH i2c: E2 0D 00 7B 3C 80 0D 02 02 05 00 8D 5B 6B 3E 75 00 00 41 [19:40:39]Write i2c OK [19:40:39]MH_I2C_Read... [19:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:39]Read from MH i2c: E2 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: E2 03 00 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: E2 03 00 7B 3C 00 90 00 2B [19:40:39]RAPDU: 90 00 [19:40:39]wFMCommunicate OK [19:40:39]wFMCommunicate request_size=4 [19:40:39]MH_SAM_APDU [19:40:39]CAPDU: 80 0D 03 02 [19:40:39]Write to MH i2c: E2 08 00 7C 3C 80 0D 03 02 00 00 00 00 33 [19:40:39]Write i2c OK [19:40:39]MH_I2C_Read... [19:40:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:39]Read from MH i2c: E2 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: E2 0B 00 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: E2 0B 00 7C 3C 00 C8 87 AE 3F 3B 13 66 46 90 00 6A [19:40:39]RAPDU: C8 87 AE 3F 3B 13 66 46 90 00 [19:40:39]wFMCommunicate OK [19:40:39]SAM_PROTO_SignData done [19:40:39]FM_MakeSignedData done [19:40:39]CreateOFDProtocolMessage [19:40:39]wFMCommunicate request_size=4 [19:40:39]MH_SAM_APDU [19:40:39]CAPDU: 80 11 00 00 [19:40:39]Write to MH i2c: E2 08 00 7D 3C 80 11 00 00 00 00 00 00 33 [19:40:39]Write i2c OK [19:40:39]MH_I2C_Read... [19:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:39]Read from MH i2c: E2 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: E2 17 00 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: E2 17 00 7D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 86 [19:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:40:39]wFMCommunicate OK [19:40:39]CreateOFDProtocolMessage done [19:40:39]OFDSenderStorePacket 145837 [19:40:39]StoreOFDPacket docnum=145837 [19:40:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 68 B4 07 01 01 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 38 97 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AD 39 02 00 35 04 06 00 4E 8D 5B 6B 3E 75 C8 87 AE 3F 3B 13 66 46 [19:40:39]CheckFolder [19:40:39]dirname=/storage/ofd_packets [19:40:39]CheckFolder done [19:40:39]ProducePacketName [19:40:39]name=ofd_packets/00145837 [19:40:39]NVStorageSaveData ofd_packets/00145837 [19:40:39]File name is /storage/ofd_packets/00145837 [19:40:39]Write 301 bytes [19:40:39]NVStorageSaveData done [19:40:39]OFDSenderStorePacket done [19:40:39]KKMCreateOFDPacket done [19:40:39]NVStorageSaveData kkm_last_timestamp [19:40:39]File name is /storage/kkm_last_timestamp [19:40:39]Write 4 bytes [19:40:39]NVStorageSaveData done [19:40:39]ExternCall_PrintAddStr [19:40:39]wPrintStart [19:40:39]Write to MH i2c: 01 00 00 7E 3C BA [19:40:39]Write i2c OK [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: 01 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: 01 07 00 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: 01 07 00 7E 3C 00 00 00 00 00 FF 0F CF [19:40:39]RasterBufferAndPrint [19:40:39]line Счет N : (1)160594 [19:40:39]line ИНН: 02508201610067 [19:40:39]line Контрольно-Кассовый Чек [19:40:39]line ПРОДАЖА [19:40:39]line ТРК (МРК, ГНК) : 62 [19:40:39]line Товар: 2710124130 [19:40:39]line Аи-92-К-2 [19:40:39]line 7.480 * 66.90 [19:40:39]line = 500.41 [19:40:39]line НДС 12% НСП 1% [19:40:39]line > о реализуемом товаре [19:40:39]line ОКРУГЛЕНИЕ: -0.41 [19:40:39]line ИТОГО: 500.00 [19:40:39]line Внесено: 500.00 [19:40:39]line СДАЧА: 0.00 [19:40:39]line НСП 1% : 4.43 [19:40:39]line НДС 12% : 53.14 [19:40:39]line Наличными: 500.00 [19:40:39]line Безнал.: 0.00 [19:40:39]line Место: АЗС № 126 "Партнер Нефть" [19:40:39]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:40:39]line СНО: Общий режим [19:40:39]line Чек 260 27.10.2024 19:40 [19:40:39]line Смена: 545 ФФД: 1.0 [19:40:39]line ЗНМ: 0300000085 [19:40:39]line РНМ: 0000000000091683 [19:40:39]line Версия ККМ: 001 [19:40:39]line ФМ: 0000000000871745 [19:40:39]line ФД: 145837 [19:40:39]line ФПД: 86369031110261 [19:40:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194040&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145837&fm=86369031110261&tin=02508201610067®Number=0000000000091683&sum=50000 [19:40:39]written 0, free lines is 4095 [19:40:39]OFD Sender: Processing packet 145837 [packets to send 206, broken 205] [19:40:39]ProducePacketName [19:40:39]name=ofd_packets/00145837 [19:40:39]OFD Sender: To server: pG, [19:40:39]CommunicateWithHost lk.salyk.kg:30040 [19:40:39]ConnectInit lk.salyk.kg [19:40:39]Connected sock=10 [19:40:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 68 B4 07 01 01 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 38 97 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AD 39 02 00 35 04 06 00 4E 8D 5B 6B 3E 75 C8 87 AE 3F 3B 13 66 46 [19:40:39]Write to MH i2c: 01 00 00 A9 3C E5 [19:40:39]Write i2c OK [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: 01 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: 01 07 00 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: 01 07 00 A9 3C 00 00 00 00 00 B3 0C AB [19:40:39]RasterBufferAndPrint [19:40:39]line [19:40:39]line [19:40:39]line [19:40:39]line [19:40:39]line [19:40:39]written 0, free lines is 3258 [19:40:39]MH_Cut [19:40:39]Write to MH i2c: D1 01 00 B0 3C 01 BE [19:40:39]Write i2c OK [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: D1 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: D1 01 00 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: D1 01 00 B0 3C 00 BD [19:40:39]Write to MH i2c: 01 00 00 B1 3C ED [19:40:39]Write i2c OK [19:40:39]MH_I2C_Read... [19:40:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E3 B1 47 00 0B 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AD 39 02 00 F4 03 04 00 65 3C 1E 67 B6 04 01 00 00 6F 36 31 07 12 1E C5 07 [19:40:39]CommunicateWithHost err = 0 [19:40:39]CheckOFDResponse [19:40:39]1017 (14) - 77093643461234 [19:40:39]1041 (16) - 0000000000871745 [19:40:39]1040 (4) - 145837 [19:40:39]1012 (4) - 27.10.2024 13:13 [19:40:39]1206 (1) - 0 [19:40:39]OFD Sender: Remove packet 145837 [19:40:39]ProducePacketName [19:40:39]name=ofd_packets/00145837 [19:40:39]NVStorageDeleteData [19:40:40]OFD Sender: No OFD packet to send [19:40:40]*** Cut start [19:40:40]*** Partial cut [19:40:40]*** CUTSNS_PIN = 1 [19:40:40]*** CUTSNS_PIN = 0 [19:40:40]*** Brake cut motor [19:40:41]Read from MH i2c: 01 [19:40:41]MH_I2C_Read... [19:40:41]*** Stop cut motor [19:40:41]*** Cut end [19:40:41]Read from MH i2c: 01 07 00 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: 01 07 00 B1 3C 00 00 00 00 00 FF 0F 02 [19:40:41]process_action close_receipt done [19:40:41]requested_data is exist [19:40:41]produce_requested_data [19:40:41]requested_item fm.sn is exist - process it [19:40:41]wFMCommunicate request_size=4 [19:40:41]MH_SAM_APDU [19:40:41]CAPDU: 80 11 00 00 [19:40:41]Write to MH i2c: E2 08 00 B2 3C 80 11 00 00 00 00 00 00 68 [19:40:41]Write i2c OK [19:40:41]MH_I2C_Read... [19:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:41]Read from MH i2c: E2 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 17 00 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 17 00 B2 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BB [19:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:40:41]wFMCommunicate OK [19:40:41]requested_item fd.num is exist - process it [19:40:41]SAM_PROTO_GetFieldsCounters [19:40:41]wFMCommunicate request_size=4 [19:40:41]MH_SAM_APDU [19:40:41]CAPDU: 80 13 00 00 [19:40:41]Write to MH i2c: E2 08 00 B3 3C 80 13 00 00 00 00 00 00 6B [19:40:41]Write i2c OK [19:40:41]MH_I2C_Read... [19:40:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:41]Read from MH i2c: E2 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 62 00 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 62 00 B3 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AD 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [19:40:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AD 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:41]wFMCommunicate OK [19:40:41]SAM_PROTO_GetFieldsCounters done [19:40:41]requested_item shift.num is exist - process it [19:40:41]requested_item shift.opened is exist - process it [19:40:41]req_shift_opened [19:40:41]FM_GetShiftState [19:40:41]SAM_PROTO_GetShiftState [19:40:41]wFMCommunicate request_size=4 [19:40:41]MH_SAM_APDU [19:40:41]CAPDU: 80 13 01 00 [19:40:41]Write to MH i2c: E2 08 00 B4 3C 80 13 01 00 00 00 00 00 6D [19:40:41]Write i2c OK [19:40:41]MH_I2C_Read... [19:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:41]Read from MH i2c: E2 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 0E 00 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 0E 00 B4 3C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E5 [19:40:41]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:40:41]wFMCommunicate OK [19:40:41]SAM_PROTO_GetShiftState done [19:40:41]FM_GetShiftState done [19:40:41]req_shift_opened done [19:40:41]requested_item shift.open_date is exist - process it [19:40:41]req_shift_open_date [19:40:41]req_shift_open_date done [19:40:41]produce_requested_data done [19:40:41]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145837,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:40:41]process_action_free close_receipt [19:40:41]json_value_free [19:40:41]json_value_free done [19:40:41]process_json_proto returns [19:40:41]Send response to host [19:40:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145837,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:40:41]free response buf [19:40:41]execute_script done [19:40:41]execute_script returns [19:40:41]free content buf [19:40:41]Sock 9.Close socket [19:40:41]Sock 9.Thread stoped [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:03]int [19:43:03]Write to MH i2c: 01 00 00 B5 3C F1 [19:43:03]*** FLAG_PRN_KEY set [19:43:03]Write i2c OK [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: 01 [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: 01 07 00 [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: 01 07 00 B5 3C 00 08 00 00 00 FF 0F 0E [19:43:03]state=0 [19:43:03]Key pressed [19:43:03]Feed [19:43:03]Write to MH i2c: D8 00 00 B6 3C C9 [19:43:03]Write i2c OK [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: D8 [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: D8 01 00 [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: D8 01 00 B6 3C 00 CA [19:43:03]int [19:43:03]Write to MH i2c: 01 00 00 B7 3C F3 [19:43:03]Write i2c OK [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: 01 [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: 01 07 00 [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: 01 07 00 B7 3C 00 48 00 00 00 3C 00 7E [19:43:03]state=2 [19:43:03]Key pressed [19:43:04]int [19:43:04]Write to MH i2c: 01 00 00 B8 3C F4 [19:43:04]*** FLAG_PRN_KEY reset [19:43:04]Write i2c OK [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: 01 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: 01 07 00 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: 01 07 00 B8 3C 00 00 00 00 00 FF 0F 09 [19:43:04]state=2 [19:43:04]Stop feed [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:29]accept exits with 7 [19:43:29]New connection [19:43:29]New thread 3066740068 created [19:43:29]Thread 3066596708 joined [19:43:29]Waiting for new connection... [19:43:29] Sock 7.Parse request [19:43:29]Sock 7.Check first char [19:43:29]Sock 7.First char is OK [19:43:29]request: POST /json_proto HTTP/1.0 [19:43:29]Method: POST [19:43:29]URL: /json_proto [19:43:29]Method is POST - this is cgi request [19:43:29]url: /json_proto [19:43:29]query_string will be loaded in cgi processing [19:43:29]execute_cgi json_proto POST (null) [19:43:29]execute_cgi path=json_proto method=POST [19:43:29]POST find Content-Length [19:43:29]Host: 172.17.40.195:8080 [19:43:29]Content-Length: 800 [19:43:29]Content-Type: application/json [19:43:29] [19:43:29]POST finish read [19:43:29]Found Content-Length = 800 [19:43:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3946935", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:29]execute_script... [19:43: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)160595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3946935", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:29]POST & json_proto [19:43:29]process_json_proto [19:43:29]json parsed OK: [19:43:29]protocol is kg_v1.0 [19:43:29]action value=close_receipt [19:43:29]process_action close_receipt [19:43:29]cmd_close_receipt [19:43:29]MH_GetDate [19:43:29]Write to MH i2c: F0 00 00 B9 3C E4 [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: F0 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: F0 09 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: F0 09 00 B9 3C 00 E4 97 1E 67 D5 8D 6C 64 1F [19:43:29]GetLastDocTimeStamp 1730058040 [19:43:29]current date 1730058212 [19:43:29]FM_GetShiftState [19:43:29]SAM_PROTO_GetShiftState [19:43:29]wFMCommunicate request_size=4 [19:43:29]MH_SAM_APDU [19:43:29]CAPDU: 80 13 01 00 [19:43:29]Write to MH i2c: E2 08 00 BA 3C 80 13 01 00 00 00 00 00 73 [19:43:29]Write i2c OK [19:43:29]MH_I2C_Read... [19:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:29]Read from MH i2c: E2 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 0E 00 [19:43:29]MH_I2C_Read... [19:43:29]Read from MH i2c: E2 0E 00 BA 3C 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EB [19:43:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:43:29]wFMCommunicate OK [19:43:29]SAM_PROTO_GetShiftState done [19:43:29]FM_GetShiftState done [19:43:29]opened in 1729988959 [19:43:29]opened+sec_in_day 1730075359 [19:43:29]quantity*price = 0 [19:43:29]sum+1 = 1 [19:43:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 261 27.10.2024 19:43 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: Топливные Талоны 3946935 ФМ: 0000000000871745 ФД: 145838 ФПД: 213149764489533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194332&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145838&fm=213149764489533&tin=02508201610067®Number=0000000000091683&sum=0 [19:43:30]StoreToDocumentArchive [19:43:30]shift 545 fd 145838 [19:43:30]save to /storage/0545/doc_00145838 [19:43:30]save last doc name /storage/0545/doc_00145838 to /storage/kkm_last_doc_name [19:43:30]save OK [19:43:30]Clear old archive folders... [19:43:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:30]tlvbuf is B6F24AA0 [19:43:30]SAM_PROTO_ClearQueue [19:43:30]wFMCommunicate request_size=4 [19:43:30]MH_SAM_APDU [19:43:30]CAPDU: 80 09 00 00 [19:43:30]Write to MH i2c: E2 08 00 C7 3C 80 09 00 00 00 00 00 00 75 [19:43:30]Write i2c OK [19:43:30]MH_I2C_Read... [19:43:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:30]Read from MH i2c: E2 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: E2 03 00 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: E2 03 00 C7 3C 00 90 00 77 [19:43:30]RAPDU: 90 00 [19:43:30]wFMCommunicate OK [19:43:30]SAM_PROTO_ClearQueue done [19:43:30]KKMCreateOFDPacket [19:43:30]OFDProtocolAddRootSTLVToBuf [19:43:30]FM_MakeSignedData [19:43:30]FM_MakeSignedData [19:43:30]SAM_PROTO_SignData [19:43:30]wFMCommunicate request_size=4 [19:43:30]MH_SAM_APDU [19:43:30]CAPDU: 80 0D 01 02 [19:43:30]Write to MH i2c: E2 08 00 C8 3C 80 0D 01 02 00 00 00 00 7D [19:43:30]Write i2c OK [19:43:30]MH_I2C_Read... [19:43:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:30]Read from MH i2c: E2 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: E2 03 00 [19:43:30]MH_I2C_Read... [19:43:30]Read from MH i2c: E2 03 00 C8 3C 00 90 00 78 [19:43:30]RAPDU: 90 00 [19:43:30]wFMCommunicate OK [19:43:30]wFMCommunicate request_size=255 [19:43:30]MH_SAM_APDU [19:43: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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 E4 97 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AE 39 02 00 35 04 06 00 C1 [19:43:30]Write to MH i2c: E2 02 01 C9 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 E4 97 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AE 39 02 00 35 04 06 00 C1 00 00 35 [19:43:30]Write i2c OK [19:43:30]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 03 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 03 00 C9 3C 00 90 00 79 [19:43:31]RAPDU: 90 00 [19:43:31]wFMCommunicate OK [19:43:31]wFMCommunicate request_size=10 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 0D 02 02 05 DB CB FF 11 3D [19:43:31]Write to MH i2c: E2 0D 00 CA 3C 80 0D 02 02 05 00 DB CB FF 11 3D 00 00 7D [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 03 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 03 00 CA 3C 00 90 00 7A [19:43:31]RAPDU: 90 00 [19:43:31]wFMCommunicate OK [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 0D 03 02 [19:43:31]Write to MH i2c: E2 08 00 CB 3C 80 0D 03 02 00 00 00 00 82 [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 0B 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 0B 00 CB 3C 00 2C C6 D7 7B 77 D3 B7 5D 90 00 25 [19:43:31]RAPDU: 2C C6 D7 7B 77 D3 B7 5D 90 00 [19:43:31]wFMCommunicate OK [19:43:31]SAM_PROTO_SignData done [19:43:31]FM_MakeSignedData done [19:43:31]CreateOFDProtocolMessage [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 11 00 00 [19:43:31]Write to MH i2c: E2 08 00 CC 3C 80 11 00 00 00 00 00 00 82 [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 17 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 17 00 CC 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D5 [19:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:43:31]wFMCommunicate OK [19:43:31]CreateOFDProtocolMessage done [19:43:31]OFDSenderStorePacket 145838 [19:43:31]StoreOFDPacket docnum=145838 [19:43:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BF 74 07 01 91 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 E4 97 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AE 39 02 00 35 04 06 00 C1 DB CB FF 11 3D 2C C6 D7 7B 77 D3 B7 5D [19:43:31]CheckFolder [19:43:31]dirname=/storage/ofd_packets [19:43:31]CheckFolder done [19:43:31]ProducePacketName [19:43:31]name=ofd_packets/00145838 [19:43:31]NVStorageSaveData ofd_packets/00145838 [19:43:31]File name is /storage/ofd_packets/00145838 [19:43:31]Write 301 bytes [19:43:31]NVStorageSaveData done [19:43:31]OFDSenderStorePacket done [19:43:31]KKMCreateOFDPacket done [19:43:31]NVStorageSaveData kkm_last_timestamp [19:43:31]File name is /storage/kkm_last_timestamp [19:43:31]Write 4 bytes [19:43:31]NVStorageSaveData done [19:43:31]ExternCall_PrintAddStr [19:43:31]wPrintStart [19:43:31]Write to MH i2c: 01 00 00 CD 3C 09 [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: 01 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: 01 07 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: 01 07 00 CD 3C 00 00 00 00 00 FF 0F 1E [19:43:31]RasterBufferAndPrint [19:43:31]line Счет N : (1)160595 [19:43:31]line ИНН: 02508201610067 [19:43:31]line Контрольно-Кассовый Чек [19:43:31]line ПРОДАЖА [19:43:31]line ТРК (МРК, ГНК) : 52 [19:43:31]line Товар: 2710124130 [19:43:31]line Аи-92-К-2 [19:43:31]line 40.000 * 0.00 [19:43:31]line = 0.00 [19:43:31]line НДС 12% НСП 1% [19:43:31]line > о реализуемом товаре [19:43:31]line ИТОГО: 0.00 [19:43:31]line НСП 1% : 0.00 [19:43:31]line НДС 12% : 0.00 [19:43:31]line Наличными: 0.00 [19:43:31]line Безнал.: 0.00 [19:43:31]line Место: АЗС № 126 "Партнер Нефть" [19:43:31]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:43:31]line СНО: Общий режим [19:43:31]line Чек 261 27.10.2024 19:43 [19:43:31]line Смена: 545 ФФД: 1.0 [19:43:31]line ЗНМ: 0300000085 [19:43:31]line РНМ: 0000000000091683 [19:43:31]line Версия ККМ: 001 [19:43:31]line Талоны: Топливные Талоны [19:43:31]line 3946935 [19:43:31]line ФМ: 0000000000871745 [19:43:31]line ФД: 145838 [19:43:31]line ФПД: 213149764489533 [19:43:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194332&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145838&fm=213149764489533&tin=02508201610067®Number=0000000000091683&sum=0 [19:43:31]written 0, free lines is 4095 [19:43:31]OFD Sender: Processing packet 145838 [packets to send 206, broken 205] [19:43:31]ProducePacketName [19:43:31]name=ofd_packets/00145838 [19:43:31]OFD Sender: To server: pG, [19:43:31]CommunicateWithHost lk.salyk.kg:30040 [19:43:31]ConnectInit lk.salyk.kg [19:43:31]Connected sock=10 [19:43:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 BF 74 07 01 91 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 E4 97 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AE 39 02 00 35 04 06 00 C1 DB CB FF 11 3D 2C C6 D7 7B 77 D3 B7 5D [19:43:31]Write to MH i2c: 01 00 00 F7 3C 33 [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: 01 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: 01 07 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: 01 07 00 F7 3C 00 00 00 00 00 C6 0C 0C [19:43:31]RasterBufferAndPrint [19:43:31]line [19:43:31]line [19:43:31]line [19:43:31]line [19:43:31]line [19:43:31]written 0, free lines is 3277 [19:43:31]MH_Cut [19:43:31]Write to MH i2c: D1 01 00 FE 3C 01 0C [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: D1 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: D1 01 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: D1 01 00 FE 3C 00 0B [19:43:31]Write to MH i2c: 01 00 00 FF 3C 3B [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 4B 38 47 00 B2 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AE 39 02 00 F4 03 04 00 11 3D 1E 67 B6 04 01 00 00 82 34 8D 2C 6C BE 2D 5E [19:43:31]CommunicateWithHost err = 0 [19:43:31]CheckOFDResponse [19:43:31]1017 (14) - 77093643461234 [19:43:31]1041 (16) - 0000000000871745 [19:43:31]1040 (4) - 145838 [19:43:31]1012 (4) - 27.10.2024 13:16 [19:43:31]1206 (1) - 0 [19:43:31]OFD Sender: Remove packet 145838 [19:43:31]ProducePacketName [19:43:31]name=ofd_packets/00145838 [19:43:31]NVStorageDeleteData [19:43:32]OFD Sender: No OFD packet to send [19:43:32]*** Cut start [19:43:32]*** Partial cut [19:43:32]*** CUTSNS_PIN = 1 [19:43:32]*** CUTSNS_PIN = 0 [19:43:32]*** Brake cut motor [19:43:33]Read from MH i2c: 01 [19:43:33]MH_I2C_Read... [19:43:33]*** Stop cut motor [19:43:33]*** Cut end [19:43:33]Read from MH i2c: 01 07 00 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: 01 07 00 FF 3C 00 00 00 00 00 FF 0F 50 [19:43:33]process_action close_receipt done [19:43:33]requested_data is exist [19:43:33]produce_requested_data [19:43:33]requested_item fm.sn is exist - process it [19:43:33]wFMCommunicate request_size=4 [19:43:33]MH_SAM_APDU [19:43:33]CAPDU: 80 11 00 00 [19:43:33]Write to MH i2c: E2 08 00 00 3D 80 11 00 00 00 00 00 00 B7 [19:43:33]Write i2c OK [19:43:33]MH_I2C_Read... [19:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:33]Read from MH i2c: E2 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: E2 17 00 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: E2 17 00 00 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0A [19:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:43:33]wFMCommunicate OK [19:43:33]requested_item fd.num is exist - process it [19:43:33]SAM_PROTO_GetFieldsCounters [19:43:33]wFMCommunicate request_size=4 [19:43:33]MH_SAM_APDU [19:43:33]CAPDU: 80 13 00 00 [19:43:33]Write to MH i2c: E2 08 00 01 3D 80 13 00 00 00 00 00 00 BA [19:43:33]Write i2c OK [19:43:33]MH_I2C_Read... [19:43:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:33]Read from MH i2c: E2 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: E2 62 00 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: E2 62 00 01 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AE 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [19:43:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AE 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:33]wFMCommunicate OK [19:43:33]SAM_PROTO_GetFieldsCounters done [19:43:33]requested_item shift.num is exist - process it [19:43:33]requested_item shift.opened is exist - process it [19:43:33]req_shift_opened [19:43:33]FM_GetShiftState [19:43:33]SAM_PROTO_GetShiftState [19:43:33]wFMCommunicate request_size=4 [19:43:33]MH_SAM_APDU [19:43:33]CAPDU: 80 13 01 00 [19:43:33]Write to MH i2c: E2 08 00 02 3D 80 13 01 00 00 00 00 00 BC [19:43:33]Write i2c OK [19:43:33]MH_I2C_Read... [19:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:33]Read from MH i2c: E2 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: E2 0E 00 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: E2 0E 00 02 3D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 34 [19:43:33]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:43:33]wFMCommunicate OK [19:43:33]SAM_PROTO_GetShiftState done [19:43:33]FM_GetShiftState done [19:43:33]req_shift_opened done [19:43:33]requested_item shift.open_date is exist - process it [19:43:33]req_shift_open_date [19:43:33]req_shift_open_date done [19:43:33]produce_requested_data done [19:43:33]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145838,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:43:33]process_action_free close_receipt [19:43:33]json_value_free [19:43:33]json_value_free done [19:43:33]process_json_proto returns [19:43:33]Send response to host [19:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145838,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:43:33]free response buf [19:43:33]execute_script done [19:43:33]execute_script returns [19:43:33]free content buf [19:43:33]Sock 7.Close socket [19:43:33]Sock 7.Thread stoped [19:43:33]int [19:43:33]Write to MH i2c: 01 00 00 03 3D 40 [19:43:33]*** FLAG_PRN_KEY set [19:43:33]Write i2c OK [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: 01 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: 01 07 00 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: 01 07 00 03 3D 00 08 00 00 00 FF 0F 5D [19:43:33]state=0 [19:43:33]Key pressed [19:43:33]Feed [19:43:33]Write to MH i2c: D8 00 00 04 3D 18 [19:43:33]Write i2c OK [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: D8 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: D8 01 00 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: D8 01 00 04 3D 00 19 [19:43:33]int [19:43:33]Write to MH i2c: 01 00 00 05 3D 42 [19:43:33]Write i2c OK [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: 01 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: 01 07 00 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: 01 07 00 05 3D 00 48 00 00 00 3C 00 CD [19:43:33]state=2 [19:43:33]Key pressed [19:43:33]int [19:43:33]Write to MH i2c: 01 00 00 06 3D 43 [19:43:33]Write i2c OK [19:43:33]MH_I2C_Read... [19:43:33]*** FLAG_PRN_KEY reset [19:43:33]Read from MH i2c: 01 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: 01 07 00 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: 01 07 00 06 3D 00 00 00 00 00 FF 0F 58 [19:43:33]state=2 [19:43:33]Stop feed [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:05]accept exits with 9 [19:44:05]New connection [19:44:05]New thread 3066596708 created [19:44:05]Thread 3066740068 joined [19:44:05]Waiting for new connection... [19:44:05] Sock 9.Parse request [19:44:05]Sock 9.Check first char [19:44:05]Sock 9.First char is OK [19:44:05]request: POST /json_proto HTTP/1.0 [19:44:05]Method: POST [19:44:05]URL: /json_proto [19:44:05]Method is POST - this is cgi request [19:44:05]url: /json_proto [19:44:05]query_string will be loaded in cgi processing [19:44:05]execute_cgi json_proto POST (null) [19:44:05]execute_cgi path=json_proto method=POST [19:44:05]POST find Content-Length [19:44:05]Host: 172.17.40.195:8080 [19:44:05]Content-Length: 678 [19:44:05]Content-Type: application/json [19:44:05] [19:44:05]POST finish read [19:44:05]Found Content-Length = 678 [19:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:05]execute_script... [19:44: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)160596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:05]POST & json_proto [19:44:05]process_json_proto [19:44:05]json parsed OK: [19:44:05]protocol is kg_v1.0 [19:44:05]action value=close_receipt [19:44:05]process_action close_receipt [19:44:05]cmd_close_receipt [19:44:05]MH_GetDate [19:44:05]Write to MH i2c: F0 00 00 07 3D 33 [19:44:05]Write i2c OK [19:44:05]MH_I2C_Read... [19:44:05]Read from MH i2c: F0 [19:44:05]MH_I2C_Read... [19:44:05]Read from MH i2c: F0 09 00 [19:44:05]MH_I2C_Read... [19:44:05]Read from MH i2c: F0 09 00 07 3D 00 08 98 1E 67 D5 8D 6C 64 93 [19:44:05]GetLastDocTimeStamp 1730058212 [19:44:05]current date 1730058248 [19:44:05]FM_GetShiftState [19:44:05]SAM_PROTO_GetShiftState [19:44:05]wFMCommunicate request_size=4 [19:44:05]MH_SAM_APDU [19:44:05]CAPDU: 80 13 01 00 [19:44:05]Write to MH i2c: E2 08 00 08 3D 80 13 01 00 00 00 00 00 C2 [19:44:05]Write i2c OK [19:44:05]MH_I2C_Read... [19:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:05]Read from MH i2c: E2 [19:44:05]MH_I2C_Read... [19:44:05]Read from MH i2c: E2 0E 00 [19:44:05]MH_I2C_Read... [19:44:05]Read from MH i2c: E2 0E 00 08 3D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 3A [19:44:05]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:44:05]wFMCommunicate OK [19:44:05]SAM_PROTO_GetShiftState done [19:44:05]FM_GetShiftState done [19:44:05]opened in 1729988959 [19:44:05]opened+sec_in_day 1730075359 [19:44:05]quantity*price = 70044 [19:44:05]sum+1 = 70045 [19:44:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 262 27.10.2024 19:44 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145839 ФПД: 73581942806497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194408&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145839&fm=73581942806497&tin=02508201610067®Number=0000000000091683&sum=70000 [19:44:06]StoreToDocumentArchive [19:44:06]shift 545 fd 145839 [19:44:06]save to /storage/0545/doc_00145839 [19:44:06]save last doc name /storage/0545/doc_00145839 to /storage/kkm_last_doc_name [19:44:06]save OK [19:44:06]Clear old archive folders... [19:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:06]tlvbuf is 004EDF10 [19:44:06]SAM_PROTO_ClearQueue [19:44:06]wFMCommunicate request_size=4 [19:44:06]MH_SAM_APDU [19:44:06]CAPDU: 80 09 00 00 [19:44:06]Write to MH i2c: E2 08 00 15 3D 80 09 00 00 00 00 00 00 C4 [19:44:06]Write i2c OK [19:44:06]MH_I2C_Read... [19:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:06]Read from MH i2c: E2 [19:44:06]MH_I2C_Read... [19:44:06]Read from MH i2c: E2 03 00 [19:44:06]MH_I2C_Read... [19:44:06]Read from MH i2c: E2 03 00 15 3D 00 90 00 C6 [19:44:06]RAPDU: 90 00 [19:44:06]wFMCommunicate OK [19:44:06]SAM_PROTO_ClearQueue done [19:44:06]KKMCreateOFDPacket [19:44:06]OFDProtocolAddRootSTLVToBuf [19:44:06]FM_MakeSignedData [19:44:06]FM_MakeSignedData [19:44:06]SAM_PROTO_SignData [19:44:06]wFMCommunicate request_size=4 [19:44:06]MH_SAM_APDU [19:44:06]CAPDU: 80 0D 01 02 [19:44:06]Write to MH i2c: E2 08 00 16 3D 80 0D 01 02 00 00 00 00 CC [19:44:06]Write i2c OK [19:44:06]MH_I2C_Read... [19:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:06]Read from MH i2c: E2 [19:44:06]MH_I2C_Read... [19:44:06]Read from MH i2c: E2 03 00 [19:44:06]MH_I2C_Read... [19:44:06]Read from MH i2c: E2 03 00 16 3D 00 90 00 C7 [19:44:06]RAPDU: 90 00 [19:44:06]wFMCommunicate OK [19:44:06]wFMCommunicate request_size=255 [19:44:06]MH_SAM_APDU [19:44: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 08 98 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AF 39 02 00 35 04 06 00 42 [19:44:06]Write to MH i2c: E2 02 01 17 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 08 98 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AF 39 02 00 35 04 06 00 42 00 00 E5 [19:44:06]Write i2c OK [19:44:06]MH_I2C_Read... [19:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:07]Read from MH i2c: E2 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 03 00 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 03 00 17 3D 00 90 00 C8 [19:44:07]RAPDU: 90 00 [19:44:07]wFMCommunicate OK [19:44:07]wFMCommunicate request_size=10 [19:44:07]MH_SAM_APDU [19:44:07]CAPDU: 80 0D 02 02 05 EC 21 90 17 E1 [19:44:07]Write to MH i2c: E2 0D 00 18 3D 80 0D 02 02 05 00 EC 21 90 17 E1 00 00 6E [19:44:07]Write i2c OK [19:44:07]MH_I2C_Read... [19:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:07]Read from MH i2c: E2 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 03 00 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 03 00 18 3D 00 90 00 C9 [19:44:07]RAPDU: 90 00 [19:44:07]wFMCommunicate OK [19:44:07]wFMCommunicate request_size=4 [19:44:07]MH_SAM_APDU [19:44:07]CAPDU: 80 0D 03 02 [19:44:07]Write to MH i2c: E2 08 00 19 3D 80 0D 03 02 00 00 00 00 D1 [19:44:07]Write i2c OK [19:44:07]MH_I2C_Read... [19:44:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:07]Read from MH i2c: E2 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 0B 00 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 0B 00 19 3D 00 4D FC D6 08 C6 87 F0 E8 90 00 1E [19:44:07]RAPDU: 4D FC D6 08 C6 87 F0 E8 90 00 [19:44:07]wFMCommunicate OK [19:44:07]SAM_PROTO_SignData done [19:44:07]FM_MakeSignedData done [19:44:07]CreateOFDProtocolMessage [19:44:07]wFMCommunicate request_size=4 [19:44:07]MH_SAM_APDU [19:44:07]CAPDU: 80 11 00 00 [19:44:07]Write to MH i2c: E2 08 00 1A 3D 80 11 00 00 00 00 00 00 D1 [19:44:07]Write i2c OK [19:44:07]MH_I2C_Read... [19:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:07]Read from MH i2c: E2 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 17 00 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: E2 17 00 1A 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 24 [19:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:44:07]wFMCommunicate OK [19:44:07]CreateOFDProtocolMessage done [19:44:07]OFDSenderStorePacket 145839 [19:44:07]StoreOFDPacket docnum=145839 [19:44:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E5 9A 07 01 AB 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 08 98 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AF 39 02 00 35 04 06 00 42 EC 21 90 17 E1 4D FC D6 08 C6 87 F0 E8 [19:44:07]CheckFolder [19:44:07]dirname=/storage/ofd_packets [19:44:07]CheckFolder done [19:44:07]ProducePacketName [19:44:07]name=ofd_packets/00145839 [19:44:07]NVStorageSaveData ofd_packets/00145839 [19:44:07]File name is /storage/ofd_packets/00145839 [19:44:07]Write 301 bytes [19:44:07]NVStorageSaveData done [19:44:07]OFDSenderStorePacket done [19:44:07]KKMCreateOFDPacket done [19:44:07]NVStorageSaveData kkm_last_timestamp [19:44:07]File name is /storage/kkm_last_timestamp [19:44:07]Write 4 bytes [19:44:07]NVStorageSaveData done [19:44:07]ExternCall_PrintAddStr [19:44:07]wPrintStart [19:44:07]Write to MH i2c: 01 00 00 1B 3D 58 [19:44:07]Write i2c OK [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: 01 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: 01 07 00 [19:44:07]MH_I2C_Read... [19:44:07]Read from MH i2c: 01 07 00 1B 3D 00 00 00 00 00 FF 0F 6D [19:44:07]RasterBufferAndPrint [19:44:07]line Счет N : (1)160596 [19:44:07]line ИНН: 02508201610067 [19:44:07]line Контрольно-Кассовый Чек [19:44:07]line ПРОДАЖА [19:44:07]line ТРК (МРК, ГНК) : 52 [19:44:07]line Товар: 2710124130 [19:44:07]line Аи-92-К-2 [19:44:07]line 10.470 * 66.90 [19:44:07]line = 700.44 [19:44:07]line НДС 12% НСП 1% [19:44:07]line > о реализуемом товаре [19:44:07]line ОКРУГЛЕНИЕ: -0.44 [19:44:07]line ИТОГО: 700.00 [19:44:07]line Внесено: 700.00 [19:44:07]line СДАЧА: 0.00 [19:44:07]line НСП 1% : 6.20 [19:44:07]line НДС 12% : 74.38 [19:44:07]line Наличными: 700.00 [19:44:07]line Безнал.: 0.00 [19:44:07]line Место: АЗС № 126 "Партнер Нефть" [19:44:07]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:44:07]line СНО: Общий режим [19:44:07]line Чек 262 27.10.2024 19:44 [19:44:07]line Смена: 545 ФФД: 1.0 [19:44:07]line ЗНМ: 0300000085 [19:44:07]line РНМ: 0000000000091683 [19:44:07]line Версия ККМ: 001 [19:44:07]line ФМ: 0000000000871745 [19:44:07]line ФД: 145839 [19:44:07]line ФПД: 73581942806497 [19:44:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194408&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145839&fm=73581942806497&tin=02508201610067®Number=0000000000091683&sum=70000 [19:44:07]written 0, free lines is 4095 [19:44:07]OFD Sender: Processing packet 145839 [packets to send 206, broken 205] [19:44:07]ProducePacketName [19:44:07]name=ofd_packets/00145839 [19:44:07]OFD Sender: To server: pG, [19:44:07]CommunicateWithHost lk.salyk.kg:30040 [19:44:07]ConnectInit lk.salyk.kg [19:44:07]Connected sock=10 [19:44:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E5 9A 07 01 AB 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 08 98 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AF 39 02 00 35 04 06 00 42 EC 21 90 17 E1 4D FC D6 08 C6 87 F0 E8 [19:44:08]Write to MH i2c: 01 00 00 46 3D 83 [19:44:08]Write i2c OK [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: 01 [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: 01 07 00 [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: 01 07 00 46 3D 00 00 00 00 00 B3 0C 49 [19:44:08]RasterBufferAndPrint [19:44:08]line [19:44:08]line [19:44:08]line [19:44:08]line [19:44:08]line [19:44:08]written 0, free lines is 3258 [19:44:08]MH_Cut [19:44:08]Write to MH i2c: D1 01 00 4D 3D 01 5C [19:44:08]Write i2c OK [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: D1 [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: D1 01 00 [19:44:08]MH_I2C_Read... [19:44:08]Read from MH i2c: D1 01 00 4D 3D 00 5B [19:44:08]Write to MH i2c: 01 00 00 4E 3D 8B [19:44:08]Write i2c OK [19:44:08]MH_I2C_Read... [19:44:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 20 BD 47 00 AA 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 AF 39 02 00 F4 03 04 00 35 3D 1E 67 B6 04 01 00 00 47 16 2E 30 59 48 79 1A [19:44:08]CommunicateWithHost err = 0 [19:44:08]CheckOFDResponse [19:44:08]1017 (14) - 77093643461234 [19:44:08]1041 (16) - 0000000000871745 [19:44:08]1040 (4) - 145839 [19:44:08]1012 (4) - 27.10.2024 13:16 [19:44:08]1206 (1) - 0 [19:44:08]OFD Sender: Remove packet 145839 [19:44:08]ProducePacketName [19:44:08]name=ofd_packets/00145839 [19:44:08]NVStorageDeleteData [19:44:08]OFD Sender: No OFD packet to send [19:44:08]*** Cut start [19:44:08]*** Partial cut [19:44:08]*** CUTSNS_PIN = 1 [19:44:08]*** CUTSNS_PIN = 0 [19:44:09]*** Brake cut motor [19:44:09]Read from MH i2c: 01 [19:44:09]MH_I2C_Read... [19:44:09]*** Stop cut motor [19:44:09]*** Cut end [19:44:09]Read from MH i2c: 01 07 00 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: 01 07 00 4E 3D 00 00 00 00 00 FF 0F A0 [19:44:09]process_action close_receipt done [19:44:09]requested_data is exist [19:44:09]produce_requested_data [19:44:09]requested_item fm.sn is exist - process it [19:44:09]wFMCommunicate request_size=4 [19:44:09]MH_SAM_APDU [19:44:09]CAPDU: 80 11 00 00 [19:44:09]Write to MH i2c: E2 08 00 4F 3D 80 11 00 00 00 00 00 00 06 [19:44:09]Write i2c OK [19:44:09]MH_I2C_Read... [19:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:09]Read from MH i2c: E2 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 17 00 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 17 00 4F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 59 [19:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:44:09]wFMCommunicate OK [19:44:09]requested_item fd.num is exist - process it [19:44:09]SAM_PROTO_GetFieldsCounters [19:44:09]wFMCommunicate request_size=4 [19:44:09]MH_SAM_APDU [19:44:09]CAPDU: 80 13 00 00 [19:44:09]Write to MH i2c: E2 08 00 50 3D 80 13 00 00 00 00 00 00 09 [19:44:09]Write i2c OK [19:44:09]MH_I2C_Read... [19:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:09]Read from MH i2c: E2 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 62 00 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 62 00 50 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AF 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [19:44:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 AF 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:09]wFMCommunicate OK [19:44:09]SAM_PROTO_GetFieldsCounters done [19:44:09]requested_item shift.num is exist - process it [19:44:09]requested_item shift.opened is exist - process it [19:44:09]req_shift_opened [19:44:09]FM_GetShiftState [19:44:09]SAM_PROTO_GetShiftState [19:44:09]wFMCommunicate request_size=4 [19:44:09]MH_SAM_APDU [19:44:09]CAPDU: 80 13 01 00 [19:44:09]Write to MH i2c: E2 08 00 51 3D 80 13 01 00 00 00 00 00 0B [19:44:09]Write i2c OK [19:44:09]MH_I2C_Read... [19:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:09]Read from MH i2c: E2 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 0E 00 [19:44:09]MH_I2C_Read... [19:44:09]Read from MH i2c: E2 0E 00 51 3D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 83 [19:44:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:44:09]wFMCommunicate OK [19:44:09]SAM_PROTO_GetShiftState done [19:44:09]FM_GetShiftState done [19:44:09]req_shift_opened done [19:44:09]requested_item shift.open_date is exist - process it [19:44:09]req_shift_open_date [19:44:09]req_shift_open_date done [19:44:09]produce_requested_data done [19:44:09]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145839,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:44:09]process_action_free close_receipt [19:44:09]json_value_free [19:44:09]json_value_free done [19:44:09]process_json_proto returns [19:44:09]Send response to host [19:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145839,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:44:09]free response buf [19:44:09]execute_script done [19:44:09]execute_script returns [19:44:09]free content buf [19:44:09]Sock 9.Close socket [19:44:09]Sock 9.Thread stoped [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]accept exits with 7 [19:46:18]New connection [19:46:18]New thread 3066740068 created [19:46:18]Thread 3066596708 joined [19:46:18]Waiting for new connection... [19:46:18] Sock 7.Parse request [19:46:18]Sock 7.Check first char [19:46:18]Sock 7.First char is OK [19:46:18]request: POST /json_proto HTTP/1.0 [19:46:18]Method: POST [19:46:18]URL: /json_proto [19:46:18]Method is POST - this is cgi request [19:46:18]url: /json_proto [19:46:18]query_string will be loaded in cgi processing [19:46:18]execute_cgi json_proto POST (null) [19:46:18]execute_cgi path=json_proto method=POST [19:46:18]POST find Content-Length [19:46:18]Host: 172.17.40.195:8080 [19:46:18]Content-Length: 682 [19:46:18]Content-Type: application/json [19:46:18] [19:46:18]POST finish read [19:46:18]Found Content-Length = 682 [19:46:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:46:18]execute_script... [19:46: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)160597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:46:18]POST & json_proto [19:46:18]process_json_proto [19:46:18]json parsed OK: [19:46:18]protocol is kg_v1.0 [19:46:18]action value=close_receipt [19:46:18]process_action close_receipt [19:46:18]cmd_close_receipt [19:46:18]MH_GetDate [19:46:18]Write to MH i2c: F0 00 00 52 3D 7E [19:46:18]Write i2c OK [19:46:18]MH_I2C_Read... [19:46:18]Read from MH i2c: F0 [19:46:18]MH_I2C_Read... [19:46:18]Read from MH i2c: F0 09 00 [19:46:18]MH_I2C_Read... [19:46:18]Read from MH i2c: F0 09 00 52 3D 00 8D 98 1E 67 D5 8D 6C 64 63 [19:46:18]GetLastDocTimeStamp 1730058248 [19:46:18]current date 1730058381 [19:46:18]FM_GetShiftState [19:46:18]SAM_PROTO_GetShiftState [19:46:18]wFMCommunicate request_size=4 [19:46:18]MH_SAM_APDU [19:46:18]CAPDU: 80 13 01 00 [19:46:18]Write to MH i2c: E2 08 00 53 3D 80 13 01 00 00 00 00 00 0D [19:46:18]Write i2c OK [19:46:18]MH_I2C_Read... [19:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:18]Read from MH i2c: E2 [19:46:18]MH_I2C_Read... [19:46:18]Read from MH i2c: E2 0E 00 [19:46:18]MH_I2C_Read... [19:46:18]Read from MH i2c: E2 0E 00 53 3D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 85 [19:46:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:46:18]wFMCommunicate OK [19:46:18]SAM_PROTO_GetShiftState done [19:46:18]FM_GetShiftState done [19:46:18]opened in 1729988959 [19:46:18]opened+sec_in_day 1730075359 [19:46:18]quantity*price = 100021 [19:46:18]sum+1 = 100023 [19:46:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 263 27.10.2024 19:46 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145840 ФПД: 136833328628281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194621&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145840&fm=136833328628281&tin=02508201610067®Number=0000000000091683&sum=100000 [19:46:19]StoreToDocumentArchive [19:46:19]shift 545 fd 145840 [19:46:19]save to /storage/0545/doc_00145840 [19:46:19]save last doc name /storage/0545/doc_00145840 to /storage/kkm_last_doc_name [19:46:19]save OK [19:46:19]Clear old archive folders... [19:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:19]tlvbuf is 004032A0 [19:46:19]SAM_PROTO_ClearQueue [19:46:19]wFMCommunicate request_size=4 [19:46:19]MH_SAM_APDU [19:46:19]CAPDU: 80 09 00 00 [19:46:19]Write to MH i2c: E2 08 00 60 3D 80 09 00 00 00 00 00 00 0F [19:46:19]Write i2c OK [19:46:19]MH_I2C_Read... [19:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:19]Read from MH i2c: E2 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 03 00 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 03 00 60 3D 00 90 00 11 [19:46:19]RAPDU: 90 00 [19:46:19]wFMCommunicate OK [19:46:19]SAM_PROTO_ClearQueue done [19:46:19]KKMCreateOFDPacket [19:46:19]OFDProtocolAddRootSTLVToBuf [19:46:19]FM_MakeSignedData [19:46:19]FM_MakeSignedData [19:46:19]SAM_PROTO_SignData [19:46:19]wFMCommunicate request_size=4 [19:46:19]MH_SAM_APDU [19:46:19]CAPDU: 80 0D 01 02 [19:46:19]Write to MH i2c: E2 08 00 61 3D 80 0D 01 02 00 00 00 00 17 [19:46:19]Write i2c OK [19:46:19]MH_I2C_Read... [19:46:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:19]Read from MH i2c: E2 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 03 00 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 03 00 61 3D 00 90 00 12 [19:46:19]RAPDU: 90 00 [19:46:19]wFMCommunicate OK [19:46:19]wFMCommunicate request_size=255 [19:46:19]MH_SAM_APDU [19:46: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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8D 98 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B0 39 02 00 35 04 06 00 7C [19:46:19]Write to MH i2c: E2 02 01 62 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8D 98 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B0 39 02 00 35 04 06 00 7C 00 00 FF [19:46:19]Write i2c OK [19:46:19]MH_I2C_Read... [19:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:19]Read from MH i2c: E2 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 03 00 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 03 00 62 3D 00 90 00 13 [19:46:19]RAPDU: 90 00 [19:46:19]wFMCommunicate OK [19:46:19]wFMCommunicate request_size=10 [19:46:19]MH_SAM_APDU [19:46:19]CAPDU: 80 0D 02 02 05 72 FD F2 42 39 [19:46:19]Write to MH i2c: E2 0D 00 63 3D 80 0D 02 02 05 00 72 FD F2 42 39 00 00 00 [19:46:19]Write i2c OK [19:46:19]MH_I2C_Read... [19:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:19]Read from MH i2c: E2 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 03 00 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 03 00 63 3D 00 90 00 14 [19:46:19]RAPDU: 90 00 [19:46:19]wFMCommunicate OK [19:46:19]wFMCommunicate request_size=4 [19:46:19]MH_SAM_APDU [19:46:19]CAPDU: 80 0D 03 02 [19:46:19]Write to MH i2c: E2 08 00 64 3D 80 0D 03 02 00 00 00 00 1C [19:46:19]Write i2c OK [19:46:19]MH_I2C_Read... [19:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:19]Read from MH i2c: E2 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 0B 00 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 0B 00 64 3D 00 E8 15 E1 D1 A9 AE E2 67 90 00 6C [19:46:19]RAPDU: E8 15 E1 D1 A9 AE E2 67 90 00 [19:46:19]wFMCommunicate OK [19:46:19]SAM_PROTO_SignData done [19:46:19]FM_MakeSignedData done [19:46:19]CreateOFDProtocolMessage [19:46:19]wFMCommunicate request_size=4 [19:46:19]MH_SAM_APDU [19:46:19]CAPDU: 80 11 00 00 [19:46:19]Write to MH i2c: E2 08 00 65 3D 80 11 00 00 00 00 00 00 1C [19:46:19]Write i2c OK [19:46:19]MH_I2C_Read... [19:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:19]Read from MH i2c: E2 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 17 00 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: E2 17 00 65 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 6F [19:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:46:19]wFMCommunicate OK [19:46:19]CreateOFDProtocolMessage done [19:46:19]OFDSenderStorePacket 145840 [19:46:19]StoreOFDPacket docnum=145840 [19:46:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 22 6E 07 01 D9 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8D 98 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B0 39 02 00 35 04 06 00 7C 72 FD F2 42 39 E8 15 E1 D1 A9 AE E2 67 [19:46:19]CheckFolder [19:46:19]dirname=/storage/ofd_packets [19:46:19]CheckFolder done [19:46:19]ProducePacketName [19:46:19]name=ofd_packets/00145840 [19:46:19]NVStorageSaveData ofd_packets/00145840 [19:46:19]File name is /storage/ofd_packets/00145840 [19:46:19]Write 301 bytes [19:46:19]NVStorageSaveData done [19:46:19]OFDSenderStorePacket done [19:46:19]KKMCreateOFDPacket done [19:46:19]NVStorageSaveData kkm_last_timestamp [19:46:19]File name is /storage/kkm_last_timestamp [19:46:19]Write 4 bytes [19:46:19]NVStorageSaveData done [19:46:19]OFD Sender: Processing packet 145840 [packets to send 206, broken 205] [19:46:19]ProducePacketName [19:46:19]name=ofd_packets/00145840 [19:46:19]OFD Sender: To server: pG, [19:46:19]CommunicateWithHost lk.salyk.kg:30040 [19:46:19]ConnectInit lk.salyk.kg [19:46:19]ExternCall_PrintAddStr [19:46:19]wPrintStart [19:46:19]Write to MH i2c: 01 00 00 66 3D A3 [19:46:19]Write i2c OK [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: 01 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: 01 07 00 [19:46:19]MH_I2C_Read... [19:46:19]Read from MH i2c: 01 07 00 66 3D 00 00 00 00 00 FF 0F B8 [19:46:19]RasterBufferAndPrint [19:46:19]line Счет N : (1)160597 [19:46:19]line ИНН: 02508201610067 [19:46:19]line Контрольно-Кассовый Чек [19:46:19]line ПРОДАЖА [19:46:19]line ТРК (МРК, ГНК) : 43 [19:46:19]line Товар: 2710124500 [19:46:19]line Аи-95-К-3 [19:46:19]line 13.480 * 74.20 [19:46:19]line = 1000.22 [19:46:19]line НДС 12% НСП 1% [19:46:19]line > о реализуемом товаре [19:46:19]line ОКРУГЛЕНИЕ: -0.22 [19:46:19]line ИТОГО: 1000.00 [19:46:19]line Внесено: 1000.00 [19:46:19]line СДАЧА: 0.00 [19:46:19]line НСП 1% : 8.85 [19:46:19]line НДС 12% : 106.22 [19:46:19]line Наличными: 1000.00 [19:46:19]line Безнал.: 0.00 [19:46:19]line Место: АЗС № 126 "Партнер Нефть" [19:46:19]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:46:19]line СНО: Общий режим [19:46:19]line Чек 263 27.10.2024 19:46 [19:46:19]line Смена: 545 ФФД: 1.0 [19:46:19]line ЗНМ: 0300000085 [19:46:19]line РНМ: 0000000000091683 [19:46:19]line Версия ККМ: 001 [19:46:19]line ФМ: 0000000000871745 [19:46:19]line ФД: 145840 [19:46:19]line ФПД: 136833328628281 [19:46:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194621&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145840&fm=136833328628281&tin=02508201610067®Number=0000000000091683&sum=100000 [19:46:20]Connected sock=11 [19:46:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 22 6E 07 01 D9 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8D 98 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B0 39 02 00 35 04 06 00 7C 72 FD F2 42 39 E8 15 E1 D1 A9 AE E2 67 [19:46:20]written 0, free lines is 4095 [19:46:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 E4 08 47 00 0E 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 31 37 34 35 10 04 04 00 B0 39 02 00 F4 03 04 00 B9 3D 1E 67 B6 04 01 00 00 67 9A 92 96 60 78 2F 75 [19:46:20]CommunicateWithHost err = 0 [19:46:20]CheckOFDResponse [19:46:20]1017 (14) - 77093643461234 [19:46:20]1041 (16) - 0000000000871745 [19:46:20]1040 (4) - 145840 [19:46:20]1012 (4) - 27.10.2024 13:18 [19:46:20]1206 (1) - 0 [19:46:20]OFD Sender: Remove packet 145840 [19:46:20]ProducePacketName [19:46:20]name=ofd_packets/00145840 [19:46:20]NVStorageDeleteData [19:46:20]Write to MH i2c: 01 00 00 91 3D CE [19:46:20]Write i2c OK [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: 01 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: 01 07 00 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: 01 07 00 91 3D 00 00 00 00 00 B2 0C 93 [19:46:20]RasterBufferAndPrint [19:46:20]line [19:46:20]line [19:46:20]line [19:46:20]line [19:46:20]line [19:46:20]written 0, free lines is 3257 [19:46:20]MH_Cut [19:46:20]Write to MH i2c: D1 01 00 98 3D 01 A7 [19:46:20]Write i2c OK [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: D1 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: D1 01 00 [19:46:20]MH_I2C_Read... [19:46:20]Read from MH i2c: D1 01 00 98 3D 00 A6 [19:46:20]Write to MH i2c: 01 00 00 99 3D D6 [19:46:20]Write i2c OK [19:46:20]MH_I2C_Read... [19:46:20]OFD Sender: No OFD packet to send [19:46:21]*** Cut start [19:46:21]*** Partial cut [19:46:21]*** CUTSNS_PIN = 1 [19:46:21]*** CUTSNS_PIN = 0 [19:46:21]*** Brake cut motor [19:46:21]Read from MH i2c: 01 [19:46:21]MH_I2C_Read... [19:46:21]*** Stop cut motor [19:46:21]*** Cut end [19:46:21]Read from MH i2c: 01 07 00 [19:46:21]MH_I2C_Read... [19:46:21]Read from MH i2c: 01 07 00 99 3D 00 00 00 00 00 FF 0F EB [19:46:21]process_action close_receipt done [19:46:21]requested_data is exist [19:46:21]produce_requested_data [19:46:21]requested_item fm.sn is exist - process it [19:46:21]wFMCommunicate request_size=4 [19:46:21]MH_SAM_APDU [19:46:21]CAPDU: 80 11 00 00 [19:46:21]Write to MH i2c: E2 08 00 9A 3D 80 11 00 00 00 00 00 00 51 [19:46:21]Write i2c OK [19:46:21]MH_I2C_Read... [19:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:22]Read from MH i2c: E2 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: E2 17 00 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: E2 17 00 9A 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A4 [19:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:46:22]wFMCommunicate OK [19:46:22]requested_item fd.num is exist - process it [19:46:22]SAM_PROTO_GetFieldsCounters [19:46:22]wFMCommunicate request_size=4 [19:46:22]MH_SAM_APDU [19:46:22]CAPDU: 80 13 00 00 [19:46:22]Write to MH i2c: E2 08 00 9B 3D 80 13 00 00 00 00 00 00 54 [19:46:22]Write i2c OK [19:46:22]MH_I2C_Read... [19:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:22]Read from MH i2c: E2 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: E2 62 00 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: E2 62 00 9B 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B0 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [19:46:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B0 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:22]wFMCommunicate OK [19:46:22]SAM_PROTO_GetFieldsCounters done [19:46:22]requested_item shift.num is exist - process it [19:46:22]requested_item shift.opened is exist - process it [19:46:22]req_shift_opened [19:46:22]FM_GetShiftState [19:46:22]SAM_PROTO_GetShiftState [19:46:22]wFMCommunicate request_size=4 [19:46:22]MH_SAM_APDU [19:46:22]CAPDU: 80 13 01 00 [19:46:22]Write to MH i2c: E2 08 00 9C 3D 80 13 01 00 00 00 00 00 56 [19:46:22]Write i2c OK [19:46:22]MH_I2C_Read... [19:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:22]Read from MH i2c: E2 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: E2 0E 00 [19:46:22]MH_I2C_Read... [19:46:22]Read from MH i2c: E2 0E 00 9C 3D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CE [19:46:22]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:46:22]wFMCommunicate OK [19:46:22]SAM_PROTO_GetShiftState done [19:46:22]FM_GetShiftState done [19:46:22]req_shift_opened done [19:46:22]requested_item shift.open_date is exist - process it [19:46:22]req_shift_open_date [19:46:22]req_shift_open_date done [19:46:22]produce_requested_data done [19:46:22]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145840,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:46:22]process_action_free close_receipt [19:46:22]json_value_free [19:46:22]json_value_free done [19:46:22]process_json_proto returns [19:46:22]Send response to host [19:46:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145840,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:46:22]free response buf [19:46:22]execute_script done [19:46:22]execute_script returns [19:46:22]free content buf [19:46:22]Sock 7.Close socket [19:46:22]Sock 7.Thread stoped [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]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:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:33]accept exits with 9 [19:58:33]New connection [19:58:33]New thread 3066596708 created [19:58:33]Thread 3066740068 joined [19:58:33]Waiting for new connection... [19:58:33] Sock 9.Parse request [19:58:33]Sock 9.Check first char [19:58:33]Sock 9.First char is OK [19:58:33]request: POST /json_proto HTTP/1.0 [19:58:33]Method: POST [19:58:33]URL: /json_proto [19:58:33]Method is POST - this is cgi request [19:58:33]url: /json_proto [19:58:33]query_string will be loaded in cgi processing [19:58:33]execute_cgi json_proto POST (null) [19:58:33]execute_cgi path=json_proto method=POST [19:58:33]POST find Content-Length [19:58:33]Host: 172.17.40.195:8080 [19:58:33]Content-Length: 679 [19:58:33]Content-Type: application/json [19:58:33] [19:58:33]POST finish read [19:58:33]Found Content-Length = 679 [19:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:33]execute_script... [19:58: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)160598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:33]POST & json_proto [19:58:33]process_json_proto [19:58:33]json parsed OK: [19:58:33]protocol is kg_v1.0 [19:58:33]action value=close_receipt [19:58:33]process_action close_receipt [19:58:33]cmd_close_receipt [19:58:33]MH_GetDate [19:58:33]Write to MH i2c: F0 00 00 9D 3D C9 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: F0 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: F0 09 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: F0 09 00 9D 3D 00 6C 9B 1E 67 D5 8D 6C 64 90 [19:58:33]GetLastDocTimeStamp 1730058381 [19:58:33]current date 1730059116 [19:58:33]FM_GetShiftState [19:58:33]SAM_PROTO_GetShiftState [19:58:33]wFMCommunicate request_size=4 [19:58:33]MH_SAM_APDU [19:58:33]CAPDU: 80 13 01 00 [19:58:33]Write to MH i2c: E2 08 00 9E 3D 80 13 01 00 00 00 00 00 58 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:33]Read from MH i2c: E2 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 0E 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 0E 00 9E 3D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D0 [19:58:33]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:58:33]wFMCommunicate OK [19:58:33]SAM_PROTO_GetShiftState done [19:58:33]FM_GetShiftState done [19:58:33]opened in 1729988959 [19:58:33]opened+sec_in_day 1730075359 [19:58:33]quantity*price = 100050 [19:58:33]sum+1 = 100052 [19:58:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 264 27.10.2024 19:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145841 ФПД: 20314268810233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195836&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145841&fm=20314268810233&tin=02508201610067®Number=0000000000091683&sum=100000 [19:58:34]StoreToDocumentArchive [19:58:34]shift 545 fd 145841 [19:58:34]save to /storage/0545/doc_00145841 [19:58:34]save last doc name /storage/0545/doc_00145841 to /storage/kkm_last_doc_name [19:58:34]save OK [19:58:34]Clear old archive folders... [19:58:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:58:34]tlvbuf is 0055EB60 [19:58:34]SAM_PROTO_ClearQueue [19:58:34]wFMCommunicate request_size=4 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 09 00 00 [19:58:34]Write to MH i2c: E2 08 00 AB 3D 80 09 00 00 00 00 00 00 5A [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:34]Read from MH i2c: E2 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 AB 3D 00 90 00 5C [19:58:34]RAPDU: 90 00 [19:58:34]wFMCommunicate OK [19:58:34]SAM_PROTO_ClearQueue done [19:58:34]KKMCreateOFDPacket [19:58:34]OFDProtocolAddRootSTLVToBuf [19:58:34]FM_MakeSignedData [19:58:34]FM_MakeSignedData [19:58:34]SAM_PROTO_SignData [19:58:34]wFMCommunicate request_size=4 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 0D 01 02 [19:58:34]Write to MH i2c: E2 08 00 AC 3D 80 0D 01 02 00 00 00 00 62 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:34]Read from MH i2c: E2 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 AC 3D 00 90 00 5D [19:58:34]RAPDU: 90 00 [19:58:34]wFMCommunicate OK [19:58:34]wFMCommunicate request_size=255 [19:58:34]MH_SAM_APDU [19:58: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 6C 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B1 39 02 00 35 04 06 00 12 79 C8 C6 [19:58:34]Write to MH i2c: E2 02 01 AD 3D 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 6C 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B1 39 02 00 35 04 06 00 12 79 C8 C6 00 00 A3 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:34]Read from MH i2c: E2 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 AD 3D 00 90 00 5E [19:58:34]RAPDU: 90 00 [19:58:34]wFMCommunicate OK [19:58:34]wFMCommunicate request_size=7 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 0D 02 02 02 BB F9 [19:58:34]Write to MH i2c: E2 0A 00 AE 3D 80 0D 02 02 02 00 BB F9 00 00 1D [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:34]Read from MH i2c: E2 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 AE 3D 00 90 00 5F [19:58:34]RAPDU: 90 00 [19:58:34]wFMCommunicate OK [19:58:34]wFMCommunicate request_size=4 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 0D 03 02 [19:58:34]Write to MH i2c: E2 08 00 AF 3D 80 0D 03 02 00 00 00 00 67 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 0B 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 0B 00 AF 3D 00 D2 F7 97 88 FA C3 C2 9B 90 00 6A [19:58:35]RAPDU: D2 F7 97 88 FA C3 C2 9B 90 00 [19:58:35]wFMCommunicate OK [19:58:35]SAM_PROTO_SignData done [19:58:35]FM_MakeSignedData done [19:58:35]CreateOFDProtocolMessage [19:58:35]wFMCommunicate request_size=4 [19:58:35]MH_SAM_APDU [19:58:35]CAPDU: 80 11 00 00 [19:58:35]Write to MH i2c: E2 08 00 B0 3D 80 11 00 00 00 00 00 00 67 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 17 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 17 00 B0 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BA [19:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:58:35]wFMCommunicate OK [19:58:35]CreateOFDProtocolMessage done [19:58:35]OFDSenderStorePacket 145841 [19:58:35]StoreOFDPacket docnum=145841 [19:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 1F E7 04 01 E0 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 6C 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B1 39 02 00 35 04 06 00 12 79 C8 C6 BB F9 D2 F7 97 88 FA C3 C2 9B [19:58:35]CheckFolder [19:58:35]dirname=/storage/ofd_packets [19:58:35]CheckFolder done [19:58:35]ProducePacketName [19:58:35]name=ofd_packets/00145841 [19:58:35]NVStorageSaveData ofd_packets/00145841 [19:58:35]File name is /storage/ofd_packets/00145841 [19:58:35]Write 298 bytes [19:58:35]NVStorageSaveData done [19:58:35]OFDSenderStorePacket done [19:58:35]KKMCreateOFDPacket done [19:58:35]NVStorageSaveData kkm_last_timestamp [19:58:35]File name is /storage/kkm_last_timestamp [19:58:35]Write 4 bytes [19:58:35]NVStorageSaveData done [19:58:35]ExternCall_PrintAddStr [19:58:35]wPrintStart [19:58:35]Write to MH i2c: 01 00 00 B1 3D EE [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 07 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 07 00 B1 3D 00 00 00 00 00 FF 0F 03 [19:58:35]RasterBufferAndPrint [19:58:35]line Счет N : (1)160598 [19:58:35]line ИНН: 02508201610067 [19:58:35]line Контрольно-Кассовый Чек [19:58:35]line ПРОДАЖА [19:58:35]line ТРК (МРК, ГНК) : 21 [19:58:35]line Товар: 2710194210 [19:58:35]line ДТ-К-2 [19:58:35]line 13.130 * 76.20 [19:58:35]line = 1000.51 [19:58:35]line НДС 12% НСП 1% [19:58:35]line > о реализуемом товаре [19:58:35]line ОКРУГЛЕНИЕ: -0.51 [19:58:35]line ИТОГО: 1000.00 [19:58:35]line Внесено: 1000.00 [19:58:35]line СДАЧА: 0.00 [19:58:35]line НСП 1% : 8.85 [19:58:35]line НДС 12% : 106.25 [19:58:35]line Наличными: 1000.00 [19:58:35]line Безнал.: 0.00 [19:58:35]line Место: АЗС № 126 "Партнер Нефть" [19:58:35]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:58:35]line СНО: Общий режим [19:58:35]line Чек 264 27.10.2024 19:58 [19:58:35]line Смена: 545 ФФД: 1.0 [19:58:35]line ЗНМ: 0300000085 [19:58:35]line РНМ: 0000000000091683 [19:58:35]line Версия ККМ: 001 [19:58:35]line ФМ: 0000000000871745 [19:58:35]line ФД: 145841 [19:58:35]line ФПД: 20314268810233 [19:58:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195836&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145841&fm=20314268810233&tin=02508201610067®Number=0000000000091683&sum=100000 [19:58:35]OFD Sender: Processing packet 145841 [packets to send 206, broken 205] [19:58:35]ProducePacketName [19:58:35]name=ofd_packets/00145841 [19:58:35]OFD Sender: To server: pG, [19:58:35]CommunicateWithHost lk.salyk.kg:30040 [19:58:35]ConnectInit lk.salyk.kg [19:58:35]written 0, free lines is 4095 [19:58:35]Connected sock=10 [19:58:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 1F E7 04 01 E0 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 6C 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B1 39 02 00 35 04 06 00 12 79 C8 C6 BB F9 D2 F7 97 88 FA C3 C2 9B [19:58:35]Write to MH i2c: 01 00 00 DC 3D 19 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 07 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 07 00 DC 3D 00 00 00 00 00 B5 0C E1 [19:58:35]RasterBufferAndPrint [19:58:35]line [19:58:35]line [19:58:35]line [19:58:35]line [19:58:35]line [19:58:35]written 0, free lines is 3259 [19:58:35]MH_Cut [19:58:35]Write to MH i2c: D1 01 00 E3 3D 01 F2 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: D1 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: D1 01 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: D1 01 00 E3 3D 00 F1 [19:58:35]Write to MH i2c: 01 00 00 E4 3D 21 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 13 65 47 00 90 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B1 39 02 00 F4 03 04 00 99 40 1E 67 B6 04 01 00 00 63 49 E5 91 C7 F1 85 B9 [19:58:35]CommunicateWithHost err = 0 [19:58:35]CheckOFDResponse [19:58:35]1017 (14) - 77093643461234 [19:58:35]1041 (16) - 0000000000871745 [19:58:35]1040 (4) - 145841 [19:58:35]1012 (4) - 27.10.2024 13:31 [19:58:35]1206 (1) - 0 [19:58:35]OFD Sender: Remove packet 145841 [19:58:35]ProducePacketName [19:58:35]name=ofd_packets/00145841 [19:58:35]NVStorageDeleteData [19:58:36]OFD Sender: No OFD packet to send [19:58:36]*** Cut start [19:58:36]*** Partial cut [19:58:36]*** CUTSNS_PIN = 1 [19:58:36]*** CUTSNS_PIN = 0 [19:58:36]*** Brake cut motor [19:58:37]Read from MH i2c: 01 [19:58:37]MH_I2C_Read... [19:58:37]*** Stop cut motor [19:58:37]*** Cut end [19:58:37]Read from MH i2c: 01 07 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: 01 07 00 E4 3D 00 00 00 00 00 FF 0F 36 [19:58:37]process_action close_receipt done [19:58:37]requested_data is exist [19:58:37]produce_requested_data [19:58:37]requested_item fm.sn is exist - process it [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 11 00 00 [19:58:37]Write to MH i2c: E2 08 00 E5 3D 80 11 00 00 00 00 00 00 9C [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 17 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 17 00 E5 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EF [19:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:58:37]wFMCommunicate OK [19:58:37]requested_item fd.num is exist - process it [19:58:37]SAM_PROTO_GetFieldsCounters [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 13 00 00 [19:58:37]Write to MH i2c: E2 08 00 E6 3D 80 13 00 00 00 00 00 00 9F [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 62 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 62 00 E6 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B1 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [19:58:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B1 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:37]wFMCommunicate OK [19:58:37]SAM_PROTO_GetFieldsCounters done [19:58:37]requested_item shift.num is exist - process it [19:58:37]requested_item shift.opened is exist - process it [19:58:37]req_shift_opened [19:58:37]FM_GetShiftState [19:58:37]SAM_PROTO_GetShiftState [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 13 01 00 [19:58:37]Write to MH i2c: E2 08 00 E7 3D 80 13 01 00 00 00 00 00 A1 [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 0E 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 0E 00 E7 3D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 19 [19:58:37]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:58:37]wFMCommunicate OK [19:58:37]SAM_PROTO_GetShiftState done [19:58:37]FM_GetShiftState done [19:58:37]req_shift_opened done [19:58:37]requested_item shift.open_date is exist - process it [19:58:37]req_shift_open_date [19:58:37]req_shift_open_date done [19:58:37]produce_requested_data done [19:58:37]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145841,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:58:37]process_action_free close_receipt [19:58:37]json_value_free [19:58:37]json_value_free done [19:58:37]process_json_proto returns [19:58:37]Send response to host [19:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145841,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:58:37]free response buf [19:58:37]execute_script done [19:58:37]execute_script returns [19:58:37]free content buf [19:58:37]Sock 9.Close socket [19:58:37]Sock 9.Thread stoped [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]accept exits with 7 [19:59:26]New connection [19:59:26]New thread 3066740068 created [19:59:26]Thread 3066596708 joined [19:59:26]Waiting for new connection... [19:59:26] Sock 7.Parse request [19:59:26]Sock 7.Check first char [19:59:26]Sock 7.First char is OK [19:59:26]request: POST /json_proto HTTP/1.0 [19:59:26]Method: POST [19:59:26]URL: /json_proto [19:59:26]Method is POST - this is cgi request [19:59:26]url: /json_proto [19:59:26]query_string will be loaded in cgi processing [19:59:26]execute_cgi json_proto POST (null) [19:59:26]execute_cgi path=json_proto method=POST [19:59:26]POST find Content-Length [19:59:26]Host: 172.17.40.195:8080 [19:59:26]Content-Length: 767 [19:59:26]Content-Type: application/json [19:59:26] [19:59:26]POST finish read [19:59:26]Found Content-Length = 767 [19:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.000, "sum" : 742.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 742.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:26]execute_script... [19:59:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.000, "sum" : 742.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 742.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:26]POST & json_proto [19:59:26]process_json_proto [19:59:26]json parsed OK: [19:59:26]protocol is kg_v1.0 [19:59:26]action value=close_receipt [19:59:26]process_action close_receipt [19:59:26]cmd_close_receipt [19:59:26]MH_GetDate [19:59:26]Write to MH i2c: F0 00 00 E8 3D 14 [19:59:26]Write i2c OK [19:59:26]MH_I2C_Read... [19:59:26]Read from MH i2c: F0 [19:59:26]MH_I2C_Read... [19:59:26]Read from MH i2c: F0 09 00 [19:59:26]MH_I2C_Read... [19:59:26]Read from MH i2c: F0 09 00 E8 3D 00 A1 9B 1E 67 D5 8D 6C 64 10 [19:59:26]GetLastDocTimeStamp 1730059116 [19:59:26]current date 1730059169 [19:59:26]FM_GetShiftState [19:59:26]SAM_PROTO_GetShiftState [19:59:26]wFMCommunicate request_size=4 [19:59:26]MH_SAM_APDU [19:59:26]CAPDU: 80 13 01 00 [19:59:26]Write to MH i2c: E2 08 00 E9 3D 80 13 01 00 00 00 00 00 A3 [19:59:26]Write i2c OK [19:59:26]MH_I2C_Read... [19:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:26]Read from MH i2c: E2 [19:59:26]MH_I2C_Read... [19:59:26]Read from MH i2c: E2 0E 00 [19:59:26]MH_I2C_Read... [19:59:26]Read from MH i2c: E2 0E 00 E9 3D 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 1B [19:59:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:59:26]wFMCommunicate OK [19:59:26]SAM_PROTO_GetShiftState done [19:59:26]FM_GetShiftState done [19:59:26]opened in 1729988959 [19:59:26]opened+sec_in_day 1730075359 [19:59:26]quantity*price = 74200 [19:59:26]sum+1 = 74201 [19:59:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 742.00 НСП 1% : 6.57 НДС 12% : 78.80 Наличными: 0.00 Безнал.: 742.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 265 27.10.2024 19:59 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145842 ФПД: 95957205414470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195929&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145842&fm=95957205414470&tin=02508201610067®Number=0000000000091683&sum=74200 [19:59:27]StoreToDocumentArchive [19:59:27]shift 545 fd 145842 [19:59:27]save to /storage/0545/doc_00145842 [19:59:27]save last doc name /storage/0545/doc_00145842 to /storage/kkm_last_doc_name [19:59:27]save OK [19:59:27]Clear old archive folders... [19:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:27]tlvbuf is 00464030 [19:59:27]SAM_PROTO_ClearQueue [19:59:27]wFMCommunicate request_size=4 [19:59:27]MH_SAM_APDU [19:59:27]CAPDU: 80 09 00 00 [19:59:27]Write to MH i2c: E2 08 00 F6 3D 80 09 00 00 00 00 00 00 A5 [19:59:27]Write i2c OK [19:59:27]MH_I2C_Read... [19:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:27]Read from MH i2c: E2 [19:59:27]MH_I2C_Read... [19:59:27]Read from MH i2c: E2 03 00 [19:59:27]MH_I2C_Read... [19:59:27]Read from MH i2c: E2 03 00 F6 3D 00 90 00 A7 [19:59:27]RAPDU: 90 00 [19:59:27]wFMCommunicate OK [19:59:27]SAM_PROTO_ClearQueue done [19:59:27]KKMCreateOFDPacket [19:59:27]OFDProtocolAddRootSTLVToBuf [19:59:27]FM_MakeSignedData [19:59:27]FM_MakeSignedData [19:59:27]SAM_PROTO_SignData [19:59:27]wFMCommunicate request_size=4 [19:59:27]MH_SAM_APDU [19:59:27]CAPDU: 80 0D 01 02 [19:59:27]Write to MH i2c: E2 08 00 F7 3D 80 0D 01 02 00 00 00 00 AD [19:59:27]Write i2c OK [19:59:27]MH_I2C_Read... [19:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:27]Read from MH i2c: E2 [19:59:27]MH_I2C_Read... [19:59:27]Read from MH i2c: E2 03 00 [19:59:27]MH_I2C_Read... [19:59:27]Read from MH i2c: E2 03 00 F7 3D 00 90 00 A8 [19:59:27]RAPDU: 90 00 [19:59:27]wFMCommunicate OK [19:59:27]wFMCommunicate request_size=255 [19:59:27]MH_SAM_APDU [19:59:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 A1 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B2 39 02 00 35 04 06 00 57 [19:59:27]Write to MH i2c: E2 02 01 F8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 A1 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B2 39 02 00 35 04 06 00 57 00 00 A3 [19:59:27]Write i2c OK [19:59:27]MH_I2C_Read... [19:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:27]Read from MH i2c: E2 [19:59:27]MH_I2C_Read... [19:59:27]Read from MH i2c: E2 03 00 [19:59:27]MH_I2C_Read... [19:59:27]Read from MH i2c: E2 03 00 F8 3D 00 90 00 A9 [19:59:27]RAPDU: 90 00 [19:59:27]wFMCommunicate OK [19:59:27]wFMCommunicate request_size=10 [19:59:27]MH_SAM_APDU [19:59:27]CAPDU: 80 0D 02 02 05 45 C7 24 72 46 [19:59:27]Write to MH i2c: E2 0D 00 F9 3D 80 0D 02 02 05 00 45 C7 24 72 46 00 00 A2 [19:59:27]Write i2c OK [19:59:27]MH_I2C_Read... [19:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:27]Read from MH i2c: E2 [19:59:27]MH_I2C_Read... [19:59:27]Read from MH i2c: E2 03 00 [19:59:27]MH_I2C_Read... [19:59:27]Read from MH i2c: E2 03 00 F9 3D 00 90 00 AA [19:59:27]RAPDU: 90 00 [19:59:27]wFMCommunicate OK [19:59:27]wFMCommunicate request_size=4 [19:59:27]MH_SAM_APDU [19:59:27]CAPDU: 80 0D 03 02 [19:59:27]Write to MH i2c: E2 08 00 FA 3D 80 0D 03 02 00 00 00 00 B2 [19:59:27]Write i2c OK [19:59:27]MH_I2C_Read... [19:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:27]Read from MH i2c: E2 [19:59:27]MH_I2C_Read... [19:59:27]Read from MH i2c: E2 0B 00 [19:59:27]MH_I2C_Read... [19:59:27]Read from MH i2c: E2 0B 00 FA 3D 00 8B 86 2C 15 76 2D 70 02 90 00 1A [19:59:27]RAPDU: 8B 86 2C 15 76 2D 70 02 90 00 [19:59:27]wFMCommunicate OK [19:59:27]SAM_PROTO_SignData done [19:59:27]FM_MakeSignedData done [19:59:27]CreateOFDProtocolMessage [19:59:27]wFMCommunicate request_size=4 [19:59:27]MH_SAM_APDU [19:59:27]CAPDU: 80 11 00 00 [19:59:27]Write to MH i2c: E2 08 00 FB 3D 80 11 00 00 00 00 00 00 B2 [19:59:27]Write i2c OK [19:59:27]MH_I2C_Read... [19:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:28]Read from MH i2c: E2 [19:59:28]MH_I2C_Read... [19:59:28]Read from MH i2c: E2 17 00 [19:59:28]MH_I2C_Read... [19:59:28]Read from MH i2c: E2 17 00 FB 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 05 [19:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:59:28]wFMCommunicate OK [19:59:28]CreateOFDProtocolMessage done [19:59:28]OFDSenderStorePacket 145842 [19:59:28]StoreOFDPacket docnum=145842 [19:59:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 70 DD 07 01 CA F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 A1 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B2 39 02 00 35 04 06 00 57 45 C7 24 72 46 8B 86 2C 15 76 2D 70 02 [19:59:28]CheckFolder [19:59:28]dirname=/storage/ofd_packets [19:59:28]CheckFolder done [19:59:28]ProducePacketName [19:59:28]name=ofd_packets/00145842 [19:59:28]NVStorageSaveData ofd_packets/00145842 [19:59:28]File name is /storage/ofd_packets/00145842 [19:59:28]Write 301 bytes [19:59:28]NVStorageSaveData done [19:59:28]OFDSenderStorePacket done [19:59:28]KKMCreateOFDPacket done [19:59:28]NVStorageSaveData kkm_last_timestamp [19:59:28]File name is /storage/kkm_last_timestamp [19:59:28]Write 4 bytes [19:59:28]NVStorageSaveData done [19:59:28]ExternCall_PrintAddStr [19:59:28]wPrintStart [19:59:28]Write to MH i2c: 01 00 00 FC 3D 39 [19:59:28]Write i2c OK [19:59:28]MH_I2C_Read... [19:59:28]Read from MH i2c: 01 [19:59:28]MH_I2C_Read... [19:59:28]Read from MH i2c: 01 07 00 [19:59:28]MH_I2C_Read... [19:59:28]Read from MH i2c: 01 07 00 FC 3D 00 00 00 00 00 FF 0F 4E [19:59:28]RasterBufferAndPrint [19:59:28]line Счет N : (1)160599 [19:59:28]line ИНН: 02508201610067 [19:59:28]line Контрольно-Кассовый Чек [19:59:28]line ПРОДАЖА [19:59:28]line ТРК (МРК, ГНК) : 43 [19:59:28]line Товар: 2710124500 [19:59:28]line Аи-95-К-3 [19:59:28]line 10.000 * 74.20 [19:59:28]line = 742.00 [19:59:28]line НДС 12% НСП 1% [19:59:28]line > о реализуемом товаре [19:59:28]line ИТОГО: 742.00 [19:59:28]line НСП 1% : 6.57 [19:59:28]line НДС 12% : 78.80 [19:59:28]line Наличными: 0.00 [19:59:28]line Безнал.: 742.00 [19:59:28]line Место: АЗС № 126 "Партнер Нефть" [19:59:28]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [19:59:28]line СНО: Общий режим [19:59:28]line Чек 265 27.10.2024 19:59 [19:59:28]line Смена: 545 ФФД: 1.0 [19:59:28]line ЗНМ: 0300000085 [19:59:28]line РНМ: 0000000000091683 [19:59:28]line Версия ККМ: 001 [19:59:28]line Платежная система: Mbank [19:59:28]line ФМ: 0000000000871745 [19:59:28]line ФД: 145842 [19:59:28]line ФПД: 95957205414470 [19:59:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195929&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145842&fm=95957205414470&tin=02508201610067®Number=0000000000091683&sum=74200 [19:59:28]written 0, free lines is 4095 [19:59:28]OFD Sender: Processing packet 145842 [packets to send 206, broken 205] [19:59:28]ProducePacketName [19:59:28]name=ofd_packets/00145842 [19:59:28]OFD Sender: To server: pG, [19:59:28]CommunicateWithHost lk.salyk.kg:30040 [19:59:28]ConnectInit lk.salyk.kg [19:59:28]Connected sock=10 [19:59:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 70 DD 07 01 CA F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 A1 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B2 39 02 00 35 04 06 00 57 45 C7 24 72 46 8B 86 2C 15 76 2D 70 02 [19:59:28]Write to MH i2c: 01 00 00 25 3E 63 [19:59:28]Write i2c OK [19:59:28]MH_I2C_Read... [19:59:28]Read from MH i2c: 01 [19:59:28]MH_I2C_Read... [19:59:28]Read from MH i2c: 01 07 00 [19:59:28]MH_I2C_Read... [19:59:28]Read from MH i2c: 01 07 00 25 3E 00 00 00 00 00 DC 0C 52 [19:59:28]RasterBufferAndPrint [19:59:28]line [19:59:28]line [19:59:28]line [19:59:28]line [19:59:28]line [19:59:28]written 0, free lines is 3298 [19:59:28]MH_Cut [19:59:28]Write to MH i2c: D1 01 00 2C 3E 01 3C [19:59:28]Write i2c OK [19:59:28]MH_I2C_Read... [19:59:28]Read from MH i2c: D1 [19:59:28]MH_I2C_Read... [19:59:28]Read from MH i2c: D1 01 00 [19:59:28]MH_I2C_Read... [19:59:28]Read from MH i2c: D1 01 00 2C 3E 00 3B [19:59:28]Write to MH i2c: 01 00 00 2D 3E 6B [19:59:28]Write i2c OK [19:59:28]MH_I2C_Read... [19:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 3E E4 47 00 FE AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B2 39 02 00 F4 03 04 00 CE 40 1E 67 B6 04 01 00 00 21 5E D0 9B B5 09 A7 83 [19:59:28]CommunicateWithHost err = 0 [19:59:28]CheckOFDResponse [19:59:28]1017 (14) - 77093643461234 [19:59:28]1041 (16) - 0000000000871745 [19:59:28]1040 (4) - 145842 [19:59:28]1012 (4) - 27.10.2024 13:31 [19:59:28]1206 (1) - 0 [19:59:28]OFD Sender: Remove packet 145842 [19:59:28]ProducePacketName [19:59:28]name=ofd_packets/00145842 [19:59:28]NVStorageDeleteData [19:59:29]OFD Sender: No OFD packet to send [19:59:29]*** Cut start [19:59:29]*** Partial cut [19:59:29]*** CUTSNS_PIN = 1 [19:59:29]*** CUTSNS_PIN = 0 [19:59:29]*** Brake cut motor [19:59:29]Read from MH i2c: 01 [19:59:29]MH_I2C_Read... [19:59:29]*** Stop cut motor [19:59:29]*** Cut end [19:59:29]Read from MH i2c: 01 07 00 [19:59:29]MH_I2C_Read... [19:59:29]Read from MH i2c: 01 07 00 2D 3E 00 00 00 00 00 FF 0F 80 [19:59:29]process_action close_receipt done [19:59:29]requested_data is exist [19:59:29]produce_requested_data [19:59:29]requested_item fm.sn is exist - process it [19:59:29]wFMCommunicate request_size=4 [19:59:29]MH_SAM_APDU [19:59:29]CAPDU: 80 11 00 00 [19:59:29]Write to MH i2c: E2 08 00 2E 3E 80 11 00 00 00 00 00 00 E6 [19:59:29]Write i2c OK [19:59:29]MH_I2C_Read... [19:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:29]Read from MH i2c: E2 [19:59:29]MH_I2C_Read... [19:59:29]Read from MH i2c: E2 17 00 [19:59:29]MH_I2C_Read... [19:59:29]Read from MH i2c: E2 17 00 2E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 39 [19:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [19:59:29]wFMCommunicate OK [19:59:29]requested_item fd.num is exist - process it [19:59:29]SAM_PROTO_GetFieldsCounters [19:59:29]wFMCommunicate request_size=4 [19:59:29]MH_SAM_APDU [19:59:29]CAPDU: 80 13 00 00 [19:59:29]Write to MH i2c: E2 08 00 2F 3E 80 13 00 00 00 00 00 00 E9 [19:59:29]Write i2c OK [19:59:29]MH_I2C_Read... [19:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:30]Read from MH i2c: E2 [19:59:30]MH_I2C_Read... [19:59:30]Read from MH i2c: E2 62 00 [19:59:30]MH_I2C_Read... [19:59:30]Read from MH i2c: E2 62 00 2F 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [19:59:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:30]wFMCommunicate OK [19:59:30]SAM_PROTO_GetFieldsCounters done [19:59:30]requested_item shift.num is exist - process it [19:59:30]requested_item shift.opened is exist - process it [19:59:30]req_shift_opened [19:59:30]FM_GetShiftState [19:59:30]SAM_PROTO_GetShiftState [19:59:30]wFMCommunicate request_size=4 [19:59:30]MH_SAM_APDU [19:59:30]CAPDU: 80 13 01 00 [19:59:30]Write to MH i2c: E2 08 00 30 3E 80 13 01 00 00 00 00 00 EB [19:59:30]Write i2c OK [19:59:30]MH_I2C_Read... [19:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:30]Read from MH i2c: E2 [19:59:30]MH_I2C_Read... [19:59:30]Read from MH i2c: E2 0E 00 [19:59:30]MH_I2C_Read... [19:59:30]Read from MH i2c: E2 0E 00 30 3E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 63 [19:59:30]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:59:30]wFMCommunicate OK [19:59:30]SAM_PROTO_GetShiftState done [19:59:30]FM_GetShiftState done [19:59:30]req_shift_opened done [19:59:30]requested_item shift.open_date is exist - process it [19:59:30]req_shift_open_date [19:59:30]req_shift_open_date done [19:59:30]produce_requested_data done [19:59:30]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145842,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [19:59:30]process_action_free close_receipt [19:59:30]json_value_free [19:59:30]json_value_free done [19:59:30]process_json_proto returns [19:59:30]Send response to host [19:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145842,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [19:59:30]free response buf [19:59:30]execute_script done [19:59:30]execute_script returns [19:59:30]free content buf [19:59:30]Sock 7.Close socket [19:59:30]Sock 7.Thread stoped [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [19:59:59]accept exits with 9 [19:59:59]New connection [19:59:59]New thread 3066596708 created [19:59:59]Thread 3066740068 joined [19:59:59]Waiting for new connection... [19:59:59] Sock 9.Parse request [19:59:59]Sock 9.Check first char [19:59:59]Sock 9.First char is OK [19:59:59]request: POST /json_proto HTTP/1.0 [19:59:59]Method: POST [19:59:59]URL: /json_proto [19:59:59]Method is POST - this is cgi request [19:59:59]url: /json_proto [19:59:59]query_string will be loaded in cgi processing [19:59:59]execute_cgi json_proto POST (null) [19:59:59]execute_cgi path=json_proto method=POST [19:59:59]POST find Content-Length [19:59:59]Host: 172.17.40.195:8080 [19:59:59]Content-Length: 682 [19:59:59]Content-Type: application/json [19:59:59] [19:59:59]POST finish read [19:59:59]Found Content-Length = 682 [19:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:59:59]execute_script... [19:59: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)160600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:59:59]POST & json_proto [19:59:59]process_json_proto [19:59:59]json parsed OK: [19:59:59]protocol is kg_v1.0 [19:59:59]action value=close_receipt [19:59:59]process_action close_receipt [19:59:59]cmd_close_receipt [19:59:59]MH_GetDate [19:59:59]Write to MH i2c: F0 00 00 31 3E 5E [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: F0 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: F0 09 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: F0 09 00 31 3E 00 C2 9B 1E 67 D5 8D 6C 64 7B [19:59:59]GetLastDocTimeStamp 1730059169 [19:59:59]current date 1730059202 [19:59:59]FM_GetShiftState [19:59:59]SAM_PROTO_GetShiftState [19:59:59]wFMCommunicate request_size=4 [19:59:59]MH_SAM_APDU [19:59:59]CAPDU: 80 13 01 00 [19:59:59]Write to MH i2c: E2 08 00 32 3E 80 13 01 00 00 00 00 00 ED [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:59]Read from MH i2c: E2 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 0E 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 0E 00 32 3E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 65 [19:59:59]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [19:59:59]wFMCommunicate OK [19:59:59]SAM_PROTO_GetShiftState done [19:59:59]FM_GetShiftState done [19:59:59]opened in 1729988959 [19:59:59]opened+sec_in_day 1730075359 [19:59:59]quantity*price = 100021 [19:59:59]sum+1 = 100023 [19:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 266 27.10.2024 20:00 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145843 ФПД: 193921150667506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200002&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145843&fm=193921150667506&tin=02508201610067®Number=0000000000091683&sum=100000 [20:00:00]StoreToDocumentArchive [20:00:00]shift 545 fd 145843 [20:00:00]save to /storage/0545/doc_00145843 [20:00:00]save last doc name /storage/0545/doc_00145843 to /storage/kkm_last_doc_name [20:00:00]save OK [20:00:00]Clear old archive folders... [20:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:00]tlvbuf is 003FB740 [20:00:00]SAM_PROTO_ClearQueue [20:00:00]wFMCommunicate request_size=4 [20:00:00]MH_SAM_APDU [20:00:00]CAPDU: 80 09 00 00 [20:00:00]Write to MH i2c: E2 08 00 3F 3E 80 09 00 00 00 00 00 00 EF [20:00:00]Write i2c OK [20:00:00]MH_I2C_Read... [20:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:00]Read from MH i2c: E2 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 03 00 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 03 00 3F 3E 00 90 00 F1 [20:00:00]RAPDU: 90 00 [20:00:00]wFMCommunicate OK [20:00:00]SAM_PROTO_ClearQueue done [20:00:00]KKMCreateOFDPacket [20:00:00]OFDProtocolAddRootSTLVToBuf [20:00:00]FM_MakeSignedData [20:00:00]FM_MakeSignedData [20:00:00]SAM_PROTO_SignData [20:00:00]wFMCommunicate request_size=4 [20:00:00]MH_SAM_APDU [20:00:00]CAPDU: 80 0D 01 02 [20:00:00]Write to MH i2c: E2 08 00 40 3E 80 0D 01 02 00 00 00 00 F7 [20:00:00]Write i2c OK [20:00:00]MH_I2C_Read... [20:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:00]Read from MH i2c: E2 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 03 00 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: E2 03 00 40 3E 00 90 00 F2 [20:00:00]RAPDU: 90 00 [20:00:00]wFMCommunicate OK [20:00:00]wFMCommunicate request_size=255 [20:00:00]MH_SAM_APDU [20:00:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 C2 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B3 39 02 00 35 04 06 00 B0 [20:00:00]Write to MH i2c: E2 02 01 41 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 C2 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B3 39 02 00 35 04 06 00 B0 00 00 51 [20:00:00]Write i2c OK [20:00:00]MH_I2C_Read... [20:00:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:01]Read from MH i2c: E2 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 03 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 03 00 41 3E 00 90 00 F3 [20:00:01]RAPDU: 90 00 [20:00:01]wFMCommunicate OK [20:00:01]wFMCommunicate request_size=10 [20:00:01]MH_SAM_APDU [20:00:01]CAPDU: 80 0D 02 02 05 5E C9 4C CA F2 [20:00:01]Write to MH i2c: E2 0D 00 42 3E 80 0D 02 02 05 00 5E C9 4C CA F2 00 00 33 [20:00:01]Write i2c OK [20:00:01]MH_I2C_Read... [20:00:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:01]Read from MH i2c: E2 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 03 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 03 00 42 3E 00 90 00 F4 [20:00:01]RAPDU: 90 00 [20:00:01]wFMCommunicate OK [20:00:01]wFMCommunicate request_size=4 [20:00:01]MH_SAM_APDU [20:00:01]CAPDU: 80 0D 03 02 [20:00:01]Write to MH i2c: E2 08 00 43 3E 80 0D 03 02 00 00 00 00 FC [20:00:01]Write i2c OK [20:00:01]MH_I2C_Read... [20:00:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:01]Read from MH i2c: E2 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 0B 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 0B 00 43 3E 00 17 9B 7C 51 72 E8 84 30 90 00 8A [20:00:01]RAPDU: 17 9B 7C 51 72 E8 84 30 90 00 [20:00:01]wFMCommunicate OK [20:00:01]SAM_PROTO_SignData done [20:00:01]FM_MakeSignedData done [20:00:01]CreateOFDProtocolMessage [20:00:01]wFMCommunicate request_size=4 [20:00:01]MH_SAM_APDU [20:00:01]CAPDU: 80 11 00 00 [20:00:01]Write to MH i2c: E2 08 00 44 3E 80 11 00 00 00 00 00 00 FC [20:00:01]Write i2c OK [20:00:01]MH_I2C_Read... [20:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:01]Read from MH i2c: E2 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 17 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 17 00 44 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 4F [20:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:00:01]wFMCommunicate OK [20:00:01]CreateOFDProtocolMessage done [20:00:01]OFDSenderStorePacket 145843 [20:00:01]StoreOFDPacket docnum=145843 [20:00:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 05 D0 07 01 81 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 C2 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B3 39 02 00 35 04 06 00 B0 5E C9 4C CA F2 17 9B 7C 51 72 E8 84 30 [20:00:01]CheckFolder [20:00:01]dirname=/storage/ofd_packets [20:00:01]CheckFolder done [20:00:01]ProducePacketName [20:00:01]name=ofd_packets/00145843 [20:00:01]NVStorageSaveData ofd_packets/00145843 [20:00:01]File name is /storage/ofd_packets/00145843 [20:00:01]Write 301 bytes [20:00:01]NVStorageSaveData done [20:00:01]OFDSenderStorePacket done [20:00:01]KKMCreateOFDPacket done [20:00:01]NVStorageSaveData kkm_last_timestamp [20:00:01]File name is /storage/kkm_last_timestamp [20:00:01]Write 4 bytes [20:00:01]NVStorageSaveData done [20:00:01]ExternCall_PrintAddStr [20:00:01]wPrintStart [20:00:01]Write to MH i2c: 01 00 00 45 3E 83 [20:00:01]Write i2c OK [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: 01 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: 01 07 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: 01 07 00 45 3E 00 00 00 00 00 FF 0F 98 [20:00:01]RasterBufferAndPrint [20:00:01]line Счет N : (1)160600 [20:00:01]line ИНН: 02508201610067 [20:00:01]line Контрольно-Кассовый Чек [20:00:01]line ПРОДАЖА [20:00:01]line ТРК (МРК, ГНК) : 53 [20:00:01]line Товар: 2710124500 [20:00:01]line Аи-95-К-3 [20:00:01]line 13.480 * 74.20 [20:00:01]line = 1000.22 [20:00:01]line НДС 12% НСП 1% [20:00:01]line > о реализуемом товаре [20:00:01]line ОКРУГЛЕНИЕ: -0.22 [20:00:01]line ИТОГО: 1000.00 [20:00:01]line Внесено: 1000.00 [20:00:01]line СДАЧА: 0.00 [20:00:01]line НСП 1% : 8.85 [20:00:01]line НДС 12% : 106.22 [20:00:01]line Наличными: 1000.00 [20:00:01]line Безнал.: 0.00 [20:00:01]line Место: АЗС № 126 "Партнер Нефть" [20:00:01]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [20:00:01]line СНО: Общий режим [20:00:01]line Чек 266 27.10.2024 20:00 [20:00:01]line Смена: 545 ФФД: 1.0 [20:00:01]line ЗНМ: 0300000085 [20:00:01]line РНМ: 0000000000091683 [20:00:01]line Версия ККМ: 001 [20:00:01]line ФМ: 0000000000871745 [20:00:01]line ФД: 145843 [20:00:01]line ФПД: 193921150667506 [20:00:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200002&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145843&fm=193921150667506&tin=02508201610067®Number=0000000000091683&sum=100000 [20:00:01]OFD Sender: Processing packet 145843 [packets to send 206, broken 205] [20:00:01]ProducePacketName [20:00:01]name=ofd_packets/00145843 [20:00:01]OFD Sender: To server: pG, [20:00:01]CommunicateWithHost lk.salyk.kg:30040 [20:00:01]ConnectInit lk.salyk.kg [20:00:01]written 0, free lines is 4095 [20:00:01]Connected sock=10 [20:00:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 05 D0 07 01 81 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 C2 9B 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B3 39 02 00 35 04 06 00 B0 5E C9 4C CA F2 17 9B 7C 51 72 E8 84 30 [20:00:02]Write to MH i2c: 01 00 00 70 3E AE [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: 01 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: 01 07 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: 01 07 00 70 3E 00 00 00 00 00 B2 0C 73 [20:00:02]RasterBufferAndPrint [20:00:02]line [20:00:02]line [20:00:02]line [20:00:02]line [20:00:02]line [20:00:02]written 0, free lines is 3257 [20:00:02]MH_Cut [20:00:02]Write to MH i2c: D1 01 00 77 3E 01 87 [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: D1 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: D1 01 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: D1 01 00 77 3E 00 86 [20:00:02]Write to MH i2c: 01 00 00 78 3E B6 [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A8 5F 47 00 E1 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B3 39 02 00 F4 03 04 00 EF 40 1E 67 B6 04 01 00 00 92 BD 30 BD 0D 6A D7 99 [20:00:02]CommunicateWithHost err = 0 [20:00:02]CheckOFDResponse [20:00:02]1017 (14) - 77093643461234 [20:00:02]1041 (16) - 0000000000871745 [20:00:02]1040 (4) - 145843 [20:00:02]1012 (4) - 27.10.2024 13:32 [20:00:02]1206 (1) - 0 [20:00:02]OFD Sender: Remove packet 145843 [20:00:02]ProducePacketName [20:00:02]name=ofd_packets/00145843 [20:00:02]NVStorageDeleteData [20:00:02]OFD Sender: No OFD packet to send [20:00:02]*** Cut start [20:00:02]*** Partial cut [20:00:02]*** CUTSNS_PIN = 1 [20:00:02]*** CUTSNS_PIN = 0 [20:00:03]*** Brake cut motor [20:00:03]Read from MH i2c: 01 [20:00:03]MH_I2C_Read... [20:00:03]*** Stop cut motor [20:00:03]*** Cut end [20:00:03]Read from MH i2c: 01 07 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: 01 07 00 78 3E 00 00 00 00 00 FF 0F CB [20:00:03]process_action close_receipt done [20:00:03]requested_data is exist [20:00:03]produce_requested_data [20:00:03]requested_item fm.sn is exist - process it [20:00:03]wFMCommunicate request_size=4 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 11 00 00 [20:00:03]Write to MH i2c: E2 08 00 79 3E 80 11 00 00 00 00 00 00 31 [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:03]Read from MH i2c: E2 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 17 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 17 00 79 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 84 [20:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:00:03]wFMCommunicate OK [20:00:03]requested_item fd.num is exist - process it [20:00:03]SAM_PROTO_GetFieldsCounters [20:00:03]wFMCommunicate request_size=4 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 13 00 00 [20:00:03]Write to MH i2c: E2 08 00 7A 3E 80 13 00 00 00 00 00 00 34 [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:03]Read from MH i2c: E2 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 62 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 62 00 7A 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B3 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [20:00:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B3 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:03]wFMCommunicate OK [20:00:03]SAM_PROTO_GetFieldsCounters done [20:00:03]requested_item shift.num is exist - process it [20:00:03]requested_item shift.opened is exist - process it [20:00:03]req_shift_opened [20:00:03]FM_GetShiftState [20:00:03]SAM_PROTO_GetShiftState [20:00:03]wFMCommunicate request_size=4 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 13 01 00 [20:00:03]Write to MH i2c: E2 08 00 7B 3E 80 13 01 00 00 00 00 00 36 [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:03]Read from MH i2c: E2 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 0E 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 0E 00 7B 3E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 AE [20:00:03]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:00:03]wFMCommunicate OK [20:00:03]SAM_PROTO_GetShiftState done [20:00:03]FM_GetShiftState done [20:00:03]req_shift_opened done [20:00:03]requested_item shift.open_date is exist - process it [20:00:03]req_shift_open_date [20:00:03]req_shift_open_date done [20:00:03]produce_requested_data done [20:00:03]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145843,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [20:00:03]process_action_free close_receipt [20:00:03]json_value_free [20:00:03]json_value_free done [20:00:03]process_json_proto returns [20:00:03]Send response to host [20:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145843,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [20:00:03]free response buf [20:00:03]execute_script done [20:00:03]execute_script returns [20:00:03]free content buf [20:00:03]Sock 9.Close socket [20:00:03]Sock 9.Thread stoped [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04: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:04:58]int [20:04:58]Write to MH i2c: 01 00 00 7C 3E BA [20:04:58]*** FLAG_PRN_KEY set [20:04:58]Write i2c OK [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: 01 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: 01 07 00 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: 01 07 00 7C 3E 00 08 00 00 00 FF 0F D7 [20:04:58]state=0 [20:04:58]Key pressed [20:04:58]Feed [20:04:58]Write to MH i2c: D8 00 00 7D 3E 92 [20:04:58]Write i2c OK [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: D8 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: D8 01 00 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: D8 01 00 7D 3E 00 93 [20:04:58]int [20:04:58]Write to MH i2c: 01 00 00 7E 3E BC [20:04:58]Write i2c OK [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: 01 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: 01 07 00 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: 01 07 00 7E 3E 00 48 00 00 00 3C 00 47 [20:04:58]state=2 [20:04:58]Key pressed [20:04:59]int [20:04:59]Write to MH i2c: 01 00 00 7F 3E BD [20:04:59]*** FLAG_PRN_KEY reset [20:04:59]Write i2c OK [20:04:59]MH_I2C_Read... [20:04:59]Read from MH i2c: 01 [20:04:59]MH_I2C_Read... [20:04:59]Read from MH i2c: 01 07 00 [20:04:59]MH_I2C_Read... [20:04:59]Read from MH i2c: 01 07 00 7F 3E 00 00 00 00 00 F7 0F CA [20:04:59]state=2 [20:04:59]Stop feed [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:05]accept exits with 7 [20:06:05]New connection [20:06:05]New thread 3066740068 created [20:06:05]Thread 3066596708 joined [20:06:05]Waiting for new connection... [20:06:05] Sock 7.Parse request [20:06:05]Sock 7.Check first char [20:06:05]Sock 7.First char is OK [20:06:05]request: POST /json_proto HTTP/1.0 [20:06:05]Method: POST [20:06:05]URL: /json_proto [20:06:05]Method is POST - this is cgi request [20:06:05]url: /json_proto [20:06:05]query_string will be loaded in cgi processing [20:06:05]execute_cgi json_proto POST (null) [20:06:05]execute_cgi path=json_proto method=POST [20:06:05]POST find Content-Length [20:06:05]Host: 172.17.40.195:8080 [20:06:05]Content-Length: 766 [20:06:05]Content-Type: application/json [20:06:05] [20:06:05]POST finish read [20:06:05]Found Content-Length = 766 [20:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:05]execute_script... [20:06: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)160602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:05]POST & json_proto [20:06:05]process_json_proto [20:06:05]json parsed OK: [20:06:05]protocol is kg_v1.0 [20:06:05]action value=close_receipt [20:06:05]process_action close_receipt [20:06:05]cmd_close_receipt [20:06:05]MH_GetDate [20:06:05]Write to MH i2c: F0 00 00 80 3E AD [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: F0 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: F0 09 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: F0 09 00 80 3E 00 30 9D 1E 67 D5 8D 6C 64 3A [20:06:05]GetLastDocTimeStamp 1730059202 [20:06:05]current date 1730059568 [20:06:05]FM_GetShiftState [20:06:05]SAM_PROTO_GetShiftState [20:06:05]wFMCommunicate request_size=4 [20:06:05]MH_SAM_APDU [20:06:05]CAPDU: 80 13 01 00 [20:06:05]Write to MH i2c: E2 08 00 81 3E 80 13 01 00 00 00 00 00 3C [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:05]Read from MH i2c: E2 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 0E 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 0E 00 81 3E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B4 [20:06:05]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:06:05]wFMCommunicate OK [20:06:05]SAM_PROTO_GetShiftState done [20:06:05]FM_GetShiftState done [20:06:05]opened in 1729988959 [20:06:05]opened+sec_in_day 1730075359 [20:06:05]quantity*price = 30038 [20:06:05]sum+1 = 30039 [20:06:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 267 27.10.2024 20:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145844 ФПД: 26396477558438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200608&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145844&fm=26396477558438&tin=02508201610067®Number=0000000000091683&sum=30038 [20:06:06]StoreToDocumentArchive [20:06:06]shift 545 fd 145844 [20:06:06]save to /storage/0545/doc_00145844 [20:06:06]save last doc name /storage/0545/doc_00145844 to /storage/kkm_last_doc_name [20:06:06]save OK [20:06:06]Clear old archive folders... [20:06:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:06]tlvbuf is 004EE190 [20:06:06]SAM_PROTO_ClearQueue [20:06:06]wFMCommunicate request_size=4 [20:06:06]MH_SAM_APDU [20:06:06]CAPDU: 80 09 00 00 [20:06:06]Write to MH i2c: E2 08 00 8E 3E 80 09 00 00 00 00 00 00 3E [20:06:06]Write i2c OK [20:06:06]MH_I2C_Read... [20:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:06]Read from MH i2c: E2 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: E2 03 00 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: E2 03 00 8E 3E 00 90 00 40 [20:06:06]RAPDU: 90 00 [20:06:06]wFMCommunicate OK [20:06:06]SAM_PROTO_ClearQueue done [20:06:06]KKMCreateOFDPacket [20:06:06]OFDProtocolAddRootSTLVToBuf [20:06:06]FM_MakeSignedData [20:06:06]FM_MakeSignedData [20:06:06]SAM_PROTO_SignData [20:06:06]wFMCommunicate request_size=4 [20:06:06]MH_SAM_APDU [20:06:06]CAPDU: 80 0D 01 02 [20:06:06]Write to MH i2c: E2 08 00 8F 3E 80 0D 01 02 00 00 00 00 46 [20:06:06]Write i2c OK [20:06:06]MH_I2C_Read... [20:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:06]Read from MH i2c: E2 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: E2 03 00 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: E2 03 00 8F 3E 00 90 00 41 [20:06:06]RAPDU: 90 00 [20:06:06]wFMCommunicate OK [20:06:06]wFMCommunicate request_size=255 [20:06:06]MH_SAM_APDU [20:06: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 30 9D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B4 39 02 00 35 04 06 00 18 [20:06:06]Write to MH i2c: E2 02 01 90 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 30 9D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B4 39 02 00 35 04 06 00 18 00 00 9C [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:07]Read from MH i2c: E2 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 03 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 03 00 90 3E 00 90 00 42 [20:06:07]RAPDU: 90 00 [20:06:07]wFMCommunicate OK [20:06:07]wFMCommunicate request_size=10 [20:06:07]MH_SAM_APDU [20:06:07]CAPDU: 80 0D 02 02 05 01 E8 AB 0E A6 [20:06:07]Write to MH i2c: E2 0D 00 91 3E 80 0D 02 02 05 00 01 E8 AB 0E A6 00 00 9B [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:07]Read from MH i2c: E2 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 03 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 03 00 91 3E 00 90 00 43 [20:06:07]RAPDU: 90 00 [20:06:07]wFMCommunicate OK [20:06:07]wFMCommunicate request_size=4 [20:06:07]MH_SAM_APDU [20:06:07]CAPDU: 80 0D 03 02 [20:06:07]Write to MH i2c: E2 08 00 92 3E 80 0D 03 02 00 00 00 00 4B [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:07]Read from MH i2c: E2 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 0B 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 0B 00 92 3E 00 16 99 BF 27 F8 E3 D1 FF 90 00 8C [20:06:07]RAPDU: 16 99 BF 27 F8 E3 D1 FF 90 00 [20:06:07]wFMCommunicate OK [20:06:07]SAM_PROTO_SignData done [20:06:07]FM_MakeSignedData done [20:06:07]CreateOFDProtocolMessage [20:06:07]wFMCommunicate request_size=4 [20:06:07]MH_SAM_APDU [20:06:07]CAPDU: 80 11 00 00 [20:06:07]Write to MH i2c: E2 08 00 93 3E 80 11 00 00 00 00 00 00 4B [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:07]Read from MH i2c: E2 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 17 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 17 00 93 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9E [20:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:06:07]wFMCommunicate OK [20:06:07]CreateOFDProtocolMessage done [20:06:07]OFDSenderStorePacket 145844 [20:06:07]StoreOFDPacket docnum=145844 [20:06:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 3D 4E 07 01 45 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 30 9D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B4 39 02 00 35 04 06 00 18 01 E8 AB 0E A6 16 99 BF 27 F8 E3 D1 FF [20:06:07]CheckFolder [20:06:07]dirname=/storage/ofd_packets [20:06:07]CheckFolder done [20:06:07]ProducePacketName [20:06:07]name=ofd_packets/00145844 [20:06:07]NVStorageSaveData ofd_packets/00145844 [20:06:07]File name is /storage/ofd_packets/00145844 [20:06:07]Write 301 bytes [20:06:07]NVStorageSaveData done [20:06:07]OFDSenderStorePacket done [20:06:07]KKMCreateOFDPacket done [20:06:07]NVStorageSaveData kkm_last_timestamp [20:06:07]File name is /storage/kkm_last_timestamp [20:06:07]Write 4 bytes [20:06:07]NVStorageSaveData done [20:06:07]ExternCall_PrintAddStr [20:06:07]wPrintStart [20:06:07]Write to MH i2c: 01 00 00 94 3E D2 [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: 01 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: 01 07 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: 01 07 00 94 3E 00 00 00 00 00 FF 0F E7 [20:06:07]RasterBufferAndPrint [20:06:07]line Счет N : (1)160602 [20:06:07]line ИНН: 02508201610067 [20:06:07]line Контрольно-Кассовый Чек [20:06:07]line ПРОДАЖА [20:06:07]line ТРК (МРК, ГНК) : 62 [20:06:07]line Товар: 2710124130 [20:06:07]line Аи-92-К-2 [20:06:07]line 4.490 * 66.90 [20:06:07]line = 300.38 [20:06:07]line НДС 12% НСП 1% [20:06:07]line > о реализуемом товаре [20:06:07]line ИТОГО: 300.38 [20:06:07]line НСП 1% : 2.66 [20:06:07]line НДС 12% : 31.90 [20:06:07]line Наличными: 0.00 [20:06:07]line Безнал.: 300.38 [20:06:07]line Место: АЗС № 126 "Партнер Нефть" [20:06:07]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [20:06:07]line СНО: Общий режим [20:06:07]line Чек 267 27.10.2024 20:06 [20:06:07]line Смена: 545 ФФД: 1.0 [20:06:07]line ЗНМ: 0300000085 [20:06:07]line РНМ: 0000000000091683 [20:06:07]line Версия ККМ: 001 [20:06:07]line Платежная система: Mbank [20:06:07]line ФМ: 0000000000871745 [20:06:07]line ФД: 145844 [20:06:07]line ФПД: 26396477558438 [20:06:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200608&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145844&fm=26396477558438&tin=02508201610067®Number=0000000000091683&sum=30038 [20:06:07]written 0, free lines is 4095 [20:06:07]OFD Sender: Processing packet 145844 [packets to send 206, broken 205] [20:06:07]ProducePacketName [20:06:07]name=ofd_packets/00145844 [20:06:07]OFD Sender: To server: pG, [20:06:07]CommunicateWithHost lk.salyk.kg:30040 [20:06:07]ConnectInit lk.salyk.kg [20:06:07]Connected sock=10 [20:06:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 3D 4E 07 01 45 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 30 9D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B4 39 02 00 35 04 06 00 18 01 E8 AB 0E A6 16 99 BF 27 F8 E3 D1 FF [20:06:07]Write to MH i2c: 01 00 00 BD 3E FB [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: 01 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: 01 07 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: 01 07 00 BD 3E 00 00 00 00 00 E6 0C F4 [20:06:07]RasterBufferAndPrint [20:06:07]line [20:06:07]line [20:06:07]line [20:06:07]line [20:06:07]line [20:06:07]written 0, free lines is 3309 [20:06:07]MH_Cut [20:06:07]Write to MH i2c: D1 01 00 C4 3E 01 D4 [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: D1 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: D1 01 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: D1 01 00 C4 3E 00 D3 [20:06:07]Write to MH i2c: 01 00 00 C5 3E 03 [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 37 AF 47 00 F5 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B4 39 02 00 F4 03 04 00 5D 42 1E 67 B6 04 01 00 00 0F D5 C1 DE FC A0 97 F7 [20:06:07]CommunicateWithHost err = 0 [20:06:07]CheckOFDResponse [20:06:07]1017 (14) - 77093643461234 [20:06:07]1041 (16) - 0000000000871745 [20:06:07]1040 (4) - 145844 [20:06:07]1012 (4) - 27.10.2024 13:38 [20:06:07]1206 (1) - 0 [20:06:07]OFD Sender: Remove packet 145844 [20:06:07]ProducePacketName [20:06:07]name=ofd_packets/00145844 [20:06:07]NVStorageDeleteData [20:06:08]OFD Sender: No OFD packet to send [20:06:08]*** Cut start [20:06:08]*** Partial cut [20:06:08]*** CUTSNS_PIN = 1 [20:06:08]*** CUTSNS_PIN = 0 [20:06:08]*** Brake cut motor [20:06:09]Read from MH i2c: 01 [20:06:09]MH_I2C_Read... [20:06:09]*** Stop cut motor [20:06:09]*** Cut end [20:06:09]Read from MH i2c: 01 07 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: 01 07 00 C5 3E 00 00 00 00 00 FF 0F 18 [20:06:09]process_action close_receipt done [20:06:09]requested_data is exist [20:06:09]produce_requested_data [20:06:09]requested_item fm.sn is exist - process it [20:06:09]wFMCommunicate request_size=4 [20:06:09]MH_SAM_APDU [20:06:09]CAPDU: 80 11 00 00 [20:06:09]Write to MH i2c: E2 08 00 C6 3E 80 11 00 00 00 00 00 00 7E [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:09]Read from MH i2c: E2 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 17 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 17 00 C6 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D1 [20:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:06:09]wFMCommunicate OK [20:06:09]requested_item fd.num is exist - process it [20:06:09]SAM_PROTO_GetFieldsCounters [20:06:09]wFMCommunicate request_size=4 [20:06:09]MH_SAM_APDU [20:06:09]CAPDU: 80 13 00 00 [20:06:09]Write to MH i2c: E2 08 00 C7 3E 80 13 00 00 00 00 00 00 81 [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:09]Read from MH i2c: E2 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 62 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 62 00 C7 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B4 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [20:06:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B4 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:09]wFMCommunicate OK [20:06:09]SAM_PROTO_GetFieldsCounters done [20:06:09]requested_item shift.num is exist - process it [20:06:09]requested_item shift.opened is exist - process it [20:06:09]req_shift_opened [20:06:09]FM_GetShiftState [20:06:09]SAM_PROTO_GetShiftState [20:06:09]wFMCommunicate request_size=4 [20:06:09]MH_SAM_APDU [20:06:09]CAPDU: 80 13 01 00 [20:06:09]Write to MH i2c: E2 08 00 C8 3E 80 13 01 00 00 00 00 00 83 [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:09]Read from MH i2c: E2 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 0E 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 0E 00 C8 3E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FB [20:06:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:06:09]wFMCommunicate OK [20:06:09]SAM_PROTO_GetShiftState done [20:06:09]FM_GetShiftState done [20:06:09]req_shift_opened done [20:06:09]requested_item shift.open_date is exist - process it [20:06:09]req_shift_open_date [20:06:09]req_shift_open_date done [20:06:09]produce_requested_data done [20:06:09]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145844,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [20:06:09]process_action_free close_receipt [20:06:09]json_value_free [20:06:09]json_value_free done [20:06:09]process_json_proto returns [20:06:09]Send response to host [20:06:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145844,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [20:06:09]free response buf [20:06:09]execute_script done [20:06:09]execute_script returns [20:06:09]free content buf [20:06:09]Sock 7.Close socket [20:06:09]Sock 7.Thread stoped [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:50]accept exits with 9 [20:06:50]New connection [20:06:50]New thread 3066596708 created [20:06:50]Thread 3066740068 joined [20:06:50]Waiting for new connection... [20:06:50] Sock 9.Parse request [20:06:50]Sock 9.Check first char [20:06:50]Sock 9.First char is OK [20:06:50]request: POST /json_proto HTTP/1.0 [20:06:50]Method: POST [20:06:50]URL: /json_proto [20:06:50]Method is POST - this is cgi request [20:06:50]url: /json_proto [20:06:50]query_string will be loaded in cgi processing [20:06:50]execute_cgi json_proto POST (null) [20:06:50]execute_cgi path=json_proto method=POST [20:06:50]POST find Content-Length [20:06:50]Host: 172.17.40.195:8080 [20:06:50]Content-Length: 978 [20:06:50]Content-Type: application/json [20:06:50] [20:06:50]POST finish read [20:06:50]Found Content-Length = 978 [20:06:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "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" ] } } [20:06:50]execute_script... [20:06:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "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" ] } } [20:06:50]POST & json_proto [20:06:50]process_json_proto [20:06:50]json parsed OK: [20:06:50]protocol is kg_v1.0 [20:06:50]action value=close_receipt [20:06:50]process_action close_receipt [20:06:50]cmd_close_receipt [20:06:50]MH_GetDate [20:06:50]Write to MH i2c: F0 00 00 C9 3E F6 [20:06:50]Write i2c OK [20:06:50]MH_I2C_Read... [20:06:50]Read from MH i2c: F0 [20:06:50]MH_I2C_Read... [20:06:50]Read from MH i2c: F0 09 00 [20:06:50]MH_I2C_Read... [20:06:50]Read from MH i2c: F0 09 00 C9 3E 00 5D 9D 1E 67 D5 8D 6C 64 B0 [20:06:50]GetLastDocTimeStamp 1730059568 [20:06:50]current date 1730059613 [20:06:50]FM_GetShiftState [20:06:50]SAM_PROTO_GetShiftState [20:06:50]wFMCommunicate request_size=4 [20:06:50]MH_SAM_APDU [20:06:50]CAPDU: 80 13 01 00 [20:06:50]Write to MH i2c: E2 08 00 CA 3E 80 13 01 00 00 00 00 00 85 [20:06:50]Write i2c OK [20:06:50]MH_I2C_Read... [20:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:50]Read from MH i2c: E2 [20:06:50]MH_I2C_Read... [20:06:50]Read from MH i2c: E2 0E 00 [20:06:50]MH_I2C_Read... [20:06:50]Read from MH i2c: E2 0E 00 CA 3E 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FD [20:06:50]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:06:50]wFMCommunicate OK [20:06:50]SAM_PROTO_GetShiftState done [20:06:50]FM_GetShiftState done [20:06:50]opened in 1729988959 [20:06:50]opened+sec_in_day 1730075359 [20:06:50]quantity*price = 500004 [20:06:50]sum+1 = 500006 [20:06:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 268 27.10.2024 20:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа ДТ номер 126 сэкономлено 66.49 сом ФМ: 0000000000871745 ФД: 145845 ФПД: 231953800222053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200653&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145845&fm=231953800222053&tin=02508201610067®Number=0000000000091683&sum=500000 [20:06:51]StoreToDocumentArchive [20:06:51]shift 545 fd 145845 [20:06:51]save to /storage/0545/doc_00145845 [20:06:51]save last doc name /storage/0545/doc_00145845 to /storage/kkm_last_doc_name [20:06:51]save OK [20:06:51]Clear old archive folders... [20:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:06:51]tlvbuf is 00452140 [20:06:51]SAM_PROTO_ClearQueue [20:06:51]wFMCommunicate request_size=4 [20:06:51]MH_SAM_APDU [20:06:51]CAPDU: 80 09 00 00 [20:06:51]Write to MH i2c: E2 08 00 D7 3E 80 09 00 00 00 00 00 00 87 [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:51]Read from MH i2c: E2 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 D7 3E 00 90 00 89 [20:06:51]RAPDU: 90 00 [20:06:51]wFMCommunicate OK [20:06:51]SAM_PROTO_ClearQueue done [20:06:51]KKMCreateOFDPacket [20:06:51]OFDProtocolAddRootSTLVToBuf [20:06:51]FM_MakeSignedData [20:06:51]FM_MakeSignedData [20:06:51]SAM_PROTO_SignData [20:06:51]wFMCommunicate request_size=4 [20:06:51]MH_SAM_APDU [20:06:51]CAPDU: 80 0D 01 02 [20:06:51]Write to MH i2c: E2 08 00 D8 3E 80 0D 01 02 00 00 00 00 8F [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:51]Read from MH i2c: E2 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 D8 3E 00 90 00 8A [20:06:51]RAPDU: 90 00 [20:06:51]wFMCommunicate OK [20:06:51]wFMCommunicate request_size=255 [20:06:51]MH_SAM_APDU [20:06:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 0C 01 00 00 F4 03 04 00 5D 9D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B5 39 02 00 35 04 06 00 D2 F5 F3 DD [20:06:51]Write to MH i2c: E2 02 01 D9 3E 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 32 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 0C 01 00 00 F4 03 04 00 5D 9D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B5 39 02 00 35 04 06 00 D2 F5 F3 DD 00 00 4C [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:51]Read from MH i2c: E2 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 D9 3E 00 90 00 8B [20:06:51]RAPDU: 90 00 [20:06:51]wFMCommunicate OK [20:06:51]wFMCommunicate request_size=7 [20:06:51]MH_SAM_APDU [20:06:51]CAPDU: 80 0D 02 02 02 D5 65 [20:06:51]Write to MH i2c: E2 0A 00 DA 3E 80 0D 02 02 02 00 D5 65 00 00 D0 [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:51]Read from MH i2c: E2 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 DA 3E 00 90 00 8C [20:06:51]RAPDU: 90 00 [20:06:51]wFMCommunicate OK [20:06:51]wFMCommunicate request_size=4 [20:06:51]MH_SAM_APDU [20:06:51]CAPDU: 80 0D 03 02 [20:06:51]Write to MH i2c: E2 08 00 DB 3E 80 0D 03 02 00 00 00 00 94 [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:51]Read from MH i2c: E2 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 0B 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 0B 00 DB 3E 00 C0 C0 40 6D 79 D3 10 3B 90 00 59 [20:06:51]RAPDU: C0 C0 40 6D 79 D3 10 3B 90 00 [20:06:51]wFMCommunicate OK [20:06:51]SAM_PROTO_SignData done [20:06:51]FM_MakeSignedData done [20:06:51]CreateOFDProtocolMessage [20:06:51]wFMCommunicate request_size=4 [20:06:51]MH_SAM_APDU [20:06:51]CAPDU: 80 11 00 00 [20:06:51]Write to MH i2c: E2 08 00 DC 3E 80 11 00 00 00 00 00 00 94 [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:51]Read from MH i2c: E2 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 17 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 17 00 DC 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E7 [20:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:06:51]wFMCommunicate OK [20:06:51]CreateOFDProtocolMessage done [20:06:51]OFDSenderStorePacket 145845 [20:06:51]StoreOFDPacket docnum=145845 [20:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 C9 49 04 01 D4 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 0C 01 00 00 F4 03 04 00 5D 9D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B5 39 02 00 35 04 06 00 D2 F5 F3 DD D5 65 C0 C0 40 6D 79 D3 10 3B [20:06:51]CheckFolder [20:06:51]dirname=/storage/ofd_packets [20:06:51]CheckFolder done [20:06:51]ProducePacketName [20:06:51]name=ofd_packets/00145845 [20:06:51]NVStorageSaveData ofd_packets/00145845 [20:06:51]File name is /storage/ofd_packets/00145845 [20:06:51]Write 298 bytes [20:06:51]NVStorageSaveData done [20:06:51]OFDSenderStorePacket done [20:06:51]KKMCreateOFDPacket done [20:06:51]NVStorageSaveData kkm_last_timestamp [20:06:51]File name is /storage/kkm_last_timestamp [20:06:51]Write 4 bytes [20:06:51]NVStorageSaveData done [20:06:51]ExternCall_PrintAddStr [20:06:51]wPrintStart [20:06:51]Write to MH i2c: 01 00 00 DD 3E 1B [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: 01 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: 01 07 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: 01 07 00 DD 3E 00 00 00 00 00 FF 0F 30 [20:06:51]RasterBufferAndPrint [20:06:51]line Счет N : (1)160601 [20:06:51]line ИНН: 02508201610067 [20:06:51]line Контрольно-Кассовый Чек [20:06:51]line ПРОДАЖА [20:06:51]line ТРК (МРК, ГНК) : 11 [20:06:51]line Товар: 2710194210 [20:06:51]line ДТ-К-2 [20:06:51]line 66.490 * 75.20 [20:06:51]line = 5000.05 [20:06:51]line НДС 12% НСП 1% [20:06:51]line > о реализуемом товаре [20:06:51]line ОКРУГЛЕНИЕ: -0.05 [20:06:51]line ИТОГО: 5000.00 [20:06:51]line Внесено: 5000.00 [20:06:51]line СДАЧА: 0.00 [20:06:51]line НСП 1% : 44.25 [20:06:51]line НДС 12% : 530.98 [20:06:51]line Наличными: 5000.00 [20:06:51]line Безнал.: 0.00 [20:06:51]line Место: АЗС № 126 "Партнер Нефть" [20:06:51]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [20:06:51]line СНО: Общий режим [20:06:51]line Чек 268 27.10.2024 20:06 [20:06:51]line Смена: 545 ФФД: 1.0 [20:06:51]line ЗНМ: 0300000085 [20:06:51]line РНМ: 0000000000091683 [20:06:51]line Версия ККМ: 001 [20:06:51]line [20:06:51]line Дисконтная программа [20:06:51]line ДТ [20:06:51]line номер 126 [20:06:51]line сэкономлено 66.49 сом [20:06:51]line ФМ: 0000000000871745 [20:06:51]line ФД: 145845 [20:06:51]line ФПД: 231953800222053 [20:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200653&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145845&fm=231953800222053&tin=02508201610067®Number=0000000000091683&sum=500000 [20:06:52]OFD Sender: Processing packet 145845 [packets to send 206, broken 205] [20:06:52]ProducePacketName [20:06:52]name=ofd_packets/00145845 [20:06:52]OFD Sender: To server: pG, [20:06:52]CommunicateWithHost lk.salyk.kg:30040 [20:06:52]ConnectInit lk.salyk.kg [20:06:52]written 0, free lines is 4095 [20:06:52]Connected sock=10 [20:06:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 C9 49 04 01 D4 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 0C 01 00 00 F4 03 04 00 5D 9D 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B5 39 02 00 35 04 06 00 D2 F5 F3 DD D5 65 C0 C0 40 6D 79 D3 10 3B [20:06:52]Write to MH i2c: 01 00 00 0D 3F 4C [20:06:52]Write i2c OK [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: 01 [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: 01 07 00 [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: 01 07 00 0D 3F 00 00 00 00 00 57 0C B6 [20:06:52]RasterBufferAndPrint [20:06:52]line [20:06:52]line [20:06:52]line [20:06:52]line [20:06:52]line [20:06:52]written 0, free lines is 3166 [20:06:52]MH_Cut [20:06:52]Write to MH i2c: D1 01 00 14 3F 01 25 [20:06:52]Write i2c OK [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: D1 [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: D1 01 00 [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: D1 01 00 14 3F 00 24 [20:06:52]Write to MH i2c: 01 00 00 15 3F 54 [20:06:52]Write i2c OK [20:06:52]MH_I2C_Read... [20:06:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D3 42 47 00 3B 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B5 39 02 00 F4 03 04 00 8A 42 1E 67 B6 04 01 00 00 7A BD 91 F8 A5 1A B4 8E [20:06:52]CommunicateWithHost err = 0 [20:06:52]CheckOFDResponse [20:06:52]1017 (14) - 77093643461234 [20:06:52]1041 (16) - 0000000000871745 [20:06:52]1040 (4) - 145845 [20:06:52]1012 (4) - 27.10.2024 13:39 [20:06:52]1206 (1) - 0 [20:06:52]OFD Sender: Remove packet 145845 [20:06:52]ProducePacketName [20:06:52]name=ofd_packets/00145845 [20:06:52]NVStorageDeleteData [20:06:53]OFD Sender: No OFD packet to send [20:06:53]*** Cut start [20:06:53]*** Partial cut [20:06:53]*** CUTSNS_PIN = 1 [20:06:53]*** CUTSNS_PIN = 0 [20:06:53]*** Brake cut motor [20:06:54]Read from MH i2c: 01 [20:06:54]MH_I2C_Read... [20:06:54]*** Stop cut motor [20:06:54]*** Cut end [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 15 3F 00 00 00 00 00 FF 0F 69 [20:06:54]process_action close_receipt done [20:06:54]requested_data is exist [20:06:54]produce_requested_data [20:06:54]requested_item fm.sn is exist - process it [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 11 00 00 [20:06:54]Write to MH i2c: E2 08 00 16 3F 80 11 00 00 00 00 00 00 CF [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 17 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 17 00 16 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 22 [20:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:06:54]wFMCommunicate OK [20:06:54]requested_item fd.num is exist - process it [20:06:54]SAM_PROTO_GetFieldsCounters [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 13 00 00 [20:06:54]Write to MH i2c: E2 08 00 17 3F 80 13 00 00 00 00 00 00 D2 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 62 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 62 00 17 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B5 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [20:06:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B5 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:54]wFMCommunicate OK [20:06:54]SAM_PROTO_GetFieldsCounters done [20:06:54]requested_item shift.num is exist - process it [20:06:54]requested_item shift.opened is exist - process it [20:06:54]req_shift_opened [20:06:54]FM_GetShiftState [20:06:54]SAM_PROTO_GetShiftState [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 13 01 00 [20:06:54]Write to MH i2c: E2 08 00 18 3F 80 13 01 00 00 00 00 00 D4 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 0E 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 0E 00 18 3F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4C [20:06:54]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:06:54]wFMCommunicate OK [20:06:54]SAM_PROTO_GetShiftState done [20:06:54]FM_GetShiftState done [20:06:54]req_shift_opened done [20:06:54]requested_item shift.open_date is exist - process it [20:06:54]req_shift_open_date [20:06:54]req_shift_open_date done [20:06:54]produce_requested_data done [20:06:54]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145845,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [20:06:54]process_action_free close_receipt [20:06:54]json_value_free [20:06:54]json_value_free done [20:06:54]process_json_proto returns [20:06:54]Send response to host [20:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145845,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [20:06:54]free response buf [20:06:54]execute_script done [20:06:54]execute_script returns [20:06:54]free content buf [20:06:54]Sock 9.Close socket [20:06:54]Sock 9.Thread stoped [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:55]accept exits with 7 [20:12:55]New connection [20:12:55]New thread 3066740068 created [20:12:55]Thread 3066596708 joined [20:12:55]Waiting for new connection... [20:12:55] Sock 7.Parse request [20:12:55]Sock 7.Check first char [20:12:55]Sock 7.First char is OK [20:12:55]request: POST /json_proto HTTP/1.0 [20:12:55]Method: POST [20:12:55]URL: /json_proto [20:12:55]Method is POST - this is cgi request [20:12:55]url: /json_proto [20:12:55]query_string will be loaded in cgi processing [20:12:55]execute_cgi json_proto POST (null) [20:12:55]execute_cgi path=json_proto method=POST [20:12:55]POST find Content-Length [20:12:55]Host: 172.17.40.195:8080 [20:12:55]Content-Length: 978 [20:12:55]Content-Type: application/json [20:12:55] [20:12:55]POST finish read [20:12:55]Found Content-Length = 978 [20:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 73.160, "sum" : 5501.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 73.16 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 5501.00, "payments": [ { "type": 0, "sum" : 5501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:55]execute_script... [20:12: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)160603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 73.160, "sum" : 5501.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 73.16 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 5501.00, "payments": [ { "type": 0, "sum" : 5501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:55]POST & json_proto [20:12:55]process_json_proto [20:12:55]json parsed OK: [20:12:55]protocol is kg_v1.0 [20:12:55]action value=close_receipt [20:12:55]process_action close_receipt [20:12:55]cmd_close_receipt [20:12:55]MH_GetDate [20:12:55]Write to MH i2c: F0 00 00 19 3F 47 [20:12:55]Write i2c OK [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: F0 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: F0 09 00 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: F0 09 00 19 3F 00 CA 9E 1E 67 D5 8D 6C 64 6F [20:12:55]GetLastDocTimeStamp 1730059613 [20:12:55]current date 1730059978 [20:12:55]FM_GetShiftState [20:12:55]SAM_PROTO_GetShiftState [20:12:55]wFMCommunicate request_size=4 [20:12:55]MH_SAM_APDU [20:12:55]CAPDU: 80 13 01 00 [20:12:55]Write to MH i2c: E2 08 00 1A 3F 80 13 01 00 00 00 00 00 D6 [20:12:55]Write i2c OK [20:12:55]MH_I2C_Read... [20:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:55]Read from MH i2c: E2 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 0E 00 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 0E 00 1A 3F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4E [20:12:55]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:12:55]wFMCommunicate OK [20:12:55]SAM_PROTO_GetShiftState done [20:12:55]FM_GetShiftState done [20:12:55]opened in 1729988959 [20:12:55]opened+sec_in_day 1730075359 [20:12:55]quantity*price = 550163 [20:12:55]sum+1 = 550164 [20:12:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 5501.00 Внесено: 6000.00 СДАЧА: 499.00 НСП 1% : 48.69 НДС 12% : 584.24 Наличными: 5501.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 269 27.10.2024 20:12 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа ДТ номер 126 сэкономлено 73.16 сом ФМ: 0000000000871745 ФД: 145846 ФПД: 135707756531745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T201258&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145846&fm=135707756531745&tin=02508201610067®Number=0000000000091683&sum=550100 [20:12:56]StoreToDocumentArchive [20:12:56]shift 545 fd 145846 [20:12:56]save to /storage/0545/doc_00145846 [20:12:56]save last doc name /storage/0545/doc_00145846 to /storage/kkm_last_doc_name [20:12:56]save OK [20:12:56]Clear old archive folders... [20:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:12:56]tlvbuf is 0041FCA0 [20:12:56]SAM_PROTO_ClearQueue [20:12:56]wFMCommunicate request_size=4 [20:12:56]MH_SAM_APDU [20:12:56]CAPDU: 80 09 00 00 [20:12:56]Write to MH i2c: E2 08 00 27 3F 80 09 00 00 00 00 00 00 D8 [20:12:56]Write i2c OK [20:12:56]MH_I2C_Read... [20:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:56]Read from MH i2c: E2 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 03 00 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 03 00 27 3F 00 90 00 DA [20:12:56]RAPDU: 90 00 [20:12:56]wFMCommunicate OK [20:12:56]SAM_PROTO_ClearQueue done [20:12:56]KKMCreateOFDPacket [20:12:56]OFDProtocolAddRootSTLVToBuf [20:12:56]FM_MakeSignedData [20:12:56]FM_MakeSignedData [20:12:56]SAM_PROTO_SignData [20:12:56]wFMCommunicate request_size=4 [20:12:56]MH_SAM_APDU [20:12:56]CAPDU: 80 0D 01 02 [20:12:56]Write to MH i2c: E2 08 00 28 3F 80 0D 01 02 00 00 00 00 E0 [20:12:56]Write i2c OK [20:12:56]MH_I2C_Read... [20:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:56]Read from MH i2c: E2 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 03 00 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 03 00 28 3F 00 90 00 DB [20:12:56]RAPDU: 90 00 [20:12:56]wFMCommunicate OK [20:12:56]wFMCommunicate request_size=255 [20:12:56]MH_SAM_APDU [20:12:56]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 32 FF 03 08 00 03 C8 1D 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 13 65 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 E4 00 00 00 00 07 04 06 00 D4 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 CA 9E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B6 39 02 00 35 04 06 00 7B 6C EC 9F [20:12:56]Write to MH i2c: E2 02 01 29 3F 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 32 FF 03 08 00 03 C8 1D 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 13 65 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 E4 00 00 00 00 07 04 06 00 D4 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 CA 9E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B6 39 02 00 35 04 06 00 7B 6C EC 9F 00 00 54 [20:12:56]Write i2c OK [20:12:56]MH_I2C_Read... [20:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:56]Read from MH i2c: E2 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 03 00 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 03 00 29 3F 00 90 00 DC [20:12:56]RAPDU: 90 00 [20:12:56]wFMCommunicate OK [20:12:56]wFMCommunicate request_size=7 [20:12:56]MH_SAM_APDU [20:12:56]CAPDU: 80 0D 02 02 02 10 21 [20:12:56]Write to MH i2c: E2 0A 00 2A 3F 80 0D 02 02 02 00 10 21 00 00 18 [20:12:56]Write i2c OK [20:12:56]MH_I2C_Read... [20:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:56]Read from MH i2c: E2 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 03 00 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 03 00 2A 3F 00 90 00 DD [20:12:56]RAPDU: 90 00 [20:12:56]wFMCommunicate OK [20:12:56]wFMCommunicate request_size=4 [20:12:56]MH_SAM_APDU [20:12:56]CAPDU: 80 0D 03 02 [20:12:56]Write to MH i2c: E2 08 00 2B 3F 80 0D 03 02 00 00 00 00 E5 [20:12:56]Write i2c OK [20:12:56]MH_I2C_Read... [20:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:56]Read from MH i2c: E2 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 0B 00 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 0B 00 2B 3F 00 C9 C1 44 85 C0 83 4A FF 90 00 C5 [20:12:56]RAPDU: C9 C1 44 85 C0 83 4A FF 90 00 [20:12:56]wFMCommunicate OK [20:12:56]SAM_PROTO_SignData done [20:12:56]FM_MakeSignedData done [20:12:56]CreateOFDProtocolMessage [20:12:56]wFMCommunicate request_size=4 [20:12:56]MH_SAM_APDU [20:12:56]CAPDU: 80 11 00 00 [20:12:56]Write to MH i2c: E2 08 00 2C 3F 80 11 00 00 00 00 00 00 E5 [20:12:56]Write i2c OK [20:12:56]MH_I2C_Read... [20:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:57]Read from MH i2c: E2 [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: E2 17 00 [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: E2 17 00 2C 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 38 [20:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:12:57]wFMCommunicate OK [20:12:57]CreateOFDProtocolMessage done [20:12:57]OFDSenderStorePacket 145846 [20:12:57]StoreOFDPacket docnum=145846 [20:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 22 BF 04 01 5B C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1D 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 13 65 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 E4 00 00 00 00 07 04 06 00 D4 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 CA 9E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B6 39 02 00 35 04 06 00 7B 6C EC 9F 10 21 C9 C1 44 85 C0 83 4A FF [20:12:57]CheckFolder [20:12:57]dirname=/storage/ofd_packets [20:12:57]CheckFolder done [20:12:57]ProducePacketName [20:12:57]name=ofd_packets/00145846 [20:12:57]NVStorageSaveData ofd_packets/00145846 [20:12:57]File name is /storage/ofd_packets/00145846 [20:12:57]Write 298 bytes [20:12:57]NVStorageSaveData done [20:12:57]OFDSenderStorePacket done [20:12:57]KKMCreateOFDPacket done [20:12:57]NVStorageSaveData kkm_last_timestamp [20:12:57]File name is /storage/kkm_last_timestamp [20:12:57]Write 4 bytes [20:12:57]NVStorageSaveData done [20:12:57]ExternCall_PrintAddStr [20:12:57]wPrintStart [20:12:57]Write to MH i2c: 01 00 00 2D 3F 6C [20:12:57]Write i2c OK [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: 01 [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: 01 07 00 [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: 01 07 00 2D 3F 00 00 00 00 00 FF 0F 81 [20:12:57]RasterBufferAndPrint [20:12:57]line Счет N : (1)160603 [20:12:57]line ИНН: 02508201610067 [20:12:57]line Контрольно-Кассовый Чек [20:12:57]line ПРОДАЖА [20:12:57]line ТРК (МРК, ГНК) : 21 [20:12:57]line Товар: 2710194210 [20:12:57]line ДТ-К-2 [20:12:57]line 73.160 * 75.20 [20:12:57]line = 5501.63 [20:12:57]line НДС 12% НСП 1% [20:12:57]line > о реализуемом товаре [20:12:57]line ОКРУГЛЕНИЕ: -0.63 [20:12:57]line ИТОГО: 5501.00 [20:12:57]line Внесено: 6000.00 [20:12:57]line СДАЧА: 499.00 [20:12:57]line НСП 1% : 48.69 [20:12:57]line НДС 12% : 584.24 [20:12:57]line Наличными: 5501.00 [20:12:57]line Безнал.: 0.00 [20:12:57]line Место: АЗС № 126 "Партнер Нефть" [20:12:57]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [20:12:57]line СНО: Общий режим [20:12:57]line Чек 269 27.10.2024 20:12 [20:12:57]line Смена: 545 ФФД: 1.0 [20:12:57]line ЗНМ: 0300000085 [20:12:57]line РНМ: 0000000000091683 [20:12:57]line Версия ККМ: 001 [20:12:57]line [20:12:57]line Дисконтная программа [20:12:57]line ДТ [20:12:57]line номер 126 [20:12:57]line сэкономлено 73.16 сом [20:12:57]line ФМ: 0000000000871745 [20:12:57]line ФД: 145846 [20:12:57]line ФПД: 135707756531745 [20:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T201258&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145846&fm=135707756531745&tin=02508201610067®Number=0000000000091683&sum=550100 [20:12:57]OFD Sender: Processing packet 145846 [packets to send 206, broken 205] [20:12:57]ProducePacketName [20:12:57]name=ofd_packets/00145846 [20:12:57]OFD Sender: To server: pG, [20:12:57]CommunicateWithHost lk.salyk.kg:30040 [20:12:57]ConnectInit lk.salyk.kg [20:12:57]written 0, free lines is 4095 [20:12:57]Connected sock=10 [20:12:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 22 BF 04 01 5B C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1D 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 13 65 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 E4 00 00 00 00 07 04 06 00 D4 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 CA 9E 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B6 39 02 00 35 04 06 00 7B 6C EC 9F 10 21 C9 C1 44 85 C0 83 4A FF [20:12:57]Write to MH i2c: 01 00 00 5D 3F 9C [20:12:57]Write i2c OK [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: 01 [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: 01 07 00 [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: 01 07 00 5D 3F 00 00 00 00 00 56 0C 05 [20:12:57]RasterBufferAndPrint [20:12:57]line [20:12:57]line [20:12:57]line [20:12:57]line [20:12:57]line [20:12:57]written 0, free lines is 3167 [20:12:57]MH_Cut [20:12:57]Write to MH i2c: D1 01 00 64 3F 01 75 [20:12:57]Write i2c OK [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: D1 [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: D1 01 00 [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: D1 01 00 64 3F 00 74 [20:12:57]Write to MH i2c: 01 00 00 65 3F A4 [20:12:57]Write i2c OK [20:12:57]MH_I2C_Read... [20:12:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 EF 66 47 00 F3 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B6 39 02 00 F4 03 04 00 F7 43 1E 67 B6 04 01 00 00 99 AE 77 04 9A 2A E2 89 [20:12:57]CommunicateWithHost err = 0 [20:12:57]CheckOFDResponse [20:12:57]1017 (14) - 77093643461234 [20:12:57]1041 (16) - 0000000000871745 [20:12:57]1040 (4) - 145846 [20:12:57]1012 (4) - 27.10.2024 13:45 [20:12:57]1206 (1) - 0 [20:12:57]OFD Sender: Remove packet 145846 [20:12:57]ProducePacketName [20:12:57]name=ofd_packets/00145846 [20:12:57]NVStorageDeleteData [20:12:58]OFD Sender: No OFD packet to send [20:12:58]*** Cut start [20:12:58]*** Partial cut [20:12:58]*** CUTSNS_PIN = 1 [20:12:58]*** CUTSNS_PIN = 0 [20:12:59]*** Brake cut motor [20:12:59]Read from MH i2c: 01 [20:12:59]MH_I2C_Read... [20:12:59]*** Stop cut motor [20:12:59]*** Cut end [20:12:59]Read from MH i2c: 01 07 00 [20:12:59]MH_I2C_Read... [20:12:59]Read from MH i2c: 01 07 00 65 3F 00 00 00 00 00 FF 0F B9 [20:12:59]process_action close_receipt done [20:12:59]requested_data is exist [20:12:59]produce_requested_data [20:12:59]requested_item fm.sn is exist - process it [20:12:59]wFMCommunicate request_size=4 [20:12:59]MH_SAM_APDU [20:12:59]CAPDU: 80 11 00 00 [20:12:59]Write to MH i2c: E2 08 00 66 3F 80 11 00 00 00 00 00 00 1F [20:12:59]Write i2c OK [20:12:59]MH_I2C_Read... [20:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:59]Read from MH i2c: E2 [20:12:59]MH_I2C_Read... [20:12:59]Read from MH i2c: E2 17 00 [20:12:59]MH_I2C_Read... [20:12:59]Read from MH i2c: E2 17 00 66 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 72 [20:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:12:59]wFMCommunicate OK [20:12:59]requested_item fd.num is exist - process it [20:12:59]SAM_PROTO_GetFieldsCounters [20:12:59]wFMCommunicate request_size=4 [20:12:59]MH_SAM_APDU [20:12:59]CAPDU: 80 13 00 00 [20:12:59]Write to MH i2c: E2 08 00 67 3F 80 13 00 00 00 00 00 00 22 [20:12:59]Write i2c OK [20:12:59]MH_I2C_Read... [20:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:59]Read from MH i2c: E2 [20:12:59]MH_I2C_Read... [20:12:59]Read from MH i2c: E2 62 00 [20:12:59]MH_I2C_Read... [20:12:59]Read from MH i2c: E2 62 00 67 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B6 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [20:12:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B6 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:59]wFMCommunicate OK [20:12:59]SAM_PROTO_GetFieldsCounters done [20:12:59]requested_item shift.num is exist - process it [20:12:59]requested_item shift.opened is exist - process it [20:12:59]req_shift_opened [20:12:59]FM_GetShiftState [20:12:59]SAM_PROTO_GetShiftState [20:12:59]wFMCommunicate request_size=4 [20:12:59]MH_SAM_APDU [20:12:59]CAPDU: 80 13 01 00 [20:12:59]Write to MH i2c: E2 08 00 68 3F 80 13 01 00 00 00 00 00 24 [20:12:59]Write i2c OK [20:12:59]MH_I2C_Read... [20:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:59]Read from MH i2c: E2 [20:12:59]MH_I2C_Read... [20:12:59]Read from MH i2c: E2 0E 00 [20:12:59]MH_I2C_Read... [20:12:59]Read from MH i2c: E2 0E 00 68 3F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9C [20:12:59]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:12:59]wFMCommunicate OK [20:12:59]SAM_PROTO_GetShiftState done [20:12:59]FM_GetShiftState done [20:12:59]req_shift_opened done [20:12:59]requested_item shift.open_date is exist - process it [20:12:59]req_shift_open_date [20:12:59]req_shift_open_date done [20:12:59]produce_requested_data done [20:12:59]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145846,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [20:12:59]process_action_free close_receipt [20:12:59]json_value_free [20:12:59]json_value_free done [20:12:59]process_json_proto returns [20:12:59]Send response to host [20:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145846,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [20:12:59]free response buf [20:12:59]execute_script done [20:12:59]execute_script returns [20:12:59]free content buf [20:12:59]Sock 7.Close socket [20:12:59]Sock 7.Thread stoped [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18: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:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:47]accept exits with 9 [20:27:47]New connection [20:27:47]New thread 3066596708 created [20:27:47]Thread 3066740068 joined [20:27:47]Waiting for new connection... [20:27:47] Sock 9.Parse request [20:27:47]Sock 9.Check first char [20:27:47]Sock 9.First char is OK [20:27:47]request: POST /json_proto HTTP/1.0 [20:27:47]Method: POST [20:27:47]URL: /json_proto [20:27:47]Method is POST - this is cgi request [20:27:47]url: /json_proto [20:27:47]query_string will be loaded in cgi processing [20:27:47]execute_cgi json_proto POST (null) [20:27:47]execute_cgi path=json_proto method=POST [20:27:47]POST find Content-Length [20:27:47]Host: 172.17.40.195:8080 [20:27:47]Content-Length: 682 [20:27:47]Content-Type: application/json [20:27:47] [20:27:47]POST finish read [20:27:47]Found Content-Length = 682 [20:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:47]execute_script... [20: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)160604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:47]POST & json_proto [20:27:47]process_json_proto [20:27:47]json parsed OK: [20:27:47]protocol is kg_v1.0 [20:27:47]action value=close_receipt [20:27:47]process_action close_receipt [20:27:47]cmd_close_receipt [20:27:47]MH_GetDate [20:27:47]Write to MH i2c: F0 00 00 69 3F 97 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: F0 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: F0 09 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: F0 09 00 69 3F 00 46 A2 1E 67 D5 8D 6C 64 3F [20:27:47]GetLastDocTimeStamp 1730059978 [20:27:47]current date 1730060870 [20:27:47]FM_GetShiftState [20:27:47]SAM_PROTO_GetShiftState [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 13 01 00 [20:27:47]Write to MH i2c: E2 08 00 6A 3F 80 13 01 00 00 00 00 00 26 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 0E 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 0E 00 6A 3F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 9E [20:27:47]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:27:47]wFMCommunicate OK [20:27:47]SAM_PROTO_GetShiftState done [20:27:47]FM_GetShiftState done [20:27:47]opened in 1729988959 [20:27:47]opened+sec_in_day 1730075359 [20:27:47]quantity*price = 100015 [20:27:47]sum+1 = 100017 [20:27:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 270 27.10.2024 20:27 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145847 ФПД: 139516234262983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202750&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145847&fm=139516234262983&tin=02508201610067®Number=0000000000091683&sum=100000 [20:27:48]StoreToDocumentArchive [20:27:48]shift 545 fd 145847 [20:27:48]save to /storage/0545/doc_00145847 [20:27:48]save last doc name /storage/0545/doc_00145847 to /storage/kkm_last_doc_name [20:27:48]save OK [20:27:48]Clear old archive folders... [20:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:48]tlvbuf is B6F24A30 [20:27:48]SAM_PROTO_ClearQueue [20:27:48]wFMCommunicate request_size=4 [20:27:48]MH_SAM_APDU [20:27:48]CAPDU: 80 09 00 00 [20:27:48]Write to MH i2c: E2 08 00 77 3F 80 09 00 00 00 00 00 00 28 [20:27:48]Write i2c OK [20:27:48]MH_I2C_Read... [20:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:48]Read from MH i2c: E2 [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: E2 03 00 [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: E2 03 00 77 3F 00 90 00 2A [20:27:48]RAPDU: 90 00 [20:27:48]wFMCommunicate OK [20:27:48]SAM_PROTO_ClearQueue done [20:27:48]KKMCreateOFDPacket [20:27:48]OFDProtocolAddRootSTLVToBuf [20:27:48]FM_MakeSignedData [20:27:48]FM_MakeSignedData [20:27:48]SAM_PROTO_SignData [20:27:48]wFMCommunicate request_size=4 [20:27:48]MH_SAM_APDU [20:27:48]CAPDU: 80 0D 01 02 [20:27:48]Write to MH i2c: E2 08 00 78 3F 80 0D 01 02 00 00 00 00 30 [20:27:48]Write i2c OK [20:27:48]MH_I2C_Read... [20:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:48]Read from MH i2c: E2 [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: E2 03 00 [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: E2 03 00 78 3F 00 90 00 2B [20:27:48]RAPDU: 90 00 [20:27:48]wFMCommunicate OK [20:27:48]wFMCommunicate request_size=255 [20:27:48]MH_SAM_APDU [20: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 46 A2 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B7 39 02 00 35 04 06 00 7E [20:27:48]Write to MH i2c: E2 02 01 79 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 46 A2 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B7 39 02 00 35 04 06 00 7E 00 00 C7 [20:27:48]Write i2c OK [20:27:48]MH_I2C_Read... [20:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:49]Read from MH i2c: E2 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: E2 03 00 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: E2 03 00 79 3F 00 90 00 2C [20:27:49]RAPDU: 90 00 [20:27:49]wFMCommunicate OK [20:27:49]wFMCommunicate request_size=10 [20:27:49]MH_SAM_APDU [20:27:49]CAPDU: 80 0D 02 02 05 E3 A7 95 69 C7 [20:27:49]Write to MH i2c: E2 0D 00 7A 3F 80 0D 02 02 05 00 E3 A7 95 69 C7 00 00 8C [20:27:49]Write i2c OK [20:27:49]MH_I2C_Read... [20:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:49]Read from MH i2c: E2 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: E2 03 00 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: E2 03 00 7A 3F 00 90 00 2D [20:27:49]RAPDU: 90 00 [20:27:49]wFMCommunicate OK [20:27:49]wFMCommunicate request_size=4 [20:27:49]MH_SAM_APDU [20:27:49]CAPDU: 80 0D 03 02 [20:27:49]Write to MH i2c: E2 08 00 7B 3F 80 0D 03 02 00 00 00 00 35 [20:27:49]Write i2c OK [20:27:49]MH_I2C_Read... [20:27:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:49]Read from MH i2c: E2 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: E2 0B 00 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: E2 0B 00 7B 3F 00 F0 B0 5F 72 8A FF 74 45 90 00 E9 [20:27:49]RAPDU: F0 B0 5F 72 8A FF 74 45 90 00 [20:27:49]wFMCommunicate OK [20:27:49]SAM_PROTO_SignData done [20:27:49]FM_MakeSignedData done [20:27:49]CreateOFDProtocolMessage [20:27:49]wFMCommunicate request_size=4 [20:27:49]MH_SAM_APDU [20:27:49]CAPDU: 80 11 00 00 [20:27:49]Write to MH i2c: E2 08 00 7C 3F 80 11 00 00 00 00 00 00 35 [20:27:49]Write i2c OK [20:27:49]MH_I2C_Read... [20:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:49]Read from MH i2c: E2 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: E2 17 00 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: E2 17 00 7C 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 88 [20:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:27:49]wFMCommunicate OK [20:27:49]CreateOFDProtocolMessage done [20:27:49]OFDSenderStorePacket 145847 [20:27:49]StoreOFDPacket docnum=145847 [20:27:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E0 2D 07 01 30 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 46 A2 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B7 39 02 00 35 04 06 00 7E E3 A7 95 69 C7 F0 B0 5F 72 8A FF 74 45 [20:27:49]CheckFolder [20:27:49]dirname=/storage/ofd_packets [20:27:49]CheckFolder done [20:27:49]ProducePacketName [20:27:49]name=ofd_packets/00145847 [20:27:49]NVStorageSaveData ofd_packets/00145847 [20:27:49]File name is /storage/ofd_packets/00145847 [20:27:49]Write 301 bytes [20:27:49]NVStorageSaveData done [20:27:49]OFDSenderStorePacket done [20:27:49]KKMCreateOFDPacket done [20:27:49]NVStorageSaveData kkm_last_timestamp [20:27:49]File name is /storage/kkm_last_timestamp [20:27:49]Write 4 bytes [20:27:49]NVStorageSaveData done [20:27:49]ExternCall_PrintAddStr [20:27:49]wPrintStart [20:27:49]Write to MH i2c: 01 00 00 7D 3F BC [20:27:49]Write i2c OK [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: 01 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: 01 07 00 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: 01 07 00 7D 3F 00 00 00 00 00 FF 0F D1 [20:27:49]RasterBufferAndPrint [20:27:49]line Счет N : (1)160604 [20:27:49]line ИНН: 02508201610067 [20:27:49]line Контрольно-Кассовый Чек [20:27:49]line ПРОДАЖА [20:27:49]line ТРК (МРК, ГНК) : 62 [20:27:49]line Товар: 2710124130 [20:27:49]line Аи-92-К-2 [20:27:49]line 14.950 * 66.90 [20:27:49]line = 1000.16 [20:27:49]line НДС 12% НСП 1% [20:27:49]line > о реализуемом товаре [20:27:49]line ОКРУГЛЕНИЕ: -0.16 [20:27:49]line ИТОГО: 1000.00 [20:27:49]line Внесено: 1000.00 [20:27:49]line СДАЧА: 0.00 [20:27:49]line НСП 1% : 8.85 [20:27:49]line НДС 12% : 106.21 [20:27:49]line Наличными: 1000.00 [20:27:49]line Безнал.: 0.00 [20:27:49]line Место: АЗС № 126 "Партнер Нефть" [20:27:49]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [20:27:49]line СНО: Общий режим [20:27:49]line Чек 270 27.10.2024 20:27 [20:27:49]line Смена: 545 ФФД: 1.0 [20:27:49]line ЗНМ: 0300000085 [20:27:49]line РНМ: 0000000000091683 [20:27:49]line Версия ККМ: 001 [20:27:49]line ФМ: 0000000000871745 [20:27:49]line ФД: 145847 [20:27:49]line ФПД: 139516234262983 [20:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202750&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145847&fm=139516234262983&tin=02508201610067®Number=0000000000091683&sum=100000 [20:27:49]OFD Sender: Processing packet 145847 [packets to send 206, broken 205] [20:27:49]ProducePacketName [20:27:49]name=ofd_packets/00145847 [20:27:49]OFD Sender: To server: pG, [20:27:49]CommunicateWithHost lk.salyk.kg:30040 [20:27:49]ConnectInit lk.salyk.kg [20:27:49]written 0, free lines is 4095 [20:27:49]Connected sock=10 [20: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 31 37 34 35 0F 01 00 00 E0 2D 07 01 30 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 46 A2 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B7 39 02 00 35 04 06 00 7E E3 A7 95 69 C7 F0 B0 5F 72 8A FF 74 45 [20:27:50]Write to MH i2c: 01 00 00 A8 3F E7 [20:27:50]Write i2c OK [20:27:50]MH_I2C_Read... [20:27:50]Read from MH i2c: 01 [20:27:50]MH_I2C_Read... [20:27:50]Read from MH i2c: 01 07 00 [20:27:50]MH_I2C_Read... [20:27:50]Read from MH i2c: 01 07 00 A8 3F 00 00 00 00 00 B2 0C AC [20:27:50]RasterBufferAndPrint [20:27:50]line [20:27:50]line [20:27:50]line [20:27:50]line [20:27:50]line [20:27:50]written 0, free lines is 3256 [20:27:50]MH_Cut [20:27:50]Write to MH i2c: D1 01 00 AF 3F 01 C0 [20:27:50]Write i2c OK [20:27:50]MH_I2C_Read... [20:27:50]Read from MH i2c: D1 [20:27:50]MH_I2C_Read... [20:27:50]Read from MH i2c: D1 01 00 [20:27:50]MH_I2C_Read... [20:27:50]Read from MH i2c: D1 01 00 AF 3F 00 BF [20:27:50]Write to MH i2c: 01 00 00 B0 3F EF [20:27:50]Write i2c OK [20:27:50]MH_I2C_Read... [20:27:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 F9 F8 47 00 B2 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B7 39 02 00 F4 03 04 00 73 47 1E 67 B6 04 01 00 00 6A 23 E6 F2 6A B5 0D 74 [20:27:50]CommunicateWithHost err = 0 [20:27:50]CheckOFDResponse [20:27:50]1017 (14) - 77093643461234 [20:27:50]1041 (16) - 0000000000871745 [20:27:50]1040 (4) - 145847 [20:27:50]1012 (4) - 27.10.2024 14:00 [20:27:50]1206 (1) - 0 [20:27:50]OFD Sender: Remove packet 145847 [20:27:50]ProducePacketName [20:27:50]name=ofd_packets/00145847 [20:27:50]NVStorageDeleteData [20:27:50]OFD Sender: No OFD packet to send [20:27:50]*** Cut start [20:27:50]*** Partial cut [20:27:50]*** CUTSNS_PIN = 1 [20:27:50]*** CUTSNS_PIN = 0 [20:27:51]*** Brake cut motor [20:27:51]Read from MH i2c: 01 [20:27:51]MH_I2C_Read... [20:27:51]*** Stop cut motor [20:27:51]*** Cut end [20:27:51]Read from MH i2c: 01 07 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: 01 07 00 B0 3F 00 00 00 00 00 FF 0F 04 [20:27:51]process_action close_receipt done [20:27:51]requested_data is exist [20:27:51]produce_requested_data [20:27:51]requested_item fm.sn is exist - process it [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 11 00 00 [20:27:51]Write to MH i2c: E2 08 00 B1 3F 80 11 00 00 00 00 00 00 6A [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 17 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 17 00 B1 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 BD [20:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:27:51]wFMCommunicate OK [20:27:51]requested_item fd.num is exist - process it [20:27:51]SAM_PROTO_GetFieldsCounters [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 13 00 00 [20:27:51]Write to MH i2c: E2 08 00 B2 3F 80 13 00 00 00 00 00 00 6D [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 62 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 62 00 B2 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B7 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [20: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B7 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:51]wFMCommunicate OK [20:27:51]SAM_PROTO_GetFieldsCounters done [20:27:51]requested_item shift.num is exist - process it [20:27:51]requested_item shift.opened is exist - process it [20:27:51]req_shift_opened [20:27:51]FM_GetShiftState [20:27:51]SAM_PROTO_GetShiftState [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 13 01 00 [20:27:51]Write to MH i2c: E2 08 00 B3 3F 80 13 01 00 00 00 00 00 6F [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 0E 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 0E 00 B3 3F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E7 [20:27:51]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:27:51]wFMCommunicate OK [20:27:51]SAM_PROTO_GetShiftState done [20:27:51]FM_GetShiftState done [20:27:51]req_shift_opened done [20:27:51]requested_item shift.open_date is exist - process it [20:27:51]req_shift_open_date [20:27:51]req_shift_open_date done [20:27:51]produce_requested_data done [20:27:51]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145847,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [20:27:51]process_action_free close_receipt [20:27:51]json_value_free [20:27:51]json_value_free done [20:27:51]process_json_proto returns [20:27:51]Send response to host [20:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145847,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [20:27:51]free response buf [20:27:51]execute_script done [20:27:51]execute_script returns [20:27:51]free content buf [20:27:51]Sock 9.Close socket [20:27:51]Sock 9.Thread stoped [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:50]accept exits with 7 [20:38:50]New connection [20:38:50]New thread 3066740068 created [20:38:50]Thread 3066596708 joined [20:38:50]Waiting for new connection... [20:38:50] Sock 7.Parse request [20:38:50]Sock 7.Check first char [20:38:50]Sock 7.First char is OK [20:38:50]request: POST /json_proto HTTP/1.0 [20:38:50]Method: POST [20:38:50]URL: /json_proto [20:38:50]Method is POST - this is cgi request [20:38:50]url: /json_proto [20:38:50]query_string will be loaded in cgi processing [20:38:50]execute_cgi json_proto POST (null) [20:38:50]execute_cgi path=json_proto method=POST [20:38:50]POST find Content-Length [20:38:50]Host: 172.17.40.195:8080 [20:38:50]Content-Length: 816 [20:38:50]Content-Type: application/json [20:38:50] [20:38:50]POST finish read [20:38:50]Found Content-Length = 816 [20:38:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:50]execute_script... [20: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)160605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:50]POST & json_proto [20:38:50]process_json_proto [20:38:50]json parsed OK: [20:38:50]protocol is kg_v1.0 [20:38:50]action value=close_receipt [20:38:50]process_action close_receipt [20:38:50]cmd_close_receipt [20:38:50]MH_GetDate [20:38:50]Write to MH i2c: F0 00 00 B4 3F E2 [20:38:50]Write i2c OK [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: F0 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: F0 09 00 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: F0 09 00 B4 3F 00 DD A4 1E 67 D5 8D 6C 64 23 [20:38:50]GetLastDocTimeStamp 1730060870 [20:38:50]current date 1730061533 [20:38:50]FM_GetShiftState [20:38:50]SAM_PROTO_GetShiftState [20:38:50]wFMCommunicate request_size=4 [20:38:50]MH_SAM_APDU [20:38:50]CAPDU: 80 13 01 00 [20:38:50]Write to MH i2c: E2 08 00 B5 3F 80 13 01 00 00 00 00 00 71 [20:38:50]Write i2c OK [20:38:50]MH_I2C_Read... [20:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:50]Read from MH i2c: E2 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: E2 0E 00 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: E2 0E 00 B5 3F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 E9 [20:38:50]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:38:50]wFMCommunicate OK [20:38:50]SAM_PROTO_GetShiftState done [20:38:50]FM_GetShiftState done [20:38:50]opened in 1729988959 [20:38:50]opened+sec_in_day 1730075359 [20:38:50]quantity*price = 400050 [20:38:50]sum+1 = 400051 [20:38:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 271 27.10.2024 20:38 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871745 ФД: 145848 ФПД: 97118076731880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203854&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145848&fm=97118076731880&tin=02508201610067®Number=0000000000091683&sum=400050 [20:38:51]StoreToDocumentArchive [20:38:51]shift 545 fd 145848 [20:38:51]save to /storage/0545/doc_00145848 [20:38:51]save last doc name /storage/0545/doc_00145848 to /storage/kkm_last_doc_name [20:38:51]save OK [20:38:51]Clear old archive folders... [20:38:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:38:51]tlvbuf is 0042FB30 [20:38:51]SAM_PROTO_ClearQueue [20:38:51]wFMCommunicate request_size=4 [20:38:51]MH_SAM_APDU [20:38:51]CAPDU: 80 09 00 00 [20:38:51]Write to MH i2c: E2 08 00 C2 3F 80 09 00 00 00 00 00 00 73 [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:51]Read from MH i2c: E2 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 C2 3F 00 90 00 75 [20:38:51]RAPDU: 90 00 [20:38:51]wFMCommunicate OK [20:38:51]SAM_PROTO_ClearQueue done [20:38:51]KKMCreateOFDPacket [20:38:51]OFDProtocolAddRootSTLVToBuf [20:38:51]FM_MakeSignedData [20:38:51]FM_MakeSignedData [20:38:51]SAM_PROTO_SignData [20:38:51]wFMCommunicate request_size=4 [20:38:51]MH_SAM_APDU [20:38:51]CAPDU: 80 0D 01 02 [20:38:51]Write to MH i2c: E2 08 00 C3 3F 80 0D 01 02 00 00 00 00 7B [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:51]Read from MH i2c: E2 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 03 00 C3 3F 00 90 00 76 [20:38:51]RAPDU: 90 00 [20:38:51]wFMCommunicate OK [20:38:51]wFMCommunicate request_size=255 [20:38:51]MH_SAM_APDU [20:38:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 DE A4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B8 39 02 00 35 04 06 00 58 54 10 77 [20:38:51]Write to MH i2c: E2 02 01 C4 3F 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 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 DE A4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B8 39 02 00 35 04 06 00 58 54 10 77 00 00 E8 [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:52]Read from MH i2c: E2 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: E2 03 00 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: E2 03 00 C4 3F 00 90 00 77 [20:38:52]RAPDU: 90 00 [20:38:52]wFMCommunicate OK [20:38:52]wFMCommunicate request_size=7 [20:38:52]MH_SAM_APDU [20:38:52]CAPDU: 80 0D 02 02 02 01 E8 [20:38:52]Write to MH i2c: E2 0A 00 C5 3F 80 0D 02 02 02 00 01 E8 00 00 6B [20:38:52]Write i2c OK [20:38:52]MH_I2C_Read... [20:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:52]Read from MH i2c: E2 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: E2 03 00 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: E2 03 00 C5 3F 00 90 00 78 [20:38:52]RAPDU: 90 00 [20:38:52]wFMCommunicate OK [20:38:52]wFMCommunicate request_size=4 [20:38:52]MH_SAM_APDU [20:38:52]CAPDU: 80 0D 03 02 [20:38:52]Write to MH i2c: E2 08 00 C6 3F 80 0D 03 02 00 00 00 00 80 [20:38:52]Write i2c OK [20:38:52]MH_I2C_Read... [20:38:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:52]Read from MH i2c: E2 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: E2 0B 00 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: E2 0B 00 C6 3F 00 EC C2 20 E3 E9 4A CF 05 90 00 39 [20:38:52]RAPDU: EC C2 20 E3 E9 4A CF 05 90 00 [20:38:52]wFMCommunicate OK [20:38:52]SAM_PROTO_SignData done [20:38:52]FM_MakeSignedData done [20:38:52]CreateOFDProtocolMessage [20:38:52]wFMCommunicate request_size=4 [20:38:52]MH_SAM_APDU [20:38:52]CAPDU: 80 11 00 00 [20:38:52]Write to MH i2c: E2 08 00 C7 3F 80 11 00 00 00 00 00 00 80 [20:38:52]Write i2c OK [20:38:52]MH_I2C_Read... [20:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:52]Read from MH i2c: E2 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: E2 17 00 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: E2 17 00 C7 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D3 [20:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:38:52]wFMCommunicate OK [20:38:52]CreateOFDProtocolMessage done [20:38:52]OFDSenderStorePacket 145848 [20:38:52]StoreOFDPacket docnum=145848 [20:38:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 B9 6C 04 01 2E 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 DE A4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B8 39 02 00 35 04 06 00 58 54 10 77 01 E8 EC C2 20 E3 E9 4A CF 05 [20:38:52]CheckFolder [20:38:52]dirname=/storage/ofd_packets [20:38:52]CheckFolder done [20:38:52]ProducePacketName [20:38:52]name=ofd_packets/00145848 [20:38:52]NVStorageSaveData ofd_packets/00145848 [20:38:52]File name is /storage/ofd_packets/00145848 [20:38:52]Write 298 bytes [20:38:52]NVStorageSaveData done [20:38:52]OFDSenderStorePacket done [20:38:52]KKMCreateOFDPacket done [20:38:52]NVStorageSaveData kkm_last_timestamp [20:38:52]File name is /storage/kkm_last_timestamp [20:38:52]Write 4 bytes [20:38:52]NVStorageSaveData done [20:38:52]ExternCall_PrintAddStr [20:38:52]wPrintStart [20:38:52]Write to MH i2c: 01 00 00 C8 3F 07 [20:38:52]Write i2c OK [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: 01 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: 01 07 00 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: 01 07 00 C8 3F 00 00 00 00 00 FF 0F 1C [20:38:52]RasterBufferAndPrint [20:38:52]line Счет N : (1)160605 [20:38:52]line ИНН: 02508201610067 [20:38:52]line Контрольно-Кассовый Чек [20:38:52]line ПРОДАЖА [20:38:52]line ТРК (МРК, ГНК) : 11 [20:38:52]line Товар: 2710194210 [20:38:52]line ДТ-К-2 [20:38:52]line 52.500 * 76.20 [20:38:52]line = 4000.50 [20:38:52]line НДС 12% НСП 1% [20:38:52]line > о реализуемом товаре [20:38:52]line ИТОГО: 4000.50 [20:38:52]line НСП 1% : 35.40 [20:38:52]line НДС 12% : 424.83 [20:38:52]line Наличными: 0.00 [20:38:52]line Безнал.: 4000.50 [20:38:52]line Место: АЗС № 126 "Партнер Нефть" [20:38:52]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [20:38:52]line СНО: Общий режим [20:38:52]line Чек 271 27.10.2024 20:38 [20:38:52]line Смена: 545 ФФД: 1.0 [20:38:52]line ЗНМ: 0300000085 [20:38:52]line РНМ: 0000000000091683 [20:38:52]line Версия ККМ: 001 [20:38:52]line Платежная система: Бакай Банк [20:38:52]line ФМ: 0000000000871745 [20:38:52]line ФД: 145848 [20:38:52]line ФПД: 97118076731880 [20:38:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203854&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145848&fm=97118076731880&tin=02508201610067®Number=0000000000091683&sum=400050 [20:38:52]OFD Sender: Processing packet 145848 [packets to send 206, broken 205] [20:38:52]ProducePacketName [20:38:52]name=ofd_packets/00145848 [20:38:52]OFD Sender: To server: pG, [20:38:52]CommunicateWithHost lk.salyk.kg:30040 [20:38:52]ConnectInit lk.salyk.kg [20:38:52]written 0, free lines is 4095 [20:38:52]Connected sock=10 [20: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 31 37 34 35 0C 01 00 00 B9 6C 04 01 2E 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 DE A4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B8 39 02 00 35 04 06 00 58 54 10 77 01 E8 EC C2 20 E3 E9 4A CF 05 [20:38:53]Write to MH i2c: 01 00 00 F2 3F 31 [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: 01 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: 01 07 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: 01 07 00 F2 3F 00 00 00 00 00 C7 0C 0B [20:38:53]RasterBufferAndPrint [20:38:53]line [20:38:53]line [20:38:53]line [20:38:53]line [20:38:53]line [20:38:53]written 0, free lines is 3277 [20:38:53]MH_Cut [20:38:53]Write to MH i2c: D1 01 00 F9 3F 01 0A [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: D1 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: D1 01 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: D1 01 00 F9 3F 00 09 [20:38:53]Write to MH i2c: 01 00 00 FA 3F 39 [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D0 12 47 00 08 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B8 39 02 00 F4 03 04 00 0A 4A 1E 67 B6 04 01 00 00 5F 01 1C 87 4B 1D C5 8A [20:38:53]CommunicateWithHost err = 0 [20:38:53]CheckOFDResponse [20:38:53]1017 (14) - 77093643461234 [20:38:53]1041 (16) - 0000000000871745 [20:38:53]1040 (4) - 145848 [20:38:53]1012 (4) - 27.10.2024 14:11 [20:38:53]1206 (1) - 0 [20:38:53]OFD Sender: Remove packet 145848 [20:38:53]ProducePacketName [20:38:53]name=ofd_packets/00145848 [20:38:53]NVStorageDeleteData [20:38:53]OFD Sender: No OFD packet to send [20:38:53]*** Cut start [20:38:53]*** Partial cut [20:38:53]*** CUTSNS_PIN = 1 [20:38:54]*** CUTSNS_PIN = 0 [20:38:54]*** Brake cut motor [20:38:54]Read from MH i2c: 01 [20:38:54]MH_I2C_Read... [20:38:54]*** Stop cut motor [20:38:54]*** Cut end [20:38:54]Read from MH i2c: 01 07 00 [20:38:54]MH_I2C_Read... [20:38:54]Read from MH i2c: 01 07 00 FA 3F 00 00 00 00 00 FF 0F 4E [20:38:54]process_action close_receipt done [20:38:54]requested_data is exist [20:38:54]produce_requested_data [20:38:54]requested_item fm.sn is exist - process it [20:38:54]wFMCommunicate request_size=4 [20:38:54]MH_SAM_APDU [20:38:54]CAPDU: 80 11 00 00 [20:38:54]Write to MH i2c: E2 08 00 FB 3F 80 11 00 00 00 00 00 00 B4 [20:38:54]Write i2c OK [20:38:54]MH_I2C_Read... [20:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:54]Read from MH i2c: E2 [20:38:54]MH_I2C_Read... [20:38:54]Read from MH i2c: E2 17 00 [20:38:54]MH_I2C_Read... [20:38:54]Read from MH i2c: E2 17 00 FB 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 07 [20:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:38:54]wFMCommunicate OK [20:38:54]requested_item fd.num is exist - process it [20:38:54]SAM_PROTO_GetFieldsCounters [20:38:54]wFMCommunicate request_size=4 [20:38:54]MH_SAM_APDU [20:38:54]CAPDU: 80 13 00 00 [20:38:54]Write to MH i2c: E2 08 00 FC 3F 80 13 00 00 00 00 00 00 B7 [20:38:54]Write i2c OK [20:38:54]MH_I2C_Read... [20:38:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:54]Read from MH i2c: E2 [20:38:54]MH_I2C_Read... [20:38:54]Read from MH i2c: E2 62 00 [20:38:54]MH_I2C_Read... [20:38:54]Read from MH i2c: E2 62 00 FC 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B8 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [20: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B8 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:54]wFMCommunicate OK [20:38:54]SAM_PROTO_GetFieldsCounters done [20:38:54]requested_item shift.num is exist - process it [20:38:54]requested_item shift.opened is exist - process it [20:38:54]req_shift_opened [20:38:54]FM_GetShiftState [20:38:54]SAM_PROTO_GetShiftState [20:38:54]wFMCommunicate request_size=4 [20:38:54]MH_SAM_APDU [20:38:54]CAPDU: 80 13 01 00 [20:38:54]Write to MH i2c: E2 08 00 FD 3F 80 13 01 00 00 00 00 00 B9 [20:38:54]Write i2c OK [20:38:54]MH_I2C_Read... [20:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:54]Read from MH i2c: E2 [20:38:54]MH_I2C_Read... [20:38:54]Read from MH i2c: E2 0E 00 [20:38:54]MH_I2C_Read... [20:38:54]Read from MH i2c: E2 0E 00 FD 3F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 31 [20:38:54]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:38:54]wFMCommunicate OK [20:38:54]SAM_PROTO_GetShiftState done [20:38:54]FM_GetShiftState done [20:38:54]req_shift_opened done [20:38:54]requested_item shift.open_date is exist - process it [20:38:54]req_shift_open_date [20:38:54]req_shift_open_date done [20:38:54]produce_requested_data done [20:38:54]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145848,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [20:38:54]process_action_free close_receipt [20:38:54]json_value_free [20:38:54]json_value_free done [20:38:54]process_json_proto returns [20:38:54]Send response to host [20:38:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145848,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [20:38:54]free response buf [20:38:54]execute_script done [20:38:54]execute_script returns [20:38:54]free content buf [20:38:54]Sock 7.Close socket [20:38:54]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:45]accept exits with 9 [20:40:45]New connection [20:40:45]New thread 3066596708 created [20:40:45]Thread 3066740068 joined [20:40:45]Waiting for new connection... [20:40:45] Sock 9.Parse request [20:40:45]Sock 9.Check first char [20:40:45]Sock 9.First char is OK [20:40:45]request: POST /json_proto HTTP/1.0 [20:40:45]Method: POST [20:40:45]URL: /json_proto [20:40:45]Method is POST - this is cgi request [20:40:45]url: /json_proto [20:40:45]query_string will be loaded in cgi processing [20:40:45]execute_cgi json_proto POST (null) [20:40:45]execute_cgi path=json_proto method=POST [20:40:45]POST find Content-Length [20:40:45]Host: 172.17.40.195:8080 [20:40:45]Content-Length: 679 [20:40:45]Content-Type: application/json [20:40:45] [20:40:45]POST finish read [20:40:45]Found Content-Length = 679 [20:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:45]execute_script... [20:40:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:45]POST & json_proto [20:40:45]process_json_proto [20:40:45]json parsed OK: [20:40:45]protocol is kg_v1.0 [20:40:45]action value=close_receipt [20:40:45]process_action close_receipt [20:40:45]cmd_close_receipt [20:40:45]MH_GetDate [20:40:45]Write to MH i2c: F0 00 00 FE 3F 2C [20:40:45]Write i2c OK [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: F0 [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: F0 09 00 [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: F0 09 00 FE 3F 00 50 A5 1E 67 D5 8D 6C 64 E1 [20:40:45]GetLastDocTimeStamp 1730061534 [20:40:45]current date 1730061648 [20:40:45]FM_GetShiftState [20:40:45]SAM_PROTO_GetShiftState [20:40:45]wFMCommunicate request_size=4 [20:40:45]MH_SAM_APDU [20:40:45]CAPDU: 80 13 01 00 [20:40:45]Write to MH i2c: E2 08 00 FF 3F 80 13 01 00 00 00 00 00 BB [20:40:45]Write i2c OK [20:40:45]MH_I2C_Read... [20:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:45]Read from MH i2c: E2 [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: E2 0E 00 [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: E2 0E 00 FF 3F 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 33 [20:40:45]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:40:45]wFMCommunicate OK [20:40:45]SAM_PROTO_GetShiftState done [20:40:45]FM_GetShiftState done [20:40:45]opened in 1729988959 [20:40:45]opened+sec_in_day 1730075359 [20:40:45]quantity*price = 200025 [20:40:45]sum+1 = 200026 [20:40:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 272 27.10.2024 20:40 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145849 ФПД: 133218959459783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204048&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145849&fm=133218959459783&tin=02508201610067®Number=0000000000091683&sum=200000 [20:40:46]StoreToDocumentArchive [20:40:46]shift 545 fd 145849 [20:40:46]save to /storage/0545/doc_00145849 [20:40:46]save last doc name /storage/0545/doc_00145849 to /storage/kkm_last_doc_name [20:40:46]save OK [20:40:46]Clear old archive folders... [20:40:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:40:46]tlvbuf is B6F21640 [20:40:46]SAM_PROTO_ClearQueue [20:40:46]wFMCommunicate request_size=4 [20:40:46]MH_SAM_APDU [20:40:46]CAPDU: 80 09 00 00 [20:40:46]Write to MH i2c: E2 08 00 0C 40 80 09 00 00 00 00 00 00 BE [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:46]Read from MH i2c: E2 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 03 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 03 00 0C 40 00 90 00 C0 [20:40:46]RAPDU: 90 00 [20:40:46]wFMCommunicate OK [20:40:46]SAM_PROTO_ClearQueue done [20:40:46]KKMCreateOFDPacket [20:40:46]OFDProtocolAddRootSTLVToBuf [20:40:46]FM_MakeSignedData [20:40:46]FM_MakeSignedData [20:40:46]SAM_PROTO_SignData [20:40:46]wFMCommunicate request_size=4 [20:40:46]MH_SAM_APDU [20:40:46]CAPDU: 80 0D 01 02 [20:40:46]Write to MH i2c: E2 08 00 0D 40 80 0D 01 02 00 00 00 00 C6 [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:46]Read from MH i2c: E2 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 03 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 03 00 0D 40 00 90 00 C1 [20:40:46]RAPDU: 90 00 [20:40:46]wFMCommunicate OK [20:40:46]wFMCommunicate request_size=255 [20:40:46]MH_SAM_APDU [20:40:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 50 A5 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B9 39 02 00 35 04 06 00 79 29 74 C1 [20:40:46]Write to MH i2c: E2 02 01 0E 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 50 A5 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B9 39 02 00 35 04 06 00 79 29 74 C1 00 00 B1 [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:46]Read from MH i2c: E2 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 03 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 03 00 0E 40 00 90 00 C2 [20:40:46]RAPDU: 90 00 [20:40:46]wFMCommunicate OK [20:40:46]wFMCommunicate request_size=7 [20:40:46]MH_SAM_APDU [20:40:46]CAPDU: 80 0D 02 02 02 85 C7 [20:40:46]Write to MH i2c: E2 0A 00 0F 40 80 0D 02 02 02 00 85 C7 00 00 19 [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:46]Read from MH i2c: E2 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 03 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 03 00 0F 40 00 90 00 C3 [20:40:46]RAPDU: 90 00 [20:40:46]wFMCommunicate OK [20:40:46]wFMCommunicate request_size=4 [20:40:46]MH_SAM_APDU [20:40:46]CAPDU: 80 0D 03 02 [20:40:46]Write to MH i2c: E2 08 00 10 40 80 0D 03 02 00 00 00 00 CB [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:46]Read from MH i2c: E2 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 0B 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 0B 00 10 40 00 4E FD 67 B0 F0 1F AE C2 90 00 AD [20:40:46]RAPDU: 4E FD 67 B0 F0 1F AE C2 90 00 [20:40:46]wFMCommunicate OK [20:40:46]SAM_PROTO_SignData done [20:40:46]FM_MakeSignedData done [20:40:46]CreateOFDProtocolMessage [20:40:46]wFMCommunicate request_size=4 [20:40:46]MH_SAM_APDU [20:40:46]CAPDU: 80 11 00 00 [20:40:46]Write to MH i2c: E2 08 00 11 40 80 11 00 00 00 00 00 00 CB [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:46]Read from MH i2c: E2 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 17 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 17 00 11 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1E [20:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:40:46]wFMCommunicate OK [20:40:46]CreateOFDProtocolMessage done [20:40:46]OFDSenderStorePacket 145849 [20:40:46]StoreOFDPacket docnum=145849 [20:40:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 B6 E1 04 01 A5 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 50 A5 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B9 39 02 00 35 04 06 00 79 29 74 C1 85 C7 4E FD 67 B0 F0 1F AE C2 [20:40:46]CheckFolder [20:40:46]dirname=/storage/ofd_packets [20:40:46]CheckFolder done [20:40:46]ProducePacketName [20:40:46]name=ofd_packets/00145849 [20:40:46]NVStorageSaveData ofd_packets/00145849 [20:40:46]File name is /storage/ofd_packets/00145849 [20:40:46]Write 298 bytes [20:40:46]NVStorageSaveData done [20:40:46]OFDSenderStorePacket done [20:40:46]KKMCreateOFDPacket done [20:40:46]NVStorageSaveData kkm_last_timestamp [20:40:46]File name is /storage/kkm_last_timestamp [20:40:46]Write 4 bytes [20:40:46]NVStorageSaveData done [20:40:46]ExternCall_PrintAddStr [20:40:46]wPrintStart [20:40:46]Write to MH i2c: 01 00 00 12 40 52 [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: 01 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: 01 07 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: 01 07 00 12 40 00 00 00 00 00 FF 0F 67 [20:40:46]RasterBufferAndPrint [20:40:46]line Счет N : (1)160606 [20:40:46]line ИНН: 02508201610067 [20:40:46]line Контрольно-Кассовый Чек [20:40:46]line ПРОДАЖА [20:40:46]line ТРК (МРК, ГНК) : 21 [20:40:46]line Товар: 2710194210 [20:40:46]line ДТ-К-2 [20:40:46]line 26.250 * 76.20 [20:40:46]line = 2000.25 [20:40:46]line НДС 12% НСП 1% [20:40:46]line > о реализуемом товаре [20:40:46]line ОКРУГЛЕНИЕ: -0.25 [20:40:46]line ИТОГО: 2000.00 [20:40:46]line Внесено: 2000.00 [20:40:46]line СДАЧА: 0.00 [20:40:46]line НСП 1% : 17.70 [20:40:46]line НДС 12% : 212.42 [20:40:46]line Наличными: 2000.00 [20:40:46]line Безнал.: 0.00 [20:40:46]line Место: АЗС № 126 "Партнер Нефть" [20:40:46]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [20:40:46]line СНО: Общий режим [20:40:46]line Чек 272 27.10.2024 20:40 [20:40:46]line Смена: 545 ФФД: 1.0 [20:40:46]line ЗНМ: 0300000085 [20:40:46]line РНМ: 0000000000091683 [20:40:46]line Версия ККМ: 001 [20:40:46]line ФМ: 0000000000871745 [20:40:46]line ФД: 145849 [20:40:46]line ФПД: 133218959459783 [20:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204048&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145849&fm=133218959459783&tin=02508201610067®Number=0000000000091683&sum=200000 [20:40:47]OFD Sender: Processing packet 145849 [packets to send 206, broken 205] [20:40:47]ProducePacketName [20:40:47]name=ofd_packets/00145849 [20:40:47]OFD Sender: To server: pG, [20:40:47]CommunicateWithHost lk.salyk.kg:30040 [20:40:47]ConnectInit lk.salyk.kg [20:40:47]written 0, free lines is 4095 [20:40:47]Connected sock=11 [20:40:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 B6 E1 04 01 A5 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 50 A5 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B9 39 02 00 35 04 06 00 79 29 74 C1 85 C7 4E FD 67 B0 F0 1F AE C2 [20:40:47]Write to MH i2c: 01 00 00 3D 40 7D [20:40:47]Write i2c OK [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: 01 [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: 01 07 00 [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: 01 07 00 3D 40 00 00 00 00 00 AB 0C 3B [20:40:47]RasterBufferAndPrint [20:40:47]line [20:40:47]line [20:40:47]line [20:40:47]line [20:40:47]line [20:40:47]written 0, free lines is 3249 [20:40:47]MH_Cut [20:40:47]Write to MH i2c: D1 01 00 44 40 01 56 [20:40:47]Write i2c OK [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: D1 [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: D1 01 00 [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: D1 01 00 44 40 00 55 [20:40:47]Write to MH i2c: 01 00 00 45 40 85 [20:40:47]Write i2c OK [20:40:47]MH_I2C_Read... [20:40:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 11 D9 47 00 00 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 B9 39 02 00 F4 03 04 00 7D 4A 1E 67 B6 04 01 00 00 7E 98 01 8E 95 BE 9E 6F [20:40:47]CommunicateWithHost err = 0 [20:40:47]CheckOFDResponse [20:40:47]1017 (14) - 77093643461234 [20:40:47]1041 (16) - 0000000000871745 [20:40:47]1040 (4) - 145849 [20:40:47]1012 (4) - 27.10.2024 14:13 [20:40:47]1206 (1) - 0 [20:40:47]OFD Sender: Remove packet 145849 [20:40:47]ProducePacketName [20:40:47]name=ofd_packets/00145849 [20:40:47]NVStorageDeleteData [20:40:48]OFD Sender: No OFD packet to send [20:40:48]*** Cut start [20:40:48]*** Partial cut [20:40:48]*** CUTSNS_PIN = 1 [20:40:48]*** CUTSNS_PIN = 0 [20:40:48]*** Brake cut motor [20:40:49]Read from MH i2c: 01 [20:40:49]*** Stop cut motor [20:40:49]*** Cut end [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: 01 07 00 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: 01 07 00 45 40 00 00 00 00 00 FF 0F 9A [20:40:49]process_action close_receipt done [20:40:49]requested_data is exist [20:40:49]produce_requested_data [20:40:49]requested_item fm.sn is exist - process it [20:40:49]wFMCommunicate request_size=4 [20:40:49]MH_SAM_APDU [20:40:49]CAPDU: 80 11 00 00 [20:40:49]Write to MH i2c: E2 08 00 46 40 80 11 00 00 00 00 00 00 00 [20:40:49]Write i2c OK [20:40:49]MH_I2C_Read... [20:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:49]Read from MH i2c: E2 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 17 00 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 17 00 46 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 53 [20:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:40:49]wFMCommunicate OK [20:40:49]requested_item fd.num is exist - process it [20:40:49]SAM_PROTO_GetFieldsCounters [20:40:49]wFMCommunicate request_size=4 [20:40:49]MH_SAM_APDU [20:40:49]CAPDU: 80 13 00 00 [20:40:49]Write to MH i2c: E2 08 00 47 40 80 13 00 00 00 00 00 00 03 [20:40:49]Write i2c OK [20:40:49]MH_I2C_Read... [20:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:49]Read from MH i2c: E2 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 62 00 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 62 00 47 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B9 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [20:40:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 B9 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:49]wFMCommunicate OK [20:40:49]SAM_PROTO_GetFieldsCounters done [20:40:49]requested_item shift.num is exist - process it [20:40:49]requested_item shift.opened is exist - process it [20:40:49]req_shift_opened [20:40:49]FM_GetShiftState [20:40:49]SAM_PROTO_GetShiftState [20:40:49]wFMCommunicate request_size=4 [20:40:49]MH_SAM_APDU [20:40:49]CAPDU: 80 13 01 00 [20:40:49]Write to MH i2c: E2 08 00 48 40 80 13 01 00 00 00 00 00 05 [20:40:49]Write i2c OK [20:40:49]MH_I2C_Read... [20:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:49]Read from MH i2c: E2 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 0E 00 [20:40:49]MH_I2C_Read... [20:40:49]Read from MH i2c: E2 0E 00 48 40 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7D [20:40:49]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:40:49]wFMCommunicate OK [20:40:49]SAM_PROTO_GetShiftState done [20:40:49]FM_GetShiftState done [20:40:49]req_shift_opened done [20:40:49]requested_item shift.open_date is exist - process it [20:40:49]req_shift_open_date [20:40:49]req_shift_open_date done [20:40:49]produce_requested_data done [20:40:49]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145849,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [20:40:49]process_action_free close_receipt [20:40:49]json_value_free [20:40:49]json_value_free done [20:40:49]process_json_proto returns [20:40:49]Send response to host [20:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145849,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [20:40:49]free response buf [20:40:49]execute_script done [20:40:49]execute_script returns [20:40:49]free content buf [20:40:49]Sock 9.Close socket [20:40:49]Sock 9.Thread stoped [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:59]OFD Sender: No OFD packet to send [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:46]accept exits with 7 [20:55:46]New connection [20:55:46]New thread 3066740068 created [20:55:46]Thread 3066596708 joined [20:55:46]Waiting for new connection... [20:55:46] Sock 7.Parse request [20:55:46]Sock 7.Check first char [20:55:46]Sock 7.First char is OK [20:55:46]request: POST /json_proto HTTP/1.0 [20:55:46]Method: POST [20:55:46]URL: /json_proto [20:55:46]Method is POST - this is cgi request [20:55:46]url: /json_proto [20:55:46]query_string will be loaded in cgi processing [20:55:46]execute_cgi json_proto POST (null) [20:55:46]execute_cgi path=json_proto method=POST [20:55:46]POST find Content-Length [20:55:46]Host: 172.17.40.195:8080 [20:55:46]Content-Length: 682 [20:55:46]Content-Type: application/json [20:55:46] [20:55:46]POST finish read [20:55:46]Found Content-Length = 682 [20:55:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:55:46]execute_script... [20:55: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)160607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:55:46]POST & json_proto [20:55:46]process_json_proto [20:55:46]json parsed OK: [20:55:46]protocol is kg_v1.0 [20:55:46]action value=close_receipt [20:55:46]process_action close_receipt [20:55:46]cmd_close_receipt [20:55:46]MH_GetDate [20:55:46]Write to MH i2c: F0 00 00 49 40 78 [20:55:46]Write i2c OK [20:55:46]MH_I2C_Read... [20:55:46]Read from MH i2c: F0 [20:55:46]MH_I2C_Read... [20:55:46]Read from MH i2c: F0 09 00 [20:55:46]MH_I2C_Read... [20:55:46]Read from MH i2c: F0 09 00 49 40 00 D6 A8 1E 67 D5 8D 6C 64 B6 [20:55:46]GetLastDocTimeStamp 1730061648 [20:55:46]current date 1730062550 [20:55:46]FM_GetShiftState [20:55:46]SAM_PROTO_GetShiftState [20:55:46]wFMCommunicate request_size=4 [20:55:46]MH_SAM_APDU [20:55:46]CAPDU: 80 13 01 00 [20:55:46]Write to MH i2c: E2 08 00 4A 40 80 13 01 00 00 00 00 00 07 [20:55:46]Write i2c OK [20:55:46]MH_I2C_Read... [20:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:46]Read from MH i2c: E2 [20:55:46]MH_I2C_Read... [20:55:46]Read from MH i2c: E2 0E 00 [20:55:46]MH_I2C_Read... [20:55:46]Read from MH i2c: E2 0E 00 4A 40 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 7F [20:55:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:55:46]wFMCommunicate OK [20:55:46]SAM_PROTO_GetShiftState done [20:55:46]FM_GetShiftState done [20:55:46]opened in 1729988959 [20:55:46]opened+sec_in_day 1730075359 [20:55:46]quantity*price = 100021 [20:55:46]sum+1 = 100023 [20:55:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 273 27.10.2024 20:55 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145850 ФПД: 216913906368383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205550&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145850&fm=216913906368383&tin=02508201610067®Number=0000000000091683&sum=100000 [20:55:48]StoreToDocumentArchive [20:55:48]shift 545 fd 145850 [20:55:48]save to /storage/0545/doc_00145850 [20:55:48]save last doc name /storage/0545/doc_00145850 to /storage/kkm_last_doc_name [20:55:48]save OK [20:55:48]Clear old archive folders... [20:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:48]tlvbuf is 003FB1E0 [20:55:48]SAM_PROTO_ClearQueue [20:55:48]wFMCommunicate request_size=4 [20:55:48]MH_SAM_APDU [20:55:48]CAPDU: 80 09 00 00 [20:55:48]Write to MH i2c: E2 08 00 57 40 80 09 00 00 00 00 00 00 09 [20:55:48]Write i2c OK [20:55:48]MH_I2C_Read... [20:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:48]Read from MH i2c: E2 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 03 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 03 00 57 40 00 90 00 0B [20:55:48]RAPDU: 90 00 [20:55:48]wFMCommunicate OK [20:55:48]SAM_PROTO_ClearQueue done [20:55:48]KKMCreateOFDPacket [20:55:48]OFDProtocolAddRootSTLVToBuf [20:55:48]FM_MakeSignedData [20:55:48]FM_MakeSignedData [20:55:48]SAM_PROTO_SignData [20:55:48]wFMCommunicate request_size=4 [20:55:48]MH_SAM_APDU [20:55:48]CAPDU: 80 0D 01 02 [20:55:48]Write to MH i2c: E2 08 00 58 40 80 0D 01 02 00 00 00 00 11 [20:55:48]Write i2c OK [20:55:48]MH_I2C_Read... [20:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:48]Read from MH i2c: E2 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 03 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 03 00 58 40 00 90 00 0C [20:55:48]RAPDU: 90 00 [20:55:48]wFMCommunicate OK [20:55:48]wFMCommunicate request_size=255 [20:55:48]MH_SAM_APDU [20:55: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D6 A8 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BA 39 02 00 35 04 06 00 C5 [20:55:48]Write to MH i2c: E2 02 01 59 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D6 A8 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BA 39 02 00 35 04 06 00 C5 00 00 AF [20:55:48]Write i2c OK [20:55:48]MH_I2C_Read... [20:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:48]Read from MH i2c: E2 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 03 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 03 00 59 40 00 90 00 0D [20:55:48]RAPDU: 90 00 [20:55:48]wFMCommunicate OK [20:55:48]wFMCommunicate request_size=10 [20:55:48]MH_SAM_APDU [20:55:48]CAPDU: 80 0D 02 02 05 48 34 55 FF 7F [20:55:48]Write to MH i2c: E2 0D 00 5A 40 80 0D 02 02 05 00 48 34 55 FF 7F 00 00 6D [20:55:48]Write i2c OK [20:55:48]MH_I2C_Read... [20:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:48]Read from MH i2c: E2 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 03 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 03 00 5A 40 00 90 00 0E [20:55:48]RAPDU: 90 00 [20:55:48]wFMCommunicate OK [20:55:48]wFMCommunicate request_size=4 [20:55:48]MH_SAM_APDU [20:55:48]CAPDU: 80 0D 03 02 [20:55:48]Write to MH i2c: E2 08 00 5B 40 80 0D 03 02 00 00 00 00 16 [20:55:48]Write i2c OK [20:55:48]MH_I2C_Read... [20:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:48]Read from MH i2c: E2 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 0B 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 0B 00 5B 40 00 11 64 E4 8C 57 65 B3 51 90 00 BC [20:55:48]RAPDU: 11 64 E4 8C 57 65 B3 51 90 00 [20:55:48]wFMCommunicate OK [20:55:48]SAM_PROTO_SignData done [20:55:48]FM_MakeSignedData done [20:55:48]CreateOFDProtocolMessage [20:55:48]wFMCommunicate request_size=4 [20:55:48]MH_SAM_APDU [20:55:48]CAPDU: 80 11 00 00 [20:55:48]Write to MH i2c: E2 08 00 5C 40 80 11 00 00 00 00 00 00 16 [20:55:48]Write i2c OK [20:55:48]MH_I2C_Read... [20:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:48]Read from MH i2c: E2 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 17 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: E2 17 00 5C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 69 [20:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:55:48]wFMCommunicate OK [20:55:48]CreateOFDProtocolMessage done [20:55:48]OFDSenderStorePacket 145850 [20:55:48]StoreOFDPacket docnum=145850 [20:55:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 18 57 07 01 9A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D6 A8 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BA 39 02 00 35 04 06 00 C5 48 34 55 FF 7F 11 64 E4 8C 57 65 B3 51 [20:55:48]CheckFolder [20:55:48]dirname=/storage/ofd_packets [20:55:48]CheckFolder done [20:55:48]ProducePacketName [20:55:48]name=ofd_packets/00145850 [20:55:48]NVStorageSaveData ofd_packets/00145850 [20:55:48]File name is /storage/ofd_packets/00145850 [20:55:48]Write 301 bytes [20:55:48]NVStorageSaveData done [20:55:48]OFDSenderStorePacket done [20:55:48]KKMCreateOFDPacket done [20:55:48]NVStorageSaveData kkm_last_timestamp [20:55:48]File name is /storage/kkm_last_timestamp [20:55:48]Write 4 bytes [20:55:48]NVStorageSaveData done [20:55:48]ExternCall_PrintAddStr [20:55:48]wPrintStart [20:55:48]Write to MH i2c: 01 00 00 5D 40 9D [20:55:48]Write i2c OK [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: 01 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: 01 07 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: 01 07 00 5D 40 00 00 00 00 00 FF 0F B2 [20:55:48]RasterBufferAndPrint [20:55:48]line Счет N : (1)160607 [20:55:48]line ИНН: 02508201610067 [20:55:48]line Контрольно-Кассовый Чек [20:55:48]line ПРОДАЖА [20:55:48]line ТРК (МРК, ГНК) : 33 [20:55:48]line Товар: 2710124500 [20:55:48]line Аи-95-К-3 [20:55:48]line 13.480 * 74.20 [20:55:48]line = 1000.22 [20:55:48]line НДС 12% НСП 1% [20:55:48]line > о реализуемом товаре [20:55:48]line ОКРУГЛЕНИЕ: -0.22 [20:55:48]line ИТОГО: 1000.00 [20:55:48]line Внесено: 1000.00 [20:55:48]line СДАЧА: 0.00 [20:55:48]line НСП 1% : 8.85 [20:55:48]line НДС 12% : 106.22 [20:55:48]line Наличными: 1000.00 [20:55:48]line Безнал.: 0.00 [20:55:48]line Место: АЗС № 126 "Партнер Нефть" [20:55:48]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [20:55:48]line СНО: Общий режим [20:55:48]line Чек 273 27.10.2024 20:55 [20:55:48]line Смена: 545 ФФД: 1.0 [20:55:48]line ЗНМ: 0300000085 [20:55:48]line РНМ: 0000000000091683 [20:55:48]line Версия ККМ: 001 [20:55:48]line ФМ: 0000000000871745 [20:55:48]line ФД: 145850 [20:55:48]line ФПД: 216913906368383 [20:55:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205550&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145850&fm=216913906368383&tin=02508201610067®Number=0000000000091683&sum=100000 [20:55:48]OFD Sender: Processing packet 145850 [packets to send 206, broken 205] [20:55:48]ProducePacketName [20:55:48]name=ofd_packets/00145850 [20:55:48]OFD Sender: To server: pG, [20:55:48]CommunicateWithHost lk.salyk.kg:30040 [20:55:48]ConnectInit lk.salyk.kg [20:55:48]written 0, free lines is 4095 [20:55:49]Connected sock=11 [20:55:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 18 57 07 01 9A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D6 A8 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BA 39 02 00 35 04 06 00 C5 48 34 55 FF 7F 11 64 E4 8C 57 65 B3 51 [20:55:49]Write to MH i2c: 01 00 00 88 40 C8 [20:55:49]Write i2c OK [20:55:49]MH_I2C_Read... [20:55:49]Read from MH i2c: 01 [20:55:49]MH_I2C_Read... [20:55:49]Read from MH i2c: 01 07 00 [20:55:49]MH_I2C_Read... [20:55:49]Read from MH i2c: 01 07 00 88 40 00 00 00 00 00 A5 0C 80 [20:55:49]RasterBufferAndPrint [20:55:49]line [20:55:49]line [20:55:49]line [20:55:49]line [20:55:49]line [20:55:49]written 0, free lines is 3241 [20:55:49]MH_Cut [20:55:49]Write to MH i2c: D1 01 00 8F 40 01 A1 [20:55:49]Write i2c OK [20:55:49]MH_I2C_Read... [20:55:49]Read from MH i2c: D1 [20:55:49]MH_I2C_Read... [20:55:49]Read from MH i2c: D1 01 00 [20:55:49]MH_I2C_Read... [20:55:49]Read from MH i2c: D1 01 00 8F 40 00 A0 [20:55:49]Write to MH i2c: 01 00 00 90 40 D0 [20:55:49]Write i2c OK [20:55:49]MH_I2C_Read... [20:55:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 BB A8 47 00 D5 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BA 39 02 00 F4 03 04 00 02 4E 1E 67 B6 04 01 00 00 9B 2E 5A 68 D6 AE 17 45 [20:55:49]CommunicateWithHost err = 0 [20:55:49]CheckOFDResponse [20:55:49]1017 (14) - 77093643461234 [20:55:49]1041 (16) - 0000000000871745 [20:55:49]1040 (4) - 145850 [20:55:49]1012 (4) - 27.10.2024 14:28 [20:55:49]1206 (1) - 0 [20:55:49]OFD Sender: Remove packet 145850 [20:55:49]ProducePacketName [20:55:49]name=ofd_packets/00145850 [20:55:49]NVStorageDeleteData [20:55:50]OFD Sender: No OFD packet to send [20:55:50]*** Cut start [20:55:50]*** Partial cut [20:55:50]*** CUTSNS_PIN = 1 [20:55:50]*** CUTSNS_PIN = 0 [20:55:50]*** Brake cut motor [20:55:50]Read from MH i2c: 01 [20:55:50]MH_I2C_Read... [20:55:50]*** Stop cut motor [20:55:50]*** Cut end [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 90 40 00 00 00 00 00 FF 0F E5 [20:55:50]process_action close_receipt done [20:55:50]requested_data is exist [20:55:50]produce_requested_data [20:55:50]requested_item fm.sn is exist - process it [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 91 40 80 11 00 00 00 00 00 00 4B [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 91 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 9E [20:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:55:50]wFMCommunicate OK [20:55:50]requested_item fd.num is exist - process it [20:55:50]SAM_PROTO_GetFieldsCounters [20:55:50]wFMCommunicate request_size=4 [20:55:50]MH_SAM_APDU [20:55:50]CAPDU: 80 13 00 00 [20:55:50]Write to MH i2c: E2 08 00 92 40 80 13 00 00 00 00 00 00 4E [20:55:50]Write i2c OK [20:55:50]MH_I2C_Read... [20:55:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:51]Read from MH i2c: E2 [20:55:51]MH_I2C_Read... [20:55:51]Read from MH i2c: E2 62 00 [20:55:51]MH_I2C_Read... [20:55:51]Read from MH i2c: E2 62 00 92 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BA 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [20:55:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BA 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:51]wFMCommunicate OK [20:55:51]SAM_PROTO_GetFieldsCounters done [20:55:51]requested_item shift.num is exist - process it [20:55:51]requested_item shift.opened is exist - process it [20:55:51]req_shift_opened [20:55:51]FM_GetShiftState [20:55:51]SAM_PROTO_GetShiftState [20:55:51]wFMCommunicate request_size=4 [20:55:51]MH_SAM_APDU [20:55:51]CAPDU: 80 13 01 00 [20:55:51]Write to MH i2c: E2 08 00 93 40 80 13 01 00 00 00 00 00 50 [20:55:51]Write i2c OK [20:55:51]MH_I2C_Read... [20:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:51]Read from MH i2c: E2 [20:55:51]MH_I2C_Read... [20:55:51]Read from MH i2c: E2 0E 00 [20:55:51]MH_I2C_Read... [20:55:51]Read from MH i2c: E2 0E 00 93 40 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C8 [20:55:51]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:55:51]wFMCommunicate OK [20:55:51]SAM_PROTO_GetShiftState done [20:55:51]FM_GetShiftState done [20:55:51]req_shift_opened done [20:55:51]requested_item shift.open_date is exist - process it [20:55:51]req_shift_open_date [20:55:51]req_shift_open_date done [20:55:51]produce_requested_data done [20:55:51]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145850,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [20:55:51]process_action_free close_receipt [20:55:51]json_value_free [20:55:51]json_value_free done [20:55:51]process_json_proto returns [20:55:51]Send response to host [20:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145850,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [20:55:51]free response buf [20:55:51]execute_script done [20:55:51]execute_script returns [20:55:51]free content buf [20:55:51]Sock 7.Close socket [20:55:51]Sock 7.Thread stoped [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:09]accept exits with 9 [20:58:09]New connection [20:58:09]New thread 3066596708 created [20:58:09]Thread 3066740068 joined [20:58:09]Waiting for new connection... [20:58:09] Sock 9.Parse request [20:58:09]Sock 9.Check first char [20:58:09]Sock 9.First char is OK [20:58:09]request: POST /json_proto HTTP/1.0 [20:58:09]Method: POST [20:58:09]URL: /json_proto [20:58:09]Method is POST - this is cgi request [20:58:09]url: /json_proto [20:58:09]query_string will be loaded in cgi processing [20:58:09]execute_cgi json_proto POST (null) [20:58:09]execute_cgi path=json_proto method=POST [20:58:09]POST find Content-Length [20:58:09]Host: 172.17.40.195:8080 [20:58:09]Content-Length: 677 [20:58:09]Content-Type: application/json [20:58:09] [20:58:09]POST finish read [20:58:09]Found Content-Length = 677 [20:58:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:09]execute_script... [20:58: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)160608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:09]POST & json_proto [20:58:09]process_json_proto [20:58:09]json parsed OK: [20:58:09]protocol is kg_v1.0 [20:58:09]action value=close_receipt [20:58:09]process_action close_receipt [20:58:09]cmd_close_receipt [20:58:09]MH_GetDate [20:58:09]Write to MH i2c: F0 00 00 94 40 C3 [20:58:09]Write i2c OK [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: F0 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: F0 09 00 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: F0 09 00 94 40 00 64 A9 1E 67 D5 8D 6C 64 90 [20:58:09]GetLastDocTimeStamp 1730062550 [20:58:09]current date 1730062692 [20:58:09]FM_GetShiftState [20:58:09]SAM_PROTO_GetShiftState [20:58:09]wFMCommunicate request_size=4 [20:58:09]MH_SAM_APDU [20:58:09]CAPDU: 80 13 01 00 [20:58:09]Write to MH i2c: E2 08 00 95 40 80 13 01 00 00 00 00 00 52 [20:58:09]Write i2c OK [20:58:09]MH_I2C_Read... [20:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:09]Read from MH i2c: E2 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: E2 0E 00 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: E2 0E 00 95 40 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 CA [20:58:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:58:09]wFMCommunicate OK [20:58:09]SAM_PROTO_GetShiftState done [20:58:09]FM_GetShiftState done [20:58:09]opened in 1729988959 [20:58:09]opened+sec_in_day 1730075359 [20:58:09]quantity*price = 50041 [20:58:09]sum+1 = 50042 [20:58:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 274 27.10.2024 20:58 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145851 ФПД: 40367253239877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205812&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145851&fm=40367253239877&tin=02508201610067®Number=0000000000091683&sum=50000 [20:58:10]StoreToDocumentArchive [20:58:10]shift 545 fd 145851 [20:58:10]save to /storage/0545/doc_00145851 [20:58:10]save last doc name /storage/0545/doc_00145851 to /storage/kkm_last_doc_name [20:58:10]save OK [20:58:10]Clear old archive folders... [20:58:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:10]tlvbuf is 004F77A0 [20:58:10]SAM_PROTO_ClearQueue [20:58:10]wFMCommunicate request_size=4 [20:58:10]MH_SAM_APDU [20:58:10]CAPDU: 80 09 00 00 [20:58:10]Write to MH i2c: E2 08 00 A2 40 80 09 00 00 00 00 00 00 54 [20:58:10]Write i2c OK [20:58:10]MH_I2C_Read... [20:58:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:10]Read from MH i2c: E2 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 03 00 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 03 00 A2 40 00 90 00 56 [20:58:10]RAPDU: 90 00 [20:58:10]wFMCommunicate OK [20:58:10]SAM_PROTO_ClearQueue done [20:58:10]KKMCreateOFDPacket [20:58:10]OFDProtocolAddRootSTLVToBuf [20:58:10]FM_MakeSignedData [20:58:10]FM_MakeSignedData [20:58:10]SAM_PROTO_SignData [20:58:10]wFMCommunicate request_size=4 [20:58:10]MH_SAM_APDU [20:58:10]CAPDU: 80 0D 01 02 [20:58:10]Write to MH i2c: E2 08 00 A3 40 80 0D 01 02 00 00 00 00 5C [20:58:10]Write i2c OK [20:58:10]MH_I2C_Read... [20:58:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:10]Read from MH i2c: E2 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 03 00 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 03 00 A3 40 00 90 00 57 [20:58:10]RAPDU: 90 00 [20:58:10]wFMCommunicate OK [20:58:10]wFMCommunicate request_size=255 [20:58:10]MH_SAM_APDU [20:58: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 64 A9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BB 39 02 00 35 04 06 00 24 [20:58:10]Write to MH i2c: E2 02 01 A4 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 64 A9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BB 39 02 00 35 04 06 00 24 00 00 CC [20:58:10]Write i2c OK [20:58:10]MH_I2C_Read... [20:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:10]Read from MH i2c: E2 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 03 00 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 03 00 A4 40 00 90 00 58 [20:58:10]RAPDU: 90 00 [20:58:10]wFMCommunicate OK [20:58:10]wFMCommunicate request_size=10 [20:58:10]MH_SAM_APDU [20:58:10]CAPDU: 80 0D 02 02 05 B6 BB CA 38 45 [20:58:10]Write to MH i2c: E2 0D 00 A5 40 80 0D 02 02 05 00 B6 BB CA 38 45 00 00 21 [20:58:10]Write i2c OK [20:58:10]MH_I2C_Read... [20:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:10]Read from MH i2c: E2 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 03 00 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 03 00 A5 40 00 90 00 59 [20:58:10]RAPDU: 90 00 [20:58:10]wFMCommunicate OK [20:58:10]wFMCommunicate request_size=4 [20:58:10]MH_SAM_APDU [20:58:10]CAPDU: 80 0D 03 02 [20:58:10]Write to MH i2c: E2 08 00 A6 40 80 0D 03 02 00 00 00 00 61 [20:58:10]Write i2c OK [20:58:10]MH_I2C_Read... [20:58:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:10]Read from MH i2c: E2 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 0B 00 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 0B 00 A6 40 00 98 4B EA 80 10 D5 68 B6 90 00 B2 [20:58:10]RAPDU: 98 4B EA 80 10 D5 68 B6 90 00 [20:58:10]wFMCommunicate OK [20:58:10]SAM_PROTO_SignData done [20:58:10]FM_MakeSignedData done [20:58:10]CreateOFDProtocolMessage [20:58:10]wFMCommunicate request_size=4 [20:58:10]MH_SAM_APDU [20:58:10]CAPDU: 80 11 00 00 [20:58:10]Write to MH i2c: E2 08 00 A7 40 80 11 00 00 00 00 00 00 61 [20:58:10]Write i2c OK [20:58:10]MH_I2C_Read... [20:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:10]Read from MH i2c: E2 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 17 00 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: E2 17 00 A7 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B4 [20:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:58:10]wFMCommunicate OK [20:58:10]CreateOFDProtocolMessage done [20:58:10]OFDSenderStorePacket 145851 [20:58:10]StoreOFDPacket docnum=145851 [20:58:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 73 71 07 01 98 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 64 A9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BB 39 02 00 35 04 06 00 24 B6 BB CA 38 45 98 4B EA 80 10 D5 68 B6 [20:58:10]CheckFolder [20:58:10]dirname=/storage/ofd_packets [20:58:10]CheckFolder done [20:58:10]ProducePacketName [20:58:10]name=ofd_packets/00145851 [20:58:10]NVStorageSaveData ofd_packets/00145851 [20:58:10]File name is /storage/ofd_packets/00145851 [20:58:10]Write 301 bytes [20:58:10]NVStorageSaveData done [20:58:10]OFDSenderStorePacket done [20:58:10]KKMCreateOFDPacket done [20:58:10]NVStorageSaveData kkm_last_timestamp [20:58:10]File name is /storage/kkm_last_timestamp [20:58:10]Write 4 bytes [20:58:10]NVStorageSaveData done [20:58:10]ExternCall_PrintAddStr [20:58:10]wPrintStart [20:58:10]Write to MH i2c: 01 00 00 A8 40 E8 [20:58:10]Write i2c OK [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: 01 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: 01 07 00 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: 01 07 00 A8 40 00 00 00 00 00 FF 0F FD [20:58:10]RasterBufferAndPrint [20:58:10]line Счет N : (1)160608 [20:58:10]line ИНН: 02508201610067 [20:58:10]line Контрольно-Кассовый Чек [20:58:10]line ПРОДАЖА [20:58:10]line ТРК (МРК, ГНК) : 42 [20:58:10]line Товар: 2710124130 [20:58:10]line Аи-92-К-2 [20:58:10]line 7.480 * 66.90 [20:58:10]line = 500.41 [20:58:10]line НДС 12% НСП 1% [20:58:10]line > о реализуемом товаре [20:58:10]line ОКРУГЛЕНИЕ: -0.41 [20:58:10]line ИТОГО: 500.00 [20:58:10]line Внесено: 500.00 [20:58:10]line СДАЧА: 0.00 [20:58:10]line НСП 1% : 4.43 [20:58:10]line НДС 12% : 53.14 [20:58:10]line Наличными: 500.00 [20:58:10]line Безнал.: 0.00 [20:58:10]line Место: АЗС № 126 "Партнер Нефть" [20:58:10]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [20:58:10]line СНО: Общий режим [20:58:10]line Чек 274 27.10.2024 20:58 [20:58:10]line Смена: 545 ФФД: 1.0 [20:58:10]line ЗНМ: 0300000085 [20:58:10]line РНМ: 0000000000091683 [20:58:10]line Версия ККМ: 001 [20:58:10]line ФМ: 0000000000871745 [20:58:10]line ФД: 145851 [20:58:10]line ФПД: 40367253239877 [20:58:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205812&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145851&fm=40367253239877&tin=02508201610067®Number=0000000000091683&sum=50000 [20:58:11]written 0, free lines is 4095 [20:58:11]OFD Sender: Processing packet 145851 [packets to send 206, broken 205] [20:58:11]ProducePacketName [20:58:11]name=ofd_packets/00145851 [20:58:11]OFD Sender: To server: pG, [20:58:11]CommunicateWithHost lk.salyk.kg:30040 [20:58:11]ConnectInit lk.salyk.kg [20:58:11]Connected sock=11 [20:58:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 73 71 07 01 98 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 64 A9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BB 39 02 00 35 04 06 00 24 B6 BB CA 38 45 98 4B EA 80 10 D5 68 B6 [20:58:11]Write to MH i2c: 01 00 00 D3 40 13 [20:58:11]Write i2c OK [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: 01 [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: 01 07 00 [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: 01 07 00 D3 40 00 00 00 00 00 9D 0C C3 [20:58:11]RasterBufferAndPrint [20:58:11]line [20:58:11]line [20:58:11]line [20:58:11]line [20:58:11]line [20:58:11]written 0, free lines is 3234 [20:58:11]MH_Cut [20:58:11]Write to MH i2c: D1 01 00 DA 40 01 EC [20:58:11]Write i2c OK [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: D1 [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: D1 01 00 [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: D1 01 00 DA 40 00 EB [20:58:11]Write to MH i2c: 01 00 00 DB 40 1B [20:58:11]Write i2c OK [20:58:11]MH_I2C_Read... [20:58:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 CE 30 47 00 65 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 31 37 34 35 10 04 04 00 BB 39 02 00 F4 03 04 00 91 4E 1E 67 B6 04 01 00 00 F3 99 F9 1D 6B 39 91 EF [20:58:11]CommunicateWithHost err = 0 [20:58:11]CheckOFDResponse [20:58:11]1017 (14) - 77093643461234 [20:58:11]1041 (16) - 0000000000871745 [20:58:11]1040 (4) - 145851 [20:58:11]1012 (4) - 27.10.2024 14:30 [20:58:11]1206 (1) - 0 [20:58:11]OFD Sender: Remove packet 145851 [20:58:11]ProducePacketName [20:58:11]name=ofd_packets/00145851 [20:58:11]NVStorageDeleteData [20:58:12]OFD Sender: No OFD packet to send [20:58:12]*** Cut start [20:58:12]*** Partial cut [20:58:12]*** CUTSNS_PIN = 1 [20:58:12]*** CUTSNS_PIN = 0 [20:58:12]*** Brake cut motor [20:58:13]Read from MH i2c: 01 [20:58:13]MH_I2C_Read... [20:58:13]*** Stop cut motor [20:58:13]*** Cut end [20:58:13]Read from MH i2c: 01 07 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 07 00 DB 40 00 00 00 00 00 FF 0F 30 [20:58:13]process_action close_receipt done [20:58:13]requested_data is exist [20:58:13]produce_requested_data [20:58:13]requested_item fm.sn is exist - process it [20:58:13]wFMCommunicate request_size=4 [20:58:13]MH_SAM_APDU [20:58:13]CAPDU: 80 11 00 00 [20:58:13]Write to MH i2c: E2 08 00 DC 40 80 11 00 00 00 00 00 00 96 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:13]Read from MH i2c: E2 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 17 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 17 00 DC 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E9 [20:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [20:58:13]wFMCommunicate OK [20:58:13]requested_item fd.num is exist - process it [20:58:13]SAM_PROTO_GetFieldsCounters [20:58:13]wFMCommunicate request_size=4 [20:58:13]MH_SAM_APDU [20:58:13]CAPDU: 80 13 00 00 [20:58:13]Write to MH i2c: E2 08 00 DD 40 80 13 00 00 00 00 00 00 99 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:13]Read from MH i2c: E2 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 62 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 62 00 DD 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BB 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [20:58:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BB 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:13]wFMCommunicate OK [20:58:13]SAM_PROTO_GetFieldsCounters done [20:58:13]requested_item shift.num is exist - process it [20:58:13]requested_item shift.opened is exist - process it [20:58:13]req_shift_opened [20:58:13]FM_GetShiftState [20:58:13]SAM_PROTO_GetShiftState [20:58:13]wFMCommunicate request_size=4 [20:58:13]MH_SAM_APDU [20:58:13]CAPDU: 80 13 01 00 [20:58:13]Write to MH i2c: E2 08 00 DE 40 80 13 01 00 00 00 00 00 9B [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:13]Read from MH i2c: E2 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 0E 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 0E 00 DE 40 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 13 [20:58:13]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [20:58:13]wFMCommunicate OK [20:58:13]SAM_PROTO_GetShiftState done [20:58:13]FM_GetShiftState done [20:58:13]req_shift_opened done [20:58:13]requested_item shift.open_date is exist - process it [20:58:13]req_shift_open_date [20:58:13]req_shift_open_date done [20:58:13]produce_requested_data done [20:58:13]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145851,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [20:58:13]process_action_free close_receipt [20:58:13]json_value_free [20:58:13]json_value_free done [20:58:13]process_json_proto returns [20:58:13]Send response to host [20:58:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145851,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [20:58:13]free response buf [20:58:13]execute_script done [20:58:13]execute_script returns [20:58:13]free content buf [20:58:13]Sock 9.Close socket [20:58:13]Sock 9.Thread stoped [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:53]int [21:09:53]Write to MH i2c: 01 00 00 DF 40 1F [21:09:53]*** FLAG_PRN_KEY set [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: 01 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: 01 07 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: 01 07 00 DF 40 00 08 00 00 00 FF 0F 3C [21:09:53]state=0 [21:09:53]Key pressed [21:09:53]Feed [21:09:53]Write to MH i2c: D8 00 00 E0 40 F7 [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: D8 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: D8 01 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: D8 01 00 E0 40 00 F8 [21:09:53]int [21:09:53]Write to MH i2c: 01 00 00 E1 40 21 [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: 01 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: 01 07 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: 01 07 00 E1 40 00 48 00 00 00 3C 00 AC [21:09:53]state=2 [21:09:53]Key pressed [21:09:54]int [21:09:54]Write to MH i2c: 01 00 00 E2 40 22 [21:09:54]*** FLAG_PRN_KEY reset [21:09:54]Write i2c OK [21:09:54]MH_I2C_Read... [21:09:54]Read from MH i2c: 01 [21:09:54]MH_I2C_Read... [21:09:54]Read from MH i2c: 01 07 00 [21:09:54]MH_I2C_Read... [21:09:54]Read from MH i2c: 01 07 00 E2 40 00 00 00 00 00 FB 0F 33 [21:09:54]state=2 [21:09:54]Stop feed [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:08]int [21:10:08]Write to MH i2c: 01 00 00 E3 40 23 [21:10:08]Write i2c OK [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: 01 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: 01 07 00 [21:10:08]MH_I2C_Read... [21:10:08]*** FLAG_PRN_PAP1 set [21:10:08]*** FLAG_PRN_PAP1 reset [21:10:08]Read from MH i2c: 01 07 00 E3 40 00 00 00 00 00 FF 0F 38 [21:10:08]state=0 [21:10:08]int [21:10:08]Write to MH i2c: 01 00 00 E4 40 24 [21:10:08]*** FLAG_PRN_PAP1 set [21:10:08]Write i2c OK [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: 01 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: 01 07 00 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: 01 07 00 E4 40 00 01 00 00 00 FF 0F 3A [21:10:08]state=0 [21:10:08]No paper [21:10:08]int [21:10:08]Write to MH i2c: 01 00 00 E5 40 25 [21:10:08]*** FLAG_PRN_PAP2 set [21:10:08]Write i2c OK [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: 01 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: 01 07 00 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: 01 07 00 E5 40 00 03 00 00 00 FF 0F 3D [21:10:08]state=0 [21:10:08]No paper [21:10:08]Cover opened [21:10:12]int [21:10:12]Write to MH i2c: 01 00 00 E6 40 26 [21:10:12]*** FLAG_PRN_PAP1 reset [21:10:12]Write i2c OK [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: 01 [21:10:12]MH_I2C_Read... [21:10:12]*** FLAG_PRN_PAP2 reset [21:10:12]Read from MH i2c: 01 07 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: 01 07 00 E6 40 00 00 00 00 00 FF 0F 3B [21:10:12]state=3 [21:10:12]Cover closed [21:10:13]OFD Sender: No OFD packet to send [21:10:13]int [21:10:13]Write to MH i2c: 01 00 00 E7 40 27 [21:10:13]*** FLAG_PRN_KEY set [21:10:13]Write i2c OK [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: 01 [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: 01 07 00 [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: 01 07 00 E7 40 00 08 00 00 00 FF 0F 44 [21:10:13]state=0 [21:10:13]Key pressed [21:10:13]Feed [21:10:13]Write to MH i2c: D8 00 00 E8 40 FF [21:10:13]Write i2c OK [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: D8 [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: D8 01 00 [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: D8 01 00 E8 40 00 00 [21:10:13]int [21:10:13]Write to MH i2c: 01 00 00 E9 40 29 [21:10:13]Write i2c OK [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: 01 [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: 01 07 00 [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: 01 07 00 E9 40 00 48 00 00 00 3D 00 B5 [21:10:13]state=2 [21:10:13]Key pressed [21:10:13]int [21:10:13]Write to MH i2c: 01 00 00 EA 40 2A [21:10:13]*** FLAG_PRN_KEY reset [21:10:13]Write i2c OK [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: 01 [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: 01 07 00 [21:10:13]MH_I2C_Read... [21:10:13]Read from MH i2c: 01 07 00 EA 40 00 00 00 00 00 FF 0F 3F [21:10:13]state=2 [21:10:13]Stop feed [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]accept exits with 7 [21:11:23]New connection [21:11:23]New thread 3066740068 created [21:11:23]Thread 3066596708 joined [21:11:23]Waiting for new connection... [21:11:23] Sock 7.Parse request [21:11:23]Sock 7.Check first char [21:11:23]Sock 7.First char is OK [21:11:23]request: POST /json_proto HTTP/1.0 [21:11:23]Method: POST [21:11:23]URL: /json_proto [21:11:23]Method is POST - this is cgi request [21:11:23]url: /json_proto [21:11:23]query_string will be loaded in cgi processing [21:11:23]execute_cgi json_proto POST (null) [21:11:23]execute_cgi path=json_proto method=POST [21:11:23]POST find Content-Length [21:11:23]Host: 172.17.40.195:8080 [21:11:23]Content-Length: 677 [21:11:23]Content-Type: application/json [21:11:23] [21:11:23]POST finish read [21:11:23]Found Content-Length = 677 [21:11:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.940, "sum" : 330.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:23]execute_script... [21:11: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)160609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.940, "sum" : 330.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:23]POST & json_proto [21:11:23]process_json_proto [21:11:23]json parsed OK: [21:11:23]protocol is kg_v1.0 [21:11:23]action value=close_receipt [21:11:23]process_action close_receipt [21:11:23]cmd_close_receipt [21:11:23]MH_GetDate [21:11:23]Write to MH i2c: F0 00 00 EB 40 1A [21:11:23]Write i2c OK [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: F0 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: F0 09 00 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: F0 09 00 EB 40 00 7E AC 1E 67 D5 8D 6C 64 04 [21:11:23]GetLastDocTimeStamp 1730062692 [21:11:23]current date 1730063486 [21:11:23]FM_GetShiftState [21:11:23]SAM_PROTO_GetShiftState [21:11:23]wFMCommunicate request_size=4 [21:11:23]MH_SAM_APDU [21:11:23]CAPDU: 80 13 01 00 [21:11:23]Write to MH i2c: E2 08 00 EC 40 80 13 01 00 00 00 00 00 A9 [21:11:23]Write i2c OK [21:11:23]MH_I2C_Read... [21:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:23]Read from MH i2c: E2 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: E2 0E 00 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: E2 0E 00 EC 40 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 21 [21:11:23]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:11:23]wFMCommunicate OK [21:11:23]SAM_PROTO_GetShiftState done [21:11:23]FM_GetShiftState done [21:11:23]opened in 1729988959 [21:11:23]opened+sec_in_day 1730075359 [21:11:23]quantity*price = 33048 [21:11:23]sum+1 = 33050 [21:11:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.10 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 275 27.10.2024 21:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145852 ФПД: 254170186851967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211126&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145852&fm=254170186851967&tin=02508201610067®Number=0000000000091683&sum=33000 [21:11:24]StoreToDocumentArchive [21:11:24]shift 545 fd 145852 [21:11:24]save to /storage/0545/doc_00145852 [21:11:24]save last doc name /storage/0545/doc_00145852 to /storage/kkm_last_doc_name [21:11:24]save OK [21:11:24]Clear old archive folders... [21:11:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:11:24]tlvbuf is 004370E0 [21:11:24]SAM_PROTO_ClearQueue [21:11:24]wFMCommunicate request_size=4 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 09 00 00 [21:11:24]Write to MH i2c: E2 08 00 F9 40 80 09 00 00 00 00 00 00 AB [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 F9 40 00 90 00 AD [21:11:24]RAPDU: 90 00 [21:11:24]wFMCommunicate OK [21:11:24]SAM_PROTO_ClearQueue done [21:11:24]KKMCreateOFDPacket [21:11:24]OFDProtocolAddRootSTLVToBuf [21:11:24]FM_MakeSignedData [21:11:24]FM_MakeSignedData [21:11:24]SAM_PROTO_SignData [21:11:24]wFMCommunicate request_size=4 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 0D 01 02 [21:11:24]Write to MH i2c: E2 08 00 FA 40 80 0D 01 02 00 00 00 00 B3 [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 FA 40 00 90 00 AE [21:11:24]RAPDU: 90 00 [21:11:24]wFMCommunicate OK [21:11:24]wFMCommunicate request_size=255 [21:11:24]MH_SAM_APDU [21:11: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 32 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 7E AC 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BC 39 02 00 35 04 06 00 E7 [21:11:24]Write to MH i2c: E2 02 01 FB 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 32 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 7E AC 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BC 39 02 00 35 04 06 00 E7 00 00 6D [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 FB 40 00 90 00 AF [21:11:24]RAPDU: 90 00 [21:11:24]wFMCommunicate OK [21:11:24]wFMCommunicate request_size=10 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 0D 02 02 05 2A 9B B3 26 7F [21:11:24]Write to MH i2c: E2 0D 00 FC 40 80 0D 02 02 05 00 2A 9B B3 26 7F 00 00 DD [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:25]Read from MH i2c: E2 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: E2 03 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: E2 03 00 FC 40 00 90 00 B0 [21:11:25]RAPDU: 90 00 [21:11:25]wFMCommunicate OK [21:11:25]wFMCommunicate request_size=4 [21:11:25]MH_SAM_APDU [21:11:25]CAPDU: 80 0D 03 02 [21:11:25]Write to MH i2c: E2 08 00 FD 40 80 0D 03 02 00 00 00 00 B8 [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:25]Read from MH i2c: E2 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: E2 0B 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: E2 0B 00 FD 40 00 A6 AB 85 34 59 14 34 85 90 00 E9 [21:11:25]RAPDU: A6 AB 85 34 59 14 34 85 90 00 [21:11:25]wFMCommunicate OK [21:11:25]SAM_PROTO_SignData done [21:11:25]FM_MakeSignedData done [21:11:25]CreateOFDProtocolMessage [21:11:25]wFMCommunicate request_size=4 [21:11:25]MH_SAM_APDU [21:11:25]CAPDU: 80 11 00 00 [21:11:25]Write to MH i2c: E2 08 00 FE 40 80 11 00 00 00 00 00 00 B8 [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:25]Read from MH i2c: E2 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: E2 17 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: E2 17 00 FE 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0B [21:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:11:25]wFMCommunicate OK [21:11:25]CreateOFDProtocolMessage done [21:11:25]OFDSenderStorePacket 145852 [21:11:25]StoreOFDPacket docnum=145852 [21:11:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E7 29 07 01 57 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 7E AC 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BC 39 02 00 35 04 06 00 E7 2A 9B B3 26 7F A6 AB 85 34 59 14 34 85 [21:11:25]CheckFolder [21:11:25]dirname=/storage/ofd_packets [21:11:25]CheckFolder done [21:11:25]ProducePacketName [21:11:25]name=ofd_packets/00145852 [21:11:25]NVStorageSaveData ofd_packets/00145852 [21:11:25]File name is /storage/ofd_packets/00145852 [21:11:25]Write 301 bytes [21:11:25]NVStorageSaveData done [21:11:25]OFDSenderStorePacket done [21:11:25]KKMCreateOFDPacket done [21:11:25]NVStorageSaveData kkm_last_timestamp [21:11:25]File name is /storage/kkm_last_timestamp [21:11:25]Write 4 bytes [21:11:25]NVStorageSaveData done [21:11:25]ExternCall_PrintAddStr [21:11:25]wPrintStart [21:11:25]Write to MH i2c: 01 00 00 FF 40 3F [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: 01 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: 01 07 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: 01 07 00 FF 40 00 00 00 00 00 FF 0F 54 [21:11:25]RasterBufferAndPrint [21:11:25]line Счет N : (1)160609 [21:11:25]line ИНН: 02508201610067 [21:11:25]line Контрольно-Кассовый Чек [21:11:25]line ПРОДАЖА [21:11:25]line ТРК (МРК, ГНК) : 52 [21:11:25]line Товар: 2710124130 [21:11:25]line Аи-92-К-2 [21:11:25]line 4.940 * 66.90 [21:11:25]line = 330.49 [21:11:25]line НДС 12% НСП 1% [21:11:25]line > о реализуемом товаре [21:11:25]line ОКРУГЛЕНИЕ: -0.49 [21:11:25]line ИТОГО: 330.00 [21:11:25]line Внесено: 330.00 [21:11:25]line СДАЧА: 0.00 [21:11:25]line НСП 1% : 2.92 [21:11:25]line НДС 12% : 35.10 [21:11:25]line Наличными: 330.00 [21:11:25]line Безнал.: 0.00 [21:11:25]line Место: АЗС № 126 "Партнер Нефть" [21:11:25]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [21:11:25]line СНО: Общий режим [21:11:25]line Чек 275 27.10.2024 21:11 [21:11:25]line Смена: 545 ФФД: 1.0 [21:11:25]line ЗНМ: 0300000085 [21:11:25]line РНМ: 0000000000091683 [21:11:25]line Версия ККМ: 001 [21:11:25]line ФМ: 0000000000871745 [21:11:25]line ФД: 145852 [21:11:25]line ФПД: 254170186851967 [21:11:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211126&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145852&fm=254170186851967&tin=02508201610067®Number=0000000000091683&sum=33000 [21:11:25]OFD Sender: Processing packet 145852 [packets to send 206, broken 205] [21:11:25]ProducePacketName [21:11:25]name=ofd_packets/00145852 [21:11:25]OFD Sender: To server: pG, [21:11:25]CommunicateWithHost lk.salyk.kg:30040 [21:11:25]ConnectInit lk.salyk.kg [21:11:25]written 0, free lines is 4095 [21:11:25]Connected sock=9 [21:11:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 E7 29 07 01 57 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 7E AC 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BC 39 02 00 35 04 06 00 E7 2A 9B B3 26 7F A6 AB 85 34 59 14 34 85 [21:11:25]Write to MH i2c: 01 00 00 2A 41 6B [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: 01 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: 01 07 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: 01 07 00 2A 41 00 00 00 00 00 B7 0C 35 [21:11:25]RasterBufferAndPrint [21:11:25]line [21:11:25]line [21:11:25]line [21:11:25]line [21:11:25]line [21:11:25]written 0, free lines is 3263 [21:11:25]MH_Cut [21:11:25]Write to MH i2c: D1 01 00 31 41 01 44 [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: D1 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: D1 01 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: D1 01 00 31 41 00 43 [21:11:25]Write to MH i2c: 01 00 00 32 41 73 [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 5B 7E 47 00 1E AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BC 39 02 00 F4 03 04 00 AB 51 1E 67 B6 04 01 00 00 4F 49 D0 C9 7B FB 0E D2 [21:11:26]CommunicateWithHost err = 0 [21:11:26]CheckOFDResponse [21:11:26]1017 (14) - 77093643461234 [21:11:26]1041 (16) - 0000000000871745 [21:11:26]1040 (4) - 145852 [21:11:26]1012 (4) - 27.10.2024 14:43 [21:11:26]1206 (1) - 0 [21:11:26]OFD Sender: Remove packet 145852 [21:11:26]ProducePacketName [21:11:26]name=ofd_packets/00145852 [21:11:26]NVStorageDeleteData [21:11:26]OFD Sender: No OFD packet to send [21:11:26]*** Cut start [21:11:26]*** Partial cut [21:11:26]*** CUTSNS_PIN = 1 [21:11:26]*** CUTSNS_PIN = 0 [21:11:26]*** Brake cut motor [21:11:27]Read from MH i2c: 01 [21:11:27]MH_I2C_Read... [21:11:27]*** Stop cut motor [21:11:27]*** Cut end [21:11:27]Read from MH i2c: 01 07 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: 01 07 00 32 41 00 00 00 00 00 FF 0F 88 [21:11:27]process_action close_receipt done [21:11:27]requested_data is exist [21:11:27]produce_requested_data [21:11:27]requested_item fm.sn is exist - process it [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 11 00 00 [21:11:27]Write to MH i2c: E2 08 00 33 41 80 11 00 00 00 00 00 00 EE [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 17 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 17 00 33 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 41 [21:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:11:27]wFMCommunicate OK [21:11:27]requested_item fd.num is exist - process it [21:11:27]SAM_PROTO_GetFieldsCounters [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 13 00 00 [21:11:27]Write to MH i2c: E2 08 00 34 41 80 13 00 00 00 00 00 00 F1 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 62 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 62 00 34 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BC 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [21:11:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BC 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:27]wFMCommunicate OK [21:11:27]SAM_PROTO_GetFieldsCounters done [21:11:27]requested_item shift.num is exist - process it [21:11:27]requested_item shift.opened is exist - process it [21:11:27]req_shift_opened [21:11:27]FM_GetShiftState [21:11:27]SAM_PROTO_GetShiftState [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 13 01 00 [21:11:27]Write to MH i2c: E2 08 00 35 41 80 13 01 00 00 00 00 00 F3 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 0E 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 0E 00 35 41 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6B [21:11:27]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:11:27]wFMCommunicate OK [21:11:27]SAM_PROTO_GetShiftState done [21:11:27]FM_GetShiftState done [21:11:27]req_shift_opened done [21:11:27]requested_item shift.open_date is exist - process it [21:11:27]req_shift_open_date [21:11:27]req_shift_open_date done [21:11:27]produce_requested_data done [21:11:27]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145852,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [21:11:27]process_action_free close_receipt [21:11:27]json_value_free [21:11:27]json_value_free done [21:11:27]process_json_proto returns [21:11:27]Send response to host [21:11:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145852,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [21:11:27]free response buf [21:11:27]execute_script done [21:11:27]execute_script returns [21:11:27]free content buf [21:11:27]Sock 7.Close socket [21:11:27]Sock 7.Thread stoped [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:14]accept exits with 10 [21:16:14]New connection [21:16:14]New thread 3066596708 created [21:16:14]Thread 3066740068 joined [21:16:14]Waiting for new connection... [21:16:14] Sock 10.Parse request [21:16:14]Sock 10.Check first char [21:16:14]Sock 10.First char is OK [21:16:14]request: POST /json_proto HTTP/1.0 [21:16:14]Method: POST [21:16:14]URL: /json_proto [21:16:14]Method is POST - this is cgi request [21:16:14]url: /json_proto [21:16:14]query_string will be loaded in cgi processing [21:16:14]execute_cgi json_proto POST (null) [21:16:14]execute_cgi path=json_proto method=POST [21:16:14]POST find Content-Length [21:16:14]Host: 172.17.40.195:8080 [21:16:14]Content-Length: 767 [21:16:14]Content-Type: application/json [21:16:14] [21:16:14]POST finish read [21:16:14]Found Content-Length = 767 [21:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:14]execute_script... [21:16:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:14]POST & json_proto [21:16:14]process_json_proto [21:16:14]json parsed OK: [21:16:14]protocol is kg_v1.0 [21:16:14]action value=close_receipt [21:16:14]process_action close_receipt [21:16:14]cmd_close_receipt [21:16:14]MH_GetDate [21:16:14]Write to MH i2c: F0 00 00 36 41 66 [21:16:14]Write i2c OK [21:16:14]MH_I2C_Read... [21:16:14]Read from MH i2c: F0 [21:16:14]MH_I2C_Read... [21:16:14]Read from MH i2c: F0 09 00 [21:16:14]MH_I2C_Read... [21:16:14]Read from MH i2c: F0 09 00 36 41 00 A1 AD 1E 67 D5 8D 6C 64 74 [21:16:14]GetLastDocTimeStamp 1730063486 [21:16:14]current date 1730063777 [21:16:14]FM_GetShiftState [21:16:14]SAM_PROTO_GetShiftState [21:16:14]wFMCommunicate request_size=4 [21:16:14]MH_SAM_APDU [21:16:14]CAPDU: 80 13 01 00 [21:16:14]Write to MH i2c: E2 08 00 37 41 80 13 01 00 00 00 00 00 F5 [21:16:14]Write i2c OK [21:16:14]MH_I2C_Read... [21:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:14]Read from MH i2c: E2 [21:16:14]MH_I2C_Read... [21:16:14]Read from MH i2c: E2 0E 00 [21:16:14]MH_I2C_Read... [21:16:14]Read from MH i2c: E2 0E 00 37 41 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6D [21:16:14]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:16:14]wFMCommunicate OK [21:16:14]SAM_PROTO_GetShiftState done [21:16:14]FM_GetShiftState done [21:16:14]opened in 1729988959 [21:16:14]opened+sec_in_day 1730075359 [21:16:14]quantity*price = 80012 [21:16:14]sum+1 = 80013 [21:16:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 276 27.10.2024 21:16 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145853 ФПД: 244470076909012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211617&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145853&fm=244470076909012&tin=02508201610067®Number=0000000000091683&sum=80012 [21:16:15]StoreToDocumentArchive [21:16:15]shift 545 fd 145853 [21:16:15]save to /storage/0545/doc_00145853 [21:16:15]save last doc name /storage/0545/doc_00145853 to /storage/kkm_last_doc_name [21:16:15]save OK [21:16:15]Clear old archive folders... [21:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:15]tlvbuf is 004E2AB0 [21:16:15]SAM_PROTO_ClearQueue [21:16:15]wFMCommunicate request_size=4 [21:16:15]MH_SAM_APDU [21:16:15]CAPDU: 80 09 00 00 [21:16:15]Write to MH i2c: E2 08 00 44 41 80 09 00 00 00 00 00 00 F7 [21:16:15]Write i2c OK [21:16:15]MH_I2C_Read... [21:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:15]Read from MH i2c: E2 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 44 41 00 90 00 F9 [21:16:15]RAPDU: 90 00 [21:16:15]wFMCommunicate OK [21:16:15]SAM_PROTO_ClearQueue done [21:16:15]KKMCreateOFDPacket [21:16:15]OFDProtocolAddRootSTLVToBuf [21:16:15]FM_MakeSignedData [21:16:15]FM_MakeSignedData [21:16:15]SAM_PROTO_SignData [21:16:15]wFMCommunicate request_size=4 [21:16:15]MH_SAM_APDU [21:16:15]CAPDU: 80 0D 01 02 [21:16:15]Write to MH i2c: E2 08 00 45 41 80 0D 01 02 00 00 00 00 FF [21:16:15]Write i2c OK [21:16:15]MH_I2C_Read... [21:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:15]Read from MH i2c: E2 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 45 41 00 90 00 FA [21:16:15]RAPDU: 90 00 [21:16:15]wFMCommunicate OK [21:16:15]wFMCommunicate request_size=255 [21:16:15]MH_SAM_APDU [21:16:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 A1 AD 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BD 39 02 00 35 04 06 00 DE [21:16:15]Write to MH i2c: E2 02 01 46 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 A1 AD 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BD 39 02 00 35 04 06 00 DE 00 00 72 [21:16:15]Write i2c OK [21:16:15]MH_I2C_Read... [21:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:15]Read from MH i2c: E2 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 46 41 00 90 00 FB [21:16:15]RAPDU: 90 00 [21:16:15]wFMCommunicate OK [21:16:15]wFMCommunicate request_size=10 [21:16:15]MH_SAM_APDU [21:16:15]CAPDU: 80 0D 02 02 05 58 20 17 A5 D4 [21:16:15]Write to MH i2c: E2 0D 00 47 41 80 0D 02 02 05 00 58 20 17 A5 D4 00 00 14 [21:16:15]Write i2c OK [21:16:15]MH_I2C_Read... [21:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:15]Read from MH i2c: E2 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 47 41 00 90 00 FC [21:16:15]RAPDU: 90 00 [21:16:15]wFMCommunicate OK [21:16:15]wFMCommunicate request_size=4 [21:16:15]MH_SAM_APDU [21:16:15]CAPDU: 80 0D 03 02 [21:16:15]Write to MH i2c: E2 08 00 48 41 80 0D 03 02 00 00 00 00 04 [21:16:15]Write i2c OK [21:16:15]MH_I2C_Read... [21:16:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:16]Read from MH i2c: E2 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: E2 0B 00 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: E2 0B 00 48 41 00 39 41 F7 EA A9 E4 21 81 90 00 8F [21:16:16]RAPDU: 39 41 F7 EA A9 E4 21 81 90 00 [21:16:16]wFMCommunicate OK [21:16:16]SAM_PROTO_SignData done [21:16:16]FM_MakeSignedData done [21:16:16]CreateOFDProtocolMessage [21:16:16]wFMCommunicate request_size=4 [21:16:16]MH_SAM_APDU [21:16:16]CAPDU: 80 11 00 00 [21:16:16]Write to MH i2c: E2 08 00 49 41 80 11 00 00 00 00 00 00 04 [21:16:16]Write i2c OK [21:16:16]MH_I2C_Read... [21:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:16]Read from MH i2c: E2 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: E2 17 00 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: E2 17 00 49 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 57 [21:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:16:16]wFMCommunicate OK [21:16:16]CreateOFDProtocolMessage done [21:16:16]OFDSenderStorePacket 145853 [21:16:16]StoreOFDPacket docnum=145853 [21:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9D 03 07 01 0E 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 A1 AD 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BD 39 02 00 35 04 06 00 DE 58 20 17 A5 D4 39 41 F7 EA A9 E4 21 81 [21:16:16]CheckFolder [21:16:16]dirname=/storage/ofd_packets [21:16:16]CheckFolder done [21:16:16]ProducePacketName [21:16:16]name=ofd_packets/00145853 [21:16:16]NVStorageSaveData ofd_packets/00145853 [21:16:16]File name is /storage/ofd_packets/00145853 [21:16:16]Write 301 bytes [21:16:16]NVStorageSaveData done [21:16:16]OFDSenderStorePacket done [21:16:16]KKMCreateOFDPacket done [21:16:16]NVStorageSaveData kkm_last_timestamp [21:16:16]File name is /storage/kkm_last_timestamp [21:16:16]Write 4 bytes [21:16:16]NVStorageSaveData done [21:16:16]ExternCall_PrintAddStr [21:16:16]wPrintStart [21:16:16]Write to MH i2c: 01 00 00 4A 41 8B [21:16:16]Write i2c OK [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: 01 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: 01 07 00 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: 01 07 00 4A 41 00 00 00 00 00 FF 0F A0 [21:16:16]RasterBufferAndPrint [21:16:16]line Счет N : (1)160610 [21:16:16]line ИНН: 02508201610067 [21:16:16]line Контрольно-Кассовый Чек [21:16:16]line ПРОДАЖА [21:16:16]line ТРК (МРК, ГНК) : 52 [21:16:16]line Товар: 2710124130 [21:16:16]line Аи-92-К-2 [21:16:16]line 11.960 * 66.90 [21:16:16]line = 800.12 [21:16:16]line НДС 12% НСП 1% [21:16:16]line > о реализуемом товаре [21:16:16]line ИТОГО: 800.12 [21:16:16]line НСП 1% : 7.08 [21:16:16]line НДС 12% : 84.97 [21:16:16]line Наличными: 0.00 [21:16:16]line Безнал.: 800.12 [21:16:16]line Место: АЗС № 126 "Партнер Нефть" [21:16:16]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [21:16:16]line СНО: Общий режим [21:16:16]line Чек 276 27.10.2024 21:16 [21:16:16]line Смена: 545 ФФД: 1.0 [21:16:16]line ЗНМ: 0300000085 [21:16:16]line РНМ: 0000000000091683 [21:16:16]line Версия ККМ: 001 [21:16:16]line Платежная система: Mbank [21:16:16]line ФМ: 0000000000871745 [21:16:16]line ФД: 145853 [21:16:16]line ФПД: 244470076909012 [21:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211617&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145853&fm=244470076909012&tin=02508201610067®Number=0000000000091683&sum=80012 [21:16:16]written 0, free lines is 4095 [21:16:16]OFD Sender: Processing packet 145853 [packets to send 206, broken 205] [21:16:16]ProducePacketName [21:16:16]name=ofd_packets/00145853 [21:16:16]OFD Sender: To server: pG, [21:16:16]CommunicateWithHost lk.salyk.kg:30040 [21:16:16]ConnectInit lk.salyk.kg [21:16:16]Connected sock=9 [21:16:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 9D 03 07 01 0E 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 A1 AD 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BD 39 02 00 35 04 06 00 DE 58 20 17 A5 D4 39 41 F7 EA A9 E4 21 81 [21:16:16]Write to MH i2c: 01 00 00 73 41 B4 [21:16:16]Write i2c OK [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: 01 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: 01 07 00 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: 01 07 00 73 41 00 00 00 00 00 D3 0C 9A [21:16:16]RasterBufferAndPrint [21:16:16]line [21:16:16]line [21:16:16]line [21:16:16]line [21:16:16]line [21:16:16]written 0, free lines is 3289 [21:16:16]MH_Cut [21:16:16]Write to MH i2c: D1 01 00 7A 41 01 8D [21:16:16]Write i2c OK [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: D1 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: D1 01 00 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: D1 01 00 7A 41 00 8C [21:16:16]Write to MH i2c: 01 00 00 7B 41 BC [21:16:16]Write i2c OK [21:16:16]MH_I2C_Read... [21:16:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 01 E4 47 00 95 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BD 39 02 00 F4 03 04 00 CE 52 1E 67 B6 04 01 00 00 E2 80 C9 38 C3 71 97 2C [21:16:16]CommunicateWithHost err = 0 [21:16:16]CheckOFDResponse [21:16:16]1017 (14) - 77093643461234 [21:16:16]1041 (16) - 0000000000871745 [21:16:16]1040 (4) - 145853 [21:16:16]1012 (4) - 27.10.2024 14:48 [21:16:16]1206 (1) - 0 [21:16:16]OFD Sender: Remove packet 145853 [21:16:16]ProducePacketName [21:16:16]name=ofd_packets/00145853 [21:16:16]NVStorageDeleteData [21:16:17]OFD Sender: No OFD packet to send [21:16:17]*** Cut start [21:16:17]*** Partial cut [21:16:17]*** CUTSNS_PIN = 1 [21:16:17]*** CUTSNS_PIN = 0 [21:16:17]*** Brake cut motor [21:16:17]Read from MH i2c: 01 [21:16:17]MH_I2C_Read... [21:16:17]*** Stop cut motor [21:16:17]*** Cut end [21:16:17]Read from MH i2c: 01 07 00 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: 01 07 00 7B 41 00 00 00 00 00 FF 0F D1 [21:16:17]process_action close_receipt done [21:16:17]requested_data is exist [21:16:17]produce_requested_data [21:16:17]requested_item fm.sn is exist - process it [21:16:17]wFMCommunicate request_size=4 [21:16:17]MH_SAM_APDU [21:16:17]CAPDU: 80 11 00 00 [21:16:17]Write to MH i2c: E2 08 00 7C 41 80 11 00 00 00 00 00 00 37 [21:16:17]Write i2c OK [21:16:17]MH_I2C_Read... [21:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:17]Read from MH i2c: E2 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: E2 17 00 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: E2 17 00 7C 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 8A [21:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:16:17]wFMCommunicate OK [21:16:17]requested_item fd.num is exist - process it [21:16:17]SAM_PROTO_GetFieldsCounters [21:16:17]wFMCommunicate request_size=4 [21:16:17]MH_SAM_APDU [21:16:17]CAPDU: 80 13 00 00 [21:16:17]Write to MH i2c: E2 08 00 7D 41 80 13 00 00 00 00 00 00 3A [21:16:17]Write i2c OK [21:16:17]MH_I2C_Read... [21:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:18]Read from MH i2c: E2 [21:16:18]MH_I2C_Read... [21:16:18]Read from MH i2c: E2 62 00 [21:16:18]MH_I2C_Read... [21:16:18]Read from MH i2c: E2 62 00 7D 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BD 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [21:16:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BD 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:18]wFMCommunicate OK [21:16:18]SAM_PROTO_GetFieldsCounters done [21:16:18]requested_item shift.num is exist - process it [21:16:18]requested_item shift.opened is exist - process it [21:16:18]req_shift_opened [21:16:18]FM_GetShiftState [21:16:18]SAM_PROTO_GetShiftState [21:16:18]wFMCommunicate request_size=4 [21:16:18]MH_SAM_APDU [21:16:18]CAPDU: 80 13 01 00 [21:16:18]Write to MH i2c: E2 08 00 7E 41 80 13 01 00 00 00 00 00 3C [21:16:18]Write i2c OK [21:16:18]MH_I2C_Read... [21:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:18]Read from MH i2c: E2 [21:16:18]MH_I2C_Read... [21:16:18]Read from MH i2c: E2 0E 00 [21:16:18]MH_I2C_Read... [21:16:18]Read from MH i2c: E2 0E 00 7E 41 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B4 [21:16:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:16:18]wFMCommunicate OK [21:16:18]SAM_PROTO_GetShiftState done [21:16:18]FM_GetShiftState done [21:16:18]req_shift_opened done [21:16:18]requested_item shift.open_date is exist - process it [21:16:18]req_shift_open_date [21:16:18]req_shift_open_date done [21:16:18]produce_requested_data done [21:16:18]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145853,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [21:16:18]process_action_free close_receipt [21:16:18]json_value_free [21:16:18]json_value_free done [21:16:18]process_json_proto returns [21:16:18]Send response to host [21:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145853,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [21:16:18]free response buf [21:16:18]execute_script done [21:16:18]execute_script returns [21:16:18]free content buf [21:16:18]Sock 10.Close socket [21:16:18]Sock 10.Thread stoped [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:36]accept exits with 7 [21:18:36]New connection [21:18:36]New thread 3066740068 created [21:18:36]Thread 3066596708 joined [21:18:36]Waiting for new connection... [21:18:36] Sock 7.Parse request [21:18:36]Sock 7.Check first char [21:18:36]Sock 7.First char is OK [21:18:36]request: POST /json_proto HTTP/1.0 [21:18:36]Method: POST [21:18:36]URL: /json_proto [21:18:36]Method is POST - this is cgi request [21:18:36]url: /json_proto [21:18:36]query_string will be loaded in cgi processing [21:18:36]execute_cgi json_proto POST (null) [21:18:36]execute_cgi path=json_proto method=POST [21:18:36]POST find Content-Length [21:18:36]Host: 172.17.40.195:8080 [21:18:36]Content-Length: 678 [21:18:36]Content-Type: application/json [21:18:36] [21:18:36]POST finish read [21:18:36]Found Content-Length = 678 [21:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:36]execute_script... [21: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)160611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:36]POST & json_proto [21:18:36]process_json_proto [21:18:36]json parsed OK: [21:18:36]protocol is kg_v1.0 [21:18:36]action value=close_receipt [21:18:36]process_action close_receipt [21:18:36]cmd_close_receipt [21:18:36]MH_GetDate [21:18:36]Write to MH i2c: F0 00 00 7F 41 AF [21:18:36]Write i2c OK [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: F0 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: F0 09 00 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: F0 09 00 7F 41 00 2F AE 1E 67 D5 8D 6C 64 4C [21:18:36]GetLastDocTimeStamp 1730063777 [21:18:36]current date 1730063919 [21:18:36]FM_GetShiftState [21:18:36]SAM_PROTO_GetShiftState [21:18:36]wFMCommunicate request_size=4 [21:18:36]MH_SAM_APDU [21:18:36]CAPDU: 80 13 01 00 [21:18:36]Write to MH i2c: E2 08 00 80 41 80 13 01 00 00 00 00 00 3E [21:18:36]Write i2c OK [21:18:36]MH_I2C_Read... [21:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:36]Read from MH i2c: E2 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: E2 0E 00 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: E2 0E 00 80 41 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 B6 [21:18:36]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:18:36]wFMCommunicate OK [21:18:36]SAM_PROTO_GetShiftState done [21:18:36]FM_GetShiftState done [21:18:36]opened in 1729988959 [21:18:36]opened+sec_in_day 1730075359 [21:18:36]quantity*price = 80061 [21:18:36]sum+1 = 80063 [21:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 277 27.10.2024 21:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145854 ФПД: 244054761398598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211839&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145854&fm=244054761398598&tin=02508201610067®Number=0000000000091683&sum=80000 [21:18:37]StoreToDocumentArchive [21:18:37]shift 545 fd 145854 [21:18:37]save to /storage/0545/doc_00145854 [21:18:37]save last doc name /storage/0545/doc_00145854 to /storage/kkm_last_doc_name [21:18:37]save OK [21:18:37]Clear old archive folders... [21:18:37]OFD Sender: No OFD packet to send [21:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:18:37]tlvbuf is B6EA6820 [21:18:37]SAM_PROTO_ClearQueue [21:18:37]wFMCommunicate request_size=4 [21:18:37]MH_SAM_APDU [21:18:37]CAPDU: 80 09 00 00 [21:18:37]Write to MH i2c: E2 08 00 8D 41 80 09 00 00 00 00 00 00 40 [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:37]Read from MH i2c: E2 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 03 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 03 00 8D 41 00 90 00 42 [21:18:37]RAPDU: 90 00 [21:18:37]wFMCommunicate OK [21:18:37]SAM_PROTO_ClearQueue done [21:18:37]KKMCreateOFDPacket [21:18:37]OFDProtocolAddRootSTLVToBuf [21:18:37]FM_MakeSignedData [21:18:37]FM_MakeSignedData [21:18:37]SAM_PROTO_SignData [21:18:37]wFMCommunicate request_size=4 [21:18:37]MH_SAM_APDU [21:18:37]CAPDU: 80 0D 01 02 [21:18:37]Write to MH i2c: E2 08 00 8E 41 80 0D 01 02 00 00 00 00 48 [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:37]Read from MH i2c: E2 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 03 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 03 00 8E 41 00 90 00 43 [21:18:37]RAPDU: 90 00 [21:18:37]wFMCommunicate OK [21:18:37]wFMCommunicate request_size=255 [21:18:37]MH_SAM_APDU [21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 15 01 00 00 F4 03 04 00 2F AE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BE 39 02 00 35 04 06 00 DD [21:18:37]Write to MH i2c: E2 02 01 8F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 15 01 00 00 F4 03 04 00 2F AE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BE 39 02 00 35 04 06 00 DD 00 00 B5 [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:37]Read from MH i2c: E2 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 03 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 03 00 8F 41 00 90 00 44 [21:18:37]RAPDU: 90 00 [21:18:37]wFMCommunicate OK [21:18:37]wFMCommunicate request_size=10 [21:18:37]MH_SAM_APDU [21:18:37]CAPDU: 80 0D 02 02 05 F7 6D 5B E1 46 [21:18:37]Write to MH i2c: E2 0D 00 90 41 80 0D 02 02 05 00 F7 6D 5B E1 46 00 00 3B [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:37]Read from MH i2c: E2 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 03 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 03 00 90 41 00 90 00 45 [21:18:37]RAPDU: 90 00 [21:18:37]wFMCommunicate OK [21:18:37]wFMCommunicate request_size=4 [21:18:37]MH_SAM_APDU [21:18:37]CAPDU: 80 0D 03 02 [21:18:37]Write to MH i2c: E2 08 00 91 41 80 0D 03 02 00 00 00 00 4D [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:37]Read from MH i2c: E2 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 0B 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 0B 00 91 41 00 61 92 00 2F 3F 74 D9 B2 90 00 AE [21:18:37]RAPDU: 61 92 00 2F 3F 74 D9 B2 90 00 [21:18:37]wFMCommunicate OK [21:18:37]SAM_PROTO_SignData done [21:18:37]FM_MakeSignedData done [21:18:37]CreateOFDProtocolMessage [21:18:37]wFMCommunicate request_size=4 [21:18:37]MH_SAM_APDU [21:18:37]CAPDU: 80 11 00 00 [21:18:37]Write to MH i2c: E2 08 00 92 41 80 11 00 00 00 00 00 00 4D [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:37]Read from MH i2c: E2 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 17 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 17 00 92 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 A0 [21:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:18:37]wFMCommunicate OK [21:18:37]CreateOFDProtocolMessage done [21:18:37]OFDSenderStorePacket 145854 [21:18:37]StoreOFDPacket docnum=145854 [21:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 F8 0A 07 01 52 4E 5A 03 01 00 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 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 15 01 00 00 F4 03 04 00 2F AE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BE 39 02 00 35 04 06 00 DD F7 6D 5B E1 46 61 92 00 2F 3F 74 D9 B2 [21:18:37]CheckFolder [21:18:37]dirname=/storage/ofd_packets [21:18:37]CheckFolder done [21:18:37]ProducePacketName [21:18:37]name=ofd_packets/00145854 [21:18:37]NVStorageSaveData ofd_packets/00145854 [21:18:37]File name is /storage/ofd_packets/00145854 [21:18:37]Write 301 bytes [21:18:37]NVStorageSaveData done [21:18:37]OFDSenderStorePacket done [21:18:37]KKMCreateOFDPacket done [21:18:37]NVStorageSaveData kkm_last_timestamp [21:18:37]File name is /storage/kkm_last_timestamp [21:18:37]Write 4 bytes [21:18:37]NVStorageSaveData done [21:18:37]ExternCall_PrintAddStr [21:18:37]wPrintStart [21:18:37]Write to MH i2c: 01 00 00 93 41 D4 [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 07 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 07 00 93 41 00 00 00 00 00 FF 0F E9 [21:18:37]RasterBufferAndPrint [21:18:37]line Счет N : (1)160611 [21:18:37]line ИНН: 02508201610067 [21:18:37]line Контрольно-Кассовый Чек [21:18:37]line ПРОДАЖА [21:18:37]line ТРК (МРК, ГНК) : 43 [21:18:37]line Товар: 2710124500 [21:18:37]line Аи-95-К-3 [21:18:37]line 10.790 * 74.20 [21:18:37]line = 800.62 [21:18:37]line НДС 12% НСП 1% [21:18:37]line > о реализуемом товаре [21:18:37]line ОКРУГЛЕНИЕ: -0.62 [21:18:37]line ИТОГО: 800.00 [21:18:37]line Внесено: 800.00 [21:18:37]line СДАЧА: 0.00 [21:18:37]line НСП 1% : 7.08 [21:18:37]line НДС 12% : 85.02 [21:18:37]line Наличными: 800.00 [21:18:37]line Безнал.: 0.00 [21:18:37]line Место: АЗС № 126 "Партнер Нефть" [21:18:37]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [21:18:37]line СНО: Общий режим [21:18:37]line Чек 277 27.10.2024 21:18 [21:18:37]line Смена: 545 ФФД: 1.0 [21:18:37]line ЗНМ: 0300000085 [21:18:37]line РНМ: 0000000000091683 [21:18:37]line Версия ККМ: 001 [21:18:37]line ФМ: 0000000000871745 [21:18:37]line ФД: 145854 [21:18:37]line ФПД: 244054761398598 [21:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211839&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145854&fm=244054761398598&tin=02508201610067®Number=0000000000091683&sum=80000 [21:18:38]OFD Sender: Processing packet 145854 [packets to send 206, broken 205] [21:18:38]ProducePacketName [21:18:38]name=ofd_packets/00145854 [21:18:38]OFD Sender: To server: pG, [21:18:38]CommunicateWithHost lk.salyk.kg:30040 [21:18:38]ConnectInit lk.salyk.kg [21:18:38]written 0, free lines is 4095 [21:18:38]Connected sock=10 [21: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 31 37 34 35 0F 01 00 00 F8 0A 07 01 52 4E 5A 03 01 00 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 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 15 01 00 00 F4 03 04 00 2F AE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BE 39 02 00 35 04 06 00 DD F7 6D 5B E1 46 61 92 00 2F 3F 74 D9 B2 [21:18:38]Write to MH i2c: 01 00 00 BE 41 FF [21:18:38]Write i2c OK [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: 01 [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: 01 07 00 [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: 01 07 00 BE 41 00 00 00 00 00 C0 0C D2 [21:18:38]RasterBufferAndPrint [21:18:38]line [21:18:38]line [21:18:38]line [21:18:38]line [21:18:38]line [21:18:38]written 0, free lines is 3270 [21:18:38]MH_Cut [21:18:38]Write to MH i2c: D1 01 00 C5 41 01 D8 [21:18:38]Write i2c OK [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: D1 [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: D1 01 00 [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: D1 01 00 C5 41 00 D7 [21:18:38]Write to MH i2c: 01 00 00 C6 41 07 [21:18:38]Write i2c OK [21:18:38]MH_I2C_Read... [21:18:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 0D 14 47 00 9E B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BE 39 02 00 F4 03 04 00 5C 53 1E 67 B6 04 01 00 00 DE B2 24 DA AD 63 C9 5F [21:18:38]CommunicateWithHost err = 0 [21:18:38]CheckOFDResponse [21:18:38]1017 (14) - 77093643461234 [21:18:38]1041 (16) - 0000000000871745 [21:18:38]1040 (4) - 145854 [21:18:38]1012 (4) - 27.10.2024 14:51 [21:18:38]1206 (1) - 0 [21:18:38]OFD Sender: Remove packet 145854 [21:18:38]ProducePacketName [21:18:38]name=ofd_packets/00145854 [21:18:38]NVStorageDeleteData [21:18:39]OFD Sender: No OFD packet to send [21:18:39]*** Cut start [21:18:39]*** Partial cut [21:18:39]*** CUTSNS_PIN = 1 [21:18:39]*** CUTSNS_PIN = 0 [21:18:39]*** Brake cut motor [21:18:40]Read from MH i2c: 01 [21:18:40]MH_I2C_Read... [21:18:40]*** Stop cut motor [21:18:40]*** Cut end [21:18:40]Read from MH i2c: 01 07 00 [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: 01 07 00 C6 41 00 00 00 00 00 FF 0F 1C [21:18:40]process_action close_receipt done [21:18:40]requested_data is exist [21:18:40]produce_requested_data [21:18:40]requested_item fm.sn is exist - process it [21:18:40]wFMCommunicate request_size=4 [21:18:40]MH_SAM_APDU [21:18:40]CAPDU: 80 11 00 00 [21:18:40]Write to MH i2c: E2 08 00 C7 41 80 11 00 00 00 00 00 00 82 [21:18:40]Write i2c OK [21:18:40]MH_I2C_Read... [21:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:40]Read from MH i2c: E2 [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: E2 17 00 [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: E2 17 00 C7 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D5 [21:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:18:40]wFMCommunicate OK [21:18:40]requested_item fd.num is exist - process it [21:18:40]SAM_PROTO_GetFieldsCounters [21:18:40]wFMCommunicate request_size=4 [21:18:40]MH_SAM_APDU [21:18:40]CAPDU: 80 13 00 00 [21:18:40]Write to MH i2c: E2 08 00 C8 41 80 13 00 00 00 00 00 00 85 [21:18:40]Write i2c OK [21:18:40]MH_I2C_Read... [21:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:40]Read from MH i2c: E2 [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: E2 62 00 [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: E2 62 00 C8 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BE 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [21: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BE 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:40]wFMCommunicate OK [21:18:40]SAM_PROTO_GetFieldsCounters done [21:18:40]requested_item shift.num is exist - process it [21:18:40]requested_item shift.opened is exist - process it [21:18:40]req_shift_opened [21:18:40]FM_GetShiftState [21:18:40]SAM_PROTO_GetShiftState [21:18:40]wFMCommunicate request_size=4 [21:18:40]MH_SAM_APDU [21:18:40]CAPDU: 80 13 01 00 [21:18:40]Write to MH i2c: E2 08 00 C9 41 80 13 01 00 00 00 00 00 87 [21:18:40]Write i2c OK [21:18:40]MH_I2C_Read... [21:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:40]Read from MH i2c: E2 [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: E2 0E 00 [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: E2 0E 00 C9 41 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FF [21:18:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:18:40]wFMCommunicate OK [21:18:40]SAM_PROTO_GetShiftState done [21:18:40]FM_GetShiftState done [21:18:40]req_shift_opened done [21:18:40]requested_item shift.open_date is exist - process it [21:18:40]req_shift_open_date [21:18:40]req_shift_open_date done [21:18:40]produce_requested_data done [21:18:40]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145854,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [21:18:40]process_action_free close_receipt [21:18:40]json_value_free [21:18:40]json_value_free done [21:18:40]process_json_proto returns [21:18:40]Send response to host [21:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145854,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [21:18:40]free response buf [21:18:40]execute_script done [21:18:40]execute_script returns [21:18:40]free content buf [21:18:40]Sock 7.Close socket [21:18:40]Sock 7.Thread stoped [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:42]accept exits with 9 [21:36:42]New connection [21:36:42]New thread 3066596708 created [21:36:42]Thread 3066740068 joined [21:36:42]Waiting for new connection... [21:36:42] Sock 9.Parse request [21:36:42]Sock 9.Check first char [21:36:42]Sock 9.First char is OK [21:36:42]request: POST /json_proto HTTP/1.0 [21:36:42]Method: POST [21:36:42]URL: /json_proto [21:36:42]Method is POST - this is cgi request [21:36:42]url: /json_proto [21:36:42]query_string will be loaded in cgi processing [21:36:42]execute_cgi json_proto POST (null) [21:36:42]execute_cgi path=json_proto method=POST [21:36:42]POST find Content-Length [21:36:42]Host: 172.17.40.195:8080 [21:36:42]Content-Length: 769 [21:36:42]Content-Type: application/json [21:36:42] [21:36:42]POST finish read [21:36:42]Found Content-Length = 769 [21:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:42]execute_script... [21:36: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)160612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:42]POST & json_proto [21:36:42]process_json_proto [21:36:42]json parsed OK: [21:36:42]protocol is kg_v1.0 [21:36:42]action value=close_receipt [21:36:42]process_action close_receipt [21:36:42]cmd_close_receipt [21:36:42]MH_GetDate [21:36:42]Write to MH i2c: F0 00 00 CA 41 FA [21:36:42]Write i2c OK [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: F0 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: F0 09 00 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: F0 09 00 CA 41 00 6E B2 1E 67 D5 8D 6C 64 DA [21:36:42]GetLastDocTimeStamp 1730063919 [21:36:42]current date 1730065006 [21:36:42]FM_GetShiftState [21:36:42]SAM_PROTO_GetShiftState [21:36:42]wFMCommunicate request_size=4 [21:36:42]MH_SAM_APDU [21:36:42]CAPDU: 80 13 01 00 [21:36:42]Write to MH i2c: E2 08 00 CB 41 80 13 01 00 00 00 00 00 89 [21:36:42]Write i2c OK [21:36:42]MH_I2C_Read... [21:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:42]Read from MH i2c: E2 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: E2 0E 00 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: E2 0E 00 CB 41 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 01 [21:36:42]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:36:42]wFMCommunicate OK [21:36:42]SAM_PROTO_GetShiftState done [21:36:42]FM_GetShiftState done [21:36:42]opened in 1729988959 [21:36:42]opened+sec_in_day 1730075359 [21:36:42]quantity*price = 100015 [21:36:42]sum+1 = 100017 [21:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 278 27.10.2024 21:36 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145855 ФПД: 171007405370235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T213646&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145855&fm=171007405370235&tin=02508201610067®Number=0000000000091683&sum=100016 [21:36:43]StoreToDocumentArchive [21:36:43]shift 545 fd 145855 [21:36:43]save to /storage/0545/doc_00145855 [21:36:43]save last doc name /storage/0545/doc_00145855 to /storage/kkm_last_doc_name [21:36:43]save OK [21:36:43]Clear old archive folders... [21:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:43]tlvbuf is 00564680 [21:36:43]SAM_PROTO_ClearQueue [21:36:43]wFMCommunicate request_size=4 [21:36:43]MH_SAM_APDU [21:36:43]CAPDU: 80 09 00 00 [21:36:43]Write to MH i2c: E2 08 00 D8 41 80 09 00 00 00 00 00 00 8B [21:36:43]Write i2c OK [21:36:43]MH_I2C_Read... [21:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:43]Read from MH i2c: E2 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 03 00 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 03 00 D8 41 00 90 00 8D [21:36:43]RAPDU: 90 00 [21:36:43]wFMCommunicate OK [21:36:43]SAM_PROTO_ClearQueue done [21:36:43]KKMCreateOFDPacket [21:36:43]OFDProtocolAddRootSTLVToBuf [21:36:43]FM_MakeSignedData [21:36:43]FM_MakeSignedData [21:36:43]SAM_PROTO_SignData [21:36:43]wFMCommunicate request_size=4 [21:36:43]MH_SAM_APDU [21:36:43]CAPDU: 80 0D 01 02 [21:36:43]Write to MH i2c: E2 08 00 D9 41 80 0D 01 02 00 00 00 00 93 [21:36:43]Write i2c OK [21:36:43]MH_I2C_Read... [21:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:43]Read from MH i2c: E2 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 03 00 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 03 00 D9 41 00 90 00 8E [21:36:43]RAPDU: 90 00 [21:36:43]wFMCommunicate OK [21:36:43]wFMCommunicate request_size=255 [21:36:43]MH_SAM_APDU [21:36: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 6E B2 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BF 39 02 00 35 04 06 00 9B [21:36:43]Write to MH i2c: E2 02 01 DA 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 6E B2 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BF 39 02 00 35 04 06 00 9B 00 00 AF [21:36:43]Write i2c OK [21:36:43]MH_I2C_Read... [21:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:44]Read from MH i2c: E2 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 DA 41 00 90 00 8F [21:36:44]RAPDU: 90 00 [21:36:44]wFMCommunicate OK [21:36:44]wFMCommunicate request_size=10 [21:36:44]MH_SAM_APDU [21:36:44]CAPDU: 80 0D 02 02 05 87 C3 A6 AB 7B [21:36:44]Write to MH i2c: E2 0D 00 DB 41 80 0D 02 02 05 00 87 C3 A6 AB 7B 00 00 B6 [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:44]Read from MH i2c: E2 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 DB 41 00 90 00 90 [21:36:44]RAPDU: 90 00 [21:36:44]wFMCommunicate OK [21:36:44]wFMCommunicate request_size=4 [21:36:44]MH_SAM_APDU [21:36:44]CAPDU: 80 0D 03 02 [21:36:44]Write to MH i2c: E2 08 00 DC 41 80 0D 03 02 00 00 00 00 98 [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:44]Read from MH i2c: E2 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 0B 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 0B 00 DC 41 00 AD 4E A6 ED 90 5D FE 93 90 00 A5 [21:36:44]RAPDU: AD 4E A6 ED 90 5D FE 93 90 00 [21:36:44]wFMCommunicate OK [21:36:44]SAM_PROTO_SignData done [21:36:44]FM_MakeSignedData done [21:36:44]CreateOFDProtocolMessage [21:36:44]wFMCommunicate request_size=4 [21:36:44]MH_SAM_APDU [21:36:44]CAPDU: 80 11 00 00 [21:36:44]Write to MH i2c: E2 08 00 DD 41 80 11 00 00 00 00 00 00 98 [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:44]Read from MH i2c: E2 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 17 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 17 00 DD 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 EB [21:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:36:44]wFMCommunicate OK [21:36:44]CreateOFDProtocolMessage done [21:36:44]OFDSenderStorePacket 145855 [21:36:44]StoreOFDPacket docnum=145855 [21:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 73 AA 07 01 1B 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 6E B2 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BF 39 02 00 35 04 06 00 9B 87 C3 A6 AB 7B AD 4E A6 ED 90 5D FE 93 [21:36:44]CheckFolder [21:36:44]dirname=/storage/ofd_packets [21:36:44]CheckFolder done [21:36:44]ProducePacketName [21:36:44]name=ofd_packets/00145855 [21:36:44]NVStorageSaveData ofd_packets/00145855 [21:36:44]File name is /storage/ofd_packets/00145855 [21:36:44]Write 301 bytes [21:36:44]NVStorageSaveData done [21:36:44]OFDSenderStorePacket done [21:36:44]KKMCreateOFDPacket done [21:36:44]NVStorageSaveData kkm_last_timestamp [21:36:44]File name is /storage/kkm_last_timestamp [21:36:44]Write 4 bytes [21:36:44]NVStorageSaveData done [21:36:44]ExternCall_PrintAddStr [21:36:44]wPrintStart [21:36:44]Write to MH i2c: 01 00 00 DE 41 1F [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: 01 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: 01 07 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: 01 07 00 DE 41 00 00 00 00 00 FF 0F 34 [21:36:44]RasterBufferAndPrint [21:36:44]line Счет N : (1)160612 [21:36:44]line ИНН: 02508201610067 [21:36:44]line Контрольно-Кассовый Чек [21:36:44]line ПРОДАЖА [21:36:44]line ТРК (МРК, ГНК) : 62 [21:36:44]line Товар: 2710124130 [21:36:44]line Аи-92-К-2 [21:36:44]line 14.950 * 66.90 [21:36:44]line = 1000.16 [21:36:44]line НДС 12% НСП 1% [21:36:44]line > о реализуемом товаре [21:36:44]line ИТОГО: 1000.16 [21:36:44]line НСП 1% : 8.85 [21:36:44]line НДС 12% : 106.21 [21:36:44]line Наличными: 0.00 [21:36:44]line Безнал.: 1000.16 [21:36:44]line Место: АЗС № 126 "Партнер Нефть" [21:36:44]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [21:36:44]line СНО: Общий режим [21:36:44]line Чек 278 27.10.2024 21:36 [21:36:44]line Смена: 545 ФФД: 1.0 [21:36:44]line ЗНМ: 0300000085 [21:36:44]line РНМ: 0000000000091683 [21:36:44]line Версия ККМ: 001 [21:36:44]line Платежная система: Mbank [21:36:44]line ФМ: 0000000000871745 [21:36:44]line ФД: 145855 [21:36:44]line ФПД: 171007405370235 [21:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T213646&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145855&fm=171007405370235&tin=02508201610067®Number=0000000000091683&sum=100016 [21:36:44]written 0, free lines is 4095 [21:36:44]OFD Sender: Processing packet 145855 [packets to send 206, broken 205] [21:36:44]ProducePacketName [21:36:44]name=ofd_packets/00145855 [21:36:44]OFD Sender: To server: pG, [21:36:44]CommunicateWithHost lk.salyk.kg:30040 [21:36:44]ConnectInit lk.salyk.kg [21:36:44]Connected sock=10 [21:36:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 73 AA 07 01 1B 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 6E B2 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BF 39 02 00 35 04 06 00 9B 87 C3 A6 AB 7B AD 4E A6 ED 90 5D FE 93 [21:36:45]Write to MH i2c: 01 00 00 07 42 49 [21:36:45]Write i2c OK [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: 01 [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: 01 07 00 [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: 01 07 00 07 42 00 00 00 00 00 DD 0C 39 [21:36:45]RasterBufferAndPrint [21:36:45]line [21:36:45]line [21:36:45]line [21:36:45]line [21:36:45]line [21:36:45]written 0, free lines is 3299 [21:36:45]MH_Cut [21:36:45]Write to MH i2c: D1 01 00 0E 42 01 22 [21:36:45]Write i2c OK [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: D1 [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: D1 01 00 [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: D1 01 00 0E 42 00 21 [21:36:45]Write to MH i2c: 01 00 00 0F 42 51 [21:36:45]Write i2c OK [21:36:45]MH_I2C_Read... [21:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C6 94 47 00 5C F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 BF 39 02 00 F4 03 04 00 9A 57 1E 67 B6 04 01 00 00 C3 FC 0C F4 32 C9 3F BC [21:36:45]CommunicateWithHost err = 0 [21:36:45]CheckOFDResponse [21:36:45]1017 (14) - 77093643461234 [21:36:45]1041 (16) - 0000000000871745 [21:36:45]1040 (4) - 145855 [21:36:45]1012 (4) - 27.10.2024 15:09 [21:36:45]1206 (1) - 0 [21:36:45]OFD Sender: Remove packet 145855 [21:36:45]ProducePacketName [21:36:45]name=ofd_packets/00145855 [21:36:45]NVStorageDeleteData [21:36:45]OFD Sender: No OFD packet to send [21:36:45]*** Cut start [21:36:45]*** Partial cut [21:36:45]*** CUTSNS_PIN = 1 [21:36:45]*** CUTSNS_PIN = 0 [21:36:46]*** Brake cut motor [21:36:46]Read from MH i2c: 01 [21:36:46]MH_I2C_Read... [21:36:46]*** Stop cut motor [21:36:46]*** Cut end [21:36:46]Read from MH i2c: 01 07 00 [21:36:46]MH_I2C_Read... [21:36:46]Read from MH i2c: 01 07 00 0F 42 00 00 00 00 00 FF 0F 66 [21:36:46]process_action close_receipt done [21:36:46]requested_data is exist [21:36:46]produce_requested_data [21:36:46]requested_item fm.sn is exist - process it [21:36:46]wFMCommunicate request_size=4 [21:36:46]MH_SAM_APDU [21:36:46]CAPDU: 80 11 00 00 [21:36:46]Write to MH i2c: E2 08 00 10 42 80 11 00 00 00 00 00 00 CC [21:36:46]Write i2c OK [21:36:46]MH_I2C_Read... [21:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:46]Read from MH i2c: E2 [21:36:46]MH_I2C_Read... [21:36:46]Read from MH i2c: E2 17 00 [21:36:46]MH_I2C_Read... [21:36:46]Read from MH i2c: E2 17 00 10 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 1F [21:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:36:46]wFMCommunicate OK [21:36:46]requested_item fd.num is exist - process it [21:36:46]SAM_PROTO_GetFieldsCounters [21:36:46]wFMCommunicate request_size=4 [21:36:46]MH_SAM_APDU [21:36:46]CAPDU: 80 13 00 00 [21:36:46]Write to MH i2c: E2 08 00 11 42 80 13 00 00 00 00 00 00 CF [21:36:46]Write i2c OK [21:36:46]MH_I2C_Read... [21:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:46]Read from MH i2c: E2 [21:36:46]MH_I2C_Read... [21:36:46]Read from MH i2c: E2 62 00 [21:36:46]MH_I2C_Read... [21:36:46]Read from MH i2c: E2 62 00 11 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BF 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [21:36:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 BF 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:46]wFMCommunicate OK [21:36:46]SAM_PROTO_GetFieldsCounters done [21:36:46]requested_item shift.num is exist - process it [21:36:46]requested_item shift.opened is exist - process it [21:36:46]req_shift_opened [21:36:46]FM_GetShiftState [21:36:46]SAM_PROTO_GetShiftState [21:36:46]wFMCommunicate request_size=4 [21:36:46]MH_SAM_APDU [21:36:46]CAPDU: 80 13 01 00 [21:36:46]Write to MH i2c: E2 08 00 12 42 80 13 01 00 00 00 00 00 D1 [21:36:46]Write i2c OK [21:36:46]MH_I2C_Read... [21:36:46]Read from MH i2c: E2 [21:36:46]MH_I2C_Read... [21:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:46]Read from MH i2c: E2 0E 00 [21:36:46]MH_I2C_Read... [21:36:46]Read from MH i2c: E2 0E 00 12 42 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 49 [21:36:46]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:36:46]wFMCommunicate OK [21:36:46]SAM_PROTO_GetShiftState done [21:36:46]FM_GetShiftState done [21:36:46]req_shift_opened done [21:36:46]requested_item shift.open_date is exist - process it [21:36:46]req_shift_open_date [21:36:46]req_shift_open_date done [21:36:46]produce_requested_data done [21:36:46]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145855,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [21:36:46]process_action_free close_receipt [21:36:46]json_value_free [21:36:46]json_value_free done [21:36:46]process_json_proto returns [21:36:46]Send response to host [21:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145855,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [21:36:46]free response buf [21:36:46]execute_script done [21:36:46]execute_script returns [21:36:46]free content buf [21:36:46]Sock 9.Close socket [21:36:46]Sock 9.Thread stoped [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:40]accept exits with 7 [21:47:40]New connection [21:47:40]New thread 3066740068 created [21:47:40]Thread 3066596708 joined [21:47:40]Waiting for new connection... [21:47:40] Sock 7.Parse request [21:47:40]Sock 7.Check first char [21:47:40]Sock 7.First char is OK [21:47:40]request: POST /json_proto HTTP/1.0 [21:47:40]Method: POST [21:47:40]URL: /json_proto [21:47:40]Method is POST - this is cgi request [21:47:40]url: /json_proto [21:47:40]query_string will be loaded in cgi processing [21:47:40]execute_cgi json_proto POST (null) [21:47:40]execute_cgi path=json_proto method=POST [21:47:40]POST find Content-Length [21:47:40]Host: 172.17.40.195:8080 [21:47:40]Content-Length: 766 [21:47:40]Content-Type: application/json [21:47:40] [21:47:40]POST finish read [21:47:40]Found Content-Length = 766 [21:47:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 49.250, "sum" : 3752.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3752.85 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:40]execute_script... [21:47: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)160613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 49.250, "sum" : 3752.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3752.85 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:40]POST & json_proto [21:47:40]process_json_proto [21:47:40]json parsed OK: [21:47:40]protocol is kg_v1.0 [21:47:40]action value=close_receipt [21:47:40]process_action close_receipt [21:47:40]cmd_close_receipt [21:47:40]MH_GetDate [21:47:40]Write to MH i2c: F0 00 00 13 42 44 [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: F0 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: F0 09 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: F0 09 00 13 42 00 00 B5 1E 67 D5 8D 6C 64 B9 [21:47:40]GetLastDocTimeStamp 1730065006 [21:47:40]current date 1730065664 [21:47:40]FM_GetShiftState [21:47:40]SAM_PROTO_GetShiftState [21:47:40]wFMCommunicate request_size=4 [21:47:40]MH_SAM_APDU [21:47:40]CAPDU: 80 13 01 00 [21:47:40]Write to MH i2c: E2 08 00 14 42 80 13 01 00 00 00 00 00 D3 [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:40]Read from MH i2c: E2 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 0E 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 0E 00 14 42 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 4B [21:47:40]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:47:40]wFMCommunicate OK [21:47:40]SAM_PROTO_GetShiftState done [21:47:40]FM_GetShiftState done [21:47:40]opened in 1729988959 [21:47:40]opened+sec_in_day 1730075359 [21:47:40]quantity*price = 375285 [21:47:40]sum+1 = 375286 [21:47:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3752.85 НСП 1% : 33.21 НДС 12% : 398.53 Наличными: 0.00 Безнал.: 3752.85 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 279 27.10.2024 21:47 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145856 ФПД: 86824311193532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214744&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145856&fm=86824311193532&tin=02508201610067®Number=0000000000091683&sum=375285 [21:47:41]StoreToDocumentArchive [21:47:41]shift 545 fd 145856 [21:47:41]save to /storage/0545/doc_00145856 [21:47:41]save last doc name /storage/0545/doc_00145856 to /storage/kkm_last_doc_name [21:47:41]save OK [21:47:41]Clear old archive folders... [21:47:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:47:41]tlvbuf is B6D74090 [21:47:41]SAM_PROTO_ClearQueue [21:47:41]wFMCommunicate request_size=4 [21:47:41]MH_SAM_APDU [21:47:41]CAPDU: 80 09 00 00 [21:47:41]Write to MH i2c: E2 08 00 21 42 80 09 00 00 00 00 00 00 D5 [21:47:41]Write i2c OK [21:47:41]MH_I2C_Read... [21:47:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:41]OFD Sender: No OFD packet to send [21:47:41]Read from MH i2c: E2 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: E2 03 00 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: E2 03 00 21 42 00 90 00 D7 [21:47:41]RAPDU: 90 00 [21:47:41]wFMCommunicate OK [21:47:41]SAM_PROTO_ClearQueue done [21:47:41]KKMCreateOFDPacket [21:47:41]OFDProtocolAddRootSTLVToBuf [21:47:41]FM_MakeSignedData [21:47:41]FM_MakeSignedData [21:47:41]SAM_PROTO_SignData [21:47:41]wFMCommunicate request_size=4 [21:47:41]MH_SAM_APDU [21:47:41]CAPDU: 80 0D 01 02 [21:47:41]Write to MH i2c: E2 08 00 22 42 80 0D 01 02 00 00 00 00 DD [21:47:41]Write i2c OK [21:47:41]MH_I2C_Read... [21:47:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:41]Read from MH i2c: E2 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: E2 03 00 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: E2 03 00 22 42 00 90 00 D8 [21:47:41]RAPDU: 90 00 [21:47:41]wFMCommunicate OK [21:47:41]wFMCommunicate request_size=255 [21:47:41]MH_SAM_APDU [21:47:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 62 C0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 B9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 B9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 9B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 B9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 00 B5 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C0 39 02 00 35 04 06 00 4E F7 5C 39 [21:47:41]Write to MH i2c: E2 02 01 23 42 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 32 FF 03 08 00 03 62 C0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 B9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 B9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 9B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 B9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 00 B5 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C0 39 02 00 35 04 06 00 4E F7 5C 39 00 00 EC [21:47:41]Write i2c OK [21:47:41]MH_I2C_Read... [21:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:42]Read from MH i2c: E2 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: E2 03 00 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: E2 03 00 23 42 00 90 00 D9 [21:47:42]RAPDU: 90 00 [21:47:42]wFMCommunicate OK [21:47:42]wFMCommunicate request_size=7 [21:47:42]MH_SAM_APDU [21:47:42]CAPDU: 80 0D 02 02 02 FF BC [21:47:42]Write to MH i2c: E2 0A 00 24 42 80 0D 02 02 02 00 FF BC 00 00 9F [21:47:42]Write i2c OK [21:47:42]MH_I2C_Read... [21:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:42]Read from MH i2c: E2 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: E2 03 00 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: E2 03 00 24 42 00 90 00 DA [21:47:42]RAPDU: 90 00 [21:47:42]wFMCommunicate OK [21:47:42]wFMCommunicate request_size=4 [21:47:42]MH_SAM_APDU [21:47:42]CAPDU: 80 0D 03 02 [21:47:42]Write to MH i2c: E2 08 00 25 42 80 0D 03 02 00 00 00 00 E2 [21:47:42]Write i2c OK [21:47:42]MH_I2C_Read... [21:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:42]Read from MH i2c: E2 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: E2 0B 00 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: E2 0B 00 25 42 00 41 BA 6D 23 DB E4 26 C1 90 00 14 [21:47:42]RAPDU: 41 BA 6D 23 DB E4 26 C1 90 00 [21:47:42]wFMCommunicate OK [21:47:42]SAM_PROTO_SignData done [21:47:42]FM_MakeSignedData done [21:47:42]CreateOFDProtocolMessage [21:47:42]wFMCommunicate request_size=4 [21:47:42]MH_SAM_APDU [21:47:42]CAPDU: 80 11 00 00 [21:47:42]Write to MH i2c: E2 08 00 26 42 80 11 00 00 00 00 00 00 E2 [21:47:42]Write i2c OK [21:47:42]MH_I2C_Read... [21:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:42]Read from MH i2c: E2 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: E2 17 00 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: E2 17 00 26 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 35 [21:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:47:42]wFMCommunicate OK [21:47:42]CreateOFDProtocolMessage done [21:47:42]OFDSenderStorePacket 145856 [21:47:42]StoreOFDPacket docnum=145856 [21:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 A1 77 04 01 7F 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 62 C0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 B9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 B9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 9B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 B9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 00 B5 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C0 39 02 00 35 04 06 00 4E F7 5C 39 FF BC 41 BA 6D 23 DB E4 26 C1 [21:47:42]CheckFolder [21:47:42]dirname=/storage/ofd_packets [21:47:42]CheckFolder done [21:47:42]ProducePacketName [21:47:42]name=ofd_packets/00145856 [21:47:42]NVStorageSaveData ofd_packets/00145856 [21:47:42]File name is /storage/ofd_packets/00145856 [21:47:42]Write 298 bytes [21:47:42]NVStorageSaveData done [21:47:42]OFDSenderStorePacket done [21:47:42]KKMCreateOFDPacket done [21:47:42]NVStorageSaveData kkm_last_timestamp [21:47:42]File name is /storage/kkm_last_timestamp [21:47:42]Write 4 bytes [21:47:42]NVStorageSaveData done [21:47:42]ExternCall_PrintAddStr [21:47:42]wPrintStart [21:47:42]Write to MH i2c: 01 00 00 27 42 69 [21:47:42]Write i2c OK [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: 01 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: 01 07 00 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: 01 07 00 27 42 00 00 00 00 00 FF 0F 7E [21:47:42]RasterBufferAndPrint [21:47:42]line Счет N : (1)160613 [21:47:42]line ИНН: 02508201610067 [21:47:42]line Контрольно-Кассовый Чек [21:47:42]line ПРОДАЖА [21:47:42]line ТРК (МРК, ГНК) : 11 [21:47:42]line Товар: 2710194210 [21:47:42]line ДТ-К-2 [21:47:42]line 49.250 * 76.20 [21:47:42]line = 3752.85 [21:47:42]line НДС 12% НСП 1% [21:47:42]line > о реализуемом товаре [21:47:42]line ИТОГО: 3752.85 [21:47:42]line НСП 1% : 33.21 [21:47:42]line НДС 12% : 398.53 [21:47:42]line Наличными: 0.00 [21:47:42]line Безнал.: 3752.85 [21:47:42]line Место: АЗС № 126 "Партнер Нефть" [21:47:42]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [21:47:42]line СНО: Общий режим [21:47:42]line Чек 279 27.10.2024 21:47 [21:47:42]line Смена: 545 ФФД: 1.0 [21:47:42]line ЗНМ: 0300000085 [21:47:42]line РНМ: 0000000000091683 [21:47:42]line Версия ККМ: 001 [21:47:42]line Платежная система: Mbank [21:47:42]line ФМ: 0000000000871745 [21:47:42]line ФД: 145856 [21:47:42]line ФПД: 86824311193532 [21:47:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214744&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145856&fm=86824311193532&tin=02508201610067®Number=0000000000091683&sum=375285 [21:47:42]OFD Sender: Processing packet 145856 [packets to send 206, broken 205] [21:47:42]ProducePacketName [21:47:42]name=ofd_packets/00145856 [21:47:42]OFD Sender: To server: pG, [21:47:42]CommunicateWithHost lk.salyk.kg:30040 [21:47:42]ConnectInit lk.salyk.kg [21:47:42]written 0, free lines is 4095 [21:47:42]Connected sock=10 [21:47:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 A1 77 04 01 7F 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 62 C0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 B9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 B9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 9B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 B9 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 00 B5 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C0 39 02 00 35 04 06 00 4E F7 5C 39 FF BC 41 BA 6D 23 DB E4 26 C1 [21:47:42]Write to MH i2c: 01 00 00 50 42 92 [21:47:42]Write i2c OK [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: 01 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: 01 07 00 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: 01 07 00 50 42 00 00 00 00 00 D0 0C 75 [21:47:42]RasterBufferAndPrint [21:47:42]line [21:47:42]line [21:47:42]line [21:47:42]line [21:47:42]line [21:47:42]written 0, free lines is 3286 [21:47:42]MH_Cut [21:47:42]Write to MH i2c: D1 01 00 57 42 01 6B [21:47:42]Write i2c OK [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: D1 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: D1 01 00 [21:47:42]MH_I2C_Read... [21:47:42]Read from MH i2c: D1 01 00 57 42 00 6A [21:47:42]Write to MH i2c: 01 00 00 58 42 9A [21:47:42]Write i2c OK [21:47:42]MH_I2C_Read... [21:47:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D7 6D 47 00 30 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C0 39 02 00 F4 03 04 00 2C 5A 1E 67 B6 04 01 00 00 F6 5D D1 0C AF F5 BF 7E [21:47:43]CommunicateWithHost err = 0 [21:47:43]CheckOFDResponse [21:47:43]1017 (14) - 77093643461234 [21:47:43]1041 (16) - 0000000000871745 [21:47:43]1040 (4) - 145856 [21:47:43]1012 (4) - 27.10.2024 15:20 [21:47:43]1206 (1) - 0 [21:47:43]OFD Sender: Remove packet 145856 [21:47:43]ProducePacketName [21:47:43]name=ofd_packets/00145856 [21:47:43]NVStorageDeleteData [21:47:43]OFD Sender: No OFD packet to send [21:47:43]*** Cut start [21:47:43]*** Partial cut [21:47:43]*** CUTSNS_PIN = 1 [21:47:43]*** CUTSNS_PIN = 0 [21:47:44]*** Brake cut motor [21:47:44]Read from MH i2c: 01 [21:47:44]MH_I2C_Read... [21:47:44]*** Stop cut motor [21:47:44]*** Cut end [21:47:44]Read from MH i2c: 01 07 00 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: 01 07 00 58 42 00 00 00 00 00 FF 0F AF [21:47:44]process_action close_receipt done [21:47:44]requested_data is exist [21:47:44]produce_requested_data [21:47:44]requested_item fm.sn is exist - process it [21:47:44]wFMCommunicate request_size=4 [21:47:44]MH_SAM_APDU [21:47:44]CAPDU: 80 11 00 00 [21:47:44]Write to MH i2c: E2 08 00 59 42 80 11 00 00 00 00 00 00 15 [21:47:44]Write i2c OK [21:47:44]MH_I2C_Read... [21:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:44]Read from MH i2c: E2 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 17 00 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 17 00 59 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 68 [21:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:47:44]wFMCommunicate OK [21:47:44]requested_item fd.num is exist - process it [21:47:44]SAM_PROTO_GetFieldsCounters [21:47:44]wFMCommunicate request_size=4 [21:47:44]MH_SAM_APDU [21:47:44]CAPDU: 80 13 00 00 [21:47:44]Write to MH i2c: E2 08 00 5A 42 80 13 00 00 00 00 00 00 18 [21:47:44]Write i2c OK [21:47:44]MH_I2C_Read... [21:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:44]Read from MH i2c: E2 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 62 00 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 62 00 5A 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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C0 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [21: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C0 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:44]wFMCommunicate OK [21:47:44]SAM_PROTO_GetFieldsCounters done [21:47:44]requested_item shift.num is exist - process it [21:47:44]requested_item shift.opened is exist - process it [21:47:44]req_shift_opened [21:47:44]FM_GetShiftState [21:47:44]SAM_PROTO_GetShiftState [21:47:44]wFMCommunicate request_size=4 [21:47:44]MH_SAM_APDU [21:47:44]CAPDU: 80 13 01 00 [21:47:44]Write to MH i2c: E2 08 00 5B 42 80 13 01 00 00 00 00 00 1A [21:47:44]Write i2c OK [21:47:44]MH_I2C_Read... [21:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:44]Read from MH i2c: E2 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 0E 00 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 0E 00 5B 42 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 92 [21:47:44]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:47:44]wFMCommunicate OK [21:47:44]SAM_PROTO_GetShiftState done [21:47:44]FM_GetShiftState done [21:47:44]req_shift_opened done [21:47:44]requested_item shift.open_date is exist - process it [21:47:44]req_shift_open_date [21:47:44]req_shift_open_date done [21:47:44]produce_requested_data done [21:47:44]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145856,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [21:47:44]process_action_free close_receipt [21:47:44]json_value_free [21:47:44]json_value_free done [21:47:44]process_json_proto returns [21:47:44]Send response to host [21:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145856,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [21:47:44]free response buf [21:47:44]execute_script done [21:47:44]execute_script returns [21:47:44]free content buf [21:47:44]Sock 7.Close socket [21:47:44]Sock 7.Thread stoped [21:47:48]OFD Sender: No OFD packet to send [21:47:53]int [21:47:53]Write to MH i2c: 01 00 00 5C 42 9E [21:47:53]*** FLAG_PRN_KEY set [21:47:53]Write i2c OK [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 5C 42 00 08 00 00 00 FF 0F BB [21:47:53]state=0 [21:47:53]Key pressed [21:47:53]Feed [21:47:53]Write to MH i2c: D8 00 00 5D 42 76 [21:47:53]Write i2c OK [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: D8 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: D8 01 00 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: D8 01 00 5D 42 00 77 [21:47:53]int [21:47:53]Write to MH i2c: 01 00 00 5E 42 A0 [21:47:53]Write i2c OK [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 5E 42 00 48 00 00 00 3C 00 2B [21:47:53]state=2 [21:47:53]Key pressed [21:47:53]int [21:47:53]Write to MH i2c: 01 00 00 5F 42 A1 [21:47:53]*** FLAG_PRN_KEY reset [21:47:53]Write i2c OK [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 5F 42 00 00 00 00 00 FC 0F B3 [21:47:53]state=2 [21:47:53]Stop feed [21:47:53]int [21:47:53]Write to MH i2c: 01 00 00 60 42 A2 [21:47:53]*** FLAG_PRN_KEY set [21:47:53]Write i2c OK [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 60 42 00 08 00 00 00 FF 0F BF [21:47:53]state=0 [21:47:53]Key pressed [21:47:53]Feed [21:47:53]Write to MH i2c: D8 00 00 61 42 7A [21:47:53]Write i2c OK [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: D8 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: D8 01 00 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: D8 01 00 61 42 00 7B [21:47:53]int [21:47:53]Write to MH i2c: 01 00 00 62 42 A4 [21:47:53]Write i2c OK [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 62 42 00 48 00 00 00 3C 00 2F [21:47:53]state=2 [21:47:53]Key pressed [21:47:53]int [21:47:53]Write to MH i2c: 01 00 00 63 42 A5 [21:47:53]*** FLAG_PRN_KEY reset [21:47:53]Write i2c OK [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 [21:47:53]MH_I2C_Read... [21:47:53]Read from MH i2c: 01 07 00 63 42 00 00 00 00 00 F5 0F B0 [21:47:53]state=2 [21:47:53]Stop feed [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 EB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 90 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725EB (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 45229902+1684835797=1730065699 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 EB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 91 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 24 B5 1E 67 D5 8D 6C 64 8F [21:48:20]Current date/time: 27.10.2024 21:48 [21:48:20]FM_Init [21:48:20]wFMConnect [21:48:20]MH_SAM_On [21:48:20]Write to MH i2c: E0 00 00 08 00 E7 [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]*** iso7816_init finished! [21:48:20]*** atr: [21:48:20]*** 0F 3B D5 18 FF 81 91 FE [21:48:20]*** 1F C3 80 73 C8 21 10 0A [21:48:20]*** 00 00 00 00 00 00 00 00 [21:48:20]*** 00 00 00 00 00 00 00 00 [21:48:20]*** 00 00 00 00 00 00 00 00 [21:48:20]*** 00 00 00 00 00 00 00 00 [21:48:20]*** 00 00 00 00 00 00 00 00 [21:48:20]*** 00 00 00 00 00 00 00 00 [21:48:20]Read from MH i2c: E0 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E0 10 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [21:48:20]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:48:20]wFMCommunicate request_size=10 [21:48:20]MH_SAM_APDU [21:48:20]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:48:20]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:48:20]Read from MH i2c: E2 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:48:20]RAPDU: 90 00 [21:48:20]wFMCommunicate OK [21:48:20]wFMCommunicate request_size=4 [21:48:20]MH_SAM_APDU [21:48:20]CAPDU: 80 11 00 00 [21:48:20]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:20]Read from MH i2c: E2 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 17 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 D7 [21:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:48:20]wFMCommunicate OK [21:48:20]Detected FM SN is 0000000000871745 [21:48:20]Stored FM SN is 0000000000871745 [21:48:20]wFMCommunicate request_size=9 [21:48:20]MH_SAM_APDU [21:48:20]CAPDU: 80 16 00 00 04 8C 82 00 00 [21:48:20]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 8C 82 00 00 00 00 A0 [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:48:20]Read from MH i2c: E2 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:48:20]RAPDU: 90 00 [21:48:20]wFMCommunicate OK [21:48:20]FM PIN OK [21:48:20]wFMCommunicate request_size=8 [21:48:20]MH_SAM_APDU [21:48:20]CAPDU: 80 14 04 00 03 02 00 01 [21:48:20]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:48:20]Read from MH i2c: E2 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:48:20]RAPDU: 90 00 [21:48:20]wFMCommunicate OK [21:48:20]wFMCommunicate request_size=13 [21:48:20]MH_SAM_APDU [21:48:20]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:48:20]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:48:20]Read from MH i2c: E2 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:48:20]RAPDU: 90 00 [21:48:20]wFMCommunicate OK [21:48:20]wFMCommunicate request_size=4 [21:48:20]MH_SAM_APDU [21:48:20]CAPDU: 80 11 00 00 [21:48:20]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:20]Read from MH i2c: E2 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 17 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 DB [21:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:48:20]wFMCommunicate OK [21:48:20]DocumentArchiveInit [21:48:20]Start Httpd... [21:48:20]Httpd thread 3067792740 created [21:48:20]Write to MH i2c: 01 00 00 0F 00 0F [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: 01 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: 01 07 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [21:48:20]MH Int Process started [21:48:20]Allocated Socket 8 [21:48:20]Bind OK [21:48:20]Listen OK [21:48:20]httpd running on port 8080 [21:48:20]Waiting for new connection... [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:29]accept exits with 9 [21:48:29]New connection [21:48:29]New thread 3067506020 created [21:48:29]Waiting for new connection... [21:48:29] Sock 9.Parse request [21:48:29]Sock 9.Check first char [21:48:29]Sock 9.First char is OK [21:48:29]request: POST /json_proto HTTP/1.0 [21:48:29]Method: POST [21:48:29]URL: /json_proto [21:48:29]Method is POST - this is cgi request [21:48:29]url: /json_proto [21:48:29]query_string will be loaded in cgi processing [21:48:29]execute_cgi json_proto POST (null) [21:48:29]execute_cgi path=json_proto method=POST [21:48:29]POST find Content-Length [21:48:29]Host: 172.17.40.195:8080 [21:48:29]Content-Length: 215 [21:48:29]Content-Type: application/json [21:48:29] [21:48:29]POST finish read [21:48:29]Found Content-Length = 215 [21:48:29]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" ] } } [21:48:29]execute_script... [21:48:29]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" ] } } [21:48:29]POST & json_proto [21:48:29]process_json_proto [21:48:29]json parsed OK: [21:48:29]protocol is kg_v1.0 [21:48:29]action value=get_value [21:48:29]process_action get_value [21:48:29]cmd_get_value [21:48:29]process_action get_value done [21:48:29]requested_data is exist [21:48:29]produce_requested_data [21:48:29]requested_item kkm.sn is exist - process it [21:48:29]requested_item kkm.ver is exist - process it [21:48:29]requested_item fm.sn is exist - process it [21:48:29]wFMCommunicate request_size=4 [21:48:29]MH_SAM_APDU [21:48:29]CAPDU: 80 11 00 00 [21:48:29]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:48:29]Write i2c OK [21:48:29]MH_I2C_Read... [21:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:29]Read from MH i2c: E2 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 17 00 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 DD [21:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:48:29]wFMCommunicate OK [21:48:29]requested_item fd.num is exist - process it [21:48:29]SAM_PROTO_GetFieldsCounters [21:48:29]wFMCommunicate request_size=4 [21:48:29]MH_SAM_APDU [21:48:29]CAPDU: 80 13 00 00 [21:48:29]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:48:29]Write i2c OK [21:48:29]MH_I2C_Read... [21:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:29]Read from MH i2c: E2 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 62 00 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C0 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [21:48:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C0 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:29]wFMCommunicate OK [21:48:29]SAM_PROTO_GetFieldsCounters done [21:48:29]requested_item shift.num is exist - process it [21:48:29]requested_item shift.opened is exist - process it [21:48:29]req_shift_opened [21:48:29]FM_GetShiftState [21:48:29]SAM_PROTO_GetShiftState [21:48:29]wFMCommunicate request_size=4 [21:48:29]MH_SAM_APDU [21:48:29]CAPDU: 80 13 01 00 [21:48:29]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:48:29]Write i2c OK [21:48:29]MH_I2C_Read... [21:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:29]Read from MH i2c: E2 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 0E 00 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 07 [21:48:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:48:29]wFMCommunicate OK [21:48:29]SAM_PROTO_GetShiftState done [21:48:29]FM_GetShiftState done [21:48:29]req_shift_opened done [21:48:29]requested_item shift.open_date is exist - process it [21:48:29]req_shift_open_date [21:48:29]req_shift_open_date done [21:48:29]produce_requested_data done [21:48:29]produce_requested_data return {"kkm.sn":"0300000085","kkm.ver":"001","fm.sn":"0000000000871745","fd.num":145856,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [21:48:29]process_action_free get_value [21:48:29]json_value_free [21:48:29]json_value_free done [21:48:29]process_json_proto returns [21:48:29]Send response to host [21:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000085","kkm.ver":"001","fm.sn":"0000000000871745","fd.num":145856,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [21:48:29]free response buf [21:48:29]execute_script done [21:48:29]execute_script returns [21:48:29]free content buf [21:48:29]Sock 9.Close socket [21:48:29]Sock 9.Thread stoped [21:48:29]accept exits with 10 [21:48:29]New connection [21:48:29]New thread 3067362660 created [21:48:29]Thread 3067506020 joined [21:48:29]Waiting for new connection... [21:48:29] Sock 10.Parse request [21:48:29]Sock 10.Check first char [21:48:29]Sock 10.First char is OK [21:48:29]request: POST /json_proto HTTP/1.0 [21:48:29]Method: POST [21:48:29]URL: /json_proto [21:48:29]Method is POST - this is cgi request [21:48:29]url: /json_proto [21:48:29]query_string will be loaded in cgi processing [21:48:29]execute_cgi json_proto POST (null) [21:48:29]execute_cgi path=json_proto method=POST [21:48:29]POST find Content-Length [21:48:29]Host: 172.17.40.195:8080 [21:48:29]Content-Length: 331 [21:48:29]Content-Type: application/json [21:48:29] [21:48:29]POST finish read [21:48:29]Found Content-Length = 331 [21:48:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:48:29]execute_script... [21:48:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:48:29]POST & json_proto [21:48:29]process_json_proto [21:48:29]json parsed OK: [21:48:29]protocol is kg_v1.0 [21:48:29]action value=get_value [21:48:29]process_action get_value [21:48:29]cmd_get_value [21:48:29]process_action get_value done [21:48:29]requested_data is exist [21:48:29]produce_requested_data [21:48:29]requested_item fm.sale.total is exist - process it [21:48:29]SAM_PROTO_GetFMData [21:48:29]wFMCommunicate request_size=4 [21:48:29]MH_SAM_APDU [21:48:29]CAPDU: 80 13 03 00 [21:48:29]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:48:29]Write i2c OK [21:48:29]MH_I2C_Read... [21:48:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:48:30]Read from MH i2c: E2 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 FD 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 7E 35 02 00 69 04 A3 00 6F 04 04 00 73 35 02 00 B1 04 05 00 CE A1 F5 FD 03 70 04 05 00 24 9F E7 8D 03 72 04 04 00 AA 02 0E 70 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 3E D9 8D 6C 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 27 AA 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 82 [21:48:30]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 7E 35 02 00 69 04 A3 00 6F 04 04 00 73 35 02 00 B1 04 05 00 CE A1 F5 FD 03 70 04 05 00 24 9F E7 8D 03 72 04 04 00 AA 02 0E 70 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 3E D9 8D 6C 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 27 AA 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 [21:48:30]wFMCommunicate OK [21:48:30]wFMCommunicate request_size=4 [21:48:30]MH_SAM_APDU [21:48:30]CAPDU: 80 17 00 00 [21:48:30]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:30]Read from MH i2c: E2 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 FD 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0F [21:48:30]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:48:30]wFMCommunicate OK [21:48:30]wFMCommunicate request_size=4 [21:48:30]MH_SAM_APDU [21:48:30]CAPDU: 80 17 00 00 [21:48:30]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:30]OFD Sender: No OFD packet to send [21:48:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:30]Read from MH i2c: E2 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 FD 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 35 [21:48:30]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [21:48:30]wFMCommunicate OK [21:48:30]wFMCommunicate request_size=4 [21:48:30]MH_SAM_APDU [21:48:30]CAPDU: 80 17 00 00 [21:48:30]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:31]Read from MH i2c: E2 [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: E2 FD 00 [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [21:48:31]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:48:31]wFMCommunicate OK [21:48:31]wFMCommunicate request_size=4 [21:48:31]MH_SAM_APDU [21:48:31]CAPDU: 80 17 00 00 [21:48:31]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:48:31]Write i2c OK [21:48:31]MH_I2C_Read... [21:48:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [21:48:31]Read from MH i2c: E2 [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: E2 DE 00 [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [21:48:31]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [21:48:31]wFMCommunicate OK [21:48:31]SAM_PROTO_GetFMData done [21:48:31]requested_item fm.sale_refund.total is exist - process it [21:48:31]requested_item fm.buy.total is exist - process it [21:48:31]requested_item shift.sale.total is exist - process it [21:48:31]SAM_PROTO_GetShiftData [21:48:31]wFMCommunicate request_size=4 [21:48:31]MH_SAM_APDU [21:48:31]CAPDU: 80 13 02 00 [21:48:31]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:48:31]Write i2c OK [21:48:31]MH_I2C_Read... [21:48:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:48:31]Read from MH i2c: E2 [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: E2 FD 00 [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 17 01 00 00 69 04 9E 00 6F 04 04 00 17 01 00 00 B1 04 04 00 B0 48 54 02 70 04 04 00 7C 92 C2 01 72 04 03 00 34 B6 91 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 8C 55 3F 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 14 47 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 B7 [21:48:31]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 17 01 00 00 69 04 9E 00 6F 04 04 00 17 01 00 00 B1 04 04 00 B0 48 54 02 70 04 04 00 7C 92 C2 01 72 04 03 00 34 B6 91 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 8C 55 3F 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 14 47 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 [21:48:31]wFMCommunicate OK [21:48:31]wFMCommunicate request_size=4 [21:48:31]MH_SAM_APDU [21:48:31]CAPDU: 80 17 00 00 [21:48:31]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:48:31]Write i2c OK [21:48:31]MH_I2C_Read... [21:48:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:32]Read from MH i2c: E2 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: E2 FD 00 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: E2 FD 00 19 00 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 B2 [21:48:32]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 [21:48:32]wFMCommunicate OK [21:48:32]wFMCommunicate request_size=4 [21:48:32]MH_SAM_APDU [21:48:32]CAPDU: 80 17 00 00 [21:48:32]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:48:32]Write i2c OK [21:48:32]MH_I2C_Read... [21:48:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:32]Read from MH i2c: E2 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: E2 FD 00 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: E2 FD 00 1A 00 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 53 [21:48:32]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 [21:48:32]wFMCommunicate OK [21:48:32]wFMCommunicate request_size=4 [21:48:32]MH_SAM_APDU [21:48:32]CAPDU: 80 17 00 00 [21:48:32]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:48:32]Write i2c OK [21:48:32]MH_I2C_Read... [21:48:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:32]Read from MH i2c: E2 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: E2 FD 00 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: E2 FD 00 1B 00 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 13 [21:48:32]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 [21:48:32]wFMCommunicate OK [21:48:32]wFMCommunicate request_size=4 [21:48:32]MH_SAM_APDU [21:48:32]CAPDU: 80 17 00 00 [21:48:32]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:48:32]Write i2c OK [21:48:32]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 CE 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 CE 00 1C 00 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 81 [21:48:33]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 [21:48:33]wFMCommunicate OK [21:48:33]SAM_PROTO_GetShiftData done [21:48:33]requested_item shift.sale.total_cash is exist - process it [21:48:33]requested_item shift.sale_refund.total is exist - process it [21:48:33]requested_item shift.sale_refund.total_cash is exist - process it [21:48:33]requested_item shift.buy.total is exist - process it [21:48:33]requested_item shift.buy.total_cash is exist - process it [21:48:33]produce_requested_data done [21:48:33]produce_requested_data return {"fm.sale.total":171456352.78,"fm.sale_refund.total":67222.00,"fm.buy.total":0.00,"shift.sale.total":390780.64,"shift.sale.total_cash":295287.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} [21:48:33]process_action_free get_value [21:48:33]json_value_free [21:48:33]json_value_free done [21:48:33]process_json_proto returns [21:48:33]Send response to host [21:48:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":171456352.78,"fm.sale_refund.total":67222.00,"fm.buy.total":0.00,"shift.sale.total":390780.64,"shift.sale.total_cash":295287.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}}} [21:48:33]free response buf [21:48:33]execute_script done [21:48:33]execute_script returns [21:48:33]free content buf [21:48:33]Sock 10.Close socket [21:48:33]Sock 10.Thread stoped [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:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:17]accept exits with 9 [21:57:17]New connection [21:57:17]New thread 3067506020 created [21:57:17]Thread 3067362660 joined [21:57:17]Waiting for new connection... [21:57:17] Sock 9.Parse request [21:57:17]Sock 9.Check first char [21:57:17]Sock 9.First char is OK [21:57:17]request: POST /json_proto HTTP/1.0 [21:57:17]Method: POST [21:57:17]URL: /json_proto [21:57:17]Method is POST - this is cgi request [21:57:17]url: /json_proto [21:57:17]query_string will be loaded in cgi processing [21:57:17]execute_cgi json_proto POST (null) [21:57:17]execute_cgi path=json_proto method=POST [21:57:17]POST find Content-Length [21:57:17]Host: 172.17.40.195:8080 [21:57:17]Content-Length: 677 [21:57:17]Content-Type: application/json [21:57:17] [21:57:17]POST finish read [21:57:17]Found Content-Length = 677 [21:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:17]execute_script... [21:57: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)160614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:17]POST & json_proto [21:57:17]process_json_proto [21:57:17]json parsed OK: [21:57:17]protocol is kg_v1.0 [21:57:17]action value=close_receipt [21:57:17]process_action close_receipt [21:57:17]cmd_close_receipt [21:57:17]MH_GetDate [21:57:17]Write to MH i2c: F0 00 00 1D 00 0C [21:57:17]Write i2c OK [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: F0 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: F0 09 00 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: F0 09 00 1D 00 00 3E B7 1E 67 D5 8D 6C 64 C1 [21:57:17]GetLastDocTimeStamp 97 [21:57:17]current date 1730066238 [21:57:17]FM_GetShiftState [21:57:17]SAM_PROTO_GetShiftState [21:57:17]wFMCommunicate request_size=4 [21:57:17]MH_SAM_APDU [21:57:17]CAPDU: 80 13 01 00 [21:57:17]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [21:57:17]Write i2c OK [21:57:17]MH_I2C_Read... [21:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:17]Read from MH i2c: E2 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: E2 0E 00 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 13 [21:57:17]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:57:17]wFMCommunicate OK [21:57:17]SAM_PROTO_GetShiftState done [21:57:17]FM_GetShiftState done [21:57:17]opened in 1729988959 [21:57:17]opened+sec_in_day 1730075359 [21:57:17]quantity*price = 60009 [21:57:17]sum+1 = 60010 [21:57:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 280 27.10.2024 21:57 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145857 ФПД: 147950611578708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T215718&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145857&fm=147950611578708&tin=02508201610067®Number=0000000000091683&sum=60000 [21:57:19]StoreToDocumentArchive [21:57:19]shift 545 fd 145857 [21:57:19]save to /storage/0545/doc_00145857 [21:57:19]save last doc name /storage/0545/doc_00145857 to /storage/kkm_last_doc_name [21:57:19]save OK [21:57:19]Clear old archive folders... [21:57:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:19]tlvbuf is 006A9A90 [21:57:19]SAM_PROTO_ClearQueue [21:57:19]wFMCommunicate request_size=4 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 09 00 00 [21:57:19]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [21:57:19]RAPDU: 90 00 [21:57:19]wFMCommunicate OK [21:57:19]SAM_PROTO_ClearQueue done [21:57:19]KKMCreateOFDPacket [21:57:19]OFDProtocolAddRootSTLVToBuf [21:57:19]FM_MakeSignedData [21:57:19]FM_MakeSignedData [21:57:19]SAM_PROTO_SignData [21:57:19]wFMCommunicate request_size=4 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 0D 01 02 [21:57:19]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [21:57:19]RAPDU: 90 00 [21:57:19]wFMCommunicate OK [21:57:19]wFMCommunicate request_size=255 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 3E B7 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C1 39 02 00 35 04 06 00 86 [21:57:19]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 3E B7 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C1 39 02 00 35 04 06 00 86 00 00 48 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [21:57:19]RAPDU: 90 00 [21:57:19]wFMCommunicate OK [21:57:19]wFMCommunicate request_size=10 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 0D 02 02 05 8F 6F A5 BF 54 [21:57:19]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 8F 6F A5 BF 54 00 00 68 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [21:57:19]RAPDU: 90 00 [21:57:19]wFMCommunicate OK [21:57:19]wFMCommunicate request_size=4 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 0D 03 02 [21:57:19]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 0B 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 0B 00 2F 00 00 93 38 0D 4A 18 92 FD DE 90 00 52 [21:57:19]RAPDU: 93 38 0D 4A 18 92 FD DE 90 00 [21:57:19]wFMCommunicate OK [21:57:19]SAM_PROTO_SignData done [21:57:19]FM_MakeSignedData done [21:57:19]CreateOFDProtocolMessage [21:57:19]wFMCommunicate request_size=4 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 11 00 00 [21:57:19]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 17 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 FD [21:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:57:19]wFMCommunicate OK [21:57:19]CreateOFDProtocolMessage done [21:57:19]OFDSenderStorePacket 145857 [21:57:19]StoreOFDPacket docnum=145857 [21:57:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 8E EC 07 01 13 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 3E B7 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C1 39 02 00 35 04 06 00 86 8F 6F A5 BF 54 93 38 0D 4A 18 92 FD DE [21:57:19]CheckFolder [21:57:19]dirname=/storage/ofd_packets [21:57:19]CheckFolder done [21:57:19]ProducePacketName [21:57:19]name=ofd_packets/00145857 [21:57:19]NVStorageSaveData ofd_packets/00145857 [21:57:19]File name is /storage/ofd_packets/00145857 [21:57:19]Write 301 bytes [21:57:19]NVStorageSaveData done [21:57:19]OFDSenderStorePacket done [21:57:19]KKMCreateOFDPacket done [21:57:19]NVStorageSaveData kkm_last_timestamp [21:57:19]File name is /storage/kkm_last_timestamp [21:57:19]Write 4 bytes [21:57:19]NVStorageSaveData done [21:57:19]ExternCall_PrintAddStr [21:57:19]wPrintStart [21:57:19]Write to MH i2c: 01 00 00 31 00 31 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 07 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [21:57:19]RasterBufferAndPrint [21:57:19]line Счет N : (1)160614 [21:57:19]line ИНН: 02508201610067 [21:57:19]line Контрольно-Кассовый Чек [21:57:19]line ПРОДАЖА [21:57:19]line ТРК (МРК, ГНК) : 42 [21:57:19]line Товар: 2710124130 [21:57:19]line Аи-92-К-2 [21:57:19]line 8.970 * 66.90 [21:57:19]line = 600.09 [21:57:19]line НДС 12% НСП 1% [21:57:19]line > о реализуемом товаре [21:57:19]line ОКРУГЛЕНИЕ: -0.09 [21:57:19]line ИТОГО: 600.00 [21:57:19]line Внесено: 600.00 [21:57:19]line СДАЧА: 0.00 [21:57:19]line НСП 1% : 5.31 [21:57:19]line НДС 12% : 63.73 [21:57:19]line Наличными: 600.00 [21:57:19]line Безнал.: 0.00 [21:57:19]line Место: АЗС № 126 "Партнер Нефть" [21:57:19]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [21:57:19]line СНО: Общий режим [21:57:19]line Чек 280 27.10.2024 21:57 [21:57:19]line Смена: 545 ФФД: 1.0 [21:57:19]line ЗНМ: 0300000085 [21:57:19]line РНМ: 0000000000091683 [21:57:19]line Версия ККМ: 001 [21:57:19]line ФМ: 0000000000871745 [21:57:19]line ФД: 145857 [21:57:19]line ФПД: 147950611578708 [21:57:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T215718&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145857&fm=147950611578708&tin=02508201610067®Number=0000000000091683&sum=60000 [21:57:19]OFD Sender: Processing packet 145857 [packets to send 206, broken 205] [21:57:19]ProducePacketName [21:57:19]name=ofd_packets/00145857 [21:57:19]OFD Sender: To server: pG, [21:57:19]CommunicateWithHost lk.salyk.kg:30040 [21:57:19]ConnectInit lk.salyk.kg [21:57:19]written 0, free lines is 4095 [21:57:19]Connected sock=10 [21:57:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 8E EC 07 01 13 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 3E B7 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C1 39 02 00 35 04 06 00 86 8F 6F A5 BF 54 93 38 0D 4A 18 92 FD DE [21:57:20]Write to MH i2c: 01 00 00 5C 00 5C [21:57:20]Write i2c OK [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: 01 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: 01 07 00 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 9E 0C 0D [21:57:20]RasterBufferAndPrint [21:57:20]line [21:57:20]line [21:57:20]line [21:57:20]line [21:57:20]line [21:57:20]written 0, free lines is 3236 [21:57:20]MH_Cut [21:57:20]Write to MH i2c: D1 01 00 63 00 01 35 [21:57:20]Write i2c OK [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: D1 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: D1 01 00 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: D1 01 00 63 00 00 34 [21:57:20]Write to MH i2c: 01 00 00 64 00 64 [21:57:20]Write i2c OK [21:57:20]MH_I2C_Read... [21:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 20 AA 47 00 73 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C1 39 02 00 F4 03 04 00 6A 5C 1E 67 B6 04 01 00 00 B1 3F 08 0E 08 AB 0A 72 [21:57:20]CommunicateWithHost err = 0 [21:57:20]CheckOFDResponse [21:57:20]1017 (14) - 77093643461234 [21:57:20]1041 (16) - 0000000000871745 [21:57:20]1040 (4) - 145857 [21:57:20]1012 (4) - 27.10.2024 15:29 [21:57:20]1206 (1) - 0 [21:57:20]OFD Sender: Remove packet 145857 [21:57:20]ProducePacketName [21:57:20]name=ofd_packets/00145857 [21:57:20]NVStorageDeleteData [21:57:20]OFD Sender: No OFD packet to send [21:57:20]*** Cut start [21:57:20]*** Partial cut [21:57:20]*** CUTSNS_PIN = 1 [21:57:20]*** CUTSNS_PIN = 0 [21:57:21]*** Brake cut motor [21:57:21]Read from MH i2c: 01 [21:57:21]MH_I2C_Read... [21:57:21]*** Stop cut motor [21:57:21]*** Cut end [21:57:21]Read from MH i2c: 01 07 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [21:57:21]process_action close_receipt done [21:57:21]requested_data is exist [21:57:21]produce_requested_data [21:57:21]requested_item fm.sn is exist - process it [21:57:21]wFMCommunicate request_size=4 [21:57:21]MH_SAM_APDU [21:57:21]CAPDU: 80 11 00 00 [21:57:21]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 17 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 32 [21:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [21:57:21]wFMCommunicate OK [21:57:21]requested_item fd.num is exist - process it [21:57:21]SAM_PROTO_GetFieldsCounters [21:57:21]wFMCommunicate request_size=4 [21:57:21]MH_SAM_APDU [21:57:21]CAPDU: 80 13 00 00 [21:57:21]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 62 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C1 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [21: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C1 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:21]wFMCommunicate OK [21:57:21]SAM_PROTO_GetFieldsCounters done [21:57:21]requested_item shift.num is exist - process it [21:57:21]requested_item shift.opened is exist - process it [21:57:21]req_shift_opened [21:57:21]FM_GetShiftState [21:57:21]SAM_PROTO_GetShiftState [21:57:21]wFMCommunicate request_size=4 [21:57:21]MH_SAM_APDU [21:57:21]CAPDU: 80 13 01 00 [21:57:21]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 0E 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5C [21:57:21]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [21:57:21]wFMCommunicate OK [21:57:21]SAM_PROTO_GetShiftState done [21:57:21]FM_GetShiftState done [21:57:21]req_shift_opened done [21:57:21]requested_item shift.open_date is exist - process it [21:57:21]req_shift_open_date [21:57:21]req_shift_open_date done [21:57:21]produce_requested_data done [21:57:21]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145857,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [21:57:21]process_action_free close_receipt [21:57:21]json_value_free [21:57:21]json_value_free done [21:57:21]process_json_proto returns [21:57:21]Send response to host [21:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145857,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [21:57:21]free response buf [21:57:21]execute_script done [21:57:21]execute_script returns [21:57:21]free content buf [21:57:21]Sock 9.Close socket [21:57:21]Sock 9.Thread stoped [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:27]accept exits with 7 [22:06:27]New connection [22:06:27]New thread 3067362660 created [22:06:27]Thread 3067506020 joined [22:06:27]Waiting for new connection... [22:06:27] Sock 7.Parse request [22:06:27]Sock 7.Check first char [22:06:27]Sock 7.First char is OK [22:06:27]request: POST /json_proto HTTP/1.0 [22:06:27]Method: POST [22:06:27]URL: /json_proto [22:06:27]Method is POST - this is cgi request [22:06:27]url: /json_proto [22:06:27]query_string will be loaded in cgi processing [22:06:27]execute_cgi json_proto POST (null) [22:06:27]execute_cgi path=json_proto method=POST [22:06:27]POST find Content-Length [22:06:27]Host: 172.17.40.195:8080 [22:06:27]Content-Length: 682 [22:06:27]Content-Type: application/json [22:06:27] [22:06:27]POST finish read [22:06:27]Found Content-Length = 682 [22:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:27]execute_script... [22:06: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)160615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:27]POST & json_proto [22:06:27]process_json_proto [22:06:27]json parsed OK: [22:06:27]protocol is kg_v1.0 [22:06:27]action value=close_receipt [22:06:27]process_action close_receipt [22:06:27]cmd_close_receipt [22:06:27]MH_GetDate [22:06:27]Write to MH i2c: F0 00 00 68 00 57 [22:06:27]Write i2c OK [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: F0 [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: F0 09 00 [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: F0 09 00 68 00 00 63 B9 1E 67 D5 8D 6C 64 33 [22:06:27]GetLastDocTimeStamp 1730066238 [22:06:27]current date 1730066787 [22:06:27]FM_GetShiftState [22:06:27]SAM_PROTO_GetShiftState [22:06:27]wFMCommunicate request_size=4 [22:06:27]MH_SAM_APDU [22:06:27]CAPDU: 80 13 01 00 [22:06:27]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [22:06:27]Write i2c OK [22:06:27]MH_I2C_Read... [22:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:27]Read from MH i2c: E2 [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: E2 0E 00 [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5E [22:06:27]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:06:27]wFMCommunicate OK [22:06:27]SAM_PROTO_GetShiftState done [22:06:27]FM_GetShiftState done [22:06:27]opened in 1729988959 [22:06:27]opened+sec_in_day 1730075359 [22:06:27]quantity*price = 100015 [22:06:27]sum+1 = 100017 [22:06:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 281 27.10.2024 22:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145858 ФПД: 84878325550410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220627&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145858&fm=84878325550410&tin=02508201610067®Number=0000000000091683&sum=100000 [22:06:28]StoreToDocumentArchive [22:06:28]shift 545 fd 145858 [22:06:28]save to /storage/0545/doc_00145858 [22:06:28]save last doc name /storage/0545/doc_00145858 to /storage/kkm_last_doc_name [22:06:28]save OK [22:06:28]Clear old archive folders... [22:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:28]tlvbuf is 006A0610 [22:06:28]SAM_PROTO_ClearQueue [22:06:28]wFMCommunicate request_size=4 [22:06:28]MH_SAM_APDU [22:06:28]CAPDU: 80 09 00 00 [22:06:28]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [22:06:28]Write i2c OK [22:06:28]MH_I2C_Read... [22:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:28]Read from MH i2c: E2 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 03 00 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [22:06:28]RAPDU: 90 00 [22:06:28]wFMCommunicate OK [22:06:28]SAM_PROTO_ClearQueue done [22:06:28]KKMCreateOFDPacket [22:06:28]OFDProtocolAddRootSTLVToBuf [22:06:28]FM_MakeSignedData [22:06:28]FM_MakeSignedData [22:06:28]SAM_PROTO_SignData [22:06:28]wFMCommunicate request_size=4 [22:06:28]MH_SAM_APDU [22:06:28]CAPDU: 80 0D 01 02 [22:06:28]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [22:06:28]Write i2c OK [22:06:28]MH_I2C_Read... [22:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:28]Read from MH i2c: E2 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 03 00 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [22:06:28]RAPDU: 90 00 [22:06:28]wFMCommunicate OK [22:06:28]wFMCommunicate request_size=255 [22:06:28]MH_SAM_APDU [22:06:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 63 B9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C2 39 02 00 35 04 06 00 4D [22:06:28]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 63 B9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C2 39 02 00 35 04 06 00 4D 00 00 A0 [22:06:28]Write i2c OK [22:06:28]MH_I2C_Read... [22:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:28]Read from MH i2c: E2 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 03 00 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [22:06:28]RAPDU: 90 00 [22:06:28]wFMCommunicate OK [22:06:28]wFMCommunicate request_size=10 [22:06:28]MH_SAM_APDU [22:06:28]CAPDU: 80 0D 02 02 05 32 46 71 8D 4A [22:06:28]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 32 46 71 8D 4A 00 00 BD [22:06:28]Write i2c OK [22:06:28]MH_I2C_Read... [22:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:28]Read from MH i2c: E2 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 03 00 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [22:06:28]RAPDU: 90 00 [22:06:28]wFMCommunicate OK [22:06:28]wFMCommunicate request_size=4 [22:06:28]MH_SAM_APDU [22:06:28]CAPDU: 80 0D 03 02 [22:06:28]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [22:06:28]Write i2c OK [22:06:28]MH_I2C_Read... [22:06:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:28]Read from MH i2c: E2 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 0B 00 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 0B 00 7A 00 00 11 26 1E BD 80 0F 2D 08 90 00 CC [22:06:28]RAPDU: 11 26 1E BD 80 0F 2D 08 90 00 [22:06:28]wFMCommunicate OK [22:06:28]SAM_PROTO_SignData done [22:06:28]FM_MakeSignedData done [22:06:28]CreateOFDProtocolMessage [22:06:28]wFMCommunicate request_size=4 [22:06:28]MH_SAM_APDU [22:06:28]CAPDU: 80 11 00 00 [22:06:28]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [22:06:28]Write i2c OK [22:06:28]MH_I2C_Read... [22:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:28]Read from MH i2c: E2 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 17 00 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 48 [22:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:06:28]wFMCommunicate OK [22:06:28]CreateOFDProtocolMessage done [22:06:28]OFDSenderStorePacket 145858 [22:06:28]StoreOFDPacket docnum=145858 [22:06:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 7F D1 07 01 1C 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 63 B9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C2 39 02 00 35 04 06 00 4D 32 46 71 8D 4A 11 26 1E BD 80 0F 2D 08 [22:06:28]CheckFolder [22:06:28]dirname=/storage/ofd_packets [22:06:28]CheckFolder done [22:06:28]ProducePacketName [22:06:28]name=ofd_packets/00145858 [22:06:28]NVStorageSaveData ofd_packets/00145858 [22:06:28]File name is /storage/ofd_packets/00145858 [22:06:28]Write 301 bytes [22:06:28]NVStorageSaveData done [22:06:28]OFDSenderStorePacket done [22:06:28]KKMCreateOFDPacket done [22:06:28]NVStorageSaveData kkm_last_timestamp [22:06:28]File name is /storage/kkm_last_timestamp [22:06:28]Write 4 bytes [22:06:28]NVStorageSaveData done [22:06:28]ExternCall_PrintAddStr [22:06:28]wPrintStart [22:06:28]Write to MH i2c: 01 00 00 7C 00 7C [22:06:28]Write i2c OK [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: 01 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: 01 07 00 [22:06:28]MH_I2C_Read... [22:06:28]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [22:06:28]RasterBufferAndPrint [22:06:28]line Счет N : (1)160615 [22:06:28]line ИНН: 02508201610067 [22:06:28]line Контрольно-Кассовый Чек [22:06:28]line ПРОДАЖА [22:06:28]line ТРК (МРК, ГНК) : 62 [22:06:28]line Товар: 2710124130 [22:06:28]line Аи-92-К-2 [22:06:28]line 14.950 * 66.90 [22:06:28]line = 1000.16 [22:06:28]line НДС 12% НСП 1% [22:06:28]line > о реализуемом товаре [22:06:28]line ОКРУГЛЕНИЕ: -0.16 [22:06:28]line ИТОГО: 1000.00 [22:06:28]line Внесено: 1000.00 [22:06:28]line СДАЧА: 0.00 [22:06:28]line НСП 1% : 8.85 [22:06:28]line НДС 12% : 106.21 [22:06:28]line Наличными: 1000.00 [22:06:28]line Безнал.: 0.00 [22:06:28]line Место: АЗС № 126 "Партнер Нефть" [22:06:28]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [22:06:28]line СНО: Общий режим [22:06:28]line Чек 281 27.10.2024 22:06 [22:06:28]line Смена: 545 ФФД: 1.0 [22:06:28]line ЗНМ: 0300000085 [22:06:28]line РНМ: 0000000000091683 [22:06:28]line Версия ККМ: 001 [22:06:28]line ФМ: 0000000000871745 [22:06:28]line ФД: 145858 [22:06:28]line ФПД: 84878325550410 [22:06:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220627&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145858&fm=84878325550410&tin=02508201610067®Number=0000000000091683&sum=100000 [22:06:29]OFD Sender: Processing packet 145858 [packets to send 206, broken 205] [22:06:29]ProducePacketName [22:06:29]name=ofd_packets/00145858 [22:06:29]OFD Sender: To server: pG, [22:06:29]CommunicateWithHost lk.salyk.kg:30040 [22:06:29]ConnectInit lk.salyk.kg [22:06:29]written 0, free lines is 4095 [22:06:29]Connected sock=10 [22:06:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 7F D1 07 01 1C 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 63 B9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C2 39 02 00 35 04 06 00 4D 32 46 71 8D 4A 11 26 1E BD 80 0F 2D 08 [22:06:29]Write to MH i2c: 01 00 00 A7 00 A7 [22:06:29]Write i2c OK [22:06:29]MH_I2C_Read... [22:06:29]Read from MH i2c: 01 [22:06:29]MH_I2C_Read... [22:06:29]Read from MH i2c: 01 07 00 [22:06:29]MH_I2C_Read... [22:06:29]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 A3 0C 5D [22:06:29]RasterBufferAndPrint [22:06:29]line [22:06:29]line [22:06:29]line [22:06:29]line [22:06:29]line [22:06:29]written 0, free lines is 3241 [22:06:29]MH_Cut [22:06:29]Write to MH i2c: D1 01 00 AE 00 01 80 [22:06:29]Write i2c OK [22:06:29]MH_I2C_Read... [22:06:29]Read from MH i2c: D1 [22:06:29]MH_I2C_Read... [22:06:29]Read from MH i2c: D1 01 00 [22:06:29]MH_I2C_Read... [22:06:29]Read from MH i2c: D1 01 00 AE 00 00 7F [22:06:29]Write to MH i2c: 01 00 00 AF 00 AF [22:06:29]Write i2c OK [22:06:29]MH_I2C_Read... [22:06:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 45 47 47 00 B1 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C2 39 02 00 F4 03 04 00 8F 5E 1E 67 B6 04 01 00 00 8B C6 24 BB 5B 4F E1 2C [22:06:29]CommunicateWithHost err = 0 [22:06:29]CheckOFDResponse [22:06:29]1017 (14) - 77093643461234 [22:06:29]1041 (16) - 0000000000871745 [22:06:29]1040 (4) - 145858 [22:06:29]1012 (4) - 27.10.2024 15:38 [22:06:29]1206 (1) - 0 [22:06:29]OFD Sender: Remove packet 145858 [22:06:29]ProducePacketName [22:06:29]name=ofd_packets/00145858 [22:06:29]NVStorageDeleteData [22:06:30]OFD Sender: No OFD packet to send [22:06:30]*** Cut start [22:06:30]*** Partial cut [22:06:30]*** CUTSNS_PIN = 1 [22:06:30]*** CUTSNS_PIN = 0 [22:06:30]*** Brake cut motor [22:06:31]Read from MH i2c: 01 [22:06:31]MH_I2C_Read... [22:06:31]*** Stop cut motor [22:06:31]*** Cut end [22:06:31]Read from MH i2c: 01 07 00 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [22:06:31]process_action close_receipt done [22:06:31]requested_data is exist [22:06:31]produce_requested_data [22:06:31]requested_item fm.sn is exist - process it [22:06:31]wFMCommunicate request_size=4 [22:06:31]MH_SAM_APDU [22:06:31]CAPDU: 80 11 00 00 [22:06:31]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [22:06:31]Write i2c OK [22:06:31]MH_I2C_Read... [22:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:31]Read from MH i2c: E2 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 17 00 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 7D [22:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:06:31]wFMCommunicate OK [22:06:31]requested_item fd.num is exist - process it [22:06:31]SAM_PROTO_GetFieldsCounters [22:06:31]wFMCommunicate request_size=4 [22:06:31]MH_SAM_APDU [22:06:31]CAPDU: 80 13 00 00 [22:06:31]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [22:06:31]Write i2c OK [22:06:31]MH_I2C_Read... [22:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:31]Read from MH i2c: E2 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 62 00 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [22:06:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:31]wFMCommunicate OK [22:06:31]SAM_PROTO_GetFieldsCounters done [22:06:31]requested_item shift.num is exist - process it [22:06:31]requested_item shift.opened is exist - process it [22:06:31]req_shift_opened [22:06:31]FM_GetShiftState [22:06:31]SAM_PROTO_GetShiftState [22:06:31]wFMCommunicate request_size=4 [22:06:31]MH_SAM_APDU [22:06:31]CAPDU: 80 13 01 00 [22:06:31]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [22:06:31]Write i2c OK [22:06:31]MH_I2C_Read... [22:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:31]Read from MH i2c: E2 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 0E 00 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A7 [22:06:31]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:06:31]wFMCommunicate OK [22:06:31]SAM_PROTO_GetShiftState done [22:06:31]FM_GetShiftState done [22:06:31]req_shift_opened done [22:06:31]requested_item shift.open_date is exist - process it [22:06:31]req_shift_open_date [22:06:31]req_shift_open_date done [22:06:31]produce_requested_data done [22:06:31]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145858,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [22:06:31]process_action_free close_receipt [22:06:31]json_value_free [22:06:31]json_value_free done [22:06:31]process_json_proto returns [22:06:31]Send response to host [22:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145858,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [22:06:31]free response buf [22:06:31]execute_script done [22:06:31]execute_script returns [22:06:31]free content buf [22:06:31]Sock 7.Close socket [22:06:31]Sock 7.Thread stoped [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:05]accept exits with 9 [22:07:05]New connection [22:07:05]New thread 3067506020 created [22:07:05]Thread 3067362660 joined [22:07:05]Waiting for new connection... [22:07:05] Sock 9.Parse request [22:07:05]Sock 9.Check first char [22:07:05]Sock 9.First char is OK [22:07:05]request: POST /json_proto HTTP/1.0 [22:07:05]Method: POST [22:07:05]URL: /json_proto [22:07:05]Method is POST - this is cgi request [22:07:05]url: /json_proto [22:07:05]query_string will be loaded in cgi processing [22:07:05]execute_cgi json_proto POST (null) [22:07:05]execute_cgi path=json_proto method=POST [22:07:05]POST find Content-Length [22:07:05]Host: 172.17.40.195:8080 [22:07:05]Content-Length: 800 [22:07:05]Content-Type: application/json [22:07:05] [22:07:05]POST finish read [22:07:05]Found Content-Length = 800 [22:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4198017", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:05]execute_script... [22:07: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)160616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4198017", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:05]POST & json_proto [22:07:05]process_json_proto [22:07:05]json parsed OK: [22:07:05]protocol is kg_v1.0 [22:07:05]action value=close_receipt [22:07:05]process_action close_receipt [22:07:05]cmd_close_receipt [22:07:05]MH_GetDate [22:07:05]Write to MH i2c: F0 00 00 B3 00 A2 [22:07:05]Write i2c OK [22:07:05]MH_I2C_Read... [22:07:05]Read from MH i2c: F0 [22:07:05]MH_I2C_Read... [22:07:05]Read from MH i2c: F0 09 00 [22:07:05]MH_I2C_Read... [22:07:05]Read from MH i2c: F0 09 00 B3 00 00 8A B9 1E 67 D5 8D 6C 64 A5 [22:07:05]GetLastDocTimeStamp 1730066787 [22:07:05]current date 1730066826 [22:07:05]FM_GetShiftState [22:07:05]SAM_PROTO_GetShiftState [22:07:05]wFMCommunicate request_size=4 [22:07:05]MH_SAM_APDU [22:07:05]CAPDU: 80 13 01 00 [22:07:05]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [22:07:05]Write i2c OK [22:07:05]MH_I2C_Read... [22:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:05]Read from MH i2c: E2 [22:07:05]MH_I2C_Read... [22:07:05]Read from MH i2c: E2 0E 00 [22:07:05]MH_I2C_Read... [22:07:05]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A9 [22:07:05]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:07:05]wFMCommunicate OK [22:07:05]SAM_PROTO_GetShiftState done [22:07:05]FM_GetShiftState done [22:07:05]opened in 1729988959 [22:07:05]opened+sec_in_day 1730075359 [22:07:05]quantity*price = 0 [22:07:05]sum+1 = 1 [22:07:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 282 27.10.2024 22:07 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Талоны: Топливные Талоны 4198017 ФМ: 0000000000871745 ФД: 145859 ФПД: 199912467279304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220706&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145859&fm=199912467279304&tin=02508201610067®Number=0000000000091683&sum=0 [22:07:07]StoreToDocumentArchive [22:07:07]shift 545 fd 145859 [22:07:07]save to /storage/0545/doc_00145859 [22:07:07]save last doc name /storage/0545/doc_00145859 to /storage/kkm_last_doc_name [22:07:07]save OK [22:07:07]Clear old archive folders... [22:07:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:07]tlvbuf is 006999E0 [22:07:07]SAM_PROTO_ClearQueue [22:07:07]wFMCommunicate request_size=4 [22:07:07]MH_SAM_APDU [22:07:07]CAPDU: 80 09 00 00 [22:07:07]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [22:07:07]Write i2c OK [22:07:07]MH_I2C_Read... [22:07:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:07]Read from MH i2c: E2 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 03 00 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [22:07:07]RAPDU: 90 00 [22:07:07]wFMCommunicate OK [22:07:07]SAM_PROTO_ClearQueue done [22:07:07]KKMCreateOFDPacket [22:07:07]OFDProtocolAddRootSTLVToBuf [22:07:07]FM_MakeSignedData [22:07:07]FM_MakeSignedData [22:07:07]SAM_PROTO_SignData [22:07:07]wFMCommunicate request_size=4 [22:07:07]MH_SAM_APDU [22:07:07]CAPDU: 80 0D 01 02 [22:07:07]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [22:07:07]Write i2c OK [22:07:07]MH_I2C_Read... [22:07:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:07]Read from MH i2c: E2 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 03 00 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [22:07:07]RAPDU: 90 00 [22:07:07]wFMCommunicate OK [22:07:07]wFMCommunicate request_size=255 [22:07:07]MH_SAM_APDU [22:07: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 8A B9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C3 39 02 00 35 04 06 00 B5 [22:07:07]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 8A B9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C3 39 02 00 35 04 06 00 B5 00 00 6B [22:07:07]Write i2c OK [22:07:07]MH_I2C_Read... [22:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:07]Read from MH i2c: E2 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 03 00 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [22:07:07]RAPDU: 90 00 [22:07:07]wFMCommunicate OK [22:07:07]wFMCommunicate request_size=10 [22:07:07]MH_SAM_APDU [22:07:07]CAPDU: 80 0D 02 02 05 D1 BF 99 2D C8 [22:07:07]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 D1 BF 99 2D C8 00 00 66 [22:07:07]Write i2c OK [22:07:07]MH_I2C_Read... [22:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:07]Read from MH i2c: E2 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 03 00 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [22:07:07]RAPDU: 90 00 [22:07:07]wFMCommunicate OK [22:07:07]wFMCommunicate request_size=4 [22:07:07]MH_SAM_APDU [22:07:07]CAPDU: 80 0D 03 02 [22:07:07]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [22:07:07]Write i2c OK [22:07:07]MH_I2C_Read... [22:07:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:07]Read from MH i2c: E2 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 0B 00 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 0B 00 C5 00 00 D0 42 A5 9B DE 6C AF 25 90 00 B1 [22:07:07]RAPDU: D0 42 A5 9B DE 6C AF 25 90 00 [22:07:07]wFMCommunicate OK [22:07:07]SAM_PROTO_SignData done [22:07:07]FM_MakeSignedData done [22:07:07]CreateOFDProtocolMessage [22:07:07]wFMCommunicate request_size=4 [22:07:07]MH_SAM_APDU [22:07:07]CAPDU: 80 11 00 00 [22:07:07]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [22:07:07]Write i2c OK [22:07:07]MH_I2C_Read... [22:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:07]Read from MH i2c: E2 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 17 00 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 93 [22:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:07:07]wFMCommunicate OK [22:07:07]CreateOFDProtocolMessage done [22:07:07]OFDSenderStorePacket 145859 [22:07:07]StoreOFDPacket docnum=145859 [22:07:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D8 B0 07 01 6D 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 8A B9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C3 39 02 00 35 04 06 00 B5 D1 BF 99 2D C8 D0 42 A5 9B DE 6C AF 25 [22:07:07]CheckFolder [22:07:07]dirname=/storage/ofd_packets [22:07:07]CheckFolder done [22:07:07]ProducePacketName [22:07:07]name=ofd_packets/00145859 [22:07:07]NVStorageSaveData ofd_packets/00145859 [22:07:07]File name is /storage/ofd_packets/00145859 [22:07:07]Write 301 bytes [22:07:07]NVStorageSaveData done [22:07:07]OFDSenderStorePacket done [22:07:07]KKMCreateOFDPacket done [22:07:07]NVStorageSaveData kkm_last_timestamp [22:07:07]File name is /storage/kkm_last_timestamp [22:07:07]Write 4 bytes [22:07:07]NVStorageSaveData done [22:07:07]ExternCall_PrintAddStr [22:07:07]wPrintStart [22:07:07]Write to MH i2c: 01 00 00 C7 00 C7 [22:07:07]Write i2c OK [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: 01 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: 01 07 00 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [22:07:07]RasterBufferAndPrint [22:07:07]line Счет N : (1)160616 [22:07:07]line ИНН: 02508201610067 [22:07:07]line Контрольно-Кассовый Чек [22:07:07]line ПРОДАЖА [22:07:07]line ТРК (МРК, ГНК) : 42 [22:07:07]line Товар: 2710124130 [22:07:07]line Аи-92-К-2 [22:07:07]line 20.000 * 0.00 [22:07:07]line = 0.00 [22:07:07]line НДС 12% НСП 1% [22:07:07]line > о реализуемом товаре [22:07:07]line ИТОГО: 0.00 [22:07:07]line НСП 1% : 0.00 [22:07:07]line НДС 12% : 0.00 [22:07:07]line Наличными: 0.00 [22:07:07]line Безнал.: 0.00 [22:07:07]line Место: АЗС № 126 "Партнер Нефть" [22:07:07]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [22:07:07]line СНО: Общий режим [22:07:07]line Чек 282 27.10.2024 22:07 [22:07:07]line Смена: 545 ФФД: 1.0 [22:07:07]line ЗНМ: 0300000085 [22:07:07]line РНМ: 0000000000091683 [22:07:07]line Версия ККМ: 001 [22:07:07]line Талоны: Топливные Талоны [22:07:07]line 4198017 [22:07:07]line ФМ: 0000000000871745 [22:07:07]line ФД: 145859 [22:07:07]line ФПД: 199912467279304 [22:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220706&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145859&fm=199912467279304&tin=02508201610067®Number=0000000000091683&sum=0 [22:07:07]written 0, free lines is 4095 [22:07:07]OFD Sender: Processing packet 145859 [packets to send 206, broken 205] [22:07:07]ProducePacketName [22:07:07]name=ofd_packets/00145859 [22:07:07]OFD Sender: To server: pG, [22:07:07]CommunicateWithHost lk.salyk.kg:30040 [22:07:07]ConnectInit lk.salyk.kg [22:07:07]Connected sock=10 [22:07:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 D8 B0 07 01 6D 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 8A B9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C3 39 02 00 35 04 06 00 B5 D1 BF 99 2D C8 D0 42 A5 9B DE 6C AF 25 [22:07:07]Write to MH i2c: 01 00 00 F1 00 F1 [22:07:07]Write i2c OK [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: 01 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: 01 07 00 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 B8 0C BC [22:07:07]RasterBufferAndPrint [22:07:07]line [22:07:07]line [22:07:07]line [22:07:07]line [22:07:07]line [22:07:07]written 0, free lines is 3260 [22:07:08]MH_Cut [22:07:08]Write to MH i2c: D1 01 00 F8 00 01 CA [22:07:08]Write i2c OK [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: D1 [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: D1 01 00 [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: D1 01 00 F8 00 00 C9 [22:07:08]Write to MH i2c: 01 00 00 F9 00 F9 [22:07:08]Write i2c OK [22:07:08]MH_I2C_Read... [22:07:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 49 39 47 00 05 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C3 39 02 00 F4 03 04 00 B6 5E 1E 67 B6 04 01 00 00 18 49 04 D5 55 FE 3B 0A [22:07:08]CommunicateWithHost err = 0 [22:07:08]CheckOFDResponse [22:07:08]1017 (14) - 77093643461234 [22:07:08]1041 (16) - 0000000000871745 [22:07:08]1040 (4) - 145859 [22:07:08]1012 (4) - 27.10.2024 15:39 [22:07:08]1206 (1) - 0 [22:07:08]OFD Sender: Remove packet 145859 [22:07:08]ProducePacketName [22:07:08]name=ofd_packets/00145859 [22:07:08]NVStorageDeleteData [22:07:08]OFD Sender: No OFD packet to send [22:07:08]*** Cut start [22:07:08]*** Partial cut [22:07:08]*** CUTSNS_PIN = 1 [22:07:08]*** CUTSNS_PIN = 0 [22:07:09]*** Brake cut motor [22:07:09]Read from MH i2c: 01 [22:07:09]MH_I2C_Read... [22:07:09]*** Stop cut motor [22:07:09]*** Cut end [22:07:09]Read from MH i2c: 01 07 00 [22:07:09]MH_I2C_Read... [22:07:09]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [22:07:09]process_action close_receipt done [22:07:09]requested_data is exist [22:07:09]produce_requested_data [22:07:09]requested_item fm.sn is exist - process it [22:07:09]wFMCommunicate request_size=4 [22:07:09]MH_SAM_APDU [22:07:09]CAPDU: 80 11 00 00 [22:07:09]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [22:07:09]Write i2c OK [22:07:09]MH_I2C_Read... [22:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:09]Read from MH i2c: E2 [22:07:09]MH_I2C_Read... [22:07:09]Read from MH i2c: E2 17 00 [22:07:09]MH_I2C_Read... [22:07:09]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C7 [22:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:07:09]wFMCommunicate OK [22:07:09]requested_item fd.num is exist - process it [22:07:09]SAM_PROTO_GetFieldsCounters [22:07:09]wFMCommunicate request_size=4 [22:07:09]MH_SAM_APDU [22:07:09]CAPDU: 80 13 00 00 [22:07:09]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [22:07:09]Write i2c OK [22:07:09]MH_I2C_Read... [22:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:09]Read from MH i2c: E2 [22:07:09]MH_I2C_Read... [22:07:09]Read from MH i2c: E2 62 00 [22:07:09]MH_I2C_Read... [22:07:09]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C3 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [22:07:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C3 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:09]wFMCommunicate OK [22:07:09]SAM_PROTO_GetFieldsCounters done [22:07:09]requested_item shift.num is exist - process it [22:07:09]requested_item shift.opened is exist - process it [22:07:09]req_shift_opened [22:07:09]FM_GetShiftState [22:07:09]SAM_PROTO_GetShiftState [22:07:09]wFMCommunicate request_size=4 [22:07:09]MH_SAM_APDU [22:07:09]CAPDU: 80 13 01 00 [22:07:09]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [22:07:09]Write i2c OK [22:07:09]MH_I2C_Read... [22:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:09]Read from MH i2c: E2 [22:07:09]MH_I2C_Read... [22:07:09]Read from MH i2c: E2 0E 00 [22:07:09]MH_I2C_Read... [22:07:09]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F1 [22:07:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:07:09]wFMCommunicate OK [22:07:09]SAM_PROTO_GetShiftState done [22:07:09]FM_GetShiftState done [22:07:09]req_shift_opened done [22:07:09]requested_item shift.open_date is exist - process it [22:07:09]req_shift_open_date [22:07:09]req_shift_open_date done [22:07:09]produce_requested_data done [22:07:09]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145859,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [22:07:09]process_action_free close_receipt [22:07:09]json_value_free [22:07:09]json_value_free done [22:07:09]process_json_proto returns [22:07:09]Send response to host [22:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145859,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [22:07:09]free response buf [22:07:09]execute_script done [22:07:09]execute_script returns [22:07:09]free content buf [22:07:09]Sock 9.Close socket [22:07:09]Sock 9.Thread stoped [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:35]int [22:07:35]Write to MH i2c: 01 00 00 FD 00 FD [22:07:35]*** FLAG_PRN_KEY set [22:07:35]Write i2c OK [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: 01 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: 01 07 00 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: 01 07 00 FD 00 00 08 00 00 00 FF 0F 1A [22:07:35]state=0 [22:07:35]Key pressed [22:07:35]Feed [22:07:35]Write to MH i2c: D8 00 00 FE 00 D5 [22:07:35]Write i2c OK [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: D8 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: D8 01 00 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: D8 01 00 FE 00 00 D6 [22:07:35]int [22:07:35]Write to MH i2c: 01 00 00 FF 00 FF [22:07:35]Write i2c OK [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: 01 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: 01 07 00 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: 01 07 00 FF 00 00 48 00 00 00 3C 00 8A [22:07:35]state=2 [22:07:35]Key pressed [22:07:35]int [22:07:35]Write to MH i2c: 01 00 00 00 01 01 [22:07:35]*** FLAG_PRN_KEY reset [22:07:35]Write i2c OK [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: 01 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: 01 07 00 [22:07:35]MH_I2C_Read... [22:07:35]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 F6 0F 0D [22:07:35]state=2 [22:07:35]Stop feed [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:20]accept exits with 7 [22:15:20]New connection [22:15:20]New thread 3067362660 created [22:15:20]Thread 3067506020 joined [22:15:20]Waiting for new connection... [22:15:20] Sock 7.Parse request [22:15:20]Sock 7.Check first char [22:15:20]Sock 7.First char is OK [22:15:20]request: POST /json_proto HTTP/1.0 [22:15:20]Method: POST [22:15:20]URL: /json_proto [22:15:20]Method is POST - this is cgi request [22:15:20]url: /json_proto [22:15:20]query_string will be loaded in cgi processing [22:15:20]execute_cgi json_proto POST (null) [22:15:20]execute_cgi path=json_proto method=POST [22:15:20]POST find Content-Length [22:15:20]Host: 172.17.40.195:8080 [22:15:20]Content-Length: 678 [22:15:20]Content-Type: application/json [22:15:20] [22:15:20]POST finish read [22:15:20]Found Content-Length = 678 [22:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:20]execute_script... [22:15: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)160617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:20]POST & json_proto [22:15:20]process_json_proto [22:15:20]json parsed OK: [22:15:20]protocol is kg_v1.0 [22:15:20]action value=close_receipt [22:15:20]process_action close_receipt [22:15:20]cmd_close_receipt [22:15:20]MH_GetDate [22:15:20]Write to MH i2c: F0 00 00 01 01 F1 [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: F0 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: F0 09 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: F0 09 00 01 01 00 79 BB 1E 67 D5 8D 6C 64 E5 [22:15:20]GetLastDocTimeStamp 1730066826 [22:15:20]current date 1730067321 [22:15:20]FM_GetShiftState [22:15:20]SAM_PROTO_GetShiftState [22:15:20]wFMCommunicate request_size=4 [22:15:20]MH_SAM_APDU [22:15:20]CAPDU: 80 13 01 00 [22:15:20]Write to MH i2c: E2 08 00 02 01 80 13 01 00 00 00 00 00 80 [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:21]Read from MH i2c: E2 [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: E2 0E 00 [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: E2 0E 00 02 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 F8 [22:15:21]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:15:21]wFMCommunicate OK [22:15:21]SAM_PROTO_GetShiftState done [22:15:21]FM_GetShiftState done [22:15:21]opened in 1729988959 [22:15:21]opened+sec_in_day 1730075359 [22:15:21]quantity*price = 68037 [22:15:21]sum+1 = 68038 [22:15:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.25 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 283 27.10.2024 22:15 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145860 ФПД: 168672160387037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T221521&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145860&fm=168672160387037&tin=02508201610067®Number=0000000000091683&sum=68000 [22:15:22]StoreToDocumentArchive [22:15:22]shift 545 fd 145860 [22:15:22]save to /storage/0545/doc_00145860 [22:15:22]save last doc name /storage/0545/doc_00145860 to /storage/kkm_last_doc_name [22:15:22]save OK [22:15:22]Clear old archive folders... [22:15:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:22]tlvbuf is 006A00B0 [22:15:22]SAM_PROTO_ClearQueue [22:15:22]wFMCommunicate request_size=4 [22:15:22]MH_SAM_APDU [22:15:22]CAPDU: 80 09 00 00 [22:15:22]Write to MH i2c: E2 08 00 0F 01 80 09 00 00 00 00 00 00 82 [22:15:22]Write i2c OK [22:15:22]MH_I2C_Read... [22:15:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:22]Read from MH i2c: E2 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 03 00 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [22:15:22]RAPDU: 90 00 [22:15:22]wFMCommunicate OK [22:15:22]SAM_PROTO_ClearQueue done [22:15:22]KKMCreateOFDPacket [22:15:22]OFDProtocolAddRootSTLVToBuf [22:15:22]FM_MakeSignedData [22:15:22]FM_MakeSignedData [22:15:22]SAM_PROTO_SignData [22:15:22]wFMCommunicate request_size=4 [22:15:22]MH_SAM_APDU [22:15:22]CAPDU: 80 0D 01 02 [22:15:22]Write to MH i2c: E2 08 00 10 01 80 0D 01 02 00 00 00 00 8A [22:15:22]Write i2c OK [22:15:22]MH_I2C_Read... [22:15:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:22]Read from MH i2c: E2 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 03 00 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 03 00 10 01 00 90 00 85 [22:15:22]RAPDU: 90 00 [22:15:22]wFMCommunicate OK [22:15:22]wFMCommunicate request_size=255 [22:15:22]MH_SAM_APDU [22:15:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 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 39 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 1B 01 00 00 F4 03 04 00 79 BB 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C4 39 02 00 35 04 06 00 99 [22:15:22]Write to MH i2c: E2 02 01 11 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 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 39 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 1B 01 00 00 F4 03 04 00 79 BB 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C4 39 02 00 35 04 06 00 99 00 00 14 [22:15:22]Write i2c OK [22:15:22]MH_I2C_Read... [22:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:22]Read from MH i2c: E2 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 03 00 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [22:15:22]RAPDU: 90 00 [22:15:22]wFMCommunicate OK [22:15:22]wFMCommunicate request_size=10 [22:15:22]MH_SAM_APDU [22:15:22]CAPDU: 80 0D 02 02 05 68 0C 34 0F DD [22:15:22]Write to MH i2c: E2 0D 00 12 01 80 0D 02 02 05 00 68 0C 34 0F DD 00 00 2B [22:15:22]Write i2c OK [22:15:22]MH_I2C_Read... [22:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:22]Read from MH i2c: E2 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 03 00 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [22:15:22]RAPDU: 90 00 [22:15:22]wFMCommunicate OK [22:15:22]wFMCommunicate request_size=4 [22:15:22]MH_SAM_APDU [22:15:22]CAPDU: 80 0D 03 02 [22:15:22]Write to MH i2c: E2 08 00 13 01 80 0D 03 02 00 00 00 00 8F [22:15:22]Write i2c OK [22:15:22]MH_I2C_Read... [22:15:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:22]Read from MH i2c: E2 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 0B 00 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 0B 00 13 01 00 E4 E7 C3 A8 4F 60 CB 12 90 00 52 [22:15:22]RAPDU: E4 E7 C3 A8 4F 60 CB 12 90 00 [22:15:22]wFMCommunicate OK [22:15:22]SAM_PROTO_SignData done [22:15:22]FM_MakeSignedData done [22:15:22]CreateOFDProtocolMessage [22:15:22]wFMCommunicate request_size=4 [22:15:22]MH_SAM_APDU [22:15:22]CAPDU: 80 11 00 00 [22:15:22]Write to MH i2c: E2 08 00 14 01 80 11 00 00 00 00 00 00 8F [22:15:22]Write i2c OK [22:15:22]MH_I2C_Read... [22:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:22]Read from MH i2c: E2 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 17 00 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 17 00 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E2 [22:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:15:22]wFMCommunicate OK [22:15:22]CreateOFDProtocolMessage done [22:15:22]OFDSenderStorePacket 145860 [22:15:22]StoreOFDPacket docnum=145860 [22:15:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 09 64 07 01 F9 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 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 39 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 1B 01 00 00 F4 03 04 00 79 BB 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C4 39 02 00 35 04 06 00 99 68 0C 34 0F DD E4 E7 C3 A8 4F 60 CB 12 [22:15:22]CheckFolder [22:15:22]dirname=/storage/ofd_packets [22:15:22]CheckFolder done [22:15:22]ProducePacketName [22:15:22]name=ofd_packets/00145860 [22:15:22]NVStorageSaveData ofd_packets/00145860 [22:15:22]File name is /storage/ofd_packets/00145860 [22:15:22]Write 301 bytes [22:15:22]NVStorageSaveData done [22:15:22]OFDSenderStorePacket done [22:15:22]KKMCreateOFDPacket done [22:15:22]NVStorageSaveData kkm_last_timestamp [22:15:22]File name is /storage/kkm_last_timestamp [22:15:22]Write 4 bytes [22:15:22]NVStorageSaveData done [22:15:22]ExternCall_PrintAddStr [22:15:22]wPrintStart [22:15:22]Write to MH i2c: 01 00 00 15 01 16 [22:15:22]Write i2c OK [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: 01 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: 01 07 00 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: 01 07 00 15 01 00 00 00 00 00 FF 0F 2B [22:15:22]RasterBufferAndPrint [22:15:22]line Счет N : (1)160617 [22:15:22]line ИНН: 02508201610067 [22:15:22]line Контрольно-Кассовый Чек [22:15:22]line ПРОДАЖА [22:15:22]line ТРК (МРК, ГНК) : 52 [22:15:22]line Товар: 2710124130 [22:15:22]line Аи-92-К-2 [22:15:22]line 10.170 * 66.90 [22:15:22]line = 680.37 [22:15:22]line НДС 12% НСП 1% [22:15:22]line > о реализуемом товаре [22:15:22]line ОКРУГЛЕНИЕ: -0.37 [22:15:22]line ИТОГО: 680.00 [22:15:22]line Внесено: 680.00 [22:15:22]line СДАЧА: 0.00 [22:15:22]line НСП 1% : 6.02 [22:15:22]line НДС 12% : 72.25 [22:15:22]line Наличными: 680.00 [22:15:22]line Безнал.: 0.00 [22:15:22]line Место: АЗС № 126 "Партнер Нефть" [22:15:22]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [22:15:22]line СНО: Общий режим [22:15:22]line Чек 283 27.10.2024 22:15 [22:15:22]line Смена: 545 ФФД: 1.0 [22:15:22]line ЗНМ: 0300000085 [22:15:22]line РНМ: 0000000000091683 [22:15:22]line Версия ККМ: 001 [22:15:22]line ФМ: 0000000000871745 [22:15:22]line ФД: 145860 [22:15:22]line ФПД: 168672160387037 [22:15:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T221521&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145860&fm=168672160387037&tin=02508201610067®Number=0000000000091683&sum=68000 [22:15:23]written 0, free lines is 4095 [22:15:23]OFD Sender: Processing packet 145860 [packets to send 206, broken 205] [22:15:23]ProducePacketName [22:15:23]name=ofd_packets/00145860 [22:15:23]OFD Sender: To server: pG, [22:15:23]CommunicateWithHost lk.salyk.kg:30040 [22:15:23]ConnectInit lk.salyk.kg [22:15:23]Connected sock=11 [22:15:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 09 64 07 01 F9 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 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 39 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 1B 01 00 00 F4 03 04 00 79 BB 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C4 39 02 00 35 04 06 00 99 68 0C 34 0F DD E4 E7 C3 A8 4F 60 CB 12 [22:15:23]Write to MH i2c: 01 00 00 40 01 41 [22:15:23]Write i2c OK [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: 01 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: 01 07 00 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 A7 0C FB [22:15:23]RasterBufferAndPrint [22:15:23]line [22:15:23]line [22:15:23]line [22:15:23]line [22:15:23]line [22:15:23]written 0, free lines is 3242 [22:15:23]MH_Cut [22:15:23]Write to MH i2c: D1 01 00 47 01 01 1A [22:15:23]Write i2c OK [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: D1 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: D1 01 00 [22:15:23]MH_I2C_Read... [22:15:23]Read from MH i2c: D1 01 00 47 01 00 19 [22:15:23]Write to MH i2c: 01 00 00 48 01 49 [22:15:23]Write i2c OK [22:15:23]MH_I2C_Read... [22:15:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 98 B4 47 00 A1 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C4 39 02 00 F4 03 04 00 A5 60 1E 67 B6 04 01 00 00 8A AC 86 AD A0 5B 80 29 [22:15:23]CommunicateWithHost err = 0 [22:15:23]CheckOFDResponse [22:15:23]1017 (14) - 77093643461234 [22:15:23]1041 (16) - 0000000000871745 [22:15:23]1040 (4) - 145860 [22:15:23]1012 (4) - 27.10.2024 15:47 [22:15:23]1206 (1) - 0 [22:15:23]OFD Sender: Remove packet 145860 [22:15:23]ProducePacketName [22:15:23]name=ofd_packets/00145860 [22:15:23]NVStorageDeleteData [22:15:24]OFD Sender: No OFD packet to send [22:15:24]*** Cut start [22:15:24]*** Partial cut [22:15:24]*** CUTSNS_PIN = 1 [22:15:24]*** CUTSNS_PIN = 0 [22:15:24]*** Brake cut motor [22:15:24]Read from MH i2c: 01 [22:15:24]MH_I2C_Read... [22:15:24]*** Stop cut motor [22:15:24]*** Cut end [22:15:24]Read from MH i2c: 01 07 00 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 FF 0F 5E [22:15:24]process_action close_receipt done [22:15:24]requested_data is exist [22:15:24]produce_requested_data [22:15:24]requested_item fm.sn is exist - process it [22:15:24]wFMCommunicate request_size=4 [22:15:24]MH_SAM_APDU [22:15:24]CAPDU: 80 11 00 00 [22:15:24]Write to MH i2c: E2 08 00 49 01 80 11 00 00 00 00 00 00 C4 [22:15:24]Write i2c OK [22:15:24]MH_I2C_Read... [22:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:24]Read from MH i2c: E2 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: E2 17 00 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: E2 17 00 49 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 17 [22:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:15:24]wFMCommunicate OK [22:15:24]requested_item fd.num is exist - process it [22:15:24]SAM_PROTO_GetFieldsCounters [22:15:24]wFMCommunicate request_size=4 [22:15:24]MH_SAM_APDU [22:15:24]CAPDU: 80 13 00 00 [22:15:24]Write to MH i2c: E2 08 00 4A 01 80 13 00 00 00 00 00 00 C7 [22:15:25]Write i2c OK [22:15:25]MH_I2C_Read... [22:15:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:25]Read from MH i2c: E2 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 62 00 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 62 00 4A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C4 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [22:15:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C4 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:25]wFMCommunicate OK [22:15:25]SAM_PROTO_GetFieldsCounters done [22:15:25]requested_item shift.num is exist - process it [22:15:25]requested_item shift.opened is exist - process it [22:15:25]req_shift_opened [22:15:25]FM_GetShiftState [22:15:25]SAM_PROTO_GetShiftState [22:15:25]wFMCommunicate request_size=4 [22:15:25]MH_SAM_APDU [22:15:25]CAPDU: 80 13 01 00 [22:15:25]Write to MH i2c: E2 08 00 4B 01 80 13 01 00 00 00 00 00 C9 [22:15:25]Write i2c OK [22:15:25]MH_I2C_Read... [22:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:25]Read from MH i2c: E2 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 0E 00 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 0E 00 4B 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 41 [22:15:25]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:15:25]wFMCommunicate OK [22:15:25]SAM_PROTO_GetShiftState done [22:15:25]FM_GetShiftState done [22:15:25]req_shift_opened done [22:15:25]requested_item shift.open_date is exist - process it [22:15:25]req_shift_open_date [22:15:25]req_shift_open_date done [22:15:25]produce_requested_data done [22:15:25]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145860,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [22:15:25]process_action_free close_receipt [22:15:25]json_value_free [22:15:25]json_value_free done [22:15:25]process_json_proto returns [22:15:25]Send response to host [22:15:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145860,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [22:15:25]free response buf [22:15:25]execute_script done [22:15:25]execute_script returns [22:15:25]free content buf [22:15:25]Sock 7.Close socket [22:15:25]Sock 7.Thread stoped [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:29:59]accept exits with 9 [22:29:59]New connection [22:29:59]New thread 3067506020 created [22:29:59]Thread 3067362660 joined [22:29:59]Waiting for new connection... [22:29:59] Sock 9.Parse request [22:29:59]Sock 9.Check first char [22:29:59]Sock 9.First char is OK [22:29:59]request: POST /json_proto HTTP/1.0 [22:29:59]Method: POST [22:29:59]URL: /json_proto [22:29:59]Method is POST - this is cgi request [22:29:59]url: /json_proto [22:29:59]query_string will be loaded in cgi processing [22:29:59]execute_cgi json_proto POST (null) [22:29:59]execute_cgi path=json_proto method=POST [22:29:59]POST find Content-Length [22:29:59]Host: 172.17.40.195:8080 [22:29:59]Content-Length: 677 [22:29:59]Content-Type: application/json [22:29:59] [22:29:59]POST finish read [22:29:59]Found Content-Length = 677 [22:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.300, "sum" : 488.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 488.00, "payments": [ { "type": 0, "sum" : 488.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:59]execute_script... [22:29: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)160618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.300, "sum" : 488.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 488.00, "payments": [ { "type": 0, "sum" : 488.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:59]POST & json_proto [22:29:59]process_json_proto [22:29:59]json parsed OK: [22:29:59]protocol is kg_v1.0 [22:29:59]action value=close_receipt [22:29:59]process_action close_receipt [22:29:59]cmd_close_receipt [22:29:59]MH_GetDate [22:29:59]Write to MH i2c: F0 00 00 4C 01 3C [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: F0 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: F0 09 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: F0 09 00 4C 01 00 E7 BE 1E 67 D5 8D 6C 64 A1 [22:29:59]GetLastDocTimeStamp 1730067321 [22:29:59]current date 1730068199 [22:29:59]FM_GetShiftState [22:29:59]SAM_PROTO_GetShiftState [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 13 01 00 [22:29:59]Write to MH i2c: E2 08 00 4D 01 80 13 01 00 00 00 00 00 CB [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0E 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0E 00 4D 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 43 [22:29:59]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:29:59]wFMCommunicate OK [22:29:59]SAM_PROTO_GetShiftState done [22:29:59]FM_GetShiftState done [22:29:59]opened in 1729988959 [22:29:59]opened+sec_in_day 1730075359 [22:29:59]quantity*price = 48837 [22:29:59]sum+1 = 48838 [22:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 488.00 Внесено: 500.00 СДАЧА: 12.00 НСП 1% : 4.32 НДС 12% : 51.86 Наличными: 488.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 284 27.10.2024 22:29 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145861 ФПД: 266136570549717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222959&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145861&fm=266136570549717&tin=02508201610067®Number=0000000000091683&sum=48800 [22:30:00]StoreToDocumentArchive [22:30:00]shift 545 fd 145861 [22:30:00]save to /storage/0545/doc_00145861 [22:30:00]save last doc name /storage/0545/doc_00145861 to /storage/kkm_last_doc_name [22:30:00]save OK [22:30:00]Clear old archive folders... [22:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:00]tlvbuf is 0069BB90 [22:30:00]SAM_PROTO_ClearQueue [22:30:00]wFMCommunicate request_size=4 [22:30:00]MH_SAM_APDU [22:30:00]CAPDU: 80 09 00 00 [22:30:00]Write to MH i2c: E2 08 00 5A 01 80 09 00 00 00 00 00 00 CD [22:30:00]Write i2c OK [22:30:00]MH_I2C_Read... [22:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:00]Read from MH i2c: E2 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 03 00 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [22:30:00]RAPDU: 90 00 [22:30:00]wFMCommunicate OK [22:30:00]SAM_PROTO_ClearQueue done [22:30:00]KKMCreateOFDPacket [22:30:00]OFDProtocolAddRootSTLVToBuf [22:30:00]FM_MakeSignedData [22:30:00]FM_MakeSignedData [22:30:00]SAM_PROTO_SignData [22:30:00]wFMCommunicate request_size=4 [22:30:00]MH_SAM_APDU [22:30:00]CAPDU: 80 0D 01 02 [22:30:00]Write to MH i2c: E2 08 00 5B 01 80 0D 01 02 00 00 00 00 D5 [22:30:00]Write i2c OK [22:30:00]MH_I2C_Read... [22:30:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:00]Read from MH i2c: E2 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 03 00 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [22:30:00]RAPDU: 90 00 [22:30:00]wFMCommunicate OK [22:30:00]wFMCommunicate request_size=255 [22:30:00]MH_SAM_APDU [22:30: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 32 FF 03 08 00 03 84 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E7 BE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C5 39 02 00 35 04 06 00 F2 [22:30:00]Write to MH i2c: E2 02 01 5C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 84 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E7 BE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C5 39 02 00 35 04 06 00 F2 00 00 5C [22:30:00]Write i2c OK [22:30:00]MH_I2C_Read... [22:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:00]Read from MH i2c: E2 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 03 00 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [22:30:00]RAPDU: 90 00 [22:30:00]wFMCommunicate OK [22:30:00]wFMCommunicate request_size=10 [22:30:00]MH_SAM_APDU [22:30:00]CAPDU: 80 0D 02 02 05 0C BF BF D5 D5 [22:30:00]Write to MH i2c: E2 0D 00 5D 01 80 0D 02 02 05 00 0C BF BF D5 D5 00 00 16 [22:30:00]Write i2c OK [22:30:00]MH_I2C_Read... [22:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:01]Read from MH i2c: E2 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 03 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [22:30:01]RAPDU: 90 00 [22:30:01]wFMCommunicate OK [22:30:01]wFMCommunicate request_size=4 [22:30:01]MH_SAM_APDU [22:30:01]CAPDU: 80 0D 03 02 [22:30:01]Write to MH i2c: E2 08 00 5E 01 80 0D 03 02 00 00 00 00 DA [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:01]Read from MH i2c: E2 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 0B 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 0B 00 5E 01 00 8F 2A 33 6D 21 53 5D 61 90 00 66 [22:30:01]RAPDU: 8F 2A 33 6D 21 53 5D 61 90 00 [22:30:01]wFMCommunicate OK [22:30:01]SAM_PROTO_SignData done [22:30:01]FM_MakeSignedData done [22:30:01]CreateOFDProtocolMessage [22:30:01]wFMCommunicate request_size=4 [22:30:01]MH_SAM_APDU [22:30:01]CAPDU: 80 11 00 00 [22:30:01]Write to MH i2c: E2 08 00 5F 01 80 11 00 00 00 00 00 00 DA [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:01]Read from MH i2c: E2 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 17 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 17 00 5F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2D [22:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:30:01]wFMCommunicate OK [22:30:01]CreateOFDProtocolMessage done [22:30:01]OFDSenderStorePacket 145861 [22:30:01]StoreOFDPacket docnum=145861 [22:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 07 78 07 01 4C 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 32 FF 03 08 00 03 84 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E7 BE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C5 39 02 00 35 04 06 00 F2 0C BF BF D5 D5 8F 2A 33 6D 21 53 5D 61 [22:30:01]CheckFolder [22:30:01]dirname=/storage/ofd_packets [22:30:01]CheckFolder done [22:30:01]ProducePacketName [22:30:01]name=ofd_packets/00145861 [22:30:01]NVStorageSaveData ofd_packets/00145861 [22:30:01]File name is /storage/ofd_packets/00145861 [22:30:01]Write 301 bytes [22:30:01]NVStorageSaveData done [22:30:01]OFDSenderStorePacket done [22:30:01]KKMCreateOFDPacket done [22:30:01]NVStorageSaveData kkm_last_timestamp [22:30:01]File name is /storage/kkm_last_timestamp [22:30:01]Write 4 bytes [22:30:01]NVStorageSaveData done [22:30:01]OFD Sender: Processing packet 145861 [packets to send 206, broken 205] [22:30:01]ProducePacketName [22:30:01]name=ofd_packets/00145861 [22:30:01]OFD Sender: To server: pG, [22:30:01]CommunicateWithHost lk.salyk.kg:30040 [22:30:01]ConnectInit lk.salyk.kg [22:30:01]ExternCall_PrintAddStr [22:30:01]wPrintStart [22:30:01]Write to MH i2c: 01 00 00 60 01 61 [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: 01 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: 01 07 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: 01 07 00 60 01 00 00 00 00 00 FF 0F 76 [22:30:01]RasterBufferAndPrint [22:30:01]line Счет N : (1)160618 [22:30:01]line ИНН: 02508201610067 [22:30:01]line Контрольно-Кассовый Чек [22:30:01]line ПРОДАЖА [22:30:01]line ТРК (МРК, ГНК) : 32 [22:30:01]line Товар: 2710124130 [22:30:01]line Аи-92-К-2 [22:30:01]line 7.300 * 66.90 [22:30:01]line = 488.37 [22:30:01]line НДС 12% НСП 1% [22:30:01]line > о реализуемом товаре [22:30:01]line ОКРУГЛЕНИЕ: -0.37 [22:30:01]line ИТОГО: 488.00 [22:30:01]line Внесено: 500.00 [22:30:01]line СДАЧА: 12.00 [22:30:01]line НСП 1% : 4.32 [22:30:01]line НДС 12% : 51.86 [22:30:01]line Наличными: 488.00 [22:30:01]line Безнал.: 0.00 [22:30:01]line Место: АЗС № 126 "Партнер Нефть" [22:30:01]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [22:30:01]line СНО: Общий режим [22:30:01]line Чек 284 27.10.2024 22:29 [22:30:01]line Смена: 545 ФФД: 1.0 [22:30:01]line ЗНМ: 0300000085 [22:30:01]line РНМ: 0000000000091683 [22:30:01]line Версия ККМ: 001 [22:30:01]line ФМ: 0000000000871745 [22:30:01]line ФД: 145861 [22:30:01]line ФПД: 266136570549717 [22:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222959&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145861&fm=266136570549717&tin=02508201610067®Number=0000000000091683&sum=48800 [22:30:01]Connected sock=11 [22:30:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 07 78 07 01 4C 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 written 0, free lines is 4095 [22:30:01]31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 84 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E7 BE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C5 39 02 00 35 04 06 00 F2 0C BF BF D5 D5 8F 2A 33 6D 21 53 5D 61 [22:30:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 7A C6 47 00 EF 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C5 39 02 00 F4 03 04 00 13 64 1E 67 B6 04 01 00 00 8F E3 E3 7A C6 19 59 A3 [22:30:01]CommunicateWithHost err = 0 [22:30:01]CheckOFDResponse [22:30:01]1017 (14) - 77093643461234 [22:30:01]1041 (16) - 0000000000871745 [22:30:01]1040 (4) - 145861 [22:30:01]1012 (4) - 27.10.2024 16:02 [22:30:01]1206 (1) - 0 [22:30:01]OFD Sender: Remove packet 145861 [22:30:01]ProducePacketName [22:30:01]name=ofd_packets/00145861 [22:30:01]NVStorageDeleteData [22:30:01]Write to MH i2c: 01 00 00 8B 01 8C [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: 01 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: 01 07 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 A9 0C 48 [22:30:01]RasterBufferAndPrint [22:30:01]line [22:30:01]line [22:30:01]line [22:30:01]line [22:30:01]line [22:30:01]written 0, free lines is 3246 [22:30:01]MH_Cut [22:30:01]Write to MH i2c: D1 01 00 92 01 01 65 [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: D1 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: D1 01 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: D1 01 00 92 01 00 64 [22:30:01]Write to MH i2c: 01 00 00 93 01 94 [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:02]OFD Sender: No OFD packet to send [22:30:02]*** Cut start [22:30:02]*** Partial cut [22:30:02]*** CUTSNS_PIN = 1 [22:30:02]*** CUTSNS_PIN = 0 [22:30:03]*** Brake cut motor [22:30:03]Read from MH i2c: 01 [22:30:03]MH_I2C_Read... [22:30:03]*** Stop cut motor [22:30:03]*** Cut end [22:30:03]Read from MH i2c: 01 07 00 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 FF 0F A9 [22:30:03]process_action close_receipt done [22:30:03]requested_data is exist [22:30:03]produce_requested_data [22:30:03]requested_item fm.sn is exist - process it [22:30:03]wFMCommunicate request_size=4 [22:30:03]MH_SAM_APDU [22:30:03]CAPDU: 80 11 00 00 [22:30:03]Write to MH i2c: E2 08 00 94 01 80 11 00 00 00 00 00 00 0F [22:30:03]Write i2c OK [22:30:03]MH_I2C_Read... [22:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:03]Read from MH i2c: E2 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 17 00 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 17 00 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 62 [22:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:30:03]wFMCommunicate OK [22:30:03]requested_item fd.num is exist - process it [22:30:03]SAM_PROTO_GetFieldsCounters [22:30:03]wFMCommunicate request_size=4 [22:30:03]MH_SAM_APDU [22:30:03]CAPDU: 80 13 00 00 [22:30:03]Write to MH i2c: E2 08 00 95 01 80 13 00 00 00 00 00 00 12 [22:30:03]Write i2c OK [22:30:03]MH_I2C_Read... [22:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:03]Read from MH i2c: E2 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 62 00 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 62 00 95 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C5 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [22:30:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C5 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:03]wFMCommunicate OK [22:30:03]SAM_PROTO_GetFieldsCounters done [22:30:03]requested_item shift.num is exist - process it [22:30:03]requested_item shift.opened is exist - process it [22:30:03]req_shift_opened [22:30:03]FM_GetShiftState [22:30:03]SAM_PROTO_GetShiftState [22:30:03]wFMCommunicate request_size=4 [22:30:03]MH_SAM_APDU [22:30:03]CAPDU: 80 13 01 00 [22:30:03]Write to MH i2c: E2 08 00 96 01 80 13 01 00 00 00 00 00 14 [22:30:03]Write i2c OK [22:30:03]MH_I2C_Read... [22:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:03]Read from MH i2c: E2 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 0E 00 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 0E 00 96 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8C [22:30:03]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:30:03]wFMCommunicate OK [22:30:03]SAM_PROTO_GetShiftState done [22:30:03]FM_GetShiftState done [22:30:03]req_shift_opened done [22:30:03]requested_item shift.open_date is exist - process it [22:30:03]req_shift_open_date [22:30:03]req_shift_open_date done [22:30:03]produce_requested_data done [22:30:03]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145861,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [22:30:03]process_action_free close_receipt [22:30:03]json_value_free [22:30:03]json_value_free done [22:30:03]process_json_proto returns [22:30:03]Send response to host [22:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145861,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [22:30:03]free response buf [22:30:03]execute_script done [22:30:03]execute_script returns [22:30:03]free content buf [22:30:03]Sock 9.Close socket [22:30:03]Sock 9.Thread stoped [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:19]accept exits with 7 [22:32:19]New connection [22:32:19]New thread 3067362660 created [22:32:19]Thread 3067506020 joined [22:32:19]Waiting for new connection... [22:32:19] Sock 7.Parse request [22:32:19]Sock 7.Check first char [22:32:19]Sock 7.First char is OK [22:32:19]request: POST /json_proto HTTP/1.0 [22:32:19]Method: POST [22:32:19]URL: /json_proto [22:32:19]Method is POST - this is cgi request [22:32:19]url: /json_proto [22:32:19]query_string will be loaded in cgi processing [22:32:19]execute_cgi json_proto POST (null) [22:32:19]execute_cgi path=json_proto method=POST [22:32:19]POST find Content-Length [22:32:19]Host: 172.17.40.195:8080 [22:32:19]Content-Length: 677 [22:32:19]Content-Type: application/json [22:32:19] [22:32:19]POST finish read [22:32:19]Found Content-Length = 677 [22:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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:32:19]execute_script... [22:32: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)160619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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:32:19]POST & json_proto [22:32:19]process_json_proto [22:32:19]json parsed OK: [22:32:19]protocol is kg_v1.0 [22:32:19]action value=close_receipt [22:32:19]process_action close_receipt [22:32:19]cmd_close_receipt [22:32:19]MH_GetDate [22:32:19]Write to MH i2c: F0 00 00 97 01 87 [22:32:19]Write i2c OK [22:32:19]MH_I2C_Read... [22:32:19]Read from MH i2c: F0 [22:32:19]MH_I2C_Read... [22:32:19]Read from MH i2c: F0 09 00 [22:32:19]MH_I2C_Read... [22:32:19]Read from MH i2c: F0 09 00 97 01 00 73 BF 1E 67 D5 8D 6C 64 79 [22:32:19]GetLastDocTimeStamp 1730068199 [22:32:19]current date 1730068339 [22:32:19]FM_GetShiftState [22:32:19]SAM_PROTO_GetShiftState [22:32:19]wFMCommunicate request_size=4 [22:32:19]MH_SAM_APDU [22:32:19]CAPDU: 80 13 01 00 [22:32:19]Write to MH i2c: E2 08 00 98 01 80 13 01 00 00 00 00 00 16 [22:32:19]Write i2c OK [22:32:19]MH_I2C_Read... [22:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:19]Read from MH i2c: E2 [22:32:19]MH_I2C_Read... [22:32:19]Read from MH i2c: E2 0E 00 [22:32:19]MH_I2C_Read... [22:32:19]Read from MH i2c: E2 0E 00 98 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8E [22:32:19]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:32:19]wFMCommunicate OK [22:32:19]SAM_PROTO_GetShiftState done [22:32:19]FM_GetShiftState done [22:32:19]opened in 1729988959 [22:32:19]opened+sec_in_day 1730075359 [22:32:19]quantity*price = 70044 [22:32:19]sum+1 = 70046 [22:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 285 27.10.2024 22:32 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145862 ФПД: 46306509759391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T223219&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145862&fm=46306509759391&tin=02508201610067®Number=0000000000091683&sum=70000 [22:32:20]StoreToDocumentArchive [22:32:20]shift 545 fd 145862 [22:32:20]save to /storage/0545/doc_00145862 [22:32:20]save last doc name /storage/0545/doc_00145862 to /storage/kkm_last_doc_name [22:32:20]save OK [22:32:20]Clear old archive folders... [22:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:20]tlvbuf is 0069B760 [22:32:20]SAM_PROTO_ClearQueue [22:32:20]wFMCommunicate request_size=4 [22:32:20]MH_SAM_APDU [22:32:20]CAPDU: 80 09 00 00 [22:32:20]Write to MH i2c: E2 08 00 A5 01 80 09 00 00 00 00 00 00 18 [22:32:20]Write i2c OK [22:32:20]MH_I2C_Read... [22:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:20]Read from MH i2c: E2 [22:32:20]MH_I2C_Read... [22:32:20]Read from MH i2c: E2 03 00 [22:32:20]MH_I2C_Read... [22:32:20]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [22:32:20]RAPDU: 90 00 [22:32:20]wFMCommunicate OK [22:32:20]SAM_PROTO_ClearQueue done [22:32:20]KKMCreateOFDPacket [22:32:20]OFDProtocolAddRootSTLVToBuf [22:32:20]FM_MakeSignedData [22:32:20]FM_MakeSignedData [22:32:20]SAM_PROTO_SignData [22:32:20]wFMCommunicate request_size=4 [22:32:20]MH_SAM_APDU [22:32:20]CAPDU: 80 0D 01 02 [22:32:20]Write to MH i2c: E2 08 00 A6 01 80 0D 01 02 00 00 00 00 20 [22:32:20]Write i2c OK [22:32:20]MH_I2C_Read... [22:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:20]Read from MH i2c: E2 [22:32:20]MH_I2C_Read... [22:32:20]Read from MH i2c: E2 03 00 [22:32:20]MH_I2C_Read... [22:32:20]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [22:32:20]RAPDU: 90 00 [22:32:20]wFMCommunicate OK [22:32:20]wFMCommunicate request_size=255 [22:32:20]MH_SAM_APDU [22:32:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 73 BF 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C6 39 02 00 35 04 06 00 2A [22:32:20]Write to MH i2c: E2 02 01 A7 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 73 BF 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C6 39 02 00 35 04 06 00 2A 00 00 B9 [22:32:20]Write i2c OK [22:32:20]MH_I2C_Read... [22:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:21]Read from MH i2c: E2 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: E2 03 00 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [22:32:21]RAPDU: 90 00 [22:32:21]wFMCommunicate OK [22:32:21]wFMCommunicate request_size=10 [22:32:21]MH_SAM_APDU [22:32:21]CAPDU: 80 0D 02 02 05 1D 93 10 A3 9F [22:32:21]Write to MH i2c: E2 0D 00 A8 01 80 0D 02 02 05 00 1D 93 10 A3 9F 00 00 2F [22:32:21]Write i2c OK [22:32:21]MH_I2C_Read... [22:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:21]Read from MH i2c: E2 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: E2 03 00 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [22:32:21]RAPDU: 90 00 [22:32:21]wFMCommunicate OK [22:32:21]wFMCommunicate request_size=4 [22:32:21]MH_SAM_APDU [22:32:21]CAPDU: 80 0D 03 02 [22:32:21]Write to MH i2c: E2 08 00 A9 01 80 0D 03 02 00 00 00 00 25 [22:32:21]Write i2c OK [22:32:21]MH_I2C_Read... [22:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:21]Read from MH i2c: E2 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: E2 0B 00 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: E2 0B 00 A9 01 00 A7 FD 39 05 3E 8D FC 92 90 00 61 [22:32:21]RAPDU: A7 FD 39 05 3E 8D FC 92 90 00 [22:32:21]wFMCommunicate OK [22:32:21]SAM_PROTO_SignData done [22:32:21]FM_MakeSignedData done [22:32:21]CreateOFDProtocolMessage [22:32:21]wFMCommunicate request_size=4 [22:32:21]MH_SAM_APDU [22:32:21]CAPDU: 80 11 00 00 [22:32:21]Write to MH i2c: E2 08 00 AA 01 80 11 00 00 00 00 00 00 25 [22:32:21]Write i2c OK [22:32:21]MH_I2C_Read... [22:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:21]Read from MH i2c: E2 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: E2 17 00 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: E2 17 00 AA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 78 [22:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:32:21]wFMCommunicate OK [22:32:21]CreateOFDProtocolMessage done [22:32:21]OFDSenderStorePacket 145862 [22:32:21]StoreOFDPacket docnum=145862 [22:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 7F 41 07 01 93 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 73 BF 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C6 39 02 00 35 04 06 00 2A 1D 93 10 A3 9F A7 FD 39 05 3E 8D FC 92 [22:32:21]CheckFolder [22:32:21]dirname=/storage/ofd_packets [22:32:21]CheckFolder done [22:32:21]ProducePacketName [22:32:21]name=ofd_packets/00145862 [22:32:21]NVStorageSaveData ofd_packets/00145862 [22:32:21]File name is /storage/ofd_packets/00145862 [22:32:21]Write 301 bytes [22:32:21]NVStorageSaveData done [22:32:21]OFDSenderStorePacket done [22:32:21]KKMCreateOFDPacket done [22:32:21]NVStorageSaveData kkm_last_timestamp [22:32:21]File name is /storage/kkm_last_timestamp [22:32:21]Write 4 bytes [22:32:21]NVStorageSaveData done [22:32:21]ExternCall_PrintAddStr [22:32:21]wPrintStart [22:32:21]Write to MH i2c: 01 00 00 AB 01 AC [22:32:21]Write i2c OK [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: 01 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: 01 07 00 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: 01 07 00 AB 01 00 00 00 00 00 FF 0F C1 [22:32:21]RasterBufferAndPrint [22:32:21]line Счет N : (1)160619 [22:32:21]line ИНН: 02508201610067 [22:32:21]line Контрольно-Кассовый Чек [22:32:21]line ПРОДАЖА [22:32:21]line ТРК (МРК, ГНК) : 53 [22:32:21]line Товар: 2710124500 [22:32:21]line Аи-95-К-3 [22:32:21]line 9.440 * 74.20 [22:32:21]line = 700.45 [22:32:21]line НДС 12% НСП 1% [22:32:21]line > о реализуемом товаре [22:32:21]line ОКРУГЛЕНИЕ: -0.45 [22:32:21]line ИТОГО: 700.00 [22:32:21]line Внесено: 700.00 [22:32:21]line СДАЧА: 0.00 [22:32:21]line НСП 1% : 6.20 [22:32:21]line НДС 12% : 74.38 [22:32:21]line Наличными: 700.00 [22:32:21]line Безнал.: 0.00 [22:32:21]line Место: АЗС № 126 "Партнер Нефть" [22:32:21]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [22:32:21]line СНО: Общий режим [22:32:21]line Чек 285 27.10.2024 22:32 [22:32:21]line Смена: 545 ФФД: 1.0 [22:32:21]line ЗНМ: 0300000085 [22:32:21]line РНМ: 0000000000091683 [22:32:21]line Версия ККМ: 001 [22:32:21]line ФМ: 0000000000871745 [22:32:21]line ФД: 145862 [22:32:21]line ФПД: 46306509759391 [22:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T223219&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145862&fm=46306509759391&tin=02508201610067®Number=0000000000091683&sum=70000 [22:32:21]written 0, free lines is 4095 [22:32:21]OFD Sender: Processing packet 145862 [packets to send 206, broken 205] [22:32:21]ProducePacketName [22:32:21]name=ofd_packets/00145862 [22:32:21]OFD Sender: To server: pG, [22:32:21]CommunicateWithHost lk.salyk.kg:30040 [22:32:21]ConnectInit lk.salyk.kg [22:32:21]Connected sock=10 [22:32:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 7F 41 07 01 93 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 73 BF 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C6 39 02 00 35 04 06 00 2A 1D 93 10 A3 9F A7 FD 39 05 3E 8D FC 92 [22:32:21]Write to MH i2c: 01 00 00 D6 01 D7 [22:32:21]Write i2c OK [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: 01 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: 01 07 00 [22:32:21]MH_I2C_Read... [22:32:21]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 99 0C 83 [22:32:21]RasterBufferAndPrint [22:32:21]line [22:32:21]line [22:32:21]line [22:32:21]line [22:32:21]line [22:32:22]written 0, free lines is 3232 [22:32:22]MH_Cut [22:32:22]Write to MH i2c: D1 01 00 DD 01 01 B0 [22:32:22]Write i2c OK [22:32:22]MH_I2C_Read... [22:32:22]Read from MH i2c: D1 [22:32:22]MH_I2C_Read... [22:32:22]Read from MH i2c: D1 01 00 [22:32:22]MH_I2C_Read... [22:32:22]Read from MH i2c: D1 01 00 DD 01 00 AF [22:32:22]Write to MH i2c: 01 00 00 DE 01 DF [22:32:22]Write i2c OK [22:32:22]MH_I2C_Read... [22:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 7F AF 47 00 9A 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 31 37 34 35 10 04 04 00 C6 39 02 00 F4 03 04 00 A0 64 1E 67 B6 04 01 00 00 4D 88 34 1F 1E BE 25 6F [22:32:22]CommunicateWithHost err = 0 [22:32:22]CheckOFDResponse [22:32:22]1017 (14) - 77093643461234 [22:32:22]1041 (16) - 0000000000871745 [22:32:22]1040 (4) - 145862 [22:32:22]1012 (4) - 27.10.2024 16:04 [22:32:22]1206 (1) - 0 [22:32:22]OFD Sender: Remove packet 145862 [22:32:22]ProducePacketName [22:32:22]name=ofd_packets/00145862 [22:32:22]NVStorageDeleteData [22:32:22]OFD Sender: No OFD packet to send [22:32:22]*** Cut start [22:32:22]*** Partial cut [22:32:22]*** CUTSNS_PIN = 1 [22:32:22]*** CUTSNS_PIN = 0 [22:32:23]*** Brake cut motor [22:32:23]Read from MH i2c: 01 [22:32:23]MH_I2C_Read... [22:32:23]*** Stop cut motor [22:32:23]*** Cut end [22:32:23]Read from MH i2c: 01 07 00 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: 01 07 00 DE 01 00 00 00 00 00 FF 0F F4 [22:32:23]process_action close_receipt done [22:32:23]requested_data is exist [22:32:23]produce_requested_data [22:32:23]requested_item fm.sn is exist - process it [22:32:23]wFMCommunicate request_size=4 [22:32:23]MH_SAM_APDU [22:32:23]CAPDU: 80 11 00 00 [22:32:23]Write to MH i2c: E2 08 00 DF 01 80 11 00 00 00 00 00 00 5A [22:32:23]Write i2c OK [22:32:23]MH_I2C_Read... [22:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:23]Read from MH i2c: E2 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: E2 17 00 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: E2 17 00 DF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AD [22:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:32:23]wFMCommunicate OK [22:32:23]requested_item fd.num is exist - process it [22:32:23]SAM_PROTO_GetFieldsCounters [22:32:23]wFMCommunicate request_size=4 [22:32:23]MH_SAM_APDU [22:32:23]CAPDU: 80 13 00 00 [22:32:23]Write to MH i2c: E2 08 00 E0 01 80 13 00 00 00 00 00 00 5D [22:32:23]Write i2c OK [22:32:23]MH_I2C_Read... [22:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:23]Read from MH i2c: E2 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: E2 62 00 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: E2 62 00 E0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C6 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [22:32:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C6 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:23]wFMCommunicate OK [22:32:23]SAM_PROTO_GetFieldsCounters done [22:32:23]requested_item shift.num is exist - process it [22:32:23]requested_item shift.opened is exist - process it [22:32:23]req_shift_opened [22:32:23]FM_GetShiftState [22:32:23]SAM_PROTO_GetShiftState [22:32:23]wFMCommunicate request_size=4 [22:32:23]MH_SAM_APDU [22:32:23]CAPDU: 80 13 01 00 [22:32:23]Write to MH i2c: E2 08 00 E1 01 80 13 01 00 00 00 00 00 5F [22:32:23]Write i2c OK [22:32:23]MH_I2C_Read... [22:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:23]Read from MH i2c: E2 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: E2 0E 00 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: E2 0E 00 E1 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D7 [22:32:23]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:32:23]wFMCommunicate OK [22:32:23]SAM_PROTO_GetShiftState done [22:32:23]FM_GetShiftState done [22:32:23]req_shift_opened done [22:32:23]requested_item shift.open_date is exist - process it [22:32:23]req_shift_open_date [22:32:23]req_shift_open_date done [22:32:23]produce_requested_data done [22:32:23]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145862,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [22:32:23]process_action_free close_receipt [22:32:23]json_value_free [22:32:23]json_value_free done [22:32:23]process_json_proto returns [22:32:23]Send response to host [22:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145862,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [22:32:23]free response buf [22:32:23]execute_script done [22:32:23]execute_script returns [22:32:23]free content buf [22:32:23]Sock 7.Close socket [22:32:23]Sock 7.Thread stoped [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:35]accept exits with 9 [22:42:35]New connection [22:42:35]New thread 3067506020 created [22:42:35]Thread 3067362660 joined [22:42:35]Waiting for new connection... [22:42:35] Sock 9.Parse request [22:42:35]Sock 9.Check first char [22:42:35]Sock 9.First char is OK [22:42:35]request: POST /json_proto HTTP/1.0 [22:42:35]Method: POST [22:42:35]URL: /json_proto [22:42:35]Method is POST - this is cgi request [22:42:35]url: /json_proto [22:42:35]query_string will be loaded in cgi processing [22:42:35]execute_cgi json_proto POST (null) [22:42:35]execute_cgi path=json_proto method=POST [22:42:35]POST find Content-Length [22:42:35]Host: 172.17.40.195:8080 [22:42:35]Content-Length: 984 [22:42:35]Content-Type: application/json [22:42:35] [22:42:35]POST finish read [22:42:35]Found Content-Length = 984 [22:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 40.710, "sum" : 3000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.35 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:35]execute_script... [22:42: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)160620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.70, "quantity" : 40.710, "sum" : 3000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-95\u000A\u043D\u043E\u043C\u0435\u0440 126\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.35 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:35]POST & json_proto [22:42:35]process_json_proto [22:42:35]json parsed OK: [22:42:35]protocol is kg_v1.0 [22:42:35]action value=close_receipt [22:42:35]process_action close_receipt [22:42:35]cmd_close_receipt [22:42:35]MH_GetDate [22:42:35]Write to MH i2c: F0 00 00 E2 01 D2 [22:42:35]Write i2c OK [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: F0 [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: F0 09 00 [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: F0 09 00 E2 01 00 DB C1 1E 67 D5 8D 6C 64 2E [22:42:35]GetLastDocTimeStamp 1730068339 [22:42:35]current date 1730068955 [22:42:35]FM_GetShiftState [22:42:35]SAM_PROTO_GetShiftState [22:42:35]wFMCommunicate request_size=4 [22:42:35]MH_SAM_APDU [22:42:35]CAPDU: 80 13 01 00 [22:42:35]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [22:42:35]Write i2c OK [22:42:35]MH_I2C_Read... [22:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:35]Read from MH i2c: E2 [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: E2 0E 00 [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D9 [22:42:35]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:42:35]wFMCommunicate OK [22:42:35]SAM_PROTO_GetShiftState done [22:42:35]FM_GetShiftState done [22:42:35]opened in 1729988959 [22:42:35]opened+sec_in_day 1730075359 [22:42:35]quantity*price = 300032 [22:42:35]sum+1 = 300034 [22:42:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 286 27.10.2024 22:42 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Дисконтная программа АИ-95 номер 126 сэкономлено 20.35 сом ФМ: 0000000000871745 ФД: 145863 ФПД: 155250965689726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T224235&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145863&fm=155250965689726&tin=02508201610067®Number=0000000000091683&sum=300000 [22:42:36]StoreToDocumentArchive [22:42:36]shift 545 fd 145863 [22:42:36]save to /storage/0545/doc_00145863 [22:42:36]save last doc name /storage/0545/doc_00145863 to /storage/kkm_last_doc_name [22:42:36]save OK [22:42:36]Clear old archive folders... [22:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:42:36]tlvbuf is 00696130 [22:42:36]SAM_PROTO_ClearQueue [22:42:36]wFMCommunicate request_size=4 [22:42:36]MH_SAM_APDU [22:42:36]CAPDU: 80 09 00 00 [22:42:36]Write to MH i2c: E2 08 00 F0 01 80 09 00 00 00 00 00 00 63 [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:36]Read from MH i2c: E2 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 03 00 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [22:42:36]RAPDU: 90 00 [22:42:36]wFMCommunicate OK [22:42:36]SAM_PROTO_ClearQueue done [22:42:36]KKMCreateOFDPacket [22:42:36]OFDProtocolAddRootSTLVToBuf [22:42:36]FM_MakeSignedData [22:42:36]FM_MakeSignedData [22:42:36]SAM_PROTO_SignData [22:42:36]wFMCommunicate request_size=4 [22:42:36]MH_SAM_APDU [22:42:36]CAPDU: 80 0D 01 02 [22:42:36]Write to MH i2c: E2 08 00 F1 01 80 0D 01 02 00 00 00 00 6B [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:36]Read from MH i2c: E2 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 03 00 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [22:42:36]RAPDU: 90 00 [22:42:36]wFMCommunicate OK [22:42:36]wFMCommunicate request_size=255 [22:42:36]MH_SAM_APDU [22:42: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 33 FF 03 08 00 03 06 9F 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 01 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 DB C1 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C7 39 02 00 35 04 06 00 8D [22:42:36]Write to MH i2c: E2 02 01 F2 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 06 9F 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 01 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 DB C1 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C7 39 02 00 35 04 06 00 8D 00 00 D8 [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:36]Read from MH i2c: E2 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 03 00 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [22:42:36]RAPDU: 90 00 [22:42:36]wFMCommunicate OK [22:42:36]wFMCommunicate request_size=10 [22:42:36]MH_SAM_APDU [22:42:36]CAPDU: 80 0D 02 02 05 33 2E A9 35 7E [22:42:36]Write to MH i2c: E2 0D 00 F3 01 80 0D 02 02 05 00 33 2E A9 35 7E 00 00 35 [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:36]Read from MH i2c: E2 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 03 00 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [22:42:36]RAPDU: 90 00 [22:42:36]wFMCommunicate OK [22:42:36]wFMCommunicate request_size=4 [22:42:36]MH_SAM_APDU [22:42:36]CAPDU: 80 0D 03 02 [22:42:36]Write to MH i2c: E2 08 00 F4 01 80 0D 03 02 00 00 00 00 70 [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:37]Read from MH i2c: E2 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: E2 0B 00 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: E2 0B 00 F4 01 00 FC 85 5D A5 84 57 7E 13 90 00 60 [22:42:37]RAPDU: FC 85 5D A5 84 57 7E 13 90 00 [22:42:37]wFMCommunicate OK [22:42:37]SAM_PROTO_SignData done [22:42:37]FM_MakeSignedData done [22:42:37]CreateOFDProtocolMessage [22:42:37]wFMCommunicate request_size=4 [22:42:37]MH_SAM_APDU [22:42:37]CAPDU: 80 11 00 00 [22:42:37]Write to MH i2c: E2 08 00 F5 01 80 11 00 00 00 00 00 00 70 [22:42:37]Write i2c OK [22:42:37]MH_I2C_Read... [22:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:37]Read from MH i2c: E2 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: E2 17 00 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: E2 17 00 F5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C3 [22:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:42:37]wFMCommunicate OK [22:42:37]CreateOFDProtocolMessage done [22:42:37]OFDSenderStorePacket 145863 [22:42:37]StoreOFDPacket docnum=145863 [22:42:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A0 DF 07 01 34 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 06 9F 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 01 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 DB C1 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C7 39 02 00 35 04 06 00 8D 33 2E A9 35 7E FC 85 5D A5 84 57 7E 13 [22:42:37]CheckFolder [22:42:37]dirname=/storage/ofd_packets [22:42:37]CheckFolder done [22:42:37]ProducePacketName [22:42:37]name=ofd_packets/00145863 [22:42:37]NVStorageSaveData ofd_packets/00145863 [22:42:37]File name is /storage/ofd_packets/00145863 [22:42:37]Write 301 bytes [22:42:37]NVStorageSaveData done [22:42:37]OFDSenderStorePacket done [22:42:37]KKMCreateOFDPacket done [22:42:37]NVStorageSaveData kkm_last_timestamp [22:42:37]File name is /storage/kkm_last_timestamp [22:42:37]Write 4 bytes [22:42:37]NVStorageSaveData done [22:42:37]ExternCall_PrintAddStr [22:42:37]wPrintStart [22:42:37]Write to MH i2c: 01 00 00 F6 01 F7 [22:42:37]Write i2c OK [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: 01 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: 01 07 00 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: 01 07 00 F6 01 00 00 00 00 00 FF 0F 0C [22:42:37]RasterBufferAndPrint [22:42:37]line Счет N : (1)160620 [22:42:37]line ИНН: 02508201610067 [22:42:37]line Контрольно-Кассовый Чек [22:42:37]line ПРОДАЖА [22:42:37]line ТРК (МРК, ГНК) : 43 [22:42:37]line Товар: 2710124500 [22:42:37]line Аи-95-К-3 [22:42:37]line 40.710 * 73.70 [22:42:37]line = 3000.33 [22:42:37]line НДС 12% НСП 1% [22:42:37]line > о реализуемом товаре [22:42:37]line ОКРУГЛЕНИЕ: -0.33 [22:42:37]line ИТОГО: 3000.00 [22:42:37]line Внесено: 3000.00 [22:42:37]line СДАЧА: 0.00 [22:42:37]line НСП 1% : 26.55 [22:42:37]line НДС 12% : 318.62 [22:42:37]line Наличными: 3000.00 [22:42:37]line Безнал.: 0.00 [22:42:37]line Место: АЗС № 126 "Партнер Нефть" [22:42:37]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [22:42:37]line СНО: Общий режим [22:42:37]line Чек 286 27.10.2024 22:42 [22:42:37]line Смена: 545 ФФД: 1.0 [22:42:37]line ЗНМ: 0300000085 [22:42:37]line РНМ: 0000000000091683 [22:42:37]line Версия ККМ: 001 [22:42:37]line [22:42:37]line Дисконтная программа [22:42:37]line АИ-95 [22:42:37]line номер 126 [22:42:37]line сэкономлено 20.35 сом [22:42:37]line ФМ: 0000000000871745 [22:42:37]line ФД: 145863 [22:42:37]line ФПД: 155250965689726 [22:42:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T224235&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145863&fm=155250965689726&tin=02508201610067®Number=0000000000091683&sum=300000 [22:42:37]OFD Sender: Processing packet 145863 [packets to send 206, broken 205] [22:42:37]ProducePacketName [22:42:37]name=ofd_packets/00145863 [22:42:37]OFD Sender: To server: pG, [22:42:37]CommunicateWithHost lk.salyk.kg:30040 [22:42:37]ConnectInit lk.salyk.kg [22:42:37]written 0, free lines is 4095 [22:42:37]Connected sock=10 [22:42:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 A0 DF 07 01 34 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 06 9F 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 01 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 DB C1 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C7 39 02 00 35 04 06 00 8D 33 2E A9 35 7E FC 85 5D A5 84 57 7E 13 [22:42:37]Write to MH i2c: 01 00 00 26 02 28 [22:42:37]Write i2c OK [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: 01 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: 01 07 00 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 50 0C 8B [22:42:37]RasterBufferAndPrint [22:42:37]line [22:42:37]line [22:42:37]line [22:42:37]line [22:42:37]line [22:42:37]written 0, free lines is 3156 [22:42:37]MH_Cut [22:42:37]Write to MH i2c: D1 01 00 2D 02 01 01 [22:42:37]Write i2c OK [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: D1 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: D1 01 00 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: D1 01 00 2D 02 00 00 [22:42:37]Write to MH i2c: 01 00 00 2E 02 30 [22:42:37]Write i2c OK [22:42:37]MH_I2C_Read... [22:42:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A6 86 47 00 07 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C7 39 02 00 F4 03 04 00 07 67 1E 67 B6 04 01 00 00 9E 1F E9 B8 83 7D 01 8C [22:42:37]CommunicateWithHost err = 0 [22:42:37]CheckOFDResponse [22:42:37]1017 (14) - 77093643461234 [22:42:37]1041 (16) - 0000000000871745 [22:42:37]1040 (4) - 145863 [22:42:37]1012 (4) - 27.10.2024 16:15 [22:42:37]1206 (1) - 0 [22:42:37]OFD Sender: Remove packet 145863 [22:42:37]ProducePacketName [22:42:37]name=ofd_packets/00145863 [22:42:37]NVStorageDeleteData [22:42:38]OFD Sender: No OFD packet to send [22:42:38]*** Cut start [22:42:38]*** Partial cut [22:42:38]*** CUTSNS_PIN = 1 [22:42:38]*** CUTSNS_PIN = 0 [22:42:39]*** Brake cut motor [22:42:39]Read from MH i2c: 01 [22:42:39]MH_I2C_Read... [22:42:39]*** Stop cut motor [22:42:39]*** Cut end [22:42:39]Read from MH i2c: 01 07 00 [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: 01 07 00 2E 02 00 00 00 00 00 FF 0F 45 [22:42:39]process_action close_receipt done [22:42:39]requested_data is exist [22:42:39]produce_requested_data [22:42:39]requested_item fm.sn is exist - process it [22:42:39]wFMCommunicate request_size=4 [22:42:39]MH_SAM_APDU [22:42:39]CAPDU: 80 11 00 00 [22:42:39]Write to MH i2c: E2 08 00 2F 02 80 11 00 00 00 00 00 00 AB [22:42:39]Write i2c OK [22:42:39]MH_I2C_Read... [22:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:39]Read from MH i2c: E2 [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: E2 17 00 [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: E2 17 00 2F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 FE [22:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:42:39]wFMCommunicate OK [22:42:39]requested_item fd.num is exist - process it [22:42:39]SAM_PROTO_GetFieldsCounters [22:42:39]wFMCommunicate request_size=4 [22:42:39]MH_SAM_APDU [22:42:39]CAPDU: 80 13 00 00 [22:42:39]Write to MH i2c: E2 08 00 30 02 80 13 00 00 00 00 00 00 AE [22:42:39]Write i2c OK [22:42:39]MH_I2C_Read... [22:42:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:39]Read from MH i2c: E2 [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: E2 62 00 [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: E2 62 00 30 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C7 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [22:42:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C7 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:39]wFMCommunicate OK [22:42:39]SAM_PROTO_GetFieldsCounters done [22:42:39]requested_item shift.num is exist - process it [22:42:39]requested_item shift.opened is exist - process it [22:42:39]req_shift_opened [22:42:39]FM_GetShiftState [22:42:39]SAM_PROTO_GetShiftState [22:42:39]wFMCommunicate request_size=4 [22:42:39]MH_SAM_APDU [22:42:39]CAPDU: 80 13 01 00 [22:42:39]Write to MH i2c: E2 08 00 31 02 80 13 01 00 00 00 00 00 B0 [22:42:39]Write i2c OK [22:42:39]MH_I2C_Read... [22:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:39]Read from MH i2c: E2 [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: E2 0E 00 [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: E2 0E 00 31 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 28 [22:42:39]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:42:39]wFMCommunicate OK [22:42:39]SAM_PROTO_GetShiftState done [22:42:39]FM_GetShiftState done [22:42:39]req_shift_opened done [22:42:39]requested_item shift.open_date is exist - process it [22:42:39]req_shift_open_date [22:42:39]req_shift_open_date done [22:42:39]produce_requested_data done [22:42:39]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145863,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [22:42:39]process_action_free close_receipt [22:42:39]json_value_free [22:42:39]json_value_free done [22:42:39]process_json_proto returns [22:42:39]Send response to host [22:42:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145863,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [22:42:39]free response buf [22:42:39]execute_script done [22:42:39]execute_script returns [22:42:39]free content buf [22:42:39]Sock 9.Close socket [22:42:39]Sock 9.Thread stoped [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:18]int [22:51:18]Write to MH i2c: 01 00 00 32 02 34 [22:51:18]*** FLAG_PRN_KEY set [22:51:18]Write i2c OK [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: 01 [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: 01 07 00 [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: 01 07 00 32 02 00 08 00 00 00 FF 0F 51 [22:51:18]state=0 [22:51:18]Key pressed [22:51:18]Feed [22:51:18]Write to MH i2c: D8 00 00 33 02 0C [22:51:18]Write i2c OK [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: D8 [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: D8 01 00 [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: D8 01 00 33 02 00 0D [22:51:18]int [22:51:18]Write to MH i2c: 01 00 00 34 02 36 [22:51:18]Write i2c OK [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: 01 [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: 01 07 00 [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: 01 07 00 34 02 00 48 00 00 00 3C 00 C1 [22:51:18]state=2 [22:51:18]Key pressed [22:51:18]int [22:51:18]Write to MH i2c: 01 00 00 35 02 37 [22:51:18]*** FLAG_PRN_KEY reset [22:51:18]Write i2c OK [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: 01 [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: 01 07 00 [22:51:18]MH_I2C_Read... [22:51:18]Read from MH i2c: 01 07 00 35 02 00 00 00 00 00 F6 0F 43 [22:51:18]state=2 [22:51:18]Stop feed [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]accept exits with 7 [22:53:49]New connection [22:53:49]New thread 3067362660 created [22:53:49]Thread 3067506020 joined [22:53:49]Waiting for new connection... [22:53:49] Sock 7.Parse request [22:53:49]Sock 7.Check first char [22:53:49]Sock 7.First char is OK [22:53:49]request: POST /json_proto HTTP/1.0 [22:53:49]Method: POST [22:53:49]URL: /json_proto [22:53:49]Method is POST - this is cgi request [22:53:49]url: /json_proto [22:53:49]query_string will be loaded in cgi processing [22:53:49]execute_cgi json_proto POST (null) [22:53:49]execute_cgi path=json_proto method=POST [22:53:49]POST find Content-Length [22:53:49]Host: 172.17.40.195:8080 [22:53:49]Content-Length: 688 [22:53:49]Content-Type: application/json [22:53:49] [22:53:49]POST finish read [22:53:49]Found Content-Length = 688 [22:53:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.390, "sum" : 3967.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3967.00, "payments": [ { "type": 0, "sum" : 3967.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:49]execute_script... [22:53: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)160621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.390, "sum" : 3967.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3967.00, "payments": [ { "type": 0, "sum" : 3967.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:49]POST & json_proto [22:53:49]process_json_proto [22:53:49]json parsed OK: [22:53:49]protocol is kg_v1.0 [22:53:49]action value=close_receipt [22:53:49]process_action close_receipt [22:53:49]cmd_close_receipt [22:53:49]MH_GetDate [22:53:49]Write to MH i2c: F0 00 00 36 02 27 [22:53:49]Write i2c OK [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: F0 [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: F0 09 00 [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: F0 09 00 36 02 00 7D C4 1E 67 D5 8D 6C 64 28 [22:53:49]GetLastDocTimeStamp 1730068955 [22:53:49]current date 1730069629 [22:53:49]FM_GetShiftState [22:53:49]SAM_PROTO_GetShiftState [22:53:49]wFMCommunicate request_size=4 [22:53:49]MH_SAM_APDU [22:53:49]CAPDU: 80 13 01 00 [22:53:49]Write to MH i2c: E2 08 00 37 02 80 13 01 00 00 00 00 00 B6 [22:53:49]Write i2c OK [22:53:49]MH_I2C_Read... [22:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:49]Read from MH i2c: E2 [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: E2 0E 00 [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: E2 0E 00 37 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 2E [22:53:49]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:53:49]wFMCommunicate OK [22:53:49]SAM_PROTO_GetShiftState done [22:53:49]FM_GetShiftState done [22:53:49]opened in 1729988959 [22:53:49]opened+sec_in_day 1730075359 [22:53:49]quantity*price = 396730 [22:53:49]sum+1 = 396732 [22:53:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 3967.00 Внесено: 4000.00 СДАЧА: 33.00 НСП 1% : 35.11 НДС 12% : 421.31 Наличными: 3967.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 287 27.10.2024 22:53 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145864 ФПД: 176213640277183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225349&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145864&fm=176213640277183&tin=02508201610067®Number=0000000000091683&sum=396700 [22:53:50]StoreToDocumentArchive [22:53:50]shift 545 fd 145864 [22:53:50]save to /storage/0545/doc_00145864 [22:53:50]save last doc name /storage/0545/doc_00145864 to /storage/kkm_last_doc_name [22:53:50]save OK [22:53:50]Clear old archive folders... [22:53:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:53:50]tlvbuf is 006C1A20 [22:53:50]SAM_PROTO_ClearQueue [22:53:50]wFMCommunicate request_size=4 [22:53:50]MH_SAM_APDU [22:53:50]CAPDU: 80 09 00 00 [22:53:50]Write to MH i2c: E2 08 00 44 02 80 09 00 00 00 00 00 00 B8 [22:53:50]Write i2c OK [22:53:50]MH_I2C_Read... [22:53:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:50]Read from MH i2c: E2 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 03 00 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 03 00 44 02 00 90 00 BA [22:53:50]RAPDU: 90 00 [22:53:50]wFMCommunicate OK [22:53:50]SAM_PROTO_ClearQueue done [22:53:50]KKMCreateOFDPacket [22:53:50]OFDProtocolAddRootSTLVToBuf [22:53:50]FM_MakeSignedData [22:53:50]FM_MakeSignedData [22:53:50]SAM_PROTO_SignData [22:53:50]wFMCommunicate request_size=4 [22:53:50]MH_SAM_APDU [22:53:50]CAPDU: 80 0D 01 02 [22:53:50]Write to MH i2c: E2 08 00 45 02 80 0D 01 02 00 00 00 00 C0 [22:53:50]Write i2c OK [22:53:50]MH_I2C_Read... [22:53:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:50]Read from MH i2c: E2 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 03 00 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [22:53:50]RAPDU: 90 00 [22:53:50]wFMCommunicate OK [22:53:50]wFMCommunicate request_size=255 [22:53:50]MH_SAM_APDU [22:53:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE C8 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BB 0D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 0D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 A4 00 00 00 00 07 04 06 00 9C 0D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 7D C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C8 39 02 [22:53:50]Write to MH i2c: E2 02 01 46 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE C8 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BB 0D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 0D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 A4 00 00 00 00 07 04 06 00 9C 0D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 7D C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C8 39 02 00 00 D7 [22:53:50]Write i2c OK [22:53:50]MH_I2C_Read... [22:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:50]Read from MH i2c: E2 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 03 00 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [22:53:50]RAPDU: 90 00 [22:53:50]wFMCommunicate OK [22:53:50]wFMCommunicate request_size=16 [22:53:50]MH_SAM_APDU [22:53:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A0 43 EF 6E EC BF [22:53:50]Write to MH i2c: E2 13 00 47 02 80 0D 02 02 0B 00 00 35 04 06 00 A0 43 EF 6E EC BF 00 00 03 [22:53:50]Write i2c OK [22:53:50]MH_I2C_Read... [22:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:50]Read from MH i2c: E2 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 03 00 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 03 00 47 02 00 90 00 BD [22:53:50]RAPDU: 90 00 [22:53:50]wFMCommunicate OK [22:53:50]wFMCommunicate request_size=4 [22:53:50]MH_SAM_APDU [22:53:50]CAPDU: 80 0D 03 02 [22:53:50]Write to MH i2c: E2 08 00 48 02 80 0D 03 02 00 00 00 00 C5 [22:53:50]Write i2c OK [22:53:50]MH_I2C_Read... [22:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:50]Read from MH i2c: E2 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 0B 00 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 0B 00 48 02 00 95 2E EA 30 CD 66 5B FE 90 00 2F [22:53:50]RAPDU: 95 2E EA 30 CD 66 5B FE 90 00 [22:53:50]wFMCommunicate OK [22:53:50]SAM_PROTO_SignData done [22:53:50]FM_MakeSignedData done [22:53:50]CreateOFDProtocolMessage [22:53:50]wFMCommunicate request_size=4 [22:53:50]MH_SAM_APDU [22:53:50]CAPDU: 80 11 00 00 [22:53:50]Write to MH i2c: E2 08 00 49 02 80 11 00 00 00 00 00 00 C5 [22:53:50]Write i2c OK [22:53:50]MH_I2C_Read... [22:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:50]Read from MH i2c: E2 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 17 00 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: E2 17 00 49 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 18 [22:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:53:50]wFMCommunicate OK [22:53:50]CreateOFDProtocolMessage done [22:53:50]OFDSenderStorePacket 145864 [22:53:50]StoreOFDPacket docnum=145864 [22:53:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 7D 59 0D 01 C5 EA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE C8 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BB 0D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 0D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 A4 00 00 00 00 07 04 06 00 9C 0D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 7D C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C8 39 02 00 35 04 06 00 A0 43 EF 6E EC BF 95 2E EA 30 CD 66 5B FE [22:53:50]CheckFolder [22:53:50]dirname=/storage/ofd_packets [22:53:50]CheckFolder done [22:53:50]ProducePacketName [22:53:50]name=ofd_packets/00145864 [22:53:50]NVStorageSaveData ofd_packets/00145864 [22:53:50]File name is /storage/ofd_packets/00145864 [22:53:50]Write 307 bytes [22:53:50]NVStorageSaveData done [22:53:50]OFDSenderStorePacket done [22:53:50]KKMCreateOFDPacket done [22:53:50]NVStorageSaveData kkm_last_timestamp [22:53:50]File name is /storage/kkm_last_timestamp [22:53:50]Write 4 bytes [22:53:50]NVStorageSaveData done [22:53:50]ExternCall_PrintAddStr [22:53:50]wPrintStart [22:53:50]Write to MH i2c: 01 00 00 4A 02 4C [22:53:50]Write i2c OK [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: 01 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: 01 07 00 [22:53:50]MH_I2C_Read... [22:53:50]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 FF 0F 61 [22:53:50]RasterBufferAndPrint [22:53:50]line Счет N : (1)160621 [22:53:50]line ИНН: 02508201610067 [22:53:50]line Контрольно-Кассовый Чек [22:53:50]line ПРОДАЖА [22:53:50]line ТРК (МРК, ГНК) : 31 [22:53:50]line Товар: 2710194240 [22:53:50]line D-Energy Дт-К-2 [22:53:50]line 51.390 * 77.20 [22:53:50]line = 3967.31 [22:53:50]line НДС 12% НСП 1% [22:53:50]line > о реализуемом товаре [22:53:50]line ОКРУГЛЕНИЕ: -0.31 [22:53:50]line ИТОГО: 3967.00 [22:53:50]line Внесено: 4000.00 [22:53:50]line СДАЧА: 33.00 [22:53:50]line НСП 1% : 35.11 [22:53:50]line НДС 12% : 421.31 [22:53:50]line Наличными: 3967.00 [22:53:50]line Безнал.: 0.00 [22:53:50]line Место: АЗС № 126 "Партнер Нефть" [22:53:50]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [22:53:50]line СНО: Общий режим [22:53:50]line Чек 287 27.10.2024 22:53 [22:53:50]line Смена: 545 ФФД: 1.0 [22:53:50]line ЗНМ: 0300000085 [22:53:50]line РНМ: 0000000000091683 [22:53:50]line Версия ККМ: 001 [22:53:50]line ФМ: 0000000000871745 [22:53:50]line ФД: 145864 [22:53:50]line ФПД: 176213640277183 [22:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225349&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145864&fm=176213640277183&tin=02508201610067®Number=0000000000091683&sum=396700 [22:53:51]OFD Sender: Processing packet 145864 [packets to send 206, broken 205] [22:53:51]ProducePacketName [22:53:51]name=ofd_packets/00145864 [22:53:51]OFD Sender: To server: pG, [22:53:51]CommunicateWithHost lk.salyk.kg:30040 [22:53:51]ConnectInit lk.salyk.kg [22:53:51]written 0, free lines is 4095 [22:53:51]Connected sock=9 [22:53:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 7D 59 0D 01 C5 EA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE C8 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BB 0D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 0D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 A4 00 00 00 00 07 04 06 00 9C 0D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 7D C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C8 39 02 00 35 04 06 00 A0 43 EF 6E EC BF 95 2E EA 30 CD 66 5B FE [22:53:51]Write to MH i2c: 01 00 00 75 02 77 [22:53:51]Write i2c OK [22:53:51]MH_I2C_Read... [22:53:51]Read from MH i2c: 01 [22:53:51]MH_I2C_Read... [22:53:51]Read from MH i2c: 01 07 00 [22:53:51]MH_I2C_Read... [22:53:51]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 B0 0C 3A [22:53:51]RasterBufferAndPrint [22:53:51]line [22:53:51]line [22:53:51]line [22:53:51]line [22:53:51]line [22:53:51]written 0, free lines is 3252 [22:53:51]MH_Cut [22:53:51]Write to MH i2c: D1 01 00 7C 02 01 50 [22:53:51]Write i2c OK [22:53:51]MH_I2C_Read... [22:53:51]Read from MH i2c: D1 [22:53:51]MH_I2C_Read... [22:53:51]Read from MH i2c: D1 01 00 [22:53:51]MH_I2C_Read... [22:53:51]Read from MH i2c: D1 01 00 7C 02 00 4F [22:53:51]Write to MH i2c: 01 00 00 7D 02 7F [22:53:51]Write i2c OK [22:53:51]MH_I2C_Read... [22:53:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 BF 09 47 00 42 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C8 39 02 00 F4 03 04 00 A9 69 1E 67 B6 04 01 00 00 43 B2 99 BC 93 63 6E 09 [22:53:51]CommunicateWithHost err = 0 [22:53:51]CheckOFDResponse [22:53:51]1017 (14) - 77093643461234 [22:53:51]1041 (16) - 0000000000871745 [22:53:51]1040 (4) - 145864 [22:53:51]1012 (4) - 27.10.2024 16:26 [22:53:51]1206 (1) - 0 [22:53:51]OFD Sender: Remove packet 145864 [22:53:51]ProducePacketName [22:53:51]name=ofd_packets/00145864 [22:53:51]NVStorageDeleteData [22:53:52]OFD Sender: No OFD packet to send [22:53:52]*** Cut start [22:53:52]*** Partial cut [22:53:52]*** CUTSNS_PIN = 1 [22:53:52]*** CUTSNS_PIN = 0 [22:53:52]*** Brake cut motor [22:53:53]Read from MH i2c: 01 [22:53:53]MH_I2C_Read... [22:53:53]*** Stop cut motor [22:53:53]*** Cut end [22:53:53]Read from MH i2c: 01 07 00 [22:53:53]MH_I2C_Read... [22:53:53]Read from MH i2c: 01 07 00 7D 02 00 00 00 00 00 FF 0F 94 [22:53:53]process_action close_receipt done [22:53:53]requested_data is exist [22:53:53]produce_requested_data [22:53:53]requested_item fm.sn is exist - process it [22:53:53]wFMCommunicate request_size=4 [22:53:53]MH_SAM_APDU [22:53:53]CAPDU: 80 11 00 00 [22:53:53]Write to MH i2c: E2 08 00 7E 02 80 11 00 00 00 00 00 00 FA [22:53:53]Write i2c OK [22:53:53]MH_I2C_Read... [22:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:53]Read from MH i2c: E2 [22:53:53]MH_I2C_Read... [22:53:53]Read from MH i2c: E2 17 00 [22:53:53]MH_I2C_Read... [22:53:53]Read from MH i2c: E2 17 00 7E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 4D [22:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:53:53]wFMCommunicate OK [22:53:53]requested_item fd.num is exist - process it [22:53:53]SAM_PROTO_GetFieldsCounters [22:53:53]wFMCommunicate request_size=4 [22:53:53]MH_SAM_APDU [22:53:53]CAPDU: 80 13 00 00 [22:53:53]Write to MH i2c: E2 08 00 7F 02 80 13 00 00 00 00 00 00 FD [22:53:53]Write i2c OK [22:53:53]MH_I2C_Read... [22:53:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:53]Read from MH i2c: E2 [22:53:53]MH_I2C_Read... [22:53:53]Read from MH i2c: E2 62 00 [22:53:53]MH_I2C_Read... [22:53:53]Read from MH i2c: E2 62 00 7F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C8 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [22:53:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C8 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:53]wFMCommunicate OK [22:53:53]SAM_PROTO_GetFieldsCounters done [22:53:53]requested_item shift.num is exist - process it [22:53:53]requested_item shift.opened is exist - process it [22:53:53]req_shift_opened [22:53:53]FM_GetShiftState [22:53:53]SAM_PROTO_GetShiftState [22:53:53]wFMCommunicate request_size=4 [22:53:53]MH_SAM_APDU [22:53:53]CAPDU: 80 13 01 00 [22:53:53]Write to MH i2c: E2 08 00 80 02 80 13 01 00 00 00 00 00 FF [22:53:53]Write i2c OK [22:53:53]MH_I2C_Read... [22:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:53]Read from MH i2c: E2 [22:53:53]MH_I2C_Read... [22:53:53]Read from MH i2c: E2 0E 00 [22:53:53]MH_I2C_Read... [22:53:53]Read from MH i2c: E2 0E 00 80 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 77 [22:53:53]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:53:53]wFMCommunicate OK [22:53:53]SAM_PROTO_GetShiftState done [22:53:53]FM_GetShiftState done [22:53:53]req_shift_opened done [22:53:53]requested_item shift.open_date is exist - process it [22:53:53]req_shift_open_date [22:53:53]req_shift_open_date done [22:53:53]produce_requested_data done [22:53:53]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145864,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [22:53:53]process_action_free close_receipt [22:53:53]json_value_free [22:53:53]json_value_free done [22:53:53]process_json_proto returns [22:53:53]Send response to host [22:53:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145864,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [22:53:53]free response buf [22:53:53]execute_script done [22:53:53]execute_script returns [22:53:53]free content buf [22:53:53]Sock 7.Close socket [22:53:53]Sock 7.Thread stoped [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:20]accept exits with 10 [22:55:20]New connection [22:55:20]New thread 3067506020 created [22:55:20]Thread 3067362660 joined [22:55:20]Waiting for new connection... [22:55:20] Sock 10.Parse request [22:55:20]Sock 10.Check first char [22:55:20]Sock 10.First char is OK [22:55:20]request: POST /json_proto HTTP/1.0 [22:55:20]Method: POST [22:55:20]URL: /json_proto [22:55:20]Method is POST - this is cgi request [22:55:20]url: /json_proto [22:55:20]query_string will be loaded in cgi processing [22:55:20]execute_cgi json_proto POST (null) [22:55:20]execute_cgi path=json_proto method=POST [22:55:20]POST find Content-Length [22:55:20]Host: 172.17.40.195:8080 [22:55:20]Content-Length: 679 [22:55:20]Content-Type: application/json [22:55:20] [22:55:20]POST finish read [22:55:20]Found Content-Length = 679 [22:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.810, "sum" : 990.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 990.00, "payments": [ { "type": 0, "sum" : 990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:20]execute_script... [22:55: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)160622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.810, "sum" : 990.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 990.00, "payments": [ { "type": 0, "sum" : 990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:20]POST & json_proto [22:55:20]process_json_proto [22:55:20]json parsed OK: [22:55:20]protocol is kg_v1.0 [22:55:20]action value=close_receipt [22:55:20]process_action close_receipt [22:55:20]cmd_close_receipt [22:55:20]MH_GetDate [22:55:20]Write to MH i2c: F0 00 00 81 02 72 [22:55:20]Write i2c OK [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: F0 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: F0 09 00 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: F0 09 00 81 02 00 D8 C4 1E 67 D5 8D 6C 64 CE [22:55:20]GetLastDocTimeStamp 1730069629 [22:55:20]current date 1730069720 [22:55:20]FM_GetShiftState [22:55:20]SAM_PROTO_GetShiftState [22:55:20]wFMCommunicate request_size=4 [22:55:20]MH_SAM_APDU [22:55:20]CAPDU: 80 13 01 00 [22:55:20]Write to MH i2c: E2 08 00 82 02 80 13 01 00 00 00 00 00 01 [22:55:20]Write i2c OK [22:55:20]MH_I2C_Read... [22:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:20]Read from MH i2c: E2 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 0E 00 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 0E 00 82 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 79 [22:55:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:55:20]wFMCommunicate OK [22:55:20]SAM_PROTO_GetShiftState done [22:55:20]FM_GetShiftState done [22:55:20]opened in 1729988959 [22:55:20]opened+sec_in_day 1730075359 [22:55:20]quantity*price = 99078 [22:55:20]sum+1 = 99080 [22:55:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.79 ИТОГО: 990.00 Внесено: 1000.00 СДАЧА: 10.00 НСП 1% : 8.77 НДС 12% : 105.22 Наличными: 990.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 288 27.10.2024 22:55 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145865 ФПД: 273701411975967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225520&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145865&fm=273701411975967&tin=02508201610067®Number=0000000000091683&sum=99000 [22:55:21]StoreToDocumentArchive [22:55:21]shift 545 fd 145865 [22:55:21]save to /storage/0545/doc_00145865 [22:55:21]save last doc name /storage/0545/doc_00145865 to /storage/kkm_last_doc_name [22:55:21]save OK [22:55:21]Clear old archive folders... [22:55:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:55:21]tlvbuf is 006C3650 [22:55:21]SAM_PROTO_ClearQueue [22:55:21]wFMCommunicate request_size=4 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 09 00 00 [22:55:21]Write to MH i2c: E2 08 00 8F 02 80 09 00 00 00 00 00 00 03 [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [22:55:21]RAPDU: 90 00 [22:55:21]wFMCommunicate OK [22:55:21]SAM_PROTO_ClearQueue done [22:55:21]KKMCreateOFDPacket [22:55:21]OFDProtocolAddRootSTLVToBuf [22:55:21]FM_MakeSignedData [22:55:21]FM_MakeSignedData [22:55:21]SAM_PROTO_SignData [22:55:21]wFMCommunicate request_size=4 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 0D 01 02 [22:55:21]Write to MH i2c: E2 08 00 90 02 80 0D 01 02 00 00 00 00 0B [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 90 02 00 90 00 06 [22:55:21]RAPDU: 90 00 [22:55:21]wFMCommunicate OK [22:55:21]wFMCommunicate request_size=255 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 07 83 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 29 00 00 00 00 07 04 06 00 B8 82 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 D8 C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C9 39 02 00 35 04 06 00 F8 [22:55:21]Write to MH i2c: E2 02 01 91 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 07 83 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 29 00 00 00 00 07 04 06 00 B8 82 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 D8 C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C9 39 02 00 35 04 06 00 F8 00 00 78 [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 91 02 00 90 00 07 [22:55:21]RAPDU: 90 00 [22:55:21]wFMCommunicate OK [22:55:21]wFMCommunicate request_size=10 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 0D 02 02 05 EE 13 6F 73 1F [22:55:21]Write to MH i2c: E2 0D 00 92 02 80 0D 02 02 05 00 EE 13 6F 73 1F 00 00 1A [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 92 02 00 90 00 08 [22:55:21]RAPDU: 90 00 [22:55:21]wFMCommunicate OK [22:55:21]wFMCommunicate request_size=4 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 0D 03 02 [22:55:21]Write to MH i2c: E2 08 00 93 02 80 0D 03 02 00 00 00 00 10 [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 0B 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 0B 00 93 02 00 95 A0 9A CA 6D D6 05 07 90 00 F9 [22:55:21]RAPDU: 95 A0 9A CA 6D D6 05 07 90 00 [22:55:21]wFMCommunicate OK [22:55:21]SAM_PROTO_SignData done [22:55:21]FM_MakeSignedData done [22:55:21]CreateOFDProtocolMessage [22:55:21]wFMCommunicate request_size=4 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 11 00 00 [22:55:21]Write to MH i2c: E2 08 00 94 02 80 11 00 00 00 00 00 00 10 [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 17 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 17 00 94 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 63 [22:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:55:21]wFMCommunicate OK [22:55:21]CreateOFDProtocolMessage done [22:55:21]OFDSenderStorePacket 145865 [22:55:21]StoreOFDPacket docnum=145865 [22:55:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 FF DA 07 01 FC 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 07 83 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 29 00 00 00 00 07 04 06 00 B8 82 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 D8 C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C9 39 02 00 35 04 06 00 F8 EE 13 6F 73 1F 95 A0 9A CA 6D D6 05 07 [22:55:21]CheckFolder [22:55:21]dirname=/storage/ofd_packets [22:55:21]CheckFolder done [22:55:21]ProducePacketName [22:55:21]name=ofd_packets/00145865 [22:55:21]NVStorageSaveData ofd_packets/00145865 [22:55:21]File name is /storage/ofd_packets/00145865 [22:55:21]Write 301 bytes [22:55:21]NVStorageSaveData done [22:55:21]OFDSenderStorePacket done [22:55:21]KKMCreateOFDPacket done [22:55:21]NVStorageSaveData kkm_last_timestamp [22:55:21]File name is /storage/kkm_last_timestamp [22:55:21]Write 4 bytes [22:55:21]NVStorageSaveData done [22:55:21]ExternCall_PrintAddStr [22:55:21]wPrintStart [22:55:21]Write to MH i2c: 01 00 00 95 02 97 [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: 01 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: 01 07 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: 01 07 00 95 02 00 00 00 00 00 FF 0F AC [22:55:21]RasterBufferAndPrint [22:55:21]line Счет N : (1)160622 [22:55:21]line ИНН: 02508201610067 [22:55:21]line Контрольно-Кассовый Чек [22:55:21]line ПРОДАЖА [22:55:21]line ТРК (МРК, ГНК) : 52 [22:55:21]line Товар: 2710124130 [22:55:21]line Аи-92-К-2 [22:55:21]line 14.810 * 66.90 [22:55:21]line = 990.79 [22:55:21]line НДС 12% НСП 1% [22:55:21]line > о реализуемом товаре [22:55:21]line ОКРУГЛЕНИЕ: -0.79 [22:55:21]line ИТОГО: 990.00 [22:55:21]line Внесено: 1000.00 [22:55:21]line СДАЧА: 10.00 [22:55:21]line НСП 1% : 8.77 [22:55:21]line НДС 12% : 105.22 [22:55:21]line Наличными: 990.00 [22:55:21]line Безнал.: 0.00 [22:55:21]line Место: АЗС № 126 "Партнер Нефть" [22:55:21]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [22:55:21]line СНО: Общий режим [22:55:21]line Чек 288 27.10.2024 22:55 [22:55:21]line Смена: 545 ФФД: 1.0 [22:55:21]line ЗНМ: 0300000085 [22:55:21]line РНМ: 0000000000091683 [22:55:21]line Версия ККМ: 001 [22:55:21]line ФМ: 0000000000871745 [22:55:21]line ФД: 145865 [22:55:21]line ФПД: 273701411975967 [22:55:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225520&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145865&fm=273701411975967&tin=02508201610067®Number=0000000000091683&sum=99000 [22:55:22]written 0, free lines is 4095 [22:55:22]OFD Sender: Processing packet 145865 [packets to send 206, broken 205] [22:55:22]ProducePacketName [22:55:22]name=ofd_packets/00145865 [22:55:22]OFD Sender: To server: pG, [22:55:22]CommunicateWithHost lk.salyk.kg:30040 [22:55:22]ConnectInit lk.salyk.kg [22:55:22]Connected sock=11 [22:55:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 FF DA 07 01 FC 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 07 83 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 29 00 00 00 00 07 04 06 00 B8 82 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 D8 C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C9 39 02 00 35 04 06 00 F8 EE 13 6F 73 1F 95 A0 9A CA 6D D6 05 07 [22:55:22]Write to MH i2c: 01 00 00 C0 02 C2 [22:55:22]Write i2c OK [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: 01 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: 01 07 00 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: 01 07 00 C0 02 00 00 00 00 00 9B 0C 70 [22:55:22]RasterBufferAndPrint [22:55:22]line [22:55:22]line [22:55:22]line [22:55:22]line [22:55:22]line [22:55:22]written 0, free lines is 3233 [22:55:22]MH_Cut [22:55:22]Write to MH i2c: D1 01 00 C7 02 01 9B [22:55:22]Write i2c OK [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: D1 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: D1 01 00 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: D1 01 00 C7 02 00 9A [22:55:22]Write to MH i2c: 01 00 00 C8 02 CA [22:55:22]Write i2c OK [22:55:22]MH_I2C_Read... [22:55:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 0C EF 47 00 C7 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 C9 39 02 00 F4 03 04 00 04 6A 1E 67 B6 04 01 00 00 FD 7C 9F FA 60 74 64 76 [22:55:22]CommunicateWithHost err = 0 [22:55:22]CheckOFDResponse [22:55:22]1017 (14) - 77093643461234 [22:55:22]1041 (16) - 0000000000871745 [22:55:22]1040 (4) - 145865 [22:55:22]1012 (4) - 27.10.2024 16:27 [22:55:22]1206 (1) - 0 [22:55:22]OFD Sender: Remove packet 145865 [22:55:22]ProducePacketName [22:55:22]name=ofd_packets/00145865 [22:55:22]NVStorageDeleteData [22:55:23]OFD Sender: No OFD packet to send [22:55:23]*** Cut start [22:55:23]*** Partial cut [22:55:23]*** CUTSNS_PIN = 1 [22:55:23]*** CUTSNS_PIN = 0 [22:55:23]*** Brake cut motor [22:55:24]Read from MH i2c: 01 [22:55:24]MH_I2C_Read... [22:55:24]*** Stop cut motor [22:55:24]*** Cut end [22:55:24]Read from MH i2c: 01 07 00 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: 01 07 00 C8 02 00 00 00 00 00 FF 0F DF [22:55:24]process_action close_receipt done [22:55:24]requested_data is exist [22:55:24]produce_requested_data [22:55:24]requested_item fm.sn is exist - process it [22:55:24]wFMCommunicate request_size=4 [22:55:24]MH_SAM_APDU [22:55:24]CAPDU: 80 11 00 00 [22:55:24]Write to MH i2c: E2 08 00 C9 02 80 11 00 00 00 00 00 00 45 [22:55:24]Write i2c OK [22:55:24]MH_I2C_Read... [22:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:24]Read from MH i2c: E2 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 17 00 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 17 00 C9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 98 [22:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:55:24]wFMCommunicate OK [22:55:24]requested_item fd.num is exist - process it [22:55:24]SAM_PROTO_GetFieldsCounters [22:55:24]wFMCommunicate request_size=4 [22:55:24]MH_SAM_APDU [22:55:24]CAPDU: 80 13 00 00 [22:55:24]Write to MH i2c: E2 08 00 CA 02 80 13 00 00 00 00 00 00 48 [22:55:24]Write i2c OK [22:55:24]MH_I2C_Read... [22:55:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:24]Read from MH i2c: E2 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 62 00 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 62 00 CA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C9 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [22:55:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 C9 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:24]wFMCommunicate OK [22:55:24]SAM_PROTO_GetFieldsCounters done [22:55:24]requested_item shift.num is exist - process it [22:55:24]requested_item shift.opened is exist - process it [22:55:24]req_shift_opened [22:55:24]FM_GetShiftState [22:55:24]SAM_PROTO_GetShiftState [22:55:24]wFMCommunicate request_size=4 [22:55:24]MH_SAM_APDU [22:55:24]CAPDU: 80 13 01 00 [22:55:24]Write to MH i2c: E2 08 00 CB 02 80 13 01 00 00 00 00 00 4A [22:55:24]Write i2c OK [22:55:24]MH_I2C_Read... [22:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:24]Read from MH i2c: E2 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 0E 00 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 0E 00 CB 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C2 [22:55:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:55:24]wFMCommunicate OK [22:55:24]SAM_PROTO_GetShiftState done [22:55:24]FM_GetShiftState done [22:55:24]req_shift_opened done [22:55:24]requested_item shift.open_date is exist - process it [22:55:24]req_shift_open_date [22:55:24]req_shift_open_date done [22:55:24]produce_requested_data done [22:55:24]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145865,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [22:55:24]process_action_free close_receipt [22:55:24]json_value_free [22:55:24]json_value_free done [22:55:24]process_json_proto returns [22:55:24]Send response to host [22:55:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145865,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [22:55:24]free response buf [22:55:24]execute_script done [22:55:24]execute_script returns [22:55:24]free content buf [22:55:24]Sock 10.Close socket [22:55:24]Sock 10.Thread stoped [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:47]accept exits with 7 [22:55:47]New connection [22:55:47]New thread 3067362660 created [22:55:47]Thread 3067506020 joined [22:55:47]Waiting for new connection... [22:55:47] Sock 7.Parse request [22:55:47]Sock 7.Check first char [22:55:47]Sock 7.First char is OK [22:55:47]request: POST /json_proto HTTP/1.0 [22:55:47]Method: POST [22:55:47]URL: /json_proto [22:55:47]Method is POST - this is cgi request [22:55:47]url: /json_proto [22:55:47]query_string will be loaded in cgi processing [22:55:47]execute_cgi json_proto POST (null) [22:55:47]execute_cgi path=json_proto method=POST [22:55:47]POST find Content-Length [22:55:47]Host: 172.17.40.195:8080 [22:55:47]Content-Length: 766 [22:55:47]Content-Type: application/json [22:55:47] [22:55:47]POST finish read [22:55:47]Found Content-Length = 766 [22:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:47]execute_script... [22:55: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)160623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:47]POST & json_proto [22:55:47]process_json_proto [22:55:47]json parsed OK: [22:55:47]protocol is kg_v1.0 [22:55:47]action value=close_receipt [22:55:47]process_action close_receipt [22:55:47]cmd_close_receipt [22:55:47]MH_GetDate [22:55:47]Write to MH i2c: F0 00 00 CC 02 BD [22:55:47]Write i2c OK [22:55:47]MH_I2C_Read... [22:55:47]Read from MH i2c: F0 [22:55:47]MH_I2C_Read... [22:55:47]Read from MH i2c: F0 09 00 [22:55:47]MH_I2C_Read... [22:55:47]Read from MH i2c: F0 09 00 CC 02 00 F3 C4 1E 67 D5 8D 6C 64 34 [22:55:47]GetLastDocTimeStamp 1730069720 [22:55:47]current date 1730069747 [22:55:47]FM_GetShiftState [22:55:47]SAM_PROTO_GetShiftState [22:55:47]wFMCommunicate request_size=4 [22:55:47]MH_SAM_APDU [22:55:47]CAPDU: 80 13 01 00 [22:55:47]Write to MH i2c: E2 08 00 CD 02 80 13 01 00 00 00 00 00 4C [22:55:47]Write i2c OK [22:55:47]MH_I2C_Read... [22:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:47]Read from MH i2c: E2 [22:55:47]MH_I2C_Read... [22:55:47]Read from MH i2c: E2 0E 00 [22:55:47]MH_I2C_Read... [22:55:47]Read from MH i2c: E2 0E 00 CD 02 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 C4 [22:55:47]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:55:47]wFMCommunicate OK [22:55:47]SAM_PROTO_GetShiftState done [22:55:47]FM_GetShiftState done [22:55:47]opened in 1729988959 [22:55:47]opened+sec_in_day 1730075359 [22:55:47]quantity*price = 50041 [22:55:47]sum+1 = 50042 [22:55:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 289 27.10.2024 22:55 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145866 ФПД: 182123269989133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225547&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145866&fm=182123269989133&tin=02508201610067®Number=0000000000091683&sum=50041 [22:55:48]StoreToDocumentArchive [22:55:48]shift 545 fd 145866 [22:55:48]save to /storage/0545/doc_00145866 [22:55:48]save last doc name /storage/0545/doc_00145866 to /storage/kkm_last_doc_name [22:55:48]save OK [22:55:48]Clear old archive folders... [22:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:55:48]tlvbuf is 006961A0 [22:55:48]SAM_PROTO_ClearQueue [22:55:48]wFMCommunicate request_size=4 [22:55:48]MH_SAM_APDU [22:55:48]CAPDU: 80 09 00 00 [22:55:48]Write to MH i2c: E2 08 00 DA 02 80 09 00 00 00 00 00 00 4E [22:55:48]Write i2c OK [22:55:48]MH_I2C_Read... [22:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:48]Read from MH i2c: E2 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 03 00 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 03 00 DA 02 00 90 00 50 [22:55:48]RAPDU: 90 00 [22:55:48]wFMCommunicate OK [22:55:48]SAM_PROTO_ClearQueue done [22:55:48]KKMCreateOFDPacket [22:55:48]OFDProtocolAddRootSTLVToBuf [22:55:48]FM_MakeSignedData [22:55:48]FM_MakeSignedData [22:55:48]SAM_PROTO_SignData [22:55:48]wFMCommunicate request_size=4 [22:55:48]MH_SAM_APDU [22:55:48]CAPDU: 80 0D 01 02 [22:55:48]Write to MH i2c: E2 08 00 DB 02 80 0D 01 02 00 00 00 00 56 [22:55:48]Write i2c OK [22:55:48]MH_I2C_Read... [22:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:48]Read from MH i2c: E2 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 03 00 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 03 00 DB 02 00 90 00 51 [22:55:48]RAPDU: 90 00 [22:55:48]wFMCommunicate OK [22:55:48]wFMCommunicate request_size=255 [22:55:48]MH_SAM_APDU [22:55: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F3 C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CA 39 02 00 35 04 06 00 A5 [22:55:48]Write to MH i2c: E2 02 01 DC 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F3 C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CA 39 02 00 35 04 06 00 A5 00 00 61 [22:55:48]Write i2c OK [22:55:48]MH_I2C_Read... [22:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:48]Read from MH i2c: E2 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 03 00 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 03 00 DC 02 00 90 00 52 [22:55:48]RAPDU: 90 00 [22:55:48]wFMCommunicate OK [22:55:48]wFMCommunicate request_size=10 [22:55:48]MH_SAM_APDU [22:55:48]CAPDU: 80 0D 02 02 05 A3 E0 D0 23 0D [22:55:48]Write to MH i2c: E2 0D 00 DD 02 80 0D 02 02 05 00 A3 E0 D0 23 0D 00 00 E6 [22:55:48]Write i2c OK [22:55:48]MH_I2C_Read... [22:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:48]Read from MH i2c: E2 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 03 00 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 03 00 DD 02 00 90 00 53 [22:55:48]RAPDU: 90 00 [22:55:48]wFMCommunicate OK [22:55:48]wFMCommunicate request_size=4 [22:55:48]MH_SAM_APDU [22:55:48]CAPDU: 80 0D 03 02 [22:55:48]Write to MH i2c: E2 08 00 DE 02 80 0D 03 02 00 00 00 00 5B [22:55:48]Write i2c OK [22:55:48]MH_I2C_Read... [22:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:48]Read from MH i2c: E2 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 0B 00 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 0B 00 DE 02 00 FC 04 37 7C 88 84 16 87 90 00 B8 [22:55:48]RAPDU: FC 04 37 7C 88 84 16 87 90 00 [22:55:48]wFMCommunicate OK [22:55:48]SAM_PROTO_SignData done [22:55:48]FM_MakeSignedData done [22:55:48]CreateOFDProtocolMessage [22:55:48]wFMCommunicate request_size=4 [22:55:48]MH_SAM_APDU [22:55:48]CAPDU: 80 11 00 00 [22:55:48]Write to MH i2c: E2 08 00 DF 02 80 11 00 00 00 00 00 00 5B [22:55:48]Write i2c OK [22:55:48]MH_I2C_Read... [22:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:48]Read from MH i2c: E2 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 17 00 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 17 00 DF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AE [22:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:55:48]wFMCommunicate OK [22:55:48]CreateOFDProtocolMessage done [22:55:48]OFDSenderStorePacket 145866 [22:55:48]StoreOFDPacket docnum=145866 [22:55:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C4 0C 07 01 56 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F3 C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CA 39 02 00 35 04 06 00 A5 A3 E0 D0 23 0D FC 04 37 7C 88 84 16 87 [22:55:48]CheckFolder [22:55:48]dirname=/storage/ofd_packets [22:55:48]CheckFolder done [22:55:48]ProducePacketName [22:55:48]name=ofd_packets/00145866 [22:55:48]NVStorageSaveData ofd_packets/00145866 [22:55:48]File name is /storage/ofd_packets/00145866 [22:55:48]Write 301 bytes [22:55:48]NVStorageSaveData done [22:55:48]OFDSenderStorePacket done [22:55:48]KKMCreateOFDPacket done [22:55:48]NVStorageSaveData kkm_last_timestamp [22:55:48]File name is /storage/kkm_last_timestamp [22:55:48]Write 4 bytes [22:55:48]NVStorageSaveData done [22:55:48]ExternCall_PrintAddStr [22:55:48]wPrintStart [22:55:48]Write to MH i2c: 01 00 00 E0 02 E2 [22:55:48]Write i2c OK [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: 01 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: 01 07 00 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: 01 07 00 E0 02 00 00 00 00 00 FF 0F F7 [22:55:48]RasterBufferAndPrint [22:55:48]line Счет N : (1)160623 [22:55:48]line ИНН: 02508201610067 [22:55:48]line Контрольно-Кассовый Чек [22:55:48]line ПРОДАЖА [22:55:48]line ТРК (МРК, ГНК) : 42 [22:55:48]line Товар: 2710124130 [22:55:48]line Аи-92-К-2 [22:55:48]line 7.480 * 66.90 [22:55:48]line = 500.41 [22:55:48]line НДС 12% НСП 1% [22:55:48]line > о реализуемом товаре [22:55:48]line ИТОГО: 500.41 [22:55:48]line НСП 1% : 4.43 [22:55:48]line НДС 12% : 53.14 [22:55:48]line Наличными: 0.00 [22:55:48]line Безнал.: 500.41 [22:55:48]line Место: АЗС № 126 "Партнер Нефть" [22:55:48]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [22:55:48]line СНО: Общий режим [22:55:48]line Чек 289 27.10.2024 22:55 [22:55:48]line Смена: 545 ФФД: 1.0 [22:55:48]line ЗНМ: 0300000085 [22:55:48]line РНМ: 0000000000091683 [22:55:48]line Версия ККМ: 001 [22:55:48]line Платежная система: Mbank [22:55:48]line ФМ: 0000000000871745 [22:55:48]line ФД: 145866 [22:55:48]line ФПД: 182123269989133 [22:55:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225547&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145866&fm=182123269989133&tin=02508201610067®Number=0000000000091683&sum=50041 [22:55:49]written 0, free lines is 4095 [22:55:49]OFD Sender: Processing packet 145866 [packets to send 206, broken 205] [22:55:49]ProducePacketName [22:55:49]name=ofd_packets/00145866 [22:55:49]OFD Sender: To server: pG, [22:55:49]CommunicateWithHost lk.salyk.kg:30040 [22:55:49]ConnectInit lk.salyk.kg [22:55:49]Write to MH i2c: 01 00 00 09 03 0C [22:55:49]Write i2c OK [22:55:49]MH_I2C_Read... [22:55:49]Read from MH i2c: 01 [22:55:49]MH_I2C_Read... [22:55:49]Read from MH i2c: 01 07 00 [22:55:49]MH_I2C_Read... [22:55:49]Read from MH i2c: 01 07 00 09 03 00 00 00 00 00 CA 0C E9 [22:55:49]RasterBufferAndPrint [22:55:49]line [22:55:49]line [22:55:49]line [22:55:49]line [22:55:49]line [22:55:49]written 0, free lines is 3279 [22:55:49]MH_Cut [22:55:49]Write to MH i2c: D1 01 00 10 03 01 E5 [22:55:49]Write i2c OK [22:55:49]MH_I2C_Read... [22:55:49]Read from MH i2c: D1 [22:55:49]MH_I2C_Read... [22:55:49]Read from MH i2c: D1 01 00 [22:55:49]MH_I2C_Read... [22:55:49]Read from MH i2c: D1 01 00 10 03 00 E4 [22:55:49]Write to MH i2c: 01 00 00 11 03 14 [22:55:49]Write i2c OK [22:55:49]MH_I2C_Read... [22:55:50]*** Cut start [22:55:50]*** Partial cut [22:55:50]*** CUTSNS_PIN = 1 [22:55:50]*** CUTSNS_PIN = 0 [22:55:50]*** Brake cut motor [22:55:51]Read from MH i2c: 01 [22:55:51]MH_I2C_Read... [22:55:51]*** Stop cut motor [22:55:51]*** Cut end [22:55:51]Read from MH i2c: 01 07 00 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [22:55:51]process_action close_receipt done [22:55:51]requested_data is exist [22:55:51]produce_requested_data [22:55:51]requested_item fm.sn is exist - process it [22:55:51]wFMCommunicate request_size=4 [22:55:51]MH_SAM_APDU [22:55:51]CAPDU: 80 11 00 00 [22:55:51]Write to MH i2c: E2 08 00 12 03 80 11 00 00 00 00 00 00 8F [22:55:51]Write i2c OK [22:55:51]MH_I2C_Read... [22:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:51]Read from MH i2c: E2 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: E2 17 00 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: E2 17 00 12 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E2 [22:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [22:55:51]wFMCommunicate OK [22:55:51]requested_item fd.num is exist - process it [22:55:51]SAM_PROTO_GetFieldsCounters [22:55:51]wFMCommunicate request_size=4 [22:55:51]MH_SAM_APDU [22:55:51]CAPDU: 80 13 00 00 [22:55:51]Write to MH i2c: E2 08 00 13 03 80 13 00 00 00 00 00 00 92 [22:55:51]Write i2c OK [22:55:51]MH_I2C_Read... [22:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:51]Read from MH i2c: E2 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: E2 62 00 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: E2 62 00 13 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CA 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [22:55:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CA 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:51]wFMCommunicate OK [22:55:51]SAM_PROTO_GetFieldsCounters done [22:55:51]requested_item shift.num is exist - process it [22:55:51]requested_item shift.opened is exist - process it [22:55:51]req_shift_opened [22:55:51]FM_GetShiftState [22:55:51]SAM_PROTO_GetShiftState [22:55:51]wFMCommunicate request_size=4 [22:55:51]MH_SAM_APDU [22:55:51]CAPDU: 80 13 01 00 [22:55:51]Write to MH i2c: E2 08 00 14 03 80 13 01 00 00 00 00 00 94 [22:55:51]Write i2c OK [22:55:51]MH_I2C_Read... [22:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:51]Read from MH i2c: E2 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: E2 0E 00 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: E2 0E 00 14 03 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 0C [22:55:51]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [22:55:51]wFMCommunicate OK [22:55:51]SAM_PROTO_GetShiftState done [22:55:51]FM_GetShiftState done [22:55:51]req_shift_opened done [22:55:51]requested_item shift.open_date is exist - process it [22:55:51]req_shift_open_date [22:55:51]req_shift_open_date done [22:55:51]produce_requested_data done [22:55:51]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145866,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [22:55:51]process_action_free close_receipt [22:55:51]json_value_free [22:55:51]json_value_free done [22:55:51]process_json_proto returns [22:55:51]Send response to host [22:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145866,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [22:55:51]free response buf [22:55:51]execute_script done [22:55:51]execute_script returns [22:55:51]free content buf [22:55:51]Sock 7.Close socket [22:55:51]Sock 7.Thread stoped [22:56:03]int [22:56:03]Write to MH i2c: 01 00 00 15 03 18 [22:56:03]*** FLAG_PRN_KEY set [22:56:03]Write i2c OK [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: 01 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: 01 07 00 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: 01 07 00 15 03 00 08 00 00 00 FF 0F 35 [22:56:03]state=0 [22:56:03]Key pressed [22:56:03]Feed [22:56:03]Write to MH i2c: D8 00 00 16 03 F0 [22:56:03]Write i2c OK [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: D8 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: D8 01 00 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: D8 01 00 16 03 00 F1 [22:56:03]int [22:56:03]Write to MH i2c: 01 00 00 17 03 1A [22:56:03]Write i2c OK [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: 01 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: 01 07 00 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: 01 07 00 17 03 00 48 00 00 00 3C 00 A5 [22:56:03]state=2 [22:56:03]Key pressed [22:56:03]int [22:56:03]Write to MH i2c: 01 00 00 18 03 1B [22:56:03]*** FLAG_PRN_KEY reset [22:56:03]Write i2c OK [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: 01 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: 01 07 00 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 F7 0F 28 [22:56:03]state=2 [22:56:03]Stop feed [22:58:02]ConnectInit Can't connect to host [22:58:02]CommunicateWithHost connect error [22:58:02]CommunicateWithHost err = -1 [22:58:02]OFD Sender: Server communicate error [22:58:07]OFD Sender: Processing packet 145866 [packets to send 206, broken 205] [22:58:07]ProducePacketName [22:58:07]name=ofd_packets/00145866 [22:58:07]OFD Sender: To server: pG, [22:58:07]CommunicateWithHost lk.salyk.kg:30040 [22:58:07]ConnectInit lk.salyk.kg [22:58:07]Connected sock=10 [22:58:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 C4 0C 07 01 56 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F3 C4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CA 39 02 00 35 04 06 00 A5 A3 E0 D0 23 0D FC 04 37 7C 88 84 16 87 [22:58:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 76 56 47 00 1F 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CA 39 02 00 F4 03 04 00 AA 6A 1E 67 B6 04 01 00 00 EF 75 D4 C0 37 E3 55 BF [22:58:07]CommunicateWithHost err = 0 [22:58:07]CheckOFDResponse [22:58:07]1017 (14) - 77093643461234 [22:58:07]1041 (16) - 0000000000871745 [22:58:07]1040 (4) - 145866 [22:58:07]1012 (4) - 27.10.2024 16:30 [22:58:07]1206 (1) - 0 [22:58:07]OFD Sender: Remove packet 145866 [22:58:07]ProducePacketName [22:58:07]name=ofd_packets/00145866 [22:58:07]NVStorageDeleteData [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:37]ConnectInit Can't connect to host [23:08:39]OFD Sender: No OFD packet to send [23:09:07]OFDSenderStorePacket 145867 [23:09:07]StoreOFDPacket docnum=145867 [23:09:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 80 AC 07 01 CF 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 12 C8 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CB 39 02 00 35 04 06 00 01 B5 0A 39 E1 7A F3 6A 23 7F AF DE EF A2 [23:09:07]CheckFolder [23:09:07]dirname=/storage/ofd_packets [23:09:07]CheckFolder done [23:09:07]ProducePacketName [23:09:07]name=ofd_packets/00145867 [23:09:07]NVStorageSaveData ofd_packets/00145867 [23:09:07]File name is /storage/ofd_packets/00145867 [23:09:07]Write 301 bytes [23:09:07]NVStorageSaveData done [23:09:07]OFDSenderStorePacket done [23:09:07]KKMCreateOFDPacket done [23:09:07]NVStorageSaveData kkm_last_timestamp [23:09:07]File name is /storage/kkm_last_timestamp [23:09:07]Write 4 bytes [23:09:07]NVStorageSaveData done [23:09:07]ExternCall_PrintAddStr [23:09:07]wPrintStart [23:09:07]Write to MH i2c: 01 00 00 2D 03 30 [23:09:07]Write i2c OK [23:09:07]MH_I2C_Read... [23:09:07]Read from MH i2c: 01 [23:09:07]MH_I2C_Read... [23:09:07]Read from MH i2c: 01 07 00 [23:09:07]MH_I2C_Read... [23:09:07]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 FF 0F 45 [23:09:07]RasterBufferAndPrint [23:09:07]line Счет N : (1)160624 [23:09:07]line ИНН: 02508201610067 [23:09:07]line Контрольно-Кассовый Чек [23:09:07]line ПРОДАЖА [23:09:07]line ТРК (МРК, ГНК) : 62 [23:09:07]line Товар: 2710124130 [23:09:07]line Аи-92-К-2 [23:09:07]line 4.490 * 66.90 [23:09:07]line = 300.38 [23:09:07]line НДС 12% НСП 1% [23:09:07]line > о реализуемом товаре [23:09:07]line ОКРУГЛЕНИЕ: -0.38 [23:09:07]line ИТОГО: 300.00 [23:09:07]line Внесено: 300.00 [23:09:07]line СДАЧА: 0.00 [23:09:07]line НСП 1% : 2.66 [23:09:07]line НДС 12% : 31.90 [23:09:07]line Наличными: 300.00 [23:09:07]line Безнал.: 0.00 [23:09:07]line Место: АЗС № 126 "Партнер Нефть" [23:09:07]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [23:09:07]line СНО: Общий режим [23:09:07]line Чек 290 27.10.2024 23:09 [23:09:07]line Смена: 545 ФФД: 1.0 [23:09:07]line ЗНМ: 0300000085 [23:09:07]line РНМ: 0000000000091683 [23:09:07]line Версия ККМ: 001 [23:09:07]line ФМ: 0000000000871745 [23:09:07]line ФД: 145867 [23:09:07]line ФПД: 1877072273786 [23:09:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230906&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145867&fm=1877072273786&tin=02508201610067®Number=0000000000091683&sum=30000 [23:09:08]written 0, free lines is 4095 [23:09:08]OFD Sender: Processing packet 145867 [packets to send 206, broken 205] [23:09:08]ProducePacketName [23:09:08]name=ofd_packets/00145867 [23:09:08]OFD Sender: To server: pG, [23:09:08]CommunicateWithHost lk.salyk.kg:30040 [23:09:08]ConnectInit lk.salyk.kg [23:09:08]Connected sock=11 [23:09:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 80 AC 07 01 CF 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 12 C8 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CB 39 02 00 35 04 06 00 01 B5 0A 39 E1 7A F3 6A 23 7F AF DE EF A2 [23:09:08]Write to MH i2c: 01 00 00 58 03 5B [23:09:08]Write i2c OK [23:09:08]MH_I2C_Read... [23:09:08]Read from MH i2c: 01 [23:09:08]MH_I2C_Read... [23:09:08]Read from MH i2c: 01 07 00 [23:09:08]MH_I2C_Read... [23:09:08]Read from MH i2c: 01 07 00 58 03 00 00 00 00 00 BA 0C 28 [23:09:08]RasterBufferAndPrint [23:09:08]line [23:09:08]line [23:09:08]line [23:09:08]line [23:09:08]line [23:09:08]written 0, free lines is 3265 [23:09:08]MH_Cut [23:09:08]Write to MH i2c: D1 01 00 5F 03 01 34 [23:09:08]Write i2c OK [23:09:08]MH_I2C_Read... [23:09:08]Read from MH i2c: D1 [23:09:08]MH_I2C_Read... [23:09:08]Read from MH i2c: D1 01 00 [23:09:08]MH_I2C_Read... [23:09:08]Read from MH i2c: D1 01 00 5F 03 00 33 [23:09:08]Write to MH i2c: 01 00 00 60 03 63 [23:09:08]Write i2c OK [23:09:08]MH_I2C_Read... [23:09:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A4 72 47 00 36 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CB 39 02 00 F4 03 04 00 3E 6D 1E 67 B6 04 01 00 00 14 BD 3B AF CF 63 BF 5B [23:09:08]CommunicateWithHost err = 0 [23:09:08]CheckOFDResponse [23:09:08]1017 (14) - 77093643461234 [23:09:08]1041 (16) - 0000000000871745 [23:09:08]1040 (4) - 145867 [23:09:08]1012 (4) - 27.10.2024 16:41 [23:09:08]1206 (1) - 0 [23:09:08]OFD Sender: Remove packet 145867 [23:09:08]ProducePacketName [23:09:08]name=ofd_packets/00145867 [23:09:08]NVStorageDeleteData [23:09:09]OFD Sender: No OFD packet to send [23:09:09]*** Cut start [23:09:09]*** Partial cut [23:09:09]*** CUTSNS_PIN = 1 [23:09:09]*** CUTSNS_PIN = 0 [23:09:09]*** Brake cut motor [23:09:09]Read from MH i2c: 01 [23:09:09]MH_I2C_Read... [23:09:09]*** Stop cut motor [23:09:09]*** Cut end [23:09:09]Read from MH i2c: 01 07 00 [23:09:09]MH_I2C_Read... [23:09:09]Read from MH i2c: 01 07 00 60 03 00 00 00 00 00 FF 0F 78 [23:09:09]process_action close_receipt done [23:09:09]requested_data is exist [23:09:09]produce_requested_data [23:09:09]requested_item fm.sn is exist - process it [23:09:09]wFMCommunicate request_size=4 [23:09:09]MH_SAM_APDU [23:09:09]CAPDU: 80 11 00 00 [23:09:09]Write to MH i2c: E2 08 00 61 03 80 11 00 00 00 00 00 00 DE [23:09:09]Write i2c OK [23:09:09]MH_I2C_Read... [23:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:10]Read from MH i2c: E2 [23:09:10]MH_I2C_Read... [23:09:10]Read from MH i2c: E2 17 00 [23:09:10]MH_I2C_Read... [23:09:10]Read from MH i2c: E2 17 00 61 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 31 [23:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [23:09:10]wFMCommunicate OK [23:09:10]requested_item fd.num is exist - process it [23:09:10]SAM_PROTO_GetFieldsCounters [23:09:10]wFMCommunicate request_size=4 [23:09:10]MH_SAM_APDU [23:09:10]CAPDU: 80 13 00 00 [23:09:10]Write to MH i2c: E2 08 00 62 03 80 13 00 00 00 00 00 00 E1 [23:09:10]Write i2c OK [23:09:10]MH_I2C_Read... [23:09:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:10]Read from MH i2c: E2 [23:09:10]MH_I2C_Read... [23:09:10]Read from MH i2c: E2 62 00 [23:09:10]MH_I2C_Read... [23:09:10]Read from MH i2c: E2 62 00 62 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CB 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [23:09:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CB 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:09:10]wFMCommunicate OK [23:09:10]SAM_PROTO_GetFieldsCounters done [23:09:10]requested_item shift.num is exist - process it [23:09:10]requested_item shift.opened is exist - process it [23:09:10]req_shift_opened [23:09:10]FM_GetShiftState [23:09:10]SAM_PROTO_GetShiftState [23:09:10]wFMCommunicate request_size=4 [23:09:10]MH_SAM_APDU [23:09:10]CAPDU: 80 13 01 00 [23:09:10]Write to MH i2c: E2 08 00 63 03 80 13 01 00 00 00 00 00 E3 [23:09:10]Write i2c OK [23:09:10]MH_I2C_Read... [23:09:10]Read from MH i2c: E2 [23:09:10]MH_I2C_Read... [23:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:10]Read from MH i2c: E2 0E 00 [23:09:10]MH_I2C_Read... [23:09:10]Read from MH i2c: E2 0E 00 63 03 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5B [23:09:10]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [23:09:10]wFMCommunicate OK [23:09:10]SAM_PROTO_GetShiftState done [23:09:10]FM_GetShiftState done [23:09:10]req_shift_opened done [23:09:10]requested_item shift.open_date is exist - process it [23:09:10]req_shift_open_date [23:09:10]req_shift_open_date done [23:09:10]produce_requested_data done [23:09:10]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145867,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [23:09:10]process_action_free close_receipt [23:09:10]json_value_free [23:09:10]json_value_free done [23:09:10]process_json_proto returns [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:25]accept exits with 10 [23:16:25]New connection [23:16:25]New thread 3067362660 created [23:16:25]Thread 3067506020 joined [23:16:25]Waiting for new connection... [23:16:25] Sock 10.Parse request [23:16:25]Sock 10.Check first char [23:16:25]Sock 10.First char is OK [23:16:25]request: POST /json_proto HTTP/1.0 [23:16:25]Method: POST [23:16:25]URL: /json_proto [23:16:25]Method is POST - this is cgi request [23:16:25]url: /json_proto [23:16:25]query_string will be loaded in cgi processing [23:16:25]execute_cgi json_proto POST (null) [23:16:25]execute_cgi path=json_proto method=POST [23:16:25]POST find Content-Length [23:16:25]Host: 172.17.40.195:8080 [23:16:25]Content-Length: 769 [23:16:25]Content-Type: application/json [23:16:25] [23:16:25]POST finish read [23:16:25]Found Content-Length = 769 [23:16:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:25]execute_script... [23:16: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)160625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:25]POST & json_proto [23:16:25]process_json_proto [23:16:25]json parsed OK: [23:16:25]protocol is kg_v1.0 [23:16:25]action value=close_receipt [23:16:25]process_action close_receipt [23:16:25]cmd_close_receipt [23:16:25]MH_GetDate [23:16:25]Write to MH i2c: F0 00 00 64 03 56 [23:16:25]Write i2c OK [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: F0 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: F0 09 00 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: F0 09 00 64 03 00 CA C9 1E 67 D5 8D 6C 64 A9 [23:16:25]GetLastDocTimeStamp 1730070546 [23:16:25]current date 1730070986 [23:16:25]FM_GetShiftState [23:16:25]SAM_PROTO_GetShiftState [23:16:25]wFMCommunicate request_size=4 [23:16:25]MH_SAM_APDU [23:16:25]CAPDU: 80 13 01 00 [23:16:25]Write to MH i2c: E2 08 00 65 03 80 13 01 00 00 00 00 00 E5 [23:16:25]Write i2c OK [23:16:25]MH_I2C_Read... [23:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:26]Read from MH i2c: E2 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 0E 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 0E 00 65 03 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 5D [23:16:26]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [23:16:26]wFMCommunicate OK [23:16:26]SAM_PROTO_GetShiftState done [23:16:26]FM_GetShiftState done [23:16:26]opened in 1729988959 [23:16:26]opened+sec_in_day 1730075359 [23:16:26]quantity*price = 150032 [23:16:26]sum+1 = 150033 [23:16:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 291 27.10.2024 23:16 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145868 ФПД: 7669391497095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T231626&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145868&fm=7669391497095&tin=02508201610067®Number=0000000000091683&sum=150032 [23:16:27]StoreToDocumentArchive [23:16:27]shift 545 fd 145868 [23:16:27]save to /storage/0545/doc_00145868 [23:16:27]save last doc name /storage/0545/doc_00145868 to /storage/kkm_last_doc_name [23:16:27]save OK [23:16:27]Clear old archive folders... [23:16:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:16:27]tlvbuf is 006C1D20 [23:16:27]SAM_PROTO_ClearQueue [23:16:27]wFMCommunicate request_size=4 [23:16:27]MH_SAM_APDU [23:16:27]CAPDU: 80 09 00 00 [23:16:27]Write to MH i2c: E2 08 00 72 03 80 09 00 00 00 00 00 00 E7 [23:16:27]Write i2c OK [23:16:27]MH_I2C_Read... [23:16:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:27]Read from MH i2c: E2 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 03 00 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 03 00 72 03 00 90 00 E9 [23:16:27]RAPDU: 90 00 [23:16:27]wFMCommunicate OK [23:16:27]SAM_PROTO_ClearQueue done [23:16:27]KKMCreateOFDPacket [23:16:27]OFDProtocolAddRootSTLVToBuf [23:16:27]FM_MakeSignedData [23:16:27]FM_MakeSignedData [23:16:27]SAM_PROTO_SignData [23:16:27]wFMCommunicate request_size=4 [23:16:27]MH_SAM_APDU [23:16:27]CAPDU: 80 0D 01 02 [23:16:27]Write to MH i2c: E2 08 00 73 03 80 0D 01 02 00 00 00 00 EF [23:16:27]Write i2c OK [23:16:27]MH_I2C_Read... [23:16:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:27]Read from MH i2c: E2 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 03 00 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [23:16:27]RAPDU: 90 00 [23:16:27]wFMCommunicate OK [23:16:27]wFMCommunicate request_size=255 [23:16:27]MH_SAM_APDU [23:16: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 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 CA C9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CC 39 02 00 35 04 06 00 06 [23:16:27]Write to MH i2c: E2 02 01 74 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 CA C9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CC 39 02 00 35 04 06 00 06 00 00 8F [23:16:27]Write i2c OK [23:16:27]MH_I2C_Read... [23:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:27]Read from MH i2c: E2 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 03 00 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [23:16:27]RAPDU: 90 00 [23:16:27]wFMCommunicate OK [23:16:27]wFMCommunicate request_size=10 [23:16:27]MH_SAM_APDU [23:16:27]CAPDU: 80 0D 02 02 05 F9 AB 5B 17 87 [23:16:27]Write to MH i2c: E2 0D 00 75 03 80 0D 02 02 05 00 F9 AB 5B 17 87 00 00 99 [23:16:27]Write i2c OK [23:16:27]MH_I2C_Read... [23:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:27]Read from MH i2c: E2 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 03 00 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [23:16:27]RAPDU: 90 00 [23:16:27]wFMCommunicate OK [23:16:27]wFMCommunicate request_size=4 [23:16:27]MH_SAM_APDU [23:16:27]CAPDU: 80 0D 03 02 [23:16:27]Write to MH i2c: E2 08 00 76 03 80 0D 03 02 00 00 00 00 F4 [23:16:27]Write i2c OK [23:16:27]MH_I2C_Read... [23:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:27]Read from MH i2c: E2 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 0B 00 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 0B 00 76 03 00 3E ED 3A 1F DB 8A 5C 76 90 00 B0 [23:16:27]RAPDU: 3E ED 3A 1F DB 8A 5C 76 90 00 [23:16:27]wFMCommunicate OK [23:16:27]SAM_PROTO_SignData done [23:16:27]FM_MakeSignedData done [23:16:27]CreateOFDProtocolMessage [23:16:27]wFMCommunicate request_size=4 [23:16:27]MH_SAM_APDU [23:16:27]CAPDU: 80 11 00 00 [23:16:27]Write to MH i2c: E2 08 00 77 03 80 11 00 00 00 00 00 00 F4 [23:16:27]Write i2c OK [23:16:27]MH_I2C_Read... [23:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:27]Read from MH i2c: E2 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 17 00 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: E2 17 00 77 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 47 [23:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [23:16:27]wFMCommunicate OK [23:16:27]CreateOFDProtocolMessage done [23:16:27]OFDSenderStorePacket 145868 [23:16:27]StoreOFDPacket docnum=145868 [23:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 38 B7 07 01 77 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 CA C9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CC 39 02 00 35 04 06 00 06 F9 AB 5B 17 87 3E ED 3A 1F DB 8A 5C 76 [23:16:27]CheckFolder [23:16:27]dirname=/storage/ofd_packets [23:16:27]CheckFolder done [23:16:27]ProducePacketName [23:16:27]name=ofd_packets/00145868 [23:16:27]NVStorageSaveData ofd_packets/00145868 [23:16:27]File name is /storage/ofd_packets/00145868 [23:16:27]Write 301 bytes [23:16:27]NVStorageSaveData done [23:16:27]OFDSenderStorePacket done [23:16:27]KKMCreateOFDPacket done [23:16:27]NVStorageSaveData kkm_last_timestamp [23:16:27]File name is /storage/kkm_last_timestamp [23:16:27]Write 4 bytes [23:16:27]NVStorageSaveData done [23:16:27]ExternCall_PrintAddStr [23:16:27]wPrintStart [23:16:27]Write to MH i2c: 01 00 00 78 03 7B [23:16:27]Write i2c OK [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: 01 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: 01 07 00 [23:16:27]MH_I2C_Read... [23:16:27]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 FF 0F 90 [23:16:27]RasterBufferAndPrint [23:16:27]line Счет N : (1)160625 [23:16:27]line ИНН: 02508201610067 [23:16:27]line Контрольно-Кассовый Чек [23:16:27]line ПРОДАЖА [23:16:27]line ТРК (МРК, ГНК) : 63 [23:16:27]line Товар: 2710124500 [23:16:27]line Аи-95-К-3 [23:16:27]line 20.220 * 74.20 [23:16:27]line = 1500.32 [23:16:27]line НДС 12% НСП 1% [23:16:27]line > о реализуемом товаре [23:16:27]line ИТОГО: 1500.32 [23:16:27]line НСП 1% : 13.28 [23:16:27]line НДС 12% : 159.33 [23:16:27]line Наличными: 0.00 [23:16:27]line Безнал.: 1500.32 [23:16:27]line Место: АЗС № 126 "Партнер Нефть" [23:16:27]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [23:16:27]line СНО: Общий режим [23:16:27]line Чек 291 27.10.2024 23:16 [23:16:27]line Смена: 545 ФФД: 1.0 [23:16:27]line ЗНМ: 0300000085 [23:16:27]line РНМ: 0000000000091683 [23:16:27]line Версия ККМ: 001 [23:16:27]line Платежная система: Mbank [23:16:27]line ФМ: 0000000000871745 [23:16:27]line ФД: 145868 [23:16:27]line ФПД: 7669391497095 [23:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T231626&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145868&fm=7669391497095&tin=02508201610067®Number=0000000000091683&sum=150032 [23:16:27]written 0, free lines is 4095 [23:16:27]OFD Sender: Processing packet 145868 [packets to send 206, broken 205] [23:16:27]ProducePacketName [23:16:27]name=ofd_packets/00145868 [23:16:28]OFD Sender: To server: pG, [23:16:28]CommunicateWithHost lk.salyk.kg:30040 [23:16:28]ConnectInit lk.salyk.kg [23:16:28]Write to MH i2c: 01 00 00 A1 03 A4 [23:16:28]Write i2c OK [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: 01 [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: 01 07 00 [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 CB 0C 82 [23:16:28]RasterBufferAndPrint [23:16:28]line [23:16:28]line [23:16:28]line [23:16:28]line [23:16:28]line [23:16:28]written 0, free lines is 3280 [23:16:28]MH_Cut [23:16:28]Write to MH i2c: D1 01 00 A8 03 01 7D [23:16:28]Write i2c OK [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: D1 [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: D1 01 00 [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: D1 01 00 A8 03 00 7C [23:16:28]Write to MH i2c: 01 00 00 A9 03 AC [23:16:28]Write i2c OK [23:16:28]MH_I2C_Read... [23:16:28]Connected sock=11 [23:16:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 38 B7 07 01 77 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 CA C9 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CC 39 02 00 35 04 06 00 06 F9 AB 5B 17 87 3E ED 3A 1F DB 8A 5C 76 [23:16:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 25 6A 47 00 0C 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 31 37 34 35 10 04 04 00 CC 39 02 00 F4 03 04 00 F6 6E 1E 67 B6 04 01 00 00 43 8D 97 B1 F1 83 74 B7 [23:16:28]CommunicateWithHost err = 0 [23:16:28]CheckOFDResponse [23:16:28]1017 (14) - 77093643461234 [23:16:28]1041 (16) - 0000000000871745 [23:16:28]1040 (4) - 145868 [23:16:28]1012 (4) - 27.10.2024 16:48 [23:16:28]1206 (1) - 0 [23:16:28]OFD Sender: Remove packet 145868 [23:16:28]ProducePacketName [23:16:28]name=ofd_packets/00145868 [23:16:28]NVStorageDeleteData [23:16:28]*** Cut start [23:16:28]*** Partial cut [23:16:28]*** CUTSNS_PIN = 1 [23:16:29]*** CUTSNS_PIN = 0 [23:16:29]OFD Sender: No OFD packet to send [23:16:29]*** Brake cut motor [23:16:29]Read from MH i2c: 01 [23:16:29]MH_I2C_Read... [23:16:29]*** Stop cut motor [23:16:29]*** Cut end [23:16:29]Read from MH i2c: 01 07 00 [23:16:29]MH_I2C_Read... [23:16:29]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [23:16:29]process_action close_receipt done [23:16:29]requested_data is exist [23:16:29]produce_requested_data [23:16:29]requested_item fm.sn is exist - process it [23:16:29]wFMCommunicate request_size=4 [23:16:29]MH_SAM_APDU [23:16:29]CAPDU: 80 11 00 00 [23:16:29]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [23:16:29]Write i2c OK [23:16:29]MH_I2C_Read... [23:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:29]Read from MH i2c: E2 [23:16:29]MH_I2C_Read... [23:16:29]Read from MH i2c: E2 17 00 [23:16:29]MH_I2C_Read... [23:16:29]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 7A [23:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [23:16:29]wFMCommunicate OK [23:16:29]requested_item fd.num is exist - process it [23:16:29]SAM_PROTO_GetFieldsCounters [23:16:29]wFMCommunicate request_size=4 [23:16:29]MH_SAM_APDU [23:16:29]CAPDU: 80 13 00 00 [23:16:29]Write to MH i2c: E2 08 00 AB 03 80 13 00 00 00 00 00 00 2A [23:16:29]Write i2c OK [23:16:29]MH_I2C_Read... [23:16:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:29]Read from MH i2c: E2 [23:16:29]MH_I2C_Read... [23:16:29]Read from MH i2c: E2 62 00 [23:16:29]MH_I2C_Read... [23:16:29]Read from MH i2c: E2 62 00 AB 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CC 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [23:16:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CC 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:16:29]wFMCommunicate OK [23:16:29]SAM_PROTO_GetFieldsCounters done [23:16:29]requested_item shift.num is exist - process it [23:16:29]requested_item shift.opened is exist - process it [23:16:29]req_shift_opened [23:16:29]FM_GetShiftState [23:16:29]SAM_PROTO_GetShiftState [23:16:29]wFMCommunicate request_size=4 [23:16:29]MH_SAM_APDU [23:16:29]CAPDU: 80 13 01 00 [23:16:29]Write to MH i2c: E2 08 00 AC 03 80 13 01 00 00 00 00 00 2C [23:16:29]Write i2c OK [23:16:29]MH_I2C_Read... [23:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:29]Read from MH i2c: E2 [23:16:29]MH_I2C_Read... [23:16:29]Read from MH i2c: E2 0E 00 [23:16:29]MH_I2C_Read... [23:16:29]Read from MH i2c: E2 0E 00 AC 03 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 A4 [23:16:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [23:16:29]wFMCommunicate OK [23:16:29]SAM_PROTO_GetShiftState done [23:16:29]FM_GetShiftState done [23:16:29]req_shift_opened done [23:16:29]requested_item shift.open_date is exist - process it [23:16:29]req_shift_open_date [23:16:29]req_shift_open_date done [23:16:29]produce_requested_data done [23:16:29]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145868,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [23:16:29]process_action_free close_receipt [23:16:29]json_value_free [23:16:29]json_value_free done [23:16:29]process_json_proto returns [23:16:29]Send response to host [23:16:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145868,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [23:16:29]free response buf [23:16:29]execute_script done [23:16:29]execute_script returns [23:16:29]free content buf [23:16:29]Sock 10.Close socket [23:16:29]Sock 10.Thread stoped [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:55]ConnectInit Can't connect to host [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27: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]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:43:19]ConnectInit Can't connect to host [23:43:20]OFD Sender: Processing packet 145869 [packets to send 206, broken 205] [23:43:20]ProducePacketName [23:43:20]name=ofd_packets/00145869 [23:43:20]OFD Sender: To server: pG, [23:43:20]CommunicateWithHost lk.salyk.kg:30040 [23:43:20]ConnectInit lk.salyk.kg [23:43:25]ConnectInit Can't take IP for lk.salyk.kg [23:43:25]CommunicateWithHost connect error [23:43:25]CommunicateWithHost err = -1 [23:43:25]OFD Sender: Server communicate error [23:43:30]OFD Sender: Processing packet 145869 [packets to send 206, broken 205] [23:43:30]ProducePacketName [23:43:30]name=ofd_packets/00145869 [23:43:30]OFD Sender: To server: pG, [23:43:30]CommunicateWithHost lk.salyk.kg:30040 [23:43:30]ConnectInit lk.salyk.kg [23:43:31]Connected sock=10 [23:43:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 30 32 04 01 31 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 24 01 00 00 F4 03 04 00 0D D0 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CD 39 02 00 35 04 06 00 9C BB ED CE 4F 3B CE 8A 6F 26 55 BF 03 18 [23:43:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 3C 13 47 00 3B 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CD 39 02 00 F4 03 04 00 4D 75 1E 67 B6 04 01 00 00 A5 45 C3 07 5C 67 B2 9E [23:43:31]CommunicateWithHost err = 0 [23:43:31]CheckOFDResponse [23:43:31]1017 (14) - 77093643461234 [23:43:31]1041 (16) - 0000000000871745 [23:43:31]1040 (4) - 145869 [23:43:31]1012 (4) - 27.10.2024 17:15 [23:43:31]1206 (1) - 0 [23:43:31]OFD Sender: Remove packet 145869 [23:43:31]ProducePacketName [23:43:31]name=ofd_packets/00145869 [23:43:31]NVStorageDeleteData [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:53:17]ConnectInit Can't connect to host [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:23]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:29]accept exits with 7 [00:03:29]New connection [00:03:29]New thread 3067362660 created [00:03:29]Thread 3067506020 joined [00:03:29]Waiting for new connection... [00:03:29] Sock 7.Parse request [00:03:29]Sock 7.Check first char [00:03:29]Sock 7.First char is OK [00:03:29]request: POST /json_proto HTTP/1.0 [00:03:29]Method: POST [00:03:29]URL: /json_proto [00:03:29]Method is POST - this is cgi request [00:03:29]url: /json_proto [00:03:29]query_string will be loaded in cgi processing [00:03:29]execute_cgi json_proto POST (null) [00:03:29]execute_cgi path=json_proto method=POST [00:03:29]POST find Content-Length [00:03:29]Host: 172.17.40.195:8080 [00:03:29]Content-Length: 825 [00:03:29]Content-Type: application/json [00:03:29] [00:03:29]POST finish read [00:03:29]Found Content-Length = 825 [00:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 28.110, "sum" : 1880.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E\u043F\u0442\u0438\u043C\u0430 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1880.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:29]execute_script... [00:03: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)160627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 28.110, "sum" : 1880.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E\u043F\u0442\u0438\u043C\u0430 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1880.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:29]POST & json_proto [00:03:29]process_json_proto [00:03:29]json parsed OK: [00:03:29]protocol is kg_v1.0 [00:03:29]action value=close_receipt [00:03:29]process_action close_receipt [00:03:29]cmd_close_receipt [00:03:29]MH_GetDate [00:03:29]Write to MH i2c: F0 00 00 01 04 F4 [00:03:29]Write i2c OK [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: F0 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: F0 09 00 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: F0 09 00 01 04 00 D1 D4 1E 67 D5 8D 6C 64 59 [00:03:29]GetLastDocTimeStamp 1730072589 [00:03:29]current date 1730073809 [00:03:29]FM_GetShiftState [00:03:29]SAM_PROTO_GetShiftState [00:03:29]wFMCommunicate request_size=4 [00:03:29]MH_SAM_APDU [00:03:29]CAPDU: 80 13 01 00 [00:03:29]Write to MH i2c: E2 08 00 02 04 80 13 01 00 00 00 00 00 83 [00:03:29]Write i2c OK [00:03:29]MH_I2C_Read... [00:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:29]Read from MH i2c: E2 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 0E 00 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 0E 00 02 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 FB [00:03:29]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:03:29]wFMCommunicate OK [00:03:29]SAM_PROTO_GetShiftState done [00:03:29]FM_GetShiftState done [00:03:29]opened in 1729988959 [00:03:29]opened+sec_in_day 1730075359 [00:03:29]quantity*price = 188055 [00:03:29]sum+1 = 188057 [00:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1880.56 НСП 1% : 16.64 НДС 12% : 199.70 Наличными: 0.00 Безнал.: 1880.56 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 293 28.10.2024 00:03 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Оптима банк ФМ: 0000000000871745 ФД: 145870 ФПД: 204164491922029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000330&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145870&fm=204164491922029&tin=02508201610067®Number=0000000000091683&sum=188056 [00:03:30]StoreToDocumentArchive [00:03:30]shift 545 fd 145870 [00:03:30]save to /storage/0545/doc_00145870 [00:03:30]save last doc name /storage/0545/doc_00145870 to /storage/kkm_last_doc_name [00:03:30]save OK [00:03:30]Clear old archive folders... [00:03:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:03:30]tlvbuf is 006BC1C0 [00:03:30]SAM_PROTO_ClearQueue [00:03:30]wFMCommunicate request_size=4 [00:03:30]MH_SAM_APDU [00:03:30]CAPDU: 80 09 00 00 [00:03:30]Write to MH i2c: E2 08 00 0F 04 80 09 00 00 00 00 00 00 85 [00:03:30]Write i2c OK [00:03:30]MH_I2C_Read... [00:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:30]Read from MH i2c: E2 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 03 00 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 03 00 0F 04 00 90 00 87 [00:03:30]RAPDU: 90 00 [00:03:30]wFMCommunicate OK [00:03:30]SAM_PROTO_ClearQueue done [00:03:30]KKMCreateOFDPacket [00:03:30]OFDProtocolAddRootSTLVToBuf [00:03:30]FM_MakeSignedData [00:03:30]FM_MakeSignedData [00:03:30]SAM_PROTO_SignData [00:03:30]wFMCommunicate request_size=4 [00:03:30]MH_SAM_APDU [00:03:30]CAPDU: 80 0D 01 02 [00:03:30]Write to MH i2c: E2 08 00 10 04 80 0D 01 02 00 00 00 00 8D [00:03:30]Write i2c OK [00:03:30]MH_I2C_Read... [00:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:30]Read from MH i2c: E2 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 03 00 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 03 00 10 04 00 90 00 88 [00:03:30]RAPDU: 90 00 [00:03:30]wFMCommunicate OK [00:03:30]wFMCommunicate request_size=255 [00:03:30]MH_SAM_APDU [00:03: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 32 FF 03 08 00 03 CE 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 98 DE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 DE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D2 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CE 39 02 00 35 04 06 00 B9 [00:03:30]Write to MH i2c: E2 02 01 11 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CE 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 98 DE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 DE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D2 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CE 39 02 00 35 04 06 00 B9 00 00 81 [00:03:30]Write i2c OK [00:03:30]MH_I2C_Read... [00:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:30]Read from MH i2c: E2 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 03 00 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 03 00 11 04 00 90 00 89 [00:03:30]RAPDU: 90 00 [00:03:30]wFMCommunicate OK [00:03:30]wFMCommunicate request_size=10 [00:03:30]MH_SAM_APDU [00:03:30]CAPDU: 80 0D 02 02 05 AF C0 04 4A 6D [00:03:30]Write to MH i2c: E2 0D 00 12 04 80 0D 02 02 05 00 AF C0 04 4A 6D 00 00 C4 [00:03:30]Write i2c OK [00:03:30]MH_I2C_Read... [00:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:30]Read from MH i2c: E2 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 03 00 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 03 00 12 04 00 90 00 8A [00:03:30]RAPDU: 90 00 [00:03:30]wFMCommunicate OK [00:03:30]wFMCommunicate request_size=4 [00:03:30]MH_SAM_APDU [00:03:30]CAPDU: 80 0D 03 02 [00:03:30]Write to MH i2c: E2 08 00 13 04 80 0D 03 02 00 00 00 00 92 [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:31]Read from MH i2c: E2 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 0B 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 0B 00 13 04 00 7E 8B 35 17 08 75 98 73 90 00 70 [00:03:31]RAPDU: 7E 8B 35 17 08 75 98 73 90 00 [00:03:31]wFMCommunicate OK [00:03:31]SAM_PROTO_SignData done [00:03:31]FM_MakeSignedData done [00:03:31]CreateOFDProtocolMessage [00:03:31]wFMCommunicate request_size=4 [00:03:31]MH_SAM_APDU [00:03:31]CAPDU: 80 11 00 00 [00:03:31]Write to MH i2c: E2 08 00 14 04 80 11 00 00 00 00 00 00 92 [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:31]Read from MH i2c: E2 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 17 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 17 00 14 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E5 [00:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:03:31]wFMCommunicate OK [00:03:31]CreateOFDProtocolMessage done [00:03:31]OFDSenderStorePacket 145870 [00:03:31]StoreOFDPacket docnum=145870 [00:03:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1B 75 07 01 54 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 32 FF 03 08 00 03 CE 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 98 DE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 DE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D2 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CE 39 02 00 35 04 06 00 B9 AF C0 04 4A 6D 7E 8B 35 17 08 75 98 73 [00:03:31]CheckFolder [00:03:31]dirname=/storage/ofd_packets [00:03:31]CheckFolder done [00:03:31]ProducePacketName [00:03:31]name=ofd_packets/00145870 [00:03:31]NVStorageSaveData ofd_packets/00145870 [00:03:31]File name is /storage/ofd_packets/00145870 [00:03:31]Write 301 bytes [00:03:31]NVStorageSaveData done [00:03:31]OFDSenderStorePacket done [00:03:31]KKMCreateOFDPacket done [00:03:31]NVStorageSaveData kkm_last_timestamp [00:03:31]File name is /storage/kkm_last_timestamp [00:03:31]Write 4 bytes [00:03:31]NVStorageSaveData done [00:03:31]ExternCall_PrintAddStr [00:03:31]wPrintStart [00:03:31]Write to MH i2c: 01 00 00 15 04 19 [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: 01 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: 01 07 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: 01 07 00 15 04 00 00 00 00 00 FF 0F 2E [00:03:31]RasterBufferAndPrint [00:03:31]line Счет N : (1)160627 [00:03:31]line ИНН: 02508201610067 [00:03:31]line Контрольно-Кассовый Чек [00:03:31]line ПРОДАЖА [00:03:31]line ТРК (МРК, ГНК) : 42 [00:03:31]line Товар: 2710124130 [00:03:31]line Аи-92-К-2 [00:03:31]line 28.110 * 66.90 [00:03:31]line = 1880.56 [00:03:31]line НДС 12% НСП 1% [00:03:31]line > о реализуемом товаре [00:03:31]line ИТОГО: 1880.56 [00:03:31]line НСП 1% : 16.64 [00:03:31]line НДС 12% : 199.70 [00:03:31]line Наличными: 0.00 [00:03:31]line Безнал.: 1880.56 [00:03:31]line Место: АЗС № 126 "Партнер Нефть" [00:03:31]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [00:03:31]line СНО: Общий режим [00:03:31]line Чек 293 28.10.2024 00:03 [00:03:31]line Смена: 545 ФФД: 1.0 [00:03:31]line ЗНМ: 0300000085 [00:03:31]line РНМ: 0000000000091683 [00:03:31]line Версия ККМ: 001 [00:03:31]line Платежная система: Оптима банк [00:03:31]line ФМ: 0000000000871745 [00:03:31]line ФД: 145870 [00:03:31]line ФПД: 204164491922029 [00:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000330&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145870&fm=204164491922029&tin=02508201610067®Number=0000000000091683&sum=188056 [00:03:31]written 0, free lines is 4095 [00:03:31]OFD Sender: Processing packet 145870 [packets to send 206, broken 205] [00:03:31]ProducePacketName [00:03:31]name=ofd_packets/00145870 [00:03:31]OFD Sender: To server: pG, [00:03:31]CommunicateWithHost lk.salyk.kg:30040 [00:03:31]ConnectInit lk.salyk.kg [00:03:31]Connected sock=9 [00:03:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1B 75 07 01 54 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 32 FF 03 08 00 03 CE 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 98 DE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 DE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D2 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CE 39 02 00 35 04 06 00 B9 AF C0 04 4A 6D 7E 8B 35 17 08 75 98 73 [00:03:31]Write to MH i2c: 01 00 00 3F 04 43 [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: 01 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: 01 07 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 C5 0C 1B [00:03:31]RasterBufferAndPrint [00:03:31]line [00:03:31]line [00:03:31]line [00:03:31]line [00:03:31]line [00:03:31]written 0, free lines is 3275 [00:03:31]MH_Cut [00:03:31]Write to MH i2c: D1 01 00 46 04 01 1C [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: D1 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: D1 01 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: D1 01 00 46 04 00 1B [00:03:31]Write to MH i2c: 01 00 00 47 04 4B [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 83 90 47 00 8E 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CE 39 02 00 F4 03 04 00 FE 79 1E 67 B6 04 01 00 00 49 1D 60 86 28 AA A7 94 [00:03:31]CommunicateWithHost err = 0 [00:03:31]CheckOFDResponse [00:03:31]1017 (14) - 77093643461234 [00:03:31]1041 (16) - 0000000000871745 [00:03:31]1040 (4) - 145870 [00:03:31]1012 (4) - 27.10.2024 17:35 [00:03:31]1206 (1) - 0 [00:03:31]OFD Sender: Remove packet 145870 [00:03:31]ProducePacketName [00:03:31]name=ofd_packets/00145870 [00:03:31]NVStorageDeleteData [00:03:32]OFD Sender: No OFD packet to send [00:03:32]*** Cut start [00:03:32]*** Partial cut [00:03:32]*** CUTSNS_PIN = 1 [00:03:32]*** CUTSNS_PIN = 0 [00:03:32]*** Brake cut motor [00:03:33]Read from MH i2c: 01 [00:03:33]MH_I2C_Read... [00:03:33]*** Stop cut motor [00:03:33]*** Cut end [00:03:33]Read from MH i2c: 01 07 00 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: 01 07 00 47 04 00 00 00 00 00 FF 0F 60 [00:03:33]process_action close_receipt done [00:03:33]requested_data is exist [00:03:33]produce_requested_data [00:03:33]requested_item fm.sn is exist - process it [00:03:33]wFMCommunicate request_size=4 [00:03:33]MH_SAM_APDU [00:03:33]CAPDU: 80 11 00 00 [00:03:33]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [00:03:33]Write i2c OK [00:03:33]MH_I2C_Read... [00:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:33]Read from MH i2c: E2 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 17 00 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 19 [00:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:03:33]wFMCommunicate OK [00:03:33]requested_item fd.num is exist - process it [00:03:33]SAM_PROTO_GetFieldsCounters [00:03:33]wFMCommunicate request_size=4 [00:03:33]MH_SAM_APDU [00:03:33]CAPDU: 80 13 00 00 [00:03:33]Write to MH i2c: E2 08 00 49 04 80 13 00 00 00 00 00 00 C9 [00:03:33]Write i2c OK [00:03:33]MH_I2C_Read... [00:03:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:33]Read from MH i2c: E2 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 62 00 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 62 00 49 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CE 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [00:03:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CE 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:33]wFMCommunicate OK [00:03:33]SAM_PROTO_GetFieldsCounters done [00:03:33]requested_item shift.num is exist - process it [00:03:33]requested_item shift.opened is exist - process it [00:03:33]req_shift_opened [00:03:33]FM_GetShiftState [00:03:33]SAM_PROTO_GetShiftState [00:03:33]wFMCommunicate request_size=4 [00:03:33]MH_SAM_APDU [00:03:33]CAPDU: 80 13 01 00 [00:03:33]Write to MH i2c: E2 08 00 4A 04 80 13 01 00 00 00 00 00 CB [00:03:33]Write i2c OK [00:03:33]MH_I2C_Read... [00:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:33]Read from MH i2c: E2 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 0E 00 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 0E 00 4A 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 43 [00:03:33]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:03:33]wFMCommunicate OK [00:03:33]SAM_PROTO_GetShiftState done [00:03:33]FM_GetShiftState done [00:03:33]req_shift_opened done [00:03:33]requested_item shift.open_date is exist - process it [00:03:33]req_shift_open_date [00:03:33]req_shift_open_date done [00:03:33]produce_requested_data done [00:03:33]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145870,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [00:03:33]process_action_free close_receipt [00:03:33]json_value_free [00:03:33]json_value_free done [00:03:33]process_json_proto returns [00:03:33]Send response to host [00:03:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145870,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [00:03:33]free response buf [00:03:33]execute_script done [00:03:33]execute_script returns [00:03:33]free content buf [00:03:33]Sock 7.Close socket [00:03:33]Sock 7.Thread stoped [00:03:34]accept exits with 10 [00:03:34]New connection [00:03:34]New thread 3067506020 created [00:03:34]Thread 3067362660 joined [00:03:34]Waiting for new connection... [00:03:34] Sock 10.Parse request [00:03:34]Sock 10.Check first char [00:03:34]Sock 10.First char is OK [00:03:34]request: POST /json_proto HTTP/1.0 [00:03:34]Method: POST [00:03:34]URL: /json_proto [00:03:34]Method is POST - this is cgi request [00:03:34]url: /json_proto [00:03:34]query_string will be loaded in cgi processing [00:03:34]execute_cgi json_proto POST (null) [00:03:34]execute_cgi path=json_proto method=POST [00:03:34]POST find Content-Length [00:03:34]Host: 172.17.40.195:8080 [00:03:34]Content-Length: 816 [00:03:34]Content-Type: application/json [00:03:34] [00:03:34]POST finish read [00:03:34]Found Content-Length = 816 [00:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:34]execute_script... [00:03: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)160628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:34]POST & json_proto [00:03:34]process_json_proto [00:03:34]json parsed OK: [00:03:34]protocol is kg_v1.0 [00:03:34]action value=close_receipt [00:03:34]process_action close_receipt [00:03:34]cmd_close_receipt [00:03:34]MH_GetDate [00:03:34]Write to MH i2c: F0 00 00 4B 04 3E [00:03:34]Write i2c OK [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: F0 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: F0 09 00 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: F0 09 00 4B 04 00 D6 D4 1E 67 D5 8D 6C 64 A8 [00:03:34]GetLastDocTimeStamp 1730073810 [00:03:34]current date 1730073814 [00:03:34]FM_GetShiftState [00:03:34]SAM_PROTO_GetShiftState [00:03:34]wFMCommunicate request_size=4 [00:03:34]MH_SAM_APDU [00:03:34]CAPDU: 80 13 01 00 [00:03:34]Write to MH i2c: E2 08 00 4C 04 80 13 01 00 00 00 00 00 CD [00:03:34]Write i2c OK [00:03:34]MH_I2C_Read... [00:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:34]Read from MH i2c: E2 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: E2 0E 00 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: E2 0E 00 4C 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 45 [00:03:34]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:03:34]wFMCommunicate OK [00:03:34]SAM_PROTO_GetShiftState done [00:03:34]FM_GetShiftState done [00:03:34]opened in 1729988959 [00:03:34]opened+sec_in_day 1730075359 [00:03:34]quantity*price = 50041 [00:03:34]sum+1 = 50042 [00:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 294 28.10.2024 00:03 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871745 ФД: 145871 ФПД: 61051559443353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000334&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145871&fm=61051559443353&tin=02508201610067®Number=0000000000091683&sum=50041 [00:03:35]StoreToDocumentArchive [00:03:35]shift 545 fd 145871 [00:03:35]save to /storage/0545/doc_00145871 [00:03:35]save last doc name /storage/0545/doc_00145871 to /storage/kkm_last_doc_name [00:03:35]save OK [00:03:35]Clear old archive folders... [00:03:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:03:35]tlvbuf is 00694270 [00:03:35]SAM_PROTO_ClearQueue [00:03:35]wFMCommunicate request_size=4 [00:03:35]MH_SAM_APDU [00:03:35]CAPDU: 80 09 00 00 [00:03:35]Write to MH i2c: E2 08 00 59 04 80 09 00 00 00 00 00 00 CF [00:03:35]Write i2c OK [00:03:35]MH_I2C_Read... [00:03:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:35]Read from MH i2c: E2 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 03 00 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 03 00 59 04 00 90 00 D1 [00:03:35]RAPDU: 90 00 [00:03:35]wFMCommunicate OK [00:03:35]SAM_PROTO_ClearQueue done [00:03:35]KKMCreateOFDPacket [00:03:35]OFDProtocolAddRootSTLVToBuf [00:03:35]FM_MakeSignedData [00:03:35]FM_MakeSignedData [00:03:35]SAM_PROTO_SignData [00:03:35]wFMCommunicate request_size=4 [00:03:35]MH_SAM_APDU [00:03:35]CAPDU: 80 0D 01 02 [00:03:35]Write to MH i2c: E2 08 00 5A 04 80 0D 01 02 00 00 00 00 D7 [00:03:35]Write i2c OK [00:03:35]MH_I2C_Read... [00:03:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:35]Read from MH i2c: E2 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 03 00 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 03 00 5A 04 00 90 00 D2 [00:03:35]RAPDU: 90 00 [00:03:35]wFMCommunicate OK [00:03:35]wFMCommunicate request_size=255 [00:03:35]MH_SAM_APDU [00:03: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 D6 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CF 39 02 00 35 04 06 00 37 [00:03:35]Write to MH i2c: E2 02 01 5B 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 D6 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CF 39 02 00 35 04 06 00 37 00 00 71 [00:03:35]Write i2c OK [00:03:35]MH_I2C_Read... [00:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:35]Read from MH i2c: E2 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 03 00 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 03 00 5B 04 00 90 00 D3 [00:03:35]RAPDU: 90 00 [00:03:35]wFMCommunicate OK [00:03:35]wFMCommunicate request_size=10 [00:03:35]MH_SAM_APDU [00:03:35]CAPDU: 80 0D 02 02 05 86 AC 83 7B 99 [00:03:35]Write to MH i2c: E2 0D 00 5C 04 80 0D 02 02 05 00 86 AC 83 7B 99 00 00 AD [00:03:35]Write i2c OK [00:03:35]MH_I2C_Read... [00:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:35]Read from MH i2c: E2 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 03 00 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 03 00 5C 04 00 90 00 D4 [00:03:35]RAPDU: 90 00 [00:03:35]wFMCommunicate OK [00:03:35]wFMCommunicate request_size=4 [00:03:35]MH_SAM_APDU [00:03:35]CAPDU: 80 0D 03 02 [00:03:35]Write to MH i2c: E2 08 00 5D 04 80 0D 03 02 00 00 00 00 DC [00:03:35]Write i2c OK [00:03:35]MH_I2C_Read... [00:03:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:36]Read from MH i2c: E2 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 0B 00 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 0B 00 5D 04 00 FF D3 75 72 CC 82 BE 4D 90 00 EF [00:03:36]RAPDU: FF D3 75 72 CC 82 BE 4D 90 00 [00:03:36]wFMCommunicate OK [00:03:36]SAM_PROTO_SignData done [00:03:36]FM_MakeSignedData done [00:03:36]CreateOFDProtocolMessage [00:03:36]wFMCommunicate request_size=4 [00:03:36]MH_SAM_APDU [00:03:36]CAPDU: 80 11 00 00 [00:03:36]Write to MH i2c: E2 08 00 5E 04 80 11 00 00 00 00 00 00 DC [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:36]Read from MH i2c: E2 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 17 00 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 17 00 5E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2F [00:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:03:36]wFMCommunicate OK [00:03:36]CreateOFDProtocolMessage done [00:03:36]OFDSenderStorePacket 145871 [00:03:36]StoreOFDPacket docnum=145871 [00:03:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 8D 67 07 01 56 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 D6 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CF 39 02 00 35 04 06 00 37 86 AC 83 7B 99 FF D3 75 72 CC 82 BE 4D [00:03:36]CheckFolder [00:03:36]dirname=/storage/ofd_packets [00:03:36]CheckFolder done [00:03:36]ProducePacketName [00:03:36]name=ofd_packets/00145871 [00:03:36]NVStorageSaveData ofd_packets/00145871 [00:03:36]File name is /storage/ofd_packets/00145871 [00:03:36]Write 301 bytes [00:03:36]NVStorageSaveData done [00:03:36]OFDSenderStorePacket done [00:03:36]KKMCreateOFDPacket done [00:03:36]NVStorageSaveData kkm_last_timestamp [00:03:36]File name is /storage/kkm_last_timestamp [00:03:36]Write 4 bytes [00:03:36]NVStorageSaveData done [00:03:36]ExternCall_PrintAddStr [00:03:36]wPrintStart [00:03:36]Write to MH i2c: 01 00 00 5F 04 63 [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: 01 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: 01 07 00 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: 01 07 00 5F 04 00 00 00 00 00 FF 0F 78 [00:03:36]RasterBufferAndPrint [00:03:36]line Счет N : (1)160628 [00:03:36]line ИНН: 02508201610067 [00:03:36]line Контрольно-Кассовый Чек [00:03:36]line ПРОДАЖА [00:03:36]line ТРК (МРК, ГНК) : 62 [00:03:36]line Товар: 2710124130 [00:03:36]line Аи-92-К-2 [00:03:36]line 7.480 * 66.90 [00:03:36]line = 500.41 [00:03:36]line НДС 12% НСП 1% [00:03:36]line > о реализуемом товаре [00:03:36]line ИТОГО: 500.41 [00:03:36]line НСП 1% : 4.43 [00:03:36]line НДС 12% : 53.14 [00:03:36]line Наличными: 0.00 [00:03:36]line Безнал.: 500.41 [00:03:36]line Место: АЗС № 126 "Партнер Нефть" [00:03:36]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [00:03:36]line СНО: Общий режим [00:03:36]line Чек 294 28.10.2024 00:03 [00:03:36]line Смена: 545 ФФД: 1.0 [00:03:36]line ЗНМ: 0300000085 [00:03:36]line РНМ: 0000000000091683 [00:03:36]line Версия ККМ: 001 [00:03:36]line Платежная система: Бакай Банк [00:03:36]line ФМ: 0000000000871745 [00:03:36]line ФД: 145871 [00:03:36]line ФПД: 61051559443353 [00:03:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000334&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145871&fm=61051559443353&tin=02508201610067®Number=0000000000091683&sum=50041 [00:03:36]OFD Sender: Processing packet 145871 [packets to send 206, broken 205] [00:03:36]ProducePacketName [00:03:36]name=ofd_packets/00145871 [00:03:36]OFD Sender: To server: pG, [00:03:36]CommunicateWithHost lk.salyk.kg:30040 [00:03:36]ConnectInit lk.salyk.kg [00:03:36]written 0, free lines is 4095 [00:03:36]Connected sock=9 [00:03:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 8D 67 07 01 56 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 D6 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 CF 39 02 00 35 04 06 00 37 86 AC 83 7B 99 FF D3 75 72 CC 82 BE 4D [00:03:36]Write to MH i2c: 01 00 00 89 04 8D [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: 01 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: 01 07 00 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: 01 07 00 89 04 00 00 00 00 00 AC 0C 4C [00:03:36]RasterBufferAndPrint [00:03:36]line [00:03:36]line [00:03:36]line [00:03:36]line [00:03:36]line [00:03:36]written 0, free lines is 3255 [00:03:36]MH_Cut [00:03:36]Write to MH i2c: D1 01 00 90 04 01 66 [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: D1 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: D1 01 00 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: D1 01 00 90 04 00 65 [00:03:36]Write to MH i2c: 01 00 00 91 04 95 [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 6C 08 47 00 5C 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 31 37 34 35 10 04 04 00 CF 39 02 00 F4 03 04 00 03 7A 1E 67 B6 04 01 00 00 A4 2E 45 78 BE AB 42 52 [00:03:37]CommunicateWithHost err = 0 [00:03:37]CheckOFDResponse [00:03:37]1017 (14) - 77093643461234 [00:03:37]1041 (16) - 0000000000871745 [00:03:37]1040 (4) - 145871 [00:03:37]1012 (4) - 27.10.2024 17:36 [00:03:37]1206 (1) - 0 [00:03:37]OFD Sender: Remove packet 145871 [00:03:37]ProducePacketName [00:03:37]name=ofd_packets/00145871 [00:03:37]NVStorageDeleteData [00:03:37]OFD Sender: No OFD packet to send [00:03:37]*** Cut start [00:03:37]*** Partial cut [00:03:37]*** CUTSNS_PIN = 1 [00:03:37]*** CUTSNS_PIN = 0 [00:03:37]*** Brake cut motor [00:03:38]Read from MH i2c: 01 [00:03:38]MH_I2C_Read... [00:03:38]*** Stop cut motor [00:03:38]*** Cut end [00:03:38]Read from MH i2c: 01 07 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: 01 07 00 91 04 00 00 00 00 00 FF 0F AA [00:03:38]process_action close_receipt done [00:03:38]requested_data is exist [00:03:38]produce_requested_data [00:03:38]requested_item fm.sn is exist - process it [00:03:38]wFMCommunicate request_size=4 [00:03:38]MH_SAM_APDU [00:03:38]CAPDU: 80 11 00 00 [00:03:38]Write to MH i2c: E2 08 00 92 04 80 11 00 00 00 00 00 00 10 [00:03:38]Write i2c OK [00:03:38]MH_I2C_Read... [00:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:38]Read from MH i2c: E2 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 17 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 17 00 92 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 63 [00:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:03:38]wFMCommunicate OK [00:03:38]requested_item fd.num is exist - process it [00:03:38]SAM_PROTO_GetFieldsCounters [00:03:38]wFMCommunicate request_size=4 [00:03:38]MH_SAM_APDU [00:03:38]CAPDU: 80 13 00 00 [00:03:38]Write to MH i2c: E2 08 00 93 04 80 13 00 00 00 00 00 00 13 [00:03:38]Write i2c OK [00:03:38]MH_I2C_Read... [00:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:38]Read from MH i2c: E2 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 62 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 62 00 93 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CF 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [00:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 CF 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:38]wFMCommunicate OK [00:03:38]SAM_PROTO_GetFieldsCounters done [00:03:38]requested_item shift.num is exist - process it [00:03:38]requested_item shift.opened is exist - process it [00:03:38]req_shift_opened [00:03:38]FM_GetShiftState [00:03:38]SAM_PROTO_GetShiftState [00:03:38]wFMCommunicate request_size=4 [00:03:38]MH_SAM_APDU [00:03:38]CAPDU: 80 13 01 00 [00:03:38]Write to MH i2c: E2 08 00 94 04 80 13 01 00 00 00 00 00 15 [00:03:38]Write i2c OK [00:03:38]MH_I2C_Read... [00:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:38]Read from MH i2c: E2 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 0E 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 0E 00 94 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8D [00:03:38]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:03:38]wFMCommunicate OK [00:03:38]SAM_PROTO_GetShiftState done [00:03:38]FM_GetShiftState done [00:03:38]req_shift_opened done [00:03:38]requested_item shift.open_date is exist - process it [00:03:38]req_shift_open_date [00:03:38]req_shift_open_date done [00:03:38]produce_requested_data done [00:03:38]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145871,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [00:03:38]process_action_free close_receipt [00:03:38]json_value_free [00:03:38]json_value_free done [00:03:38]process_json_proto returns [00:03:38]Send response to host [00:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145871,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [00:03:38]free response buf [00:03:38]execute_script done [00:03:38]execute_script returns [00:03:38]free content buf [00:03:38]Sock 10.Close socket [00:03:38]Sock 10.Thread stoped [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:05]accept exits with 7 [00:09:05]New connection [00:09:05]New thread 3067362660 created [00:09:05]Thread 3067506020 joined [00:09:05]Waiting for new connection... [00:09:05] Sock 7.Parse request [00:09:05]Sock 7.Check first char [00:09:05]Sock 7.First char is OK [00:09:05]request: POST /json_proto HTTP/1.0 [00:09:05]Method: POST [00:09:05]URL: /json_proto [00:09:05]Method is POST - this is cgi request [00:09:05]url: /json_proto [00:09:05]query_string will be loaded in cgi processing [00:09:05]execute_cgi json_proto POST (null) [00:09:05]execute_cgi path=json_proto method=POST [00:09:05]POST find Content-Length [00:09:05]Host: 172.17.40.195:8080 [00:09:05]Content-Length: 766 [00:09:05]Content-Type: application/json [00:09:05] [00:09:05]POST finish read [00:09:05]Found Content-Length = 766 [00:09:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:05]execute_script... [00:09: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)160629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:05]POST & json_proto [00:09:05]process_json_proto [00:09:05]json parsed OK: [00:09:05]protocol is kg_v1.0 [00:09:05]action value=close_receipt [00:09:05]process_action close_receipt [00:09:05]cmd_close_receipt [00:09:05]MH_GetDate [00:09:05]Write to MH i2c: F0 00 00 95 04 88 [00:09:05]Write i2c OK [00:09:05]MH_I2C_Read... [00:09:05]Read from MH i2c: F0 [00:09:05]MH_I2C_Read... [00:09:05]Read from MH i2c: F0 09 00 [00:09:05]MH_I2C_Read... [00:09:05]Read from MH i2c: F0 09 00 95 04 00 21 D6 1E 67 D5 8D 6C 64 3F [00:09:05]GetLastDocTimeStamp 1730073814 [00:09:05]current date 1730074145 [00:09:05]FM_GetShiftState [00:09:05]SAM_PROTO_GetShiftState [00:09:05]wFMCommunicate request_size=4 [00:09:05]MH_SAM_APDU [00:09:05]CAPDU: 80 13 01 00 [00:09:05]Write to MH i2c: E2 08 00 96 04 80 13 01 00 00 00 00 00 17 [00:09:05]Write i2c OK [00:09:05]MH_I2C_Read... [00:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:05]Read from MH i2c: E2 [00:09:05]MH_I2C_Read... [00:09:05]Read from MH i2c: E2 0E 00 [00:09:05]MH_I2C_Read... [00:09:05]Read from MH i2c: E2 0E 00 96 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 8F [00:09:05]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:09:05]wFMCommunicate OK [00:09:05]SAM_PROTO_GetShiftState done [00:09:05]FM_GetShiftState done [00:09:05]opened in 1729988959 [00:09:05]opened+sec_in_day 1730075359 [00:09:05]quantity*price = 150037 [00:09:05]sum+1 = 150039 [00:09:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 295 28.10.2024 00:09 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145872 ФПД: 42357799778756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000905&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145872&fm=42357799778756&tin=02508201610067®Number=0000000000091683&sum=150038 [00:09:06]StoreToDocumentArchive [00:09:06]shift 545 fd 145872 [00:09:06]save to /storage/0545/doc_00145872 [00:09:06]save last doc name /storage/0545/doc_00145872 to /storage/kkm_last_doc_name [00:09:06]save OK [00:09:06]Clear old archive folders... [00:09:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:09:06]tlvbuf is 006B6070 [00:09:06]SAM_PROTO_ClearQueue [00:09:06]wFMCommunicate request_size=4 [00:09:06]MH_SAM_APDU [00:09:06]CAPDU: 80 09 00 00 [00:09:06]Write to MH i2c: E2 08 00 A3 04 80 09 00 00 00 00 00 00 19 [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:06]Read from MH i2c: E2 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 A3 04 00 90 00 1B [00:09:06]RAPDU: 90 00 [00:09:06]wFMCommunicate OK [00:09:06]SAM_PROTO_ClearQueue done [00:09:06]KKMCreateOFDPacket [00:09:06]OFDProtocolAddRootSTLVToBuf [00:09:06]FM_MakeSignedData [00:09:06]FM_MakeSignedData [00:09:06]SAM_PROTO_SignData [00:09:06]wFMCommunicate request_size=4 [00:09:06]MH_SAM_APDU [00:09:06]CAPDU: 80 0D 01 02 [00:09:06]Write to MH i2c: E2 08 00 A4 04 80 0D 01 02 00 00 00 00 21 [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:06]Read from MH i2c: E2 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 A4 04 00 90 00 1C [00:09:06]RAPDU: 90 00 [00:09:06]wFMCommunicate OK [00:09:06]wFMCommunicate request_size=255 [00:09:06]MH_SAM_APDU [00:09: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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 21 D6 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D0 39 02 00 35 04 06 00 26 86 31 9B [00:09:06]Write to MH i2c: E2 02 01 A5 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 21 D6 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D0 39 02 00 35 04 06 00 26 86 31 9B 00 00 B4 [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:06]Read from MH i2c: E2 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 A5 04 00 90 00 1D [00:09:06]RAPDU: 90 00 [00:09:06]wFMCommunicate OK [00:09:06]wFMCommunicate request_size=7 [00:09:06]MH_SAM_APDU [00:09:06]CAPDU: 80 0D 02 02 02 F9 C4 [00:09:06]Write to MH i2c: E2 0A 00 A6 04 80 0D 02 02 02 00 F9 C4 00 00 E5 [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:06]Read from MH i2c: E2 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 03 00 A6 04 00 90 00 1E [00:09:06]RAPDU: 90 00 [00:09:06]wFMCommunicate OK [00:09:06]wFMCommunicate request_size=4 [00:09:06]MH_SAM_APDU [00:09:06]CAPDU: 80 0D 03 02 [00:09:06]Write to MH i2c: E2 08 00 A7 04 80 0D 03 02 00 00 00 00 26 [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:06]Read from MH i2c: E2 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 0B 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 0B 00 A7 04 00 E9 61 9D BA 40 ED C9 DA 90 00 98 [00:09:06]RAPDU: E9 61 9D BA 40 ED C9 DA 90 00 [00:09:06]wFMCommunicate OK [00:09:06]SAM_PROTO_SignData done [00:09:06]FM_MakeSignedData done [00:09:06]CreateOFDProtocolMessage [00:09:06]wFMCommunicate request_size=4 [00:09:06]MH_SAM_APDU [00:09:06]CAPDU: 80 11 00 00 [00:09:06]Write to MH i2c: E2 08 00 A8 04 80 11 00 00 00 00 00 00 26 [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:06]Read from MH i2c: E2 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 17 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 17 00 A8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 79 [00:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:09:06]wFMCommunicate OK [00:09:06]CreateOFDProtocolMessage done [00:09:06]OFDSenderStorePacket 145872 [00:09:06]StoreOFDPacket docnum=145872 [00:09:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 67 22 04 01 B4 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 21 D6 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D0 39 02 00 35 04 06 00 26 86 31 9B F9 C4 E9 61 9D BA 40 ED C9 DA [00:09:06]CheckFolder [00:09:06]dirname=/storage/ofd_packets [00:09:06]CheckFolder done [00:09:06]ProducePacketName [00:09:06]name=ofd_packets/00145872 [00:09:06]NVStorageSaveData ofd_packets/00145872 [00:09:06]File name is /storage/ofd_packets/00145872 [00:09:06]Write 298 bytes [00:09:06]NVStorageSaveData done [00:09:06]OFDSenderStorePacket done [00:09:06]KKMCreateOFDPacket done [00:09:06]NVStorageSaveData kkm_last_timestamp [00:09:06]File name is /storage/kkm_last_timestamp [00:09:06]Write 4 bytes [00:09:06]NVStorageSaveData done [00:09:06]ExternCall_PrintAddStr [00:09:06]wPrintStart [00:09:06]Write to MH i2c: 01 00 00 A9 04 AD [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: 01 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: 01 07 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: 01 07 00 A9 04 00 00 00 00 00 FF 0F C2 [00:09:06]RasterBufferAndPrint [00:09:06]line Счет N : (1)160629 [00:09:06]line ИНН: 02508201610067 [00:09:06]line Контрольно-Кассовый Чек [00:09:06]line ПРОДАЖА [00:09:06]line ТРК (МРК, ГНК) : 21 [00:09:06]line Товар: 2710194210 [00:09:06]line ДТ-К-2 [00:09:06]line 19.690 * 76.20 [00:09:06]line = 1500.38 [00:09:06]line НДС 12% НСП 1% [00:09:06]line > о реализуемом товаре [00:09:06]line ИТОГО: 1500.38 [00:09:06]line НСП 1% : 13.28 [00:09:06]line НДС 12% : 159.33 [00:09:06]line Наличными: 0.00 [00:09:06]line Безнал.: 1500.38 [00:09:06]line Место: АЗС № 126 "Партнер Нефть" [00:09:06]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [00:09:06]line СНО: Общий режим [00:09:06]line Чек 295 28.10.2024 00:09 [00:09:06]line Смена: 545 ФФД: 1.0 [00:09:06]line ЗНМ: 0300000085 [00:09:06]line РНМ: 0000000000091683 [00:09:06]line Версия ККМ: 001 [00:09:06]line Платежная система: Mbank [00:09:06]line ФМ: 0000000000871745 [00:09:06]line ФД: 145872 [00:09:06]line ФПД: 42357799778756 [00:09:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000905&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145872&fm=42357799778756&tin=02508201610067®Number=0000000000091683&sum=150038 [00:09:07]OFD Sender: Processing packet 145872 [packets to send 206, broken 205] [00:09:07]ProducePacketName [00:09:07]name=ofd_packets/00145872 [00:09:07]OFD Sender: To server: pG, [00:09:07]CommunicateWithHost lk.salyk.kg:30040 [00:09:07]ConnectInit lk.salyk.kg [00:09:07]written 0, free lines is 4095 [00:09:07]Connected sock=10 [00:09:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 67 22 04 01 B4 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 21 D6 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D0 39 02 00 35 04 06 00 26 86 31 9B F9 C4 E9 61 9D BA 40 ED C9 DA [00:09:07]Write to MH i2c: 01 00 00 D2 04 D6 [00:09:07]Write i2c OK [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: 01 [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: 01 07 00 [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 C8 0C B1 [00:09:07]RasterBufferAndPrint [00:09:07]line [00:09:07]line [00:09:07]line [00:09:07]line [00:09:07]line [00:09:07]written 0, free lines is 3278 [00:09:07]MH_Cut [00:09:07]Write to MH i2c: D1 01 00 D9 04 01 AF [00:09:07]Write i2c OK [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: D1 [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: D1 01 00 [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: D1 01 00 D9 04 00 AE [00:09:07]Write to MH i2c: 01 00 00 DA 04 DE [00:09:07]Write i2c OK [00:09:07]MH_I2C_Read... [00:09:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 6C 1C 47 00 52 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D0 39 02 00 F4 03 04 00 4D 7B 1E 67 B6 04 01 00 00 8B B3 A7 E1 5E D7 01 B5 [00:09:07]CommunicateWithHost err = 0 [00:09:07]CheckOFDResponse [00:09:07]1017 (14) - 77093643461234 [00:09:07]1041 (16) - 0000000000871745 [00:09:07]1040 (4) - 145872 [00:09:07]1012 (4) - 27.10.2024 17:41 [00:09:07]1206 (1) - 0 [00:09:07]OFD Sender: Remove packet 145872 [00:09:07]ProducePacketName [00:09:07]name=ofd_packets/00145872 [00:09:07]NVStorageDeleteData [00:09:08]OFD Sender: No OFD packet to send [00:09:08]*** Cut start [00:09:08]*** Partial cut [00:09:08]*** CUTSNS_PIN = 1 [00:09:08]*** CUTSNS_PIN = 0 [00:09:08]*** Brake cut motor [00:09:08]Read from MH i2c: 01 [00:09:08]MH_I2C_Read... [00:09:09]*** Stop cut motor [00:09:09]*** Cut end [00:09:09]Read from MH i2c: 01 07 00 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: 01 07 00 DA 04 00 00 00 00 00 FF 0F F3 [00:09:09]process_action close_receipt done [00:09:09]requested_data is exist [00:09:09]produce_requested_data [00:09:09]requested_item fm.sn is exist - process it [00:09:09]wFMCommunicate request_size=4 [00:09:09]MH_SAM_APDU [00:09:09]CAPDU: 80 11 00 00 [00:09:09]Write to MH i2c: E2 08 00 DB 04 80 11 00 00 00 00 00 00 59 [00:09:09]Write i2c OK [00:09:09]MH_I2C_Read... [00:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:09]Read from MH i2c: E2 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 17 00 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 17 00 DB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AC [00:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:09:09]wFMCommunicate OK [00:09:09]requested_item fd.num is exist - process it [00:09:09]SAM_PROTO_GetFieldsCounters [00:09:09]wFMCommunicate request_size=4 [00:09:09]MH_SAM_APDU [00:09:09]CAPDU: 80 13 00 00 [00:09:09]Write to MH i2c: E2 08 00 DC 04 80 13 00 00 00 00 00 00 5C [00:09:09]Write i2c OK [00:09:09]MH_I2C_Read... [00:09:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:09]Read from MH i2c: E2 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 62 00 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 62 00 DC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D0 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [00:09:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D0 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:09]wFMCommunicate OK [00:09:09]SAM_PROTO_GetFieldsCounters done [00:09:09]requested_item shift.num is exist - process it [00:09:09]requested_item shift.opened is exist - process it [00:09:09]req_shift_opened [00:09:09]FM_GetShiftState [00:09:09]SAM_PROTO_GetShiftState [00:09:09]wFMCommunicate request_size=4 [00:09:09]MH_SAM_APDU [00:09:09]CAPDU: 80 13 01 00 [00:09:09]Write to MH i2c: E2 08 00 DD 04 80 13 01 00 00 00 00 00 5E [00:09:09]Write i2c OK [00:09:09]MH_I2C_Read... [00:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:09]Read from MH i2c: E2 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 0E 00 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 0E 00 DD 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D6 [00:09:09]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:09:09]wFMCommunicate OK [00:09:09]SAM_PROTO_GetShiftState done [00:09:09]FM_GetShiftState done [00:09:09]req_shift_opened done [00:09:09]requested_item shift.open_date is exist - process it [00:09:09]req_shift_open_date [00:09:09]req_shift_open_date done [00:09:09]produce_requested_data done [00:09:09]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145872,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [00:09:09]process_action_free close_receipt [00:09:09]json_value_free [00:09:09]json_value_free done [00:09:09]process_json_proto returns [00:09:09]Send response to host [00:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145872,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [00:09:09]free response buf [00:09:09]execute_script done [00:09:09]execute_script returns [00:09:09]free content buf [00:09:09]Sock 7.Close socket [00:09:09]Sock 7.Thread stoped [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:36]accept exits with 9 [00:11:36]New connection [00:11:36]New thread 3067506020 created [00:11:36]Thread 3067362660 joined [00:11:36]Waiting for new connection... [00:11:36] Sock 9.Parse request [00:11:36]Sock 9.Check first char [00:11:36]Sock 9.First char is OK [00:11:36]request: POST /json_proto HTTP/1.0 [00:11:36]Method: POST [00:11:36]URL: /json_proto [00:11:36]Method is POST - this is cgi request [00:11:36]url: /json_proto [00:11:36]query_string will be loaded in cgi processing [00:11:36]execute_cgi json_proto POST (null) [00:11:36]execute_cgi path=json_proto method=POST [00:11:36]POST find Content-Length [00:11:36]Host: 172.17.40.195:8080 [00:11:36]Content-Length: 678 [00:11:36]Content-Type: application/json [00:11:36] [00:11:36]POST finish read [00:11:36]Found Content-Length = 678 [00:11:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:36]execute_script... [00:11: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)160630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:36]POST & json_proto [00:11:36]process_json_proto [00:11:36]json parsed OK: [00:11:36]protocol is kg_v1.0 [00:11:36]action value=close_receipt [00:11:36]process_action close_receipt [00:11:36]cmd_close_receipt [00:11:36]MH_GetDate [00:11:36]Write to MH i2c: F0 00 00 DE 04 D1 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: F0 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: F0 09 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: F0 09 00 DE 04 00 B9 D6 1E 67 D5 8D 6C 64 20 [00:11:36]GetLastDocTimeStamp 1730074145 [00:11:36]current date 1730074297 [00:11:36]FM_GetShiftState [00:11:36]SAM_PROTO_GetShiftState [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 13 01 00 [00:11:36]Write to MH i2c: E2 08 00 DF 04 80 13 01 00 00 00 00 00 60 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 0E 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 0E 00 DF 04 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 D8 [00:11:36]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:11:36]wFMCommunicate OK [00:11:36]SAM_PROTO_GetShiftState done [00:11:36]FM_GetShiftState done [00:11:36]opened in 1729988959 [00:11:36]opened+sec_in_day 1730075359 [00:11:36]quantity*price = 80012 [00:11:36]sum+1 = 80013 [00:11:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 296 28.10.2024 00:11 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145873 ФПД: 239149025859653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001137&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145873&fm=239149025859653&tin=02508201610067®Number=0000000000091683&sum=80000 [00:11:38]StoreToDocumentArchive [00:11:38]shift 545 fd 145873 [00:11:38]save to /storage/0545/doc_00145873 [00:11:38]save last doc name /storage/0545/doc_00145873 to /storage/kkm_last_doc_name [00:11:38]save OK [00:11:38]Clear old archive folders... [00:11:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:11:38]tlvbuf is 00696440 [00:11:38]SAM_PROTO_ClearQueue [00:11:38]wFMCommunicate request_size=4 [00:11:38]MH_SAM_APDU [00:11:38]CAPDU: 80 09 00 00 [00:11:38]Write to MH i2c: E2 08 00 EC 04 80 09 00 00 00 00 00 00 62 [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:38]Read from MH i2c: E2 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 03 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 03 00 EC 04 00 90 00 64 [00:11:38]RAPDU: 90 00 [00:11:38]wFMCommunicate OK [00:11:38]SAM_PROTO_ClearQueue done [00:11:38]KKMCreateOFDPacket [00:11:38]OFDProtocolAddRootSTLVToBuf [00:11:38]FM_MakeSignedData [00:11:38]FM_MakeSignedData [00:11:38]SAM_PROTO_SignData [00:11:38]wFMCommunicate request_size=4 [00:11:38]MH_SAM_APDU [00:11:38]CAPDU: 80 0D 01 02 [00:11:38]Write to MH i2c: E2 08 00 ED 04 80 0D 01 02 00 00 00 00 6A [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:38]Read from MH i2c: E2 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 03 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 03 00 ED 04 00 90 00 65 [00:11:38]RAPDU: 90 00 [00:11:38]wFMCommunicate OK [00:11:38]wFMCommunicate request_size=255 [00:11:38]MH_SAM_APDU [00: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 B9 D6 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D1 39 02 00 35 04 06 00 D9 [00:11:38]Write to MH i2c: E2 02 01 EE 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 B9 D6 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D1 39 02 00 35 04 06 00 D9 00 00 29 [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:38]OFD Sender: No OFD packet to send [00:11:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:38]Read from MH i2c: E2 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 03 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 03 00 EE 04 00 90 00 66 [00:11:38]RAPDU: 90 00 [00:11:38]wFMCommunicate OK [00:11:38]wFMCommunicate request_size=10 [00:11:38]MH_SAM_APDU [00:11:38]CAPDU: 80 0D 02 02 05 81 38 BC 18 45 [00:11:38]Write to MH i2c: E2 0D 00 EF 04 80 0D 02 02 05 00 81 38 BC 18 45 00 00 49 [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:38]Read from MH i2c: E2 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 03 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 03 00 EF 04 00 90 00 67 [00:11:38]RAPDU: 90 00 [00:11:38]wFMCommunicate OK [00:11:38]wFMCommunicate request_size=4 [00:11:38]MH_SAM_APDU [00:11:38]CAPDU: 80 0D 03 02 [00:11:38]Write to MH i2c: E2 08 00 F0 04 80 0D 03 02 00 00 00 00 6F [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:38]Read from MH i2c: E2 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 0B 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 0B 00 F0 04 00 06 7A 0C DC 75 A6 B5 35 90 00 DD [00:11:38]RAPDU: 06 7A 0C DC 75 A6 B5 35 90 00 [00:11:38]wFMCommunicate OK [00:11:38]SAM_PROTO_SignData done [00:11:38]FM_MakeSignedData done [00:11:38]CreateOFDProtocolMessage [00:11:38]wFMCommunicate request_size=4 [00:11:38]MH_SAM_APDU [00:11:38]CAPDU: 80 11 00 00 [00:11:38]Write to MH i2c: E2 08 00 F1 04 80 11 00 00 00 00 00 00 6F [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:38]Read from MH i2c: E2 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 17 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 17 00 F1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C2 [00:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:11:38]wFMCommunicate OK [00:11:38]CreateOFDProtocolMessage done [00:11:38]OFDSenderStorePacket 145873 [00:11:38]StoreOFDPacket docnum=145873 [00:11:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 4F 18 07 01 1E 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 B9 D6 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D1 39 02 00 35 04 06 00 D9 81 38 BC 18 45 06 7A 0C DC 75 A6 B5 35 [00:11:38]CheckFolder [00:11:38]dirname=/storage/ofd_packets [00:11:38]CheckFolder done [00:11:38]ProducePacketName [00:11:38]name=ofd_packets/00145873 [00:11:38]NVStorageSaveData ofd_packets/00145873 [00:11:38]File name is /storage/ofd_packets/00145873 [00:11:38]Write 301 bytes [00:11:38]NVStorageSaveData done [00:11:38]OFDSenderStorePacket done [00:11:38]KKMCreateOFDPacket done [00:11:38]NVStorageSaveData kkm_last_timestamp [00:11:38]File name is /storage/kkm_last_timestamp [00:11:38]Write 4 bytes [00:11:38]NVStorageSaveData done [00:11:38]ExternCall_PrintAddStr [00:11:38]wPrintStart [00:11:38]Write to MH i2c: 01 00 00 F2 04 F6 [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: 01 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: 01 07 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: 01 07 00 F2 04 00 00 00 00 00 FF 0F 0B [00:11:38]RasterBufferAndPrint [00:11:38]line Счет N : (1)160630 [00:11:38]line ИНН: 02508201610067 [00:11:38]line Контрольно-Кассовый Чек [00:11:38]line ПРОДАЖА [00:11:38]line ТРК (МРК, ГНК) : 62 [00:11:38]line Товар: 2710124130 [00:11:38]line Аи-92-К-2 [00:11:38]line 11.960 * 66.90 [00:11:38]line = 800.12 [00:11:38]line НДС 12% НСП 1% [00:11:38]line > о реализуемом товаре [00:11:38]line ОКРУГЛЕНИЕ: -0.12 [00:11:38]line ИТОГО: 800.00 [00:11:38]line Внесено: 800.00 [00:11:38]line СДАЧА: 0.00 [00:11:38]line НСП 1% : 7.08 [00:11:38]line НДС 12% : 84.97 [00:11:38]line Наличными: 800.00 [00:11:38]line Безнал.: 0.00 [00:11:38]line Место: АЗС № 126 "Партнер Нефть" [00:11:38]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [00:11:38]line СНО: Общий режим [00:11:38]line Чек 296 28.10.2024 00:11 [00:11:38]line Смена: 545 ФФД: 1.0 [00:11:38]line ЗНМ: 0300000085 [00:11:38]line РНМ: 0000000000091683 [00:11:38]line Версия ККМ: 001 [00:11:38]line ФМ: 0000000000871745 [00:11:38]line ФД: 145873 [00:11:38]line ФПД: 239149025859653 [00:11:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001137&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145873&fm=239149025859653&tin=02508201610067®Number=0000000000091683&sum=80000 [00:11:38]OFD Sender: Processing packet 145873 [packets to send 206, broken 205] [00:11:38]ProducePacketName [00:11:38]name=ofd_packets/00145873 [00:11:38]OFD Sender: To server: pG, [00:11:38]CommunicateWithHost lk.salyk.kg:30040 [00:11:38]ConnectInit lk.salyk.kg [00:11:38]written 0, free lines is 4095 [00:11:39]Connected sock=10 [00: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 31 37 34 35 0F 01 00 00 4F 18 07 01 1E 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 B9 D6 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D1 39 02 00 35 04 06 00 D9 81 38 BC 18 45 06 7A 0C DC 75 A6 B5 35 [00:11:39]Write to MH i2c: 01 00 00 1D 05 22 [00:11:39]Write i2c OK [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: 01 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: 01 07 00 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: 01 07 00 1D 05 00 00 00 00 00 9E 0C D3 [00:11:39]RasterBufferAndPrint [00:11:39]line [00:11:39]line [00:11:39]line [00:11:39]line [00:11:39]line [00:11:39]written 0, free lines is 3236 [00:11:39]MH_Cut [00:11:39]Write to MH i2c: D1 01 00 24 05 01 FB [00:11:39]Write i2c OK [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: D1 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: D1 01 00 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: D1 01 00 24 05 00 FA [00:11:39]Write to MH i2c: 01 00 00 25 05 2A [00:11:39]Write i2c OK [00:11:39]MH_I2C_Read... [00:11:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 7F BB 47 00 B7 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D1 39 02 00 F4 03 04 00 E5 7B 1E 67 B6 04 01 00 00 9F EB D3 3A 28 30 1F 25 [00:11:39]CommunicateWithHost err = 0 [00:11:39]CheckOFDResponse [00:11:39]1017 (14) - 77093643461234 [00:11:39]1041 (16) - 0000000000871745 [00:11:39]1040 (4) - 145873 [00:11:39]1012 (4) - 27.10.2024 17:44 [00:11:39]1206 (1) - 0 [00:11:39]OFD Sender: Remove packet 145873 [00:11:39]ProducePacketName [00:11:39]name=ofd_packets/00145873 [00:11:39]NVStorageDeleteData [00:11:40]OFD Sender: No OFD packet to send [00:11:40]*** Cut start [00:11:40]*** Partial cut [00:11:40]*** CUTSNS_PIN = 1 [00:11:40]*** CUTSNS_PIN = 0 [00:11:40]*** Brake cut motor [00:11:40]Read from MH i2c: 01 [00:11:40]MH_I2C_Read... [00:11:40]*** Stop cut motor [00:11:40]*** Cut end [00:11:40]Read from MH i2c: 01 07 00 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: 01 07 00 25 05 00 00 00 00 00 FF 0F 3F [00:11:40]process_action close_receipt done [00:11:40]requested_data is exist [00:11:40]produce_requested_data [00:11:40]requested_item fm.sn is exist - process it [00:11:40]wFMCommunicate request_size=4 [00:11:40]MH_SAM_APDU [00:11:40]CAPDU: 80 11 00 00 [00:11:40]Write to MH i2c: E2 08 00 26 05 80 11 00 00 00 00 00 00 A5 [00:11:40]Write i2c OK [00:11:40]MH_I2C_Read... [00:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:40]Read from MH i2c: E2 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 17 00 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 17 00 26 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F8 [00:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:11:40]wFMCommunicate OK [00:11:40]requested_item fd.num is exist - process it [00:11:40]SAM_PROTO_GetFieldsCounters [00:11:40]wFMCommunicate request_size=4 [00:11:40]MH_SAM_APDU [00:11:40]CAPDU: 80 13 00 00 [00:11:40]Write to MH i2c: E2 08 00 27 05 80 13 00 00 00 00 00 00 A8 [00:11:40]Write i2c OK [00:11:40]MH_I2C_Read... [00:11:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:41]Read from MH i2c: E2 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 62 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 62 00 27 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D1 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [00: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 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D1 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:41]wFMCommunicate OK [00:11:41]SAM_PROTO_GetFieldsCounters done [00:11:41]requested_item shift.num is exist - process it [00:11:41]requested_item shift.opened is exist - process it [00:11:41]req_shift_opened [00:11:41]FM_GetShiftState [00:11:41]SAM_PROTO_GetShiftState [00:11:41]wFMCommunicate request_size=4 [00:11:41]MH_SAM_APDU [00:11:41]CAPDU: 80 13 01 00 [00:11:41]Write to MH i2c: E2 08 00 28 05 80 13 01 00 00 00 00 00 AA [00:11:41]Write i2c OK [00:11:41]MH_I2C_Read... [00:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:41]Read from MH i2c: E2 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 0E 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 0E 00 28 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 22 [00:11:41]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:11:41]wFMCommunicate OK [00:11:41]SAM_PROTO_GetShiftState done [00:11:41]FM_GetShiftState done [00:11:41]req_shift_opened done [00:11:41]requested_item shift.open_date is exist - process it [00:11:41]req_shift_open_date [00:11:41]req_shift_open_date done [00:11:41]produce_requested_data done [00:11:41]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145873,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [00:11:41]process_action_free close_receipt [00:11:41]json_value_free [00:11:41]json_value_free done [00:11:41]process_json_proto returns [00:11:41]Send response to host [00:11:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145873,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [00:11:41]free response buf [00:11:41]execute_script done [00:11:41]execute_script returns [00:11:41]free content buf [00:11:41]Sock 9.Close socket [00:11:41]Sock 9.Thread stoped [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]accept exits with 7 [00:18:20]New connection [00:18:20]New thread 3067362660 created [00:18:20]Thread 3067506020 joined [00:18:20]Waiting for new connection... [00:18:20] Sock 7.Parse request [00:18:20]Sock 7.Check first char [00:18:20]Sock 7.First char is OK [00:18:20]request: POST /json_proto HTTP/1.0 [00:18:20]Method: POST [00:18:20]URL: /json_proto [00:18:20]Method is POST - this is cgi request [00:18:20]url: /json_proto [00:18:20]query_string will be loaded in cgi processing [00:18:20]execute_cgi json_proto POST (null) [00:18:20]execute_cgi path=json_proto method=POST [00:18:20]POST find Content-Length [00:18:20]Host: 172.17.40.195:8080 [00:18:20]Content-Length: 677 [00:18:20]Content-Type: application/json [00:18:20] [00:18:20]POST finish read [00:18:20]Found Content-Length = 677 [00:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:20]execute_script... [00:18: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)160631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:20]POST & json_proto [00:18:20]process_json_proto [00:18:20]json parsed OK: [00:18:20]protocol is kg_v1.0 [00:18:20]action value=close_receipt [00:18:20]process_action close_receipt [00:18:20]cmd_close_receipt [00:18:20]MH_GetDate [00:18:20]Write to MH i2c: F0 00 00 29 05 1D [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: F0 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: F0 09 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: F0 09 00 29 05 00 4D D8 1E 67 D5 8D 6C 64 02 [00:18:20]GetLastDocTimeStamp 1730074297 [00:18:20]current date 1730074701 [00:18:20]FM_GetShiftState [00:18:20]SAM_PROTO_GetShiftState [00:18:20]wFMCommunicate request_size=4 [00:18:20]MH_SAM_APDU [00:18:20]CAPDU: 80 13 01 00 [00:18:20]Write to MH i2c: E2 08 00 2A 05 80 13 01 00 00 00 00 00 AC [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:20]Read from MH i2c: E2 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 0E 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 0E 00 2A 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 24 [00:18:20]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:18:20]wFMCommunicate OK [00:18:20]SAM_PROTO_GetShiftState done [00:18:20]FM_GetShiftState done [00:18:20]opened in 1729988959 [00:18:20]opened+sec_in_day 1730075359 [00:18:20]quantity*price = 40006 [00:18:20]sum+1 = 40007 [00:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 297 28.10.2024 00:18 Смена: 545 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145874 ФПД: 156804090379143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001821&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145874&fm=156804090379143&tin=02508201610067®Number=0000000000091683&sum=40000 [00:18:21]StoreToDocumentArchive [00:18:21]shift 545 fd 145874 [00:18:21]save to /storage/0545/doc_00145874 [00:18:21]save last doc name /storage/0545/doc_00145874 to /storage/kkm_last_doc_name [00:18:21]save OK [00:18:21]Clear old archive folders... [00:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:18:21]tlvbuf is 0067B0D0 [00:18:21]SAM_PROTO_ClearQueue [00:18:21]wFMCommunicate request_size=4 [00:18:21]MH_SAM_APDU [00:18:21]CAPDU: 80 09 00 00 [00:18:21]Write to MH i2c: E2 08 00 37 05 80 09 00 00 00 00 00 00 AE [00:18:21]Write i2c OK [00:18:21]MH_I2C_Read... [00:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:18:21]Read from MH i2c: E2 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 03 00 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 03 00 37 05 00 90 00 B0 [00:18:21]RAPDU: 90 00 [00:18:21]wFMCommunicate OK [00:18:21]SAM_PROTO_ClearQueue done [00:18:21]KKMCreateOFDPacket [00:18:21]OFDProtocolAddRootSTLVToBuf [00:18:21]FM_MakeSignedData [00:18:21]FM_MakeSignedData [00:18:21]SAM_PROTO_SignData [00:18:21]wFMCommunicate request_size=4 [00:18:21]MH_SAM_APDU [00:18:21]CAPDU: 80 0D 01 02 [00:18:21]Write to MH i2c: E2 08 00 38 05 80 0D 01 02 00 00 00 00 B6 [00:18:21]Write i2c OK [00:18:21]MH_I2C_Read... [00:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:18:21]Read from MH i2c: E2 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 03 00 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 03 00 38 05 00 90 00 B1 [00:18:21]RAPDU: 90 00 [00:18:21]wFMCommunicate OK [00:18:21]wFMCommunicate request_size=255 [00:18:21]MH_SAM_APDU [00:18: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 4D D8 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D2 39 02 00 35 04 06 00 8E [00:18:21]Write to MH i2c: E2 02 01 39 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 4D D8 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D2 39 02 00 35 04 06 00 8E 00 00 A5 [00:18:21]Write i2c OK [00:18:21]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 03 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 03 00 39 05 00 90 00 B2 [00:18:22]RAPDU: 90 00 [00:18:22]wFMCommunicate OK [00:18:22]wFMCommunicate request_size=10 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 0D 02 02 05 9C CC 1B 3B 87 [00:18:22]Write to MH i2c: E2 0D 00 3A 05 80 0D 02 02 05 00 9C CC 1B 3B 87 00 00 08 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 03 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 03 00 3A 05 00 90 00 B3 [00:18:22]RAPDU: 90 00 [00:18:22]wFMCommunicate OK [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 0D 03 02 [00:18:22]Write to MH i2c: E2 08 00 3B 05 80 0D 03 02 00 00 00 00 BB [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 0B 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 0B 00 3B 05 00 21 9A 0F DF EB 6D 3B EE 90 00 E6 [00:18:22]RAPDU: 21 9A 0F DF EB 6D 3B EE 90 00 [00:18:22]wFMCommunicate OK [00:18:22]SAM_PROTO_SignData done [00:18:22]FM_MakeSignedData done [00:18:22]CreateOFDProtocolMessage [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 11 00 00 [00:18:22]Write to MH i2c: E2 08 00 3C 05 80 11 00 00 00 00 00 00 BB [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 17 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 17 00 3C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 0E [00:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:18:22]wFMCommunicate OK [00:18:22]CreateOFDProtocolMessage done [00:18:22]OFDSenderStorePacket 145874 [00:18:22]StoreOFDPacket docnum=145874 [00:18:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 80 21 07 01 CA 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 4D D8 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D2 39 02 00 35 04 06 00 8E 9C CC 1B 3B 87 21 9A 0F DF EB 6D 3B EE [00:18:22]CheckFolder [00:18:22]dirname=/storage/ofd_packets [00:18:22]CheckFolder done [00:18:22]ProducePacketName [00:18:22]name=ofd_packets/00145874 [00:18:22]NVStorageSaveData ofd_packets/00145874 [00:18:22]File name is /storage/ofd_packets/00145874 [00:18:22]Write 301 bytes [00:18:22]NVStorageSaveData done [00:18:22]OFDSenderStorePacket done [00:18:22]KKMCreateOFDPacket done [00:18:22]NVStorageSaveData kkm_last_timestamp [00:18:22]File name is /storage/kkm_last_timestamp [00:18:22]Write 4 bytes [00:18:22]NVStorageSaveData done [00:18:22]ExternCall_PrintAddStr [00:18:22]wPrintStart [00:18:22]Write to MH i2c: 01 00 00 3D 05 42 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: 01 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: 01 07 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 FF 0F 57 [00:18:22]RasterBufferAndPrint [00:18:22]line Счет N : (1)160631 [00:18:22]line ИНН: 02508201610067 [00:18:22]line Контрольно-Кассовый Чек [00:18:22]line ПРОДАЖА [00:18:22]line ТРК (МРК, ГНК) : 42 [00:18:22]line Товар: 2710124130 [00:18:22]line Аи-92-К-2 [00:18:22]line 5.980 * 66.90 [00:18:22]line = 400.06 [00:18:22]line НДС 12% НСП 1% [00:18:22]line > о реализуемом товаре [00:18:22]line ОКРУГЛЕНИЕ: -0.06 [00:18:22]line ИТОГО: 400.00 [00:18:22]line Внесено: 400.00 [00:18:22]line СДАЧА: 0.00 [00:18:22]line НСП 1% : 3.54 [00:18:22]line НДС 12% : 42.48 [00:18:22]line Наличными: 400.00 [00:18:22]line Безнал.: 0.00 [00:18:22]line Место: АЗС № 126 "Партнер Нефть" [00:18:22]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [00:18:22]line СНО: Общий режим [00:18:22]line Чек 297 28.10.2024 00:18 [00:18:22]line Смена: 545 ФФД: 1.0 [00:18:22]line ЗНМ: 0300000085 [00:18:22]line РНМ: 0000000000091683 [00:18:22]line Версия ККМ: 001 [00:18:22]line ФМ: 0000000000871745 [00:18:22]line ФД: 145874 [00:18:22]line ФПД: 156804090379143 [00:18:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T001821&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145874&fm=156804090379143&tin=02508201610067®Number=0000000000091683&sum=40000 [00:18:22]OFD Sender: Processing packet 145874 [packets to send 206, broken 205] [00:18:22]ProducePacketName [00:18:22]name=ofd_packets/00145874 [00:18:22]OFD Sender: To server: pG, [00:18:22]CommunicateWithHost lk.salyk.kg:30040 [00:18:22]ConnectInit lk.salyk.kg [00:18:22]written 0, free lines is 4095 [00:18:22]Connected sock=10 [00:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 80 21 07 01 CA 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 4D D8 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D2 39 02 00 35 04 06 00 8E 9C CC 1B 3B 87 21 9A 0F DF EB 6D 3B EE [00:18:23]Write to MH i2c: 01 00 00 68 05 6D [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: 01 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: 01 07 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: 01 07 00 68 05 00 00 00 00 00 A4 0C 24 [00:18:23]RasterBufferAndPrint [00:18:23]line [00:18:23]line [00:18:23]line [00:18:23]line [00:18:23]line [00:18:23]written 0, free lines is 3242 [00:18:23]MH_Cut [00:18:23]Write to MH i2c: D1 01 00 6F 05 01 46 [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: D1 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: D1 01 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: D1 01 00 6F 05 00 45 [00:18:23]Write to MH i2c: 01 00 00 70 05 75 [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D8 B5 47 00 A0 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D2 39 02 00 F4 03 04 00 79 7D 1E 67 B6 04 01 00 00 A5 B6 0C D8 A8 F6 53 49 [00:18:23]CommunicateWithHost err = 0 [00:18:23]CheckOFDResponse [00:18:23]1017 (14) - 77093643461234 [00:18:23]1041 (16) - 0000000000871745 [00:18:23]1040 (4) - 145874 [00:18:23]1012 (4) - 27.10.2024 17:50 [00:18:23]1206 (1) - 0 [00:18:23]OFD Sender: Remove packet 145874 [00:18:23]ProducePacketName [00:18:23]name=ofd_packets/00145874 [00:18:23]NVStorageDeleteData [00:18:23]OFD Sender: No OFD packet to send [00:18:23]*** Cut start [00:18:23]*** Partial cut [00:18:23]*** CUTSNS_PIN = 1 [00:18:23]*** CUTSNS_PIN = 0 [00:18:24]*** Brake cut motor [00:18:24]Read from MH i2c: 01 [00:18:24]MH_I2C_Read... [00:18:24]*** Stop cut motor [00:18:24]*** Cut end [00:18:24]Read from MH i2c: 01 07 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: 01 07 00 70 05 00 00 00 00 00 FF 0F 8A [00:18:24]process_action close_receipt done [00:18:24]requested_data is exist [00:18:24]produce_requested_data [00:18:24]requested_item fm.sn is exist - process it [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 11 00 00 [00:18:24]Write to MH i2c: E2 08 00 71 05 80 11 00 00 00 00 00 00 F0 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 17 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 17 00 71 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 43 [00:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:18:24]wFMCommunicate OK [00:18:24]requested_item fd.num is exist - process it [00:18:24]SAM_PROTO_GetFieldsCounters [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 13 00 00 [00:18:24]Write to MH i2c: E2 08 00 72 05 80 13 00 00 00 00 00 00 F3 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 62 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 62 00 72 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [00:18:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:24]wFMCommunicate OK [00:18:24]SAM_PROTO_GetFieldsCounters done [00:18:24]requested_item shift.num is exist - process it [00:18:24]requested_item shift.opened is exist - process it [00:18:24]req_shift_opened [00:18:24]FM_GetShiftState [00:18:24]SAM_PROTO_GetShiftState [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 13 01 00 [00:18:24]Write to MH i2c: E2 08 00 73 05 80 13 01 00 00 00 00 00 F5 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 0E 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 0E 00 73 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 6D [00:18:24]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:18:24]wFMCommunicate OK [00:18:24]SAM_PROTO_GetShiftState done [00:18:24]FM_GetShiftState done [00:18:24]req_shift_opened done [00:18:24]requested_item shift.open_date is exist - process it [00:18:24]req_shift_open_date [00:18:24]req_shift_open_date done [00:18:24]produce_requested_data done [00:18:24]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145874,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [00:18:24]process_action_free close_receipt [00:18:24]json_value_free [00:18:24]json_value_free done [00:18:24]process_json_proto returns [00:18:24]Send response to host [00:18:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145874,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [00:18:24]free response buf [00:18:24]execute_script done [00:18:24]execute_script returns [00:18:24]free content buf [00:18:24]Sock 7.Close socket [00:18:24]Sock 7.Thread stoped [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:34]accept exits with 9 [00:24:34]New connection [00:24:34]New thread 3067506020 created [00:24:34]Thread 3067362660 joined [00:24:34]Waiting for new connection... [00:24:34] Sock 9.Parse request [00:24:34]Sock 9.Check first char [00:24:34]Sock 9.First char is OK [00:24:34]request: POST /json_proto HTTP/1.0 [00:24:34]Method: POST [00:24:34]URL: /json_proto [00:24:34]Method is POST - this is cgi request [00:24:34]url: /json_proto [00:24:34]query_string will be loaded in cgi processing [00:24:34]execute_cgi json_proto POST (null) [00:24:34]execute_cgi path=json_proto method=POST [00:24:34]POST find Content-Length [00:24:34]Host: 172.17.40.195:8080 [00:24:34]Content-Length: 215 [00:24:34]Content-Type: application/json [00:24:34] [00:24:34]POST finish read [00:24:34]Found Content-Length = 215 [00:24: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" ] } } [00:24:34]execute_script... [00:24: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" ] } } [00:24:34]POST & json_proto [00:24:34]process_json_proto [00:24:34]json parsed OK: [00:24:34]protocol is kg_v1.0 [00:24:34]action value=get_value [00:24:34]process_action get_value [00:24:34]cmd_get_value [00:24:34]process_action get_value done [00:24:34]requested_data is exist [00:24:34]produce_requested_data [00:24:34]requested_item kkm.sn is exist - process it [00:24:34]requested_item kkm.ver is exist - process it [00:24:34]requested_item fm.sn is exist - process it [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 11 00 00 [00:24:34]Write to MH i2c: E2 08 00 74 05 80 11 00 00 00 00 00 00 F3 [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:34]Read from MH i2c: E2 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 17 00 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 17 00 74 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 46 [00:24:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:24:34]wFMCommunicate OK [00:24:34]requested_item fd.num is exist - process it [00:24:34]SAM_PROTO_GetFieldsCounters [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 13 00 00 [00:24:34]Write to MH i2c: E2 08 00 75 05 80 13 00 00 00 00 00 00 F6 [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:34]Read from MH i2c: E2 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 62 00 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 62 00 75 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [00:24:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:34]wFMCommunicate OK [00:24:34]SAM_PROTO_GetFieldsCounters done [00:24:34]requested_item shift.num is exist - process it [00:24:34]requested_item shift.opened is exist - process it [00:24:34]req_shift_opened [00:24:34]FM_GetShiftState [00:24:34]SAM_PROTO_GetShiftState [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 13 01 00 [00:24:34]Write to MH i2c: E2 08 00 76 05 80 13 01 00 00 00 00 00 F8 [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:34]Read from MH i2c: E2 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 0E 00 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 0E 00 76 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 70 [00:24:34]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:24:34]wFMCommunicate OK [00:24:34]SAM_PROTO_GetShiftState done [00:24:34]FM_GetShiftState done [00:24:34]req_shift_opened done [00:24:34]requested_item shift.open_date is exist - process it [00:24:34]req_shift_open_date [00:24:34]req_shift_open_date done [00:24:34]produce_requested_data done [00:24:34]produce_requested_data return {"kkm.sn":"0300000085","kkm.ver":"001","fm.sn":"0000000000871745","fd.num":145874,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [00:24:34]process_action_free get_value [00:24:34]json_value_free [00:24:34]json_value_free done [00:24:34]process_json_proto returns [00:24:34]Send response to host [00:24:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000085","kkm.ver":"001","fm.sn":"0000000000871745","fd.num":145874,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [00:24:34]free response buf [00:24:34]execute_script done [00:24:34]execute_script returns [00:24:34]free content buf [00:24:34]Sock 9.Close socket [00:24:34]Sock 9.Thread stoped [00:24:34]accept exits with 10 [00:24:34]New connection [00:24:34]New thread 3067362660 created [00:24:34]Thread 3067506020 joined [00:24:34]Waiting for new connection... [00:24:34] Sock 10.Parse request [00:24:34]Sock 10.Check first char [00:24:34]Sock 10.First char is OK [00:24:34]request: POST /json_proto HTTP/1.0 [00:24:34]Method: POST [00:24:34]URL: /json_proto [00:24:34]Method is POST - this is cgi request [00:24:34]url: /json_proto [00:24:34]query_string will be loaded in cgi processing [00:24:34]execute_cgi json_proto POST (null) [00:24:34]execute_cgi path=json_proto method=POST [00:24:34]POST find Content-Length [00:24:34]Host: 172.17.40.195:8080 [00:24:34]Content-Length: 331 [00:24:34]Content-Type: application/json [00:24:34] [00:24:34]POST finish read [00:24:34]Found Content-Length = 331 [00:24: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" ] } } [00:24:34]execute_script... [00:24:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:35]POST & json_proto [00:24:35]process_json_proto [00:24:35]json parsed OK: [00:24:35]protocol is kg_v1.0 [00:24:35]action value=get_value [00:24:35]process_action get_value [00:24:35]cmd_get_value [00:24:35]process_action get_value done [00:24:35]requested_data is exist [00:24:35]produce_requested_data [00:24:35]requested_item fm.sale.total is exist - process it [00:24:35]SAM_PROTO_GetFMData [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 13 03 00 [00:24:35]Write to MH i2c: E2 08 00 77 05 80 13 03 00 00 00 00 00 FB [00:24:35]Write i2c OK [00:24:35]MH_I2C_Read... [00:24:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:35]Read from MH i2c: E2 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 77 05 00 C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 80 [00:24:35]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 [00:24:35]wFMCommunicate OK [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 17 00 00 [00:24:35]Write to MH i2c: E2 08 00 78 05 80 17 00 00 00 00 00 00 FD [00:24:44]MH_I2C_Read... [00:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:44]Read from MH i2c: E2 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 91 05 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 OFD Sender: No OFD packet to send [00:24:44]00 00 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 2F [00:24:44]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:24:44]wFMCommunicate OK [00:24:44]wFMCommunicate request_size=4 [00:24:44]MH_SAM_APDU [00:24:44]CAPDU: 80 17 00 00 [00:24:44]Write to MH i2c: E2 08 00 92 05 80 17 00 00 00 00 00 00 17 [00:24:44]Write i2c OK [00:24:44]MH_I2C_Read... [00:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:44]Read from MH i2c: E2 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 92 05 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 D0 [00:24: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 [00:24:45]wFMCommunicate OK [00:24:45]wFMCommunicate request_size=4 [00:24:45]MH_SAM_APDU [00:24:45]CAPDU: 80 17 00 00 [00:24:45]Write to MH i2c: E2 08 00 93 05 80 17 00 00 00 00 00 00 18 [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 FD 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 FD 00 93 05 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 90 [00:24:45]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:45]wFMCommunicate OK [00:24:45]wFMCommunicate request_size=4 [00:24:45]MH_SAM_APDU [00:24:45]CAPDU: 80 17 00 00 [00:24:45]Write to MH i2c: E2 08 00 94 05 80 17 00 00 00 00 00 00 19 [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 CE 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 CE 00 94 05 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 FE [00:24:45]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:46]wFMCommunicate OK [00:24:46]SAM_PROTO_GetShiftData done [00:24:46]1194 (1197) - счетчики итогов смены [00:24:46] 1134 (4) - 297 - количество чеков со всеми признаками расчетов [00:24:46] 1129 (158) - счетчики операций «приход» [00:24:46] 1135 (4) - 297 - количество чеков по признаку расчетов [00:24:46] 1201 (4) - 414587.72 - общая итоговая сумма в чеках [00:24:46] 1136 (4) - 313212.00 - итоговая сумма в чеках наличными [00:24:46] 1138 (3) - 101375.72 - итоговая сумма в чеках безналичными [00:24:46] 1024 (123) - суммы налогов [00:24:46] 1006 (9) - суммы НДС [00:24:46] 1010 (1) - 0% - код ставки НДС [00:24:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:46] 1006 (12) - суммы НДС [00:24:46] 1010 (1) - 12% - код ставки НДС [00:24:46] 1011 (3) - 44035.23 - сумма НДС по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 0% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (12) - суммы НСП [00:24:46] 1014 (1) - 1% - код ставки НСП [00:24:46] 1015 (3) - 3669.48 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 2% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 3% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 5% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 0,50% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 1,50% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1130 (141) - счетчики операций «возврат прихода» [00:24:46] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:46] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:46] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:46] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:46] 1024 (117) - суммы налогов [00:24:46] 1006 (9) - суммы НДС [00:24:46] 1010 (1) - 0% - код ставки НДС [00:24:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:46] 1006 (9) - суммы НДС [00:24:46] 1010 (1) - 12% - код ставки НДС [00:24:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 0% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 1% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 2% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 3% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 5% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 0,50% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 1,50% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1131 (141) - счетчики операций «расход» [00:24:46] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:46] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:46] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:46] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:46] 1024 (117) - суммы налогов [00:24:46] 1006 (9) - суммы НДС [00:24:46] 1010 (1) - 0% - код ставки НДС [00:24:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:46] 1006 (9) - суммы НДС [00:24:46] 1010 (1) - 12% - код ставки НДС [00:24:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 0% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 1% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 2% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 3% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 5% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 0,50% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 1,50% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1132 (141) - счетчики операций «возврат расхода» [00:24:46] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:46] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:46] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:46] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:46] 1024 (117) - суммы налогов [00:24:46] 1006 (9) - суммы НДС [00:24:46] 1010 (1) - 0% - код ставки НДС [00:24:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:46] 1006 (9) - суммы НДС [00:24:46] 1010 (1) - 12% - код ставки НДС [00:24:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 0% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 1% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 2% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 3% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 5% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 0,50% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1007 (9) - суммы НСП [00:24:46] 1014 (1) - 1,50% - код ставки НСП [00:24:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:46] 1133 (588) - - счетчики коррекции - не используются [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1194 (04AA) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1134 (046E) [00:24:46]Malloc new data [00:24:46]Processing tag 1129 (0469) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1135 (046F) [00:24:46]Malloc new data [00:24:46]Processing tag 1201 (04B1) [00:24:46]Malloc new data [00:24:46]Processing tag 1136 (0470) [00:24:46]Malloc new data [00:24:46]Processing tag 1138 (0472) [00:24:46]Malloc new data [00:24:46]Processing tag 1024 (0400) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1130 (046A) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1135 (046F) [00:24:46]Malloc new data [00:24:46]Processing tag 1201 (04B1) [00:24:46]Malloc new data [00:24:46]Processing tag 1136 (0470) [00:24:46]Malloc new data [00:24:46]Processing tag 1138 (0472) [00:24:46]Malloc new data [00:24:46]Processing tag 1024 (0400) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1131 (046B) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1135 (046F) [00:24:46]Malloc new data [00:24:46]Processing tag 1201 (04B1) [00:24:46]Malloc new data [00:24:46]Processing tag 1136 (0470) [00:24:46]Malloc new data [00:24:46]Processing tag 1138 (0472) [00:24:46]Malloc new data [00:24:46]Processing tag 1024 (0400) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1132 (046C) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1135 (046F) [00:24:46]Malloc new data [00:24:46]Processing tag 1201 (04B1) [00:24:46]Malloc new data [00:24:46]Processing tag 1136 (0470) [00:24:46]Malloc new data [00:24:46]Processing tag 1138 (0472) [00:24:46]Malloc new data [00:24:46]Processing tag 1024 (0400) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:47]Malloc new data [00:24:47]Processing tag 1015 (03F7) [00:24:47]Malloc new data [00:24:47]SetTLVBufToDocument err=0 [00:24:47]Processing tag 1007 (03EF) [00:24:47]Load OK [00:24:47]SetTLVBufToDocument [00:24:47]Processing tag 1014 (03F6) [00:24:47]Malloc new data [00:24:47]Processing tag 1015 (03F7) [00:24:47]Malloc new data [00:24:47]SetTLVBufToDocument err=0 [00:24:47]Processing tag 1007 (03EF) [00:24:47]Load OK [00:24:47]SetTLVBufToDocument [00:24:47]Processing tag 1014 (03F6) [00:24:47]Malloc new data [00:24:47]Processing tag 1015 (03F7) [00:24:47]Malloc new data [00:24:47]SetTLVBufToDocument err=0 [00:24:47]Processing tag 1007 (03EF) [00:24:47]Load OK [00:24:47]SetTLVBufToDocument [00:24:47]Processing tag 1014 (03F6) [00:24:47]Malloc new data [00:24:47]Processing tag 1015 (03F7) [00:24:47]Malloc new data [00:24:47]SetTLVBufToDocument err=0 [00:24:47]Processing tag 1007 (03EF) [00:24:47]Load OK [00:24:47]SetTLVBufToDocument [00:24:47]Processing tag 1014 (03F6) [00:24:47]Malloc new data [00:24:47]Processing tag 1015 (03F7) [00:24:47]Malloc new data [00:24:47]SetTLVBufToDocument err=0 [00:24:47]Processing tag 1007 (03EF) [00:24:47]Load OK [00:24:47]SetTLVBufToDocument [00:24:47]Processing tag 1014 (03F6) [00:24:47]Malloc new data [00:24:47]Processing tag 1015 (03F7) [00:24:47]Malloc new data [00:24:47]SetTLVBufToDocument err=0 [00:24:47]SetTLVBufToDocument err=0 [00:24:47]SetTLVBufToDocument err=0 [00:24:47]Processing tag 1133 (046D) [00:24:47]Malloc new data [00:24:47]SetTLVBufToDocument err=0 [00:24:47]SetTLVBufToDocument err=0 [00:24:47]Malloc new data [00:24:47]SAM_PROTO_GetFMData [00:24:47]wFMCommunicate request_size=4 [00:24:47]MH_SAM_APDU [00:24:47]CAPDU: 80 13 03 00 [00:24:47]Write to MH i2c: E2 08 00 95 05 80 13 03 00 00 00 00 00 19 [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:47]Read from MH i2c: E2 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 FD 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 FD 00 95 05 00 C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 9E [00:24:47]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 [00:24:48]wFMCommunicate OK [00:24:48]wFMCommunicate request_size=4 [00:24:48]MH_SAM_APDU [00:24:48]CAPDU: 80 17 00 00 [00:24:48]Write to MH i2c: E2 08 00 96 05 80 17 00 00 00 00 00 00 1B [00:24:48]Write i2c OK [00:24:48]MH_I2C_Read... [00:24:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:48]Read from MH i2c: E2 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 FD 00 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 FD 00 96 05 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 96 [00:24:48]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:48]wFMCommunicate OK [00:24:48]wFMCommunicate request_size=4 [00:24:48]MH_SAM_APDU [00:24:48]CAPDU: 80 17 00 00 [00:24:48]Write to MH i2c: E2 08 00 97 05 80 17 00 00 00 00 00 00 1C [00:24:48]Write i2c OK [00:24:48]MH_I2C_Read... [00:24:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:48]Read from MH i2c: E2 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 FD 00 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 FD 00 97 05 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 BC [00:24:49]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:24:49]wFMCommunicate OK [00:24:49]wFMCommunicate request_size=4 [00:24:49]MH_SAM_APDU [00:24:49]CAPDU: 80 17 00 00 [00:24:49]Write to MH i2c: E2 08 00 98 05 80 17 00 00 00 00 00 00 1D [00:24:49]Write i2c OK [00:24:49]MH_I2C_Read... [00:24:49]OFD Sender: No OFD packet to send [00:24:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:49]Read from MH i2c: E2 [00:24:49]MH_I2C_Read... [00:24:49]Read from MH i2c: E2 FD 00 [00:24:49]MH_I2C_Read... [00:24:49]Read from MH i2c: E2 FD 00 98 05 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A2 [00:24:49]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:49]wFMCommunicate OK [00:24:49]wFMCommunicate request_size=4 [00:24:49]MH_SAM_APDU [00:24:49]CAPDU: 80 17 00 00 [00:24:49]Write to MH i2c: E2 08 00 99 05 80 17 00 00 00 00 00 00 1E [00:24:49]Write i2c OK [00:24:49]MH_I2C_Read... [00:24:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:24:50]Read from MH i2c: E2 [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: E2 DE 00 [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: E2 DE 00 99 05 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FD [00:24:50]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:50]wFMCommunicate OK [00:24:50]SAM_PROTO_GetFMData done [00:24:50]FM_GetFMData:85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:24:51]oper:6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:24:51]total:72 F5 19 FE 03 [00:24:51]Malloc new data [00:24:51]oper:6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:24:51]total:98 92 66 [00:24:51]Malloc new data [00:24:51]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:24:51]total: [00:24:51]Malloc new data [00:24:51]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:24:51]total: [00:24:51]Malloc new data [00:24:51]KKMPrepareXReportFMData err=0 [00:24:51]Х отчет ИНН: 02508201610067 Кассир: Темирбек уулу Э. 28.10.2024 00:24 Смена: 522 РНМ: 0000000000091683 ЗНМ: 0300000085 СНО: Общий режим Всего чеков: 297 ИТОГИ ПРИХОД Чеков: 297 Общий итог: 414587.72 Итого наличными: 313212.00 Итого безнал.: 101375.72 НДС 0% : 0.00 НДС 12% : 44035.23 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3669.48 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 313212.00 НС Приход: 171480159.86 НС Возвр.Прихода: 67222.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871745 [00:24:51]StoreToDocumentArchive [00:24:51]MH_GetDate [00:24:51]Write to MH i2c: F0 00 00 9A 05 8E [00:24:51]Write i2c OK [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: F0 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: F0 09 00 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: F0 09 00 9A 05 00 D4 D9 1E 67 D5 8D 6C 64 FB [00:24:51]shift 522 fd 1730075092 [00:24:51]Create dir for shift 0522 [00:24:51]save to /storage/0522/doc_1730075092 [00:24:51]save last doc name /storage/0522/doc_1730075092 to /storage/kkm_last_doc_name [00:24:51]save OK [00:24:51]Clear old archive folders... [00:24:51]NVStorageSaveData kkm_last_timestamp [00:24:51]File name is /storage/kkm_last_timestamp [00:24:51]Write 4 bytes [00:24:51]NVStorageSaveData done [00:24:51]ExternCall_PrintAddStr [00:24:51]wPrintStart [00:24:51]Write to MH i2c: 01 00 00 9B 05 A0 [00:24:51]Write i2c OK [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: 01 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: 01 07 00 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: 01 07 00 9B 05 00 00 00 00 00 FF 0F B5 [00:24:51]RasterBufferAndPrint [00:24:51]line Х отчет [00:24:51]line ИНН: 02508201610067 [00:24:51]line Кассир: Темирбек уулу Э. [00:24:51]line 28.10.2024 00:24 [00:24:51]line Смена: 522 [00:24:51]line РНМ: 0000000000091683 [00:24:51]line ЗНМ: 0300000085 [00:24:51]line СНО: Общий режим [00:24:51]line Всего чеков: 297 [00:24:51]line ИТОГИ ПРИХОД [00:24:51]line Чеков: 297 [00:24:51]line Общий итог: 414587.72 [00:24:51]line Итого наличными: 313212.00 [00:24:51]line Итого безнал.: 101375.72 [00:24:51]line НДС 0% : 0.00 [00:24:51]line НДС 12% : 44035.23 [00:24:51]line НСП 0% : 0.00 [00:24:51]line НСП 1,50% : 0.00 [00:24:51]line НСП 0,50% : 0.00 [00:24:51]line НСП 5% : 0.00 [00:24:51]line НСП 3% : 0.00 [00:24:51]line НСП 2% : 0.00 [00:24:51]line НСП 1% : 3669.48 [00:24:51]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:24:51]line Чеков: 0 [00:24:51]line Общий итог: 0.00 [00:24:51]line Итого наличными: 0.00 [00:24:51]line Итого безнал.: 0.00 [00:24:51]line НДС 0% : 0.00 [00:24:51]line НДС 12% : 0.00 [00:24:51]line НСП 0% : 0.00 [00:24:51]line НСП 1,50% : 0.00 [00:24:51]line НСП 0,50% : 0.00 [00:24:51]line НСП 5% : 0.00 [00:24:51]line НСП 3% : 0.00 [00:24:51]line НСП 2% : 0.00 [00:24:51]line НСП 1% : 0.00 [00:24:51]line ИТОГИ РАСХОД [00:24:51]line Чеков: 0 [00:24:51]line Общий итог: 0.00 [00:24:51]line Итого наличными: 0.00 [00:24:51]line Итого безнал.: 0.00 [00:24:51]line НДС 0% : 0.00 [00:24:51]line НДС 12% : 0.00 [00:24:51]line НСП 0% : 0.00 [00:24:51]line НСП 1,50% : 0.00 [00:24:51]line НСП 0,50% : 0.00 [00:24:51]line НСП 5% : 0.00 [00:24:51]line НСП 3% : 0.00 [00:24:51]line НСП 2% : 0.00 [00:24:51]line НСП 1% : 0.00 [00:24:51]line ИТОГИ ВОЗВРАТ РАСХОДА [00:24:51]line Чеков: 0 [00:24:51]line Общий итог: 0.00 [00:24:51]line Итого наличными: 0.00 [00:24:51]line Итого безнал.: 0.00 [00:24:51]line НДС 0% : 0.00 [00:24:51]line НДС 12% : 0.00 [00:24:51]line НСП 0% : 0.00 [00:24:51]line НСП 1,50% : 0.00 [00:24:51]line НСП 0,50% : 0.00 [00:24:51]line НСП 5% : 0.00 [00:24:51]line НСП 3% : 0.00 [00:24:51]line НСП 2% : 0.00 [00:24:51]line НСП 1% : 0.00 [00:24:51]line Сумма внесений: 0.00 [00:24:51]line Сумма выплат: 0.00 [00:24:51]line Нал. в кассе: 313212.00 [00:24:51]line НС Приход: 171480159.86 [00:24:51]line НС Возвр.Прихода: 67222.00 [00:24:51]line НС Расход: 0.00 [00:24:51]line НС Возвр.Расхода: 0.00 [00:24:51]line ФМ: 0000000000871745 [00:24:51]written 0, free lines is 4095 [00:24:52]Write to MH i2c: 01 00 00 E6 05 EB [00:24:52]Write i2c OK [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: 01 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: 01 07 00 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: 01 07 00 E6 05 00 00 00 00 00 6F 0A 6B [00:24:52]RasterBufferAndPrint [00:24:52]line [00:24:52]line [00:24:52]line [00:24:52]line [00:24:52]line [00:24:52]written 0, free lines is 2710 [00:24:52]MH_Cut [00:24:52]Write to MH i2c: D1 01 00 ED 05 01 C4 [00:24:52]Write i2c OK [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: D1 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: D1 01 00 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: D1 01 00 ED 05 00 C3 [00:24:52]Write to MH i2c: 01 00 00 EE 05 F3 [00:24:52]Write i2c OK [00:24:52]MH_I2C_Read... [00:24:53]*** Cut start [00:24:53]*** Partial cut [00:24:53]*** CUTSNS_PIN = 1 [00:24:53]*** CUTSNS_PIN = 0 [00:24:54]*** Brake cut motor [00:24:54]Read from MH i2c: 01 [00:24:54]MH_I2C_Read... [00:24:54]*** Stop cut motor [00:24:54]*** Cut end [00:24:54]Read from MH i2c: 01 07 00 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: 01 07 00 EE 05 00 00 00 00 00 FF 0F 08 [00:24:54]process_action x_report done [00:24:54]requested_data is exist [00:24:54]produce_requested_data [00:24:54]requested_item fd.num is exist - process it [00:24:54]SAM_PROTO_GetFieldsCounters [00:24:54]wFMCommunicate request_size=4 [00:24:54]MH_SAM_APDU [00:24:54]CAPDU: 80 13 00 00 [00:24:54]Write to MH i2c: E2 08 00 EF 05 80 13 00 00 00 00 00 00 70 [00:24:54]Write i2c OK [00:24:54]MH_I2C_Read... [00:24:54]OFD Sender: No OFD packet to send [00:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:54]Read from MH i2c: E2 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 62 00 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 62 00 EF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [00:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:54]wFMCommunicate OK [00:24:54]SAM_PROTO_GetFieldsCounters done [00:24:54]requested_item shift.num is exist - process it [00:24:54]requested_item shift.opened is exist - process it [00:24:54]req_shift_opened [00:24:54]FM_GetShiftState [00:24:54]SAM_PROTO_GetShiftState [00:24:54]wFMCommunicate request_size=4 [00:24:54]MH_SAM_APDU [00:24:54]CAPDU: 80 13 01 00 [00:24:54]Write to MH i2c: E2 08 00 F0 05 80 13 01 00 00 00 00 00 72 [00:24:54]Write i2c OK [00:24:54]MH_I2C_Read... [00:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:54]Read from MH i2c: E2 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 0E 00 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 0E 00 F0 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 EA [00:24:54]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:24:54]wFMCommunicate OK [00:24:54]SAM_PROTO_GetShiftState done [00:24:54]FM_GetShiftState done [00:24:54]req_shift_opened done [00:24:54]requested_item shift.open_date is exist - process it [00:24:54]req_shift_open_date [00:24:54]req_shift_open_date done [00:24:54]produce_requested_data done [00:24:54]produce_requested_data return {"fd.num":145874,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [00:24:54]process_action_free x_report [00:24:54]json_value_free [00:24:54]json_value_free done [00:24:54]process_json_proto returns [00:24:54]Send response to host [00:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":145874,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [00:24:54]free response buf [00:24:54]execute_script done [00:24:54]execute_script returns [00:24:54]free content buf [00:24:54]Sock 10.Close socket [00:24:54]Sock 10.Thread stoped [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:17]accept exits with 9 [00:25:17]New connection [00:25:17]New thread 3067506020 created [00:25:17]Thread 3067362660 joined [00:25:17]Waiting for new connection... [00:25:17] Sock 9.Parse request [00:25:17]Sock 9.Check first char [00:25:17]Sock 9.First char is OK [00:25:17]request: POST /json_proto HTTP/1.0 [00:25:17]Method: POST [00:25:17]URL: /json_proto [00:25:17]Method is POST - this is cgi request [00:25:17]url: /json_proto [00:25:17]query_string will be loaded in cgi processing [00:25:17]execute_cgi json_proto POST (null) [00:25:17]execute_cgi path=json_proto method=POST [00:25:17]POST find Content-Length [00:25:17]Host: 172.17.40.195:8080 [00:25:17]Content-Length: 215 [00:25:17]Content-Type: application/json [00:25:17] [00:25:17]POST finish read [00:25:17]Found Content-Length = 215 [00:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:17]execute_script... [00:25:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:17]POST & json_proto [00:25:17]process_json_proto [00:25:17]json parsed OK: [00:25:17]protocol is kg_v1.0 [00:25:17]action value=get_value [00:25:17]process_action get_value [00:25:17]cmd_get_value [00:25:17]process_action get_value done [00:25:17]requested_data is exist [00:25:17]produce_requested_data [00:25:17]requested_item kkm.sn is exist - process it [00:25:17]requested_item kkm.ver is exist - process it [00:25:17]requested_item fm.sn is exist - process it [00:25:17]wFMCommunicate request_size=4 [00:25:17]MH_SAM_APDU [00:25:17]CAPDU: 80 11 00 00 [00:25:17]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 17 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 17 00 F1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C3 [00:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:25:18]wFMCommunicate OK [00:25:18]requested_item fd.num is exist - process it [00:25:18]SAM_PROTO_GetFieldsCounters [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 13 00 00 [00:25:18]Write to MH i2c: E2 08 00 F2 05 80 13 00 00 00 00 00 00 73 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 62 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 62 00 F2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [00:25:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D2 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:18]wFMCommunicate OK [00:25:18]SAM_PROTO_GetFieldsCounters done [00:25:18]requested_item shift.num is exist - process it [00:25:18]requested_item shift.opened is exist - process it [00:25:18]req_shift_opened [00:25:18]FM_GetShiftState [00:25:18]SAM_PROTO_GetShiftState [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 13 01 00 [00:25:18]Write to MH i2c: E2 08 00 F3 05 80 13 01 00 00 00 00 00 75 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 0E 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 0E 00 F3 05 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 ED [00:25:18]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:25:18]wFMCommunicate OK [00:25:18]SAM_PROTO_GetShiftState done [00:25:18]FM_GetShiftState done [00:25:18]req_shift_opened done [00:25:18]requested_item shift.open_date is exist - process it [00:25:18]req_shift_open_date [00:25:18]req_shift_open_date done [00:25:18]produce_requested_data done [00:25:18]produce_requested_data return {"kkm.sn":"0300000085","kkm.ver":"001","fm.sn":"0000000000871745","fd.num":145874,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959} [00:25:18]process_action_free get_value [00:25:18]json_value_free [00:25:18]json_value_free done [00:25:18]process_json_proto returns [00:25:18]Send response to host [00:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000085","kkm.ver":"001","fm.sn":"0000000000871745","fd.num":145874,"shift.num":545,"shift.opened":1,"shift.open_date":1729988959}}} [00:25:18]free response buf [00:25:18]execute_script done [00:25:18]execute_script returns [00:25:18]free content buf [00:25:18]Sock 9.Close socket [00:25:18]Sock 9.Thread stoped [00:25:18]accept exits with 10 [00:25:18]New connection [00:25:18]New thread 3067362660 created [00:25:18]Thread 3067506020 joined [00:25:18]Waiting for new connection... [00:25:18] Sock 10.Parse request [00:25:18]Sock 10.Check first char [00:25:18]Sock 10.First char is OK [00:25:18]request: POST /json_proto HTTP/1.0 [00:25:18]Method: POST [00:25:18]URL: /json_proto [00:25:18]Method is POST - this is cgi request [00:25:18]url: /json_proto [00:25:18]query_string will be loaded in cgi processing [00:25:18]execute_cgi json_proto POST (null) [00:25:18]execute_cgi path=json_proto method=POST [00:25:18]POST find Content-Length [00:25:18]Host: 172.17.40.195:8080 [00:25:18]Content-Length: 331 [00:25:18]Content-Type: application/json [00:25:18] [00:25:18]POST finish read [00:25:18]Found Content-Length = 331 [00:25:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:18]execute_script... [00:25:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:18]POST & json_proto [00:25:18]process_json_proto [00:25:18]json parsed OK: [00:25:18]protocol is kg_v1.0 [00:25:18]action value=get_value [00:25:18]process_action get_value [00:25:18]cmd_get_value [00:25:18]process_action get_value done [00:25:18]requested_data is exist [00:25:18]produce_requested_data [00:25:18]requested_item fm.sale.total is exist - process it [00:25:18]SAM_PROTO_GetFMData [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 13 03 00 [00:25:18]Write to MH i2c: E2 08 00 F4 05 80 13 03 00 00 00 00 00 78 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 F4 05 00 C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 FD [00:25:19]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 [00:25:19]wFMCommunicate OK [00:25:19]wFMCommunicate request_size=4 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 17 00 00 [00:25:19]Write to MH i2c: E2 08 00 F5 05 80 17 00 00 00 00 00 00 7A [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]OFD Sender: No OFD packet to send [00:25:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 F5 05 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F5 [00:25:19]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:20]wFMCommunicate OK [00:25:20]wFMCommunicate request_size=4 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 17 00 00 [00:25:20]Write to MH i2c: E2 08 00 F6 05 80 17 00 00 00 00 00 00 7B [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 FD 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 FD 00 F6 05 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1B [00:25:20]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:25:20]wFMCommunicate OK [00:25:20]wFMCommunicate request_size=4 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 17 00 00 [00:25:20]Write to MH i2c: E2 08 00 F7 05 80 17 00 00 00 00 00 00 7C [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 FD 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 FD 00 F7 05 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 01 [00:25:21]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:21]wFMCommunicate OK [00:25:21]wFMCommunicate request_size=4 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 17 00 00 [00:25:21]Write to MH i2c: E2 08 00 F8 05 80 17 00 00 00 00 00 00 7D [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 DE 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 DE 00 F8 05 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5C [00:25:22]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:22]wFMCommunicate OK [00:25:22]SAM_PROTO_GetFMData done [00:25:22]requested_item fm.sale_refund.total is exist - process it [00:25:22]requested_item fm.buy.total is exist - process it [00:25:22]requested_item shift.sale.total is exist - process it [00:25:22]SAM_PROTO_GetShiftData [00:25:22]wFMCommunicate request_size=4 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 13 02 00 [00:25:22]Write to MH i2c: E2 08 00 F9 05 80 13 02 00 00 00 00 00 7C [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 FD 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 FD 00 F9 05 00 B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 70 EC DD 01 72 04 03 00 E4 AF 9A 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 43 31 43 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 64 99 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 31 [00:25:23]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 70 EC DD 01 72 04 03 00 E4 AF 9A 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 43 31 43 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 64 99 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:23]wFMCommunicate OK [00:25:23]wFMCommunicate request_size=4 [00:25:23]MH_SAM_APDU [00:25:23]CAPDU: 80 17 00 00 [00:25:23]Write to MH i2c: E2 08 00 FA 05 80 17 00 00 00 00 00 00 7F [00:25:23]Write i2c OK [00:25:23]MH_I2C_Read... [00:25:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:23]Read from MH i2c: E2 [00:25:23]MH_I2C_Read... [00:25:23]Read from MH i2c: E2 FD 00 [00:25:23]MH_I2C_Read... [00:25:23]Read from MH i2c: E2 FD 00 FA 05 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 98 [00:25:23]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:25:24]wFMCommunicate OK [00:25:24]wFMCommunicate request_size=4 [00:25:24]MH_SAM_APDU [00:25:24]CAPDU: 80 17 00 00 [00:25:24]Write to MH i2c: E2 08 00 FB 05 80 17 00 00 00 00 00 00 80 [00:25:24]Write i2c OK [00:25:24]MH_I2C_Read... [00:25:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:24]Read from MH i2c: E2 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 FD 00 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 FD 00 FB 05 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 39 [00:25:24]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 OFD Sender: No OFD packet to send [00:25:24]EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:25:24]wFMCommunicate OK [00:25:24]wFMCommunicate request_size=4 [00:25:24]MH_SAM_APDU [00:25:24]CAPDU: 80 17 00 00 [00:25:24]Write to MH i2c: E2 08 00 FC 05 80 17 00 00 00 00 00 00 81 [00:25:24]Write i2c OK [00:25:24]MH_I2C_Read... [00:25:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:25]Read from MH i2c: E2 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 FD 00 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 FD 00 FC 05 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 F9 [00:25:25]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:25]wFMCommunicate OK [00:25:25]wFMCommunicate request_size=4 [00:25:25]MH_SAM_APDU [00:25:25]CAPDU: 80 17 00 00 [00:25:25]Write to MH i2c: E2 08 00 FD 05 80 17 00 00 00 00 00 00 82 [00:25:25]Write i2c OK [00:25:25]MH_I2C_Read... [00:25:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:25:25]Read from MH i2c: E2 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 CE 00 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 CE 00 FD 05 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 67 [00:25:26]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:26]wFMCommunicate OK [00:25:26]SAM_PROTO_GetShiftData done [00:25:26]requested_item shift.sale.total_cash is exist - process it [00:25:26]requested_item shift.sale_refund.total is exist - process it [00:25:26]requested_item shift.sale_refund.total_cash is exist - process it [00:25:26]requested_item shift.buy.total is exist - process it [00:25:26]requested_item shift.buy.total_cash is exist - process it [00:25:26]produce_requested_data done [00:25:26]produce_requested_data return {"fm.sale.total":171480159.86,"fm.sale_refund.total":67222.00,"fm.buy.total":0.00,"shift.sale.total":414587.72,"shift.sale.total_cash":313212.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:26]process_action_free get_value [00:25:26]json_value_free [00:25:26]json_value_free done [00:25:26]process_json_proto returns [00:25:26]Send response to host [00:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":171480159.86,"fm.sale_refund.total":67222.00,"fm.buy.total":0.00,"shift.sale.total":414587.72,"shift.sale.total_cash":313212.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:26]free response buf [00:25:26]execute_script done [00:25:26]execute_script returns [00:25:26]free content buf [00:25:26]Sock 10.Close socket [00:25:26]Sock 10.Thread stoped [00:25:26]accept exits with 9 [00:25:26]New connection [00:25:26]New thread 3067506020 created [00:25:26]Thread 3067362660 joined [00:25:26]Waiting for new connection... [00:25:26] Sock 9.Parse request [00:25:26]Sock 9.Check first char [00:25:26]Sock 9.First char is OK [00:25:26]request: POST /json_proto HTTP/1.0 [00:25:26]Method: POST [00:25:26]URL: /json_proto [00:25:26]Method is POST - this is cgi request [00:25:26]url: /json_proto [00:25:26]query_string will be loaded in cgi processing [00:25:26]execute_cgi json_proto POST (null) [00:25:26]execute_cgi path=json_proto method=POST [00:25:26]POST find Content-Length [00:25:26]Host: 172.17.40.195:8080 [00:25:26]Content-Length: 331 [00:25:26]Content-Type: application/json [00:25:26] [00:25:26]POST finish read [00:25:26]Found Content-Length = 331 [00:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:26]execute_script... [00:25:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:26]POST & json_proto [00:25:26]process_json_proto [00:25:26]json parsed OK: [00:25:26]protocol is kg_v1.0 [00:25:26]action value=get_value [00:25:26]process_action get_value [00:25:26]cmd_get_value [00:25:26]process_action get_value done [00:25:26]requested_data is exist [00:25:26]produce_requested_data [00:25:26]requested_item fm.sale.total is exist - process it [00:25:26]SAM_PROTO_GetFMData [00:25:26]wFMCommunicate request_size=4 [00:25:26]MH_SAM_APDU [00:25:26]CAPDU: 80 13 03 00 [00:25:26]Write to MH i2c: E2 08 00 FE 05 80 13 03 00 00 00 00 00 82 [00:25:26]Write i2c OK [00:25:26]MH_I2C_Read... [00:25:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:27]Read from MH i2c: E2 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 FD 00 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 FD 00 FE 05 00 C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 07 [00:25:27]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 [00:25:27]wFMCommunicate OK [00:25:27]wFMCommunicate request_size=4 [00:25:27]MH_SAM_APDU [00:25:27]CAPDU: 80 17 00 00 [00:25:27]Write to MH i2c: E2 08 00 FF 05 80 17 00 00 00 00 00 00 84 [00:25:27]Write i2c OK [00:25:27]MH_I2C_Read... [00:25:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:27]Read from MH i2c: E2 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 FD 00 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 FD 00 FF 05 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FF [00:25:28]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:28]wFMCommunicate OK [00:25:28]wFMCommunicate request_size=4 [00:25:28]MH_SAM_APDU [00:25:28]CAPDU: 80 17 00 00 [00:25:28]Write to MH i2c: E2 08 00 00 06 80 17 00 00 00 00 00 00 86 [00:25:28]Write i2c OK [00:25:28]MH_I2C_Read... [00:25:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:28]Read from MH i2c: E2 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 FD 00 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 FD 00 00 06 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 26 [00:25:29]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:25:29]wFMCommunicate OK [00:25:29]wFMCommunicate request_size=4 [00:25:29]MH_SAM_APDU [00:25:29]CAPDU: 80 17 00 00 [00:25:29]Write to MH i2c: E2 08 00 01 06 80 17 00 00 00 00 00 00 87 [00:25:29]Write i2c OK [00:25:29]MH_I2C_Read... [00:25:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:29]Read from MH i2c: E2 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 FD 00 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 FD 00 01 06 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [00:25:29]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:25:30]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 90 00 [00:25:30]wFMCommunicate OK [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 17 00 00 [00:25:30]Write to MH i2c: E2 08 00 02 06 80 17 00 00 00 00 00 00 88 [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 DE 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 DE 00 02 06 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 67 [00:25:30]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:31]wFMCommunicate OK [00:25:31]SAM_PROTO_GetFMData done [00:25:31]requested_item fm.sale_refund.total is exist - process it [00:25:31]requested_item fm.buy.total is exist - process it [00:25:31]requested_item shift.sale.total is exist - process it [00:25:31]SAM_PROTO_GetShiftData [00:25:31]wFMCommunicate request_size=4 [00:25:31]MH_SAM_APDU [00:25:31]CAPDU: 80 13 02 00 [00:25:31]Write to MH i2c: E2 08 00 03 06 80 13 02 00 00 00 00 00 87 [00:25:31]Write i2c OK [00:25:31]MH_I2C_Read... [00:25:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:31]Read from MH i2c: E2 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 FD 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 FD 00 03 06 00 B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 70 EC DD 01 72 04 03 00 E4 AF 9A 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 43 31 43 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 64 99 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 3C [00:25:31]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 70 EC DD 01 72 04 03 00 E4 AF 9A 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 43 31 43 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 64 99 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:32]wFMCommunicate OK [00:25:32]wFMCommunicate request_size=4 [00:25:32]MH_SAM_APDU [00:25:32]CAPDU: 80 17 00 00 [00:25:32]Write to MH i2c: E2 08 00 04 06 80 17 00 00 00 00 00 00 8A [00:25:32]Write i2c OK [00:25:32]MH_I2C_Read... [00:25:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:32]Read from MH i2c: E2 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: E2 FD 00 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: E2 FD 00 04 06 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 A3 [00:25:32]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:25:33]wFMCommunicate OK [00:25:33]wFMCommunicate request_size=4 [00:25:33]MH_SAM_APDU [00:25:33]CAPDU: 80 17 00 00 [00:25:33]Write to MH i2c: E2 08 00 05 06 80 17 00 00 00 00 00 00 8B [00:25:33]Write i2c OK [00:25:33]MH_I2C_Read... [00:25:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:33]Read from MH i2c: E2 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: E2 FD 00 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: E2 FD 00 05 06 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 44 [00:25:33]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:25:33]wFMCommunicate OK [00:25:33]wFMCommunicate request_size=4 [00:25:33]MH_SAM_APDU [00:25:33]CAPDU: 80 17 00 00 [00:25:33]Write to MH i2c: E2 08 00 06 06 80 17 00 00 00 00 00 00 8C [00:25:33]Write i2c OK [00:25:33]MH_I2C_Read... [00:25:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:34]Read from MH i2c: E2 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 FD 00 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 FD 00 06 06 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 04 [00:25:34]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:34]wFMCommunicate OK [00:25:34]wFMCommunicate request_size=4 [00:25:34]MH_SAM_APDU [00:25:34]CAPDU: 80 17 00 00 [00:25:34]Write to MH i2c: E2 08 00 07 06 80 17 00 00 00 00 00 00 8D [00:25:34]Write i2c OK [00:25:34]MH_I2C_Read... [00:25:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:25:35]Read from MH i2c: E2 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: E2 CE 00 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: E2 CE 00 07 06 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 72 [00:25:35]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 OFD Sender: No OFD packet to send [00:25:35]09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:35]wFMCommunicate OK [00:25:35]SAM_PROTO_GetShiftData done [00:25:35]requested_item shift.sale.total_cash is exist - process it [00:25:35]requested_item shift.sale_refund.total is exist - process it [00:25:35]requested_item shift.sale_refund.total_cash is exist - process it [00:25:35]requested_item shift.buy.total is exist - process it [00:25:35]requested_item shift.buy.total_cash is exist - process it [00:25:35]produce_requested_data done [00:25:35]produce_requested_data return {"fm.sale.total":171480159.86,"fm.sale_refund.total":67222.00,"fm.buy.total":0.00,"shift.sale.total":414587.72,"shift.sale.total_cash":313212.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:35]process_action_free get_value [00:25:35]json_value_free [00:25:35]json_value_free done [00:25:35]process_json_proto returns [00:25:35]Send response to host [00:25:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":171480159.86,"fm.sale_refund.total":67222.00,"fm.buy.total":0.00,"shift.sale.total":414587.72,"shift.sale.total_cash":313212.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:35]free response buf [00:25:35]execute_script done [00:25:35]execute_script returns [00:25:35]free content buf [00:25:35]Sock 9.Close socket [00:25:35]Sock 9.Thread stoped [00:25:35]accept exits with 10 [00:25:35]New connection [00:25:35]New thread 3067362660 created [00:25:35]Thread 3067506020 joined [00:25:35]Waiting for new connection... [00:25:35] Sock 10.Parse request [00:25:35]Sock 10.Check first char [00:25:35]Sock 10.First char is OK [00:25:35]request: POST /json_proto HTTP/1.0 [00:25:35]Method: POST [00:25:35]URL: /json_proto [00:25:35]Method is POST - this is cgi request [00:25:35]url: /json_proto [00:25:35]query_string will be loaded in cgi processing [00:25:35]execute_cgi json_proto POST (null) [00:25:35]execute_cgi path=json_proto method=POST [00:25:35]POST find Content-Length [00:25:35]Host: 172.17.40.195:8080 [00:25:35]Content-Length: 285 [00:25:35]Content-Type: application/json [00:25:35] [00:25:35]POST finish read [00:25:35]Found Content-Length = 285 [00:25:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0435\u043C\u0438\u0440\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:35]execute_script... [00:25:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0435\u043C\u0438\u0440\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:35]POST & json_proto [00:25:35]process_json_proto [00:25:35]json parsed OK: [00:25:35]protocol is kg_v1.0 [00:25:35]action value=close_shift [00:25:35]process_action close_shift [00:25:35]cmd_close_shift [00:25:35]MH_GetDate [00:25:35]Write to MH i2c: F0 00 00 08 06 FD [00:25:35]Write i2c OK [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: F0 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: F0 09 00 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: F0 09 00 08 06 00 00 DA 1E 67 D5 8D 6C 64 97 [00:25:35]GetLastDocTimeStamp 1730075083 [00:25:35]current date 1730075136 [00:25:35]FM_GetShiftState [00:25:35]SAM_PROTO_GetShiftState [00:25:35]wFMCommunicate request_size=4 [00:25:35]MH_SAM_APDU [00:25:35]CAPDU: 80 13 01 00 [00:25:35]Write to MH i2c: E2 08 00 09 06 80 13 01 00 00 00 00 00 8C [00:25:35]Write i2c OK [00:25:35]MH_I2C_Read... [00:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:35]Read from MH i2c: E2 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: E2 0E 00 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: E2 0E 00 09 06 00 09 00 01 5F 89 1D 67 00 00 00 00 90 00 04 [00:25:35]RAPDU: 09 00 01 5F 89 1D 67 00 00 00 00 90 00 [00:25:35]wFMCommunicate OK [00:25:35]SAM_PROTO_GetShiftState done [00:25:35]FM_GetShiftState done [00:25:35]KKMCreateCloseShiftDocument [00:25:35]Load OK [00:25:35]Malloc new data [00:25:35]MH_GetDate [00:25:35]Write to MH i2c: F0 00 00 0A 06 FF [00:25:35]Write i2c OK [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: F0 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: F0 09 00 [00:25:35]MH_I2C_Read... [00:25:35]Read from MH i2c: F0 09 00 0A 06 00 00 DA 1E 67 D5 8D 6C 64 99 [00:25:35]Malloc new data [00:25:35]Malloc new data [00:25:35]Malloc new data [00:25:35]Malloc new data [00:25:35]KKMCreateCloseShiftDocument OK [00:25:35]KKMSetCloseShiftData OK [00:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=80 [00:25:35]tlvbuf is 008531B0 [00:25:35]KKMLoadAndSignCloseShiftData [00:25:35]SAM_PROTO_ProcessDocument [00:25:35]wFMCommunicate request_size=9 [00:25:35]MH_SAM_APDU [00:25:35]CAPDU: 80 15 01 00 04 05 00 50 00 [00:25:35]Write to MH i2c: E2 0C 00 0B 06 80 15 01 00 04 00 05 00 50 00 00 00 ED [00:25:36]Write i2c OK [00:25:36]MH_I2C_Read... [00:25:36]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:25:36]Read from MH i2c: E2 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 03 00 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 03 00 0B 06 00 90 00 85 [00:25:36]RAPDU: 90 00 [00:25:36]wFMCommunicate OK [00:25:36]wFMCommunicate request_size=23 [00:25:36]MH_SAM_APDU [00:25:36]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:25:36]Write to MH i2c: E2 1A 00 0C 06 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 87 [00:25:36]Write i2c OK [00:25:36]MH_I2C_Read... [00:25:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:36]Read from MH i2c: E2 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 03 00 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 03 00 0C 06 00 90 00 86 [00:25:36]RAPDU: 90 00 [00:25:36]wFMCommunicate OK [00:25:36]wFMCommunicate request_size=39 [00:25:36]MH_SAM_APDU [00:25:36]CAPDU: 80 15 02 00 22 FD 03 1E 00 D0 A2 D0 B5 D0 BC D0 B8 D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 AD 2E 20 [00:25:36]Write to MH i2c: E2 2A 00 0D 06 80 15 02 00 22 00 FD 03 1E 00 D0 A2 D0 B5 D0 BC D0 B8 D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 AD 2E 20 00 00 73 [00:25:36]Write i2c OK [00:25:36]MH_I2C_Read... [00:25:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:36]Read from MH i2c: E2 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 03 00 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 03 00 0D 06 00 90 00 87 [00:25:36]RAPDU: 90 00 [00:25:36]wFMCommunicate OK [00:25:36]wFMCommunicate request_size=13 [00:25:36]MH_SAM_APDU [00:25:36]CAPDU: 80 15 02 00 08 F4 03 04 00 00 DA 1E 67 [00:25:36]Write to MH i2c: E2 10 00 0E 06 80 15 02 00 08 00 F4 03 04 00 00 DA 1E 67 00 00 FE [00:25:36]Write i2c OK [00:25:36]MH_I2C_Read... [00:25:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:36]Read from MH i2c: E2 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 03 00 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 03 00 0E 06 00 90 00 88 [00:25:36]RAPDU: 90 00 [00:25:36]wFMCommunicate OK [00:25:36]wFMCommunicate request_size=25 [00:25:36]MH_SAM_APDU [00:25:36]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 [00:25:36]Write to MH i2c: E2 1C 00 0F 06 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 00 00 F9 [00:25:36]Write i2c OK [00:25:36]MH_I2C_Read... [00:25:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:36]Read from MH i2c: E2 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 03 00 [00:25:36]MH_I2C_Read... [00:25:36]Read from MH i2c: E2 03 00 0F 06 00 90 00 89 [00:25:36]RAPDU: 90 00 [00:25:36]wFMCommunicate OK [00:25:36]wFMCommunicate request_size=4 [00:25:36]MH_SAM_APDU [00:25:36]CAPDU: 80 15 03 00 [00:25:36]Write to MH i2c: E2 08 00 10 06 80 15 03 00 00 00 00 00 97 [00:25:36]Write i2c OK [00:25:36]MH_I2C_Read... [00:25:37]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:25:37]Read from MH i2c: E2 [00:25:37]MH_I2C_Read... [00:25:37]Read from MH i2c: E2 FD 00 [00:25:37]MH_I2C_Read... [00:25:37]Read from MH i2c: E2 FD 00 10 06 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D3 39 02 00 0E 04 04 00 21 02 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 70 EC DD 01 72 04 03 00 E4 AF 9A 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 43 31 43 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 64 99 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 66 [00:25:37]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D3 39 02 00 0E 04 04 00 21 02 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 70 EC DD 01 72 04 03 00 E4 AF 9A 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 43 31 43 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 64 99 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:25:37]wFMCommunicate OK [00:25:37]SAM_PROTO_ProcessDocument answer len = 1268 [00:25:37]SAM_PROTO_ProcessDocument remain to read = 1020 [00:25:37]wFMCommunicate request_size=4 [00:25:37]MH_SAM_APDU [00:25:37]CAPDU: 80 17 00 00 [00:25:37]Write to MH i2c: E2 08 00 11 06 80 17 00 00 00 00 00 00 97 [00:25:38]Write i2c OK [00:25:38]MH_I2C_Read... [00:25:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:38]Read from MH i2c: E2 [00:25:38]MH_I2C_Read... [00:25:38]Read from MH i2c: E2 FD 00 [00:25:38]MH_I2C_Read... [00:25:38]Read from MH i2c: E2 FD 00 11 06 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 EB [00:25:38]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [00:25:38]wFMCommunicate OK [00:25:38]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:38]SAM_PROTO_ProcessDocument remain to read = 770 [00:25:38]wFMCommunicate request_size=4 [00:25:38]MH_SAM_APDU [00:25:38]CAPDU: 80 17 00 00 [00:25:38]Write to MH i2c: E2 08 00 12 06 80 17 00 00 00 00 00 00 98 [00:25:38]Write i2c OK [00:25:38]MH_I2C_Read... [00:25:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:39]Read from MH i2c: E2 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 FD 00 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 FD 00 12 06 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 FA [00:25:39]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:25:39]wFMCommunicate OK [00:25:39]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:39]SAM_PROTO_ProcessDocument remain to read = 520 [00:25:39]wFMCommunicate request_size=4 [00:25:39]MH_SAM_APDU [00:25:39]CAPDU: 80 17 00 00 [00:25:39]Write to MH i2c: E2 08 00 13 06 80 17 00 00 00 00 00 00 99 [00:25:39]Write i2c OK [00:25:39]MH_I2C_Read... [00:25:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:40]Read from MH i2c: E2 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: E2 FD 00 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: E2 FD 00 13 06 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 OFD Sender: No OFD packet to send [00:25:40]04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 21 [00:25:40]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [00:25:40]wFMCommunicate OK [00:25:40]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:40]SAM_PROTO_ProcessDocument remain to read = 270 [00:25:40]wFMCommunicate request_size=4 [00:25:40]MH_SAM_APDU [00:25:40]CAPDU: 80 17 00 00 [00:25:40]Write to MH i2c: E2 08 00 14 06 80 17 00 00 00 00 00 00 9A [00:25:40]Write i2c OK [00:25:40]MH_I2C_Read... [00:25:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:41]Read from MH i2c: E2 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 FD 00 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 FD 00 14 06 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 64 [00:25:41]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:25:41]wFMCommunicate OK [00:25:41]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:41]SAM_PROTO_ProcessDocument remain to read = 20 [00:25:41]wFMCommunicate request_size=4 [00:25:41]MH_SAM_APDU [00:25:41]CAPDU: 80 17 00 00 [00:25:41]Write to MH i2c: E2 08 00 15 06 80 17 00 00 00 00 00 00 9B [00:25:41]Write i2c OK [00:25:41]MH_I2C_Read... [00:25:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:25:41]Read from MH i2c: E2 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 17 00 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 17 00 15 06 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 A1 18 CC 28 8E E7 90 00 FE [00:25:41]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 A1 18 CC 28 8E E7 90 00 [00:25:41]wFMCommunicate OK [00:25:41]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:25:41]SAM_PROTO_ProcessDocument done [00:25:41]1209 (1) - 1.0 - номер версии ФФД [00:25:42]1041 (16) - 0000000000871745 - номер ФМ [00:25:42]1040 (4) - 145875 - номер ФД [00:25:42]1038 (4) - 545 - номер смены [00:25:42]1118 (4) - 297 - количество кассовых чеков за смену [00:25:42]1111 (4) - 299 - общее количество ФД за смену [00:25:42]1194 (1197) - счетчики итогов смены [00:25:42] 1134 (4) - 297 - количество чеков со всеми признаками расчетов [00:25:42] 1129 (158) - счетчики операций «приход» [00:25:42] 1135 (4) - 297 - количество чеков по признаку расчетов [00:25:42] 1201 (4) - 414587.72 - общая итоговая сумма в чеках [00:25:42] 1136 (4) - 313212.00 - итоговая сумма в чеках наличными [00:25:42] 1138 (3) - 101375.72 - итоговая сумма в чеках безналичными [00:25:42] 1024 (123) - суммы налогов [00:25:42] 1006 (9) - суммы НДС [00:25:42] 1010 (1) - 0% - код ставки НДС [00:25:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:42] 1006 (12) - суммы НДС [00:25:42] 1010 (1) - 12% - код ставки НДС [00:25:42] 1011 (3) - 44035.23 - сумма НДС по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 0% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (12) - суммы НСП [00:25:42] 1014 (1) - 1% - код ставки НСП [00:25:42] 1015 (3) - 3669.48 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 2% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 3% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 5% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 0,50% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 1,50% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1130 (141) - счетчики операций «возврат прихода» [00:25:42] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:42] 1024 (117) - суммы налогов [00:25:42] 1006 (9) - суммы НДС [00:25:42] 1010 (1) - 0% - код ставки НДС [00:25:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:42] 1006 (9) - суммы НДС [00:25:42] 1010 (1) - 12% - код ставки НДС [00:25:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 0% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 1% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 2% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 3% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 5% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 0,50% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 1,50% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1131 (141) - счетчики операций «расход» [00:25:42] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:42] 1024 (117) - суммы налогов [00:25:42] 1006 (9) - суммы НДС [00:25:42] 1010 (1) - 0% - код ставки НДС [00:25:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:42] 1006 (9) - суммы НДС [00:25:42] 1010 (1) - 12% - код ставки НДС [00:25:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 0% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 1% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 2% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 3% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 5% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 0,50% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 1,50% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1132 (141) - счетчики операций «возврат расхода» [00:25:42] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:42] 1024 (117) - суммы налогов [00:25:42] 1006 (9) - суммы НДС [00:25:42] 1010 (1) - 0% - код ставки НДС [00:25:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:42] 1006 (9) - суммы НДС [00:25:42] 1010 (1) - 12% - код ставки НДС [00:25:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 0% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 1% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 2% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 3% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 5% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 0,50% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1007 (9) - суммы НСП [00:25:42] 1014 (1) - 1,50% - код ставки НСП [00:25:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:42] 1133 (588) - - счетчики коррекции - не используются [00:25:42]1077 (6) - 177127876497127 - ФПД [00:25:42]SetTLVBufToDocument [00:25:42]Processing tag 1209 (04B9) [00:25:42]Malloc new data [00:25:42]Processing tag 1041 (0411) [00:25:42]Processing tag 1040 (0410) [00:25:42]Malloc new data [00:25:42]Processing tag 1038 (040E) [00:25:42]Malloc new data [00:25:42]Processing tag 1118 (045E) [00:25:42]Malloc new data [00:25:42]Processing tag 1111 (0457) [00:25:42]Malloc new data [00:25:42]Processing tag 1194 (04AA) [00:25:42]Load OK [00:25:42]SetTLVBufToDocument [00:25:42]Processing tag 1134 (046E) [00:25:42]Malloc new data [00:25:42]Processing tag 1129 (0469) [00:25:42]Load OK [00:25:42]SetTLVBufToDocument [00:25:42]Processing tag 1135 (046F) [00:25:42]Malloc new data [00:25:42]Processing tag 1201 (04B1) [00:25:42]Malloc new data [00:25:42]Processing tag 1136 (0470) [00:25:42]Malloc new data [00:25:42]Processing tag 1138 (0472) [00:25:42]Malloc new data [00:25:42]Processing tag 1024 (0400) [00:25:42]Load OK [00:25:42]SetTLVBufToDocument [00:25:42]Processing tag 1006 (03EE) [00:25:42]Load OK [00:25:42]SetTLVBufToDocument [00:25:42]Processing tag 1010 (03F2) [00:25:42]Malloc new data [00:25:42]Processing tag 1011 (03F3) [00:25:42]Malloc new data [00:25:42]SetTLVBufToDocument err=0 [00:25:42]Processing tag 1006 (03EE) [00:25:42]Load OK [00:25:42]SetTLVBufToDocument [00:25:42]Processing tag 1010 (03F2) [00:25:43]Malloc new data [00:25:43]Processing tag 1011 (03F3) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]SetTLVBufToDocument err=0 [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1130 (046A) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1135 (046F) [00:25:43]Malloc new data [00:25:43]Processing tag 1201 (04B1) [00:25:43]Malloc new data [00:25:43]Processing tag 1136 (0470) [00:25:43]Malloc new data [00:25:43]Processing tag 1138 (0472) [00:25:43]Malloc new data [00:25:43]Processing tag 1024 (0400) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1006 (03EE) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1010 (03F2) [00:25:43]Malloc new data [00:25:43]Processing tag 1011 (03F3) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1006 (03EE) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1010 (03F2) [00:25:43]Malloc new data [00:25:43]Processing tag 1011 (03F3) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]SetTLVBufToDocument err=0 [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1131 (046B) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1135 (046F) [00:25:43]Malloc new data [00:25:43]Processing tag 1201 (04B1) [00:25:43]Malloc new data [00:25:43]Processing tag 1136 (0470) [00:25:43]Malloc new data [00:25:43]Processing tag 1138 (0472) [00:25:43]Malloc new data [00:25:43]Processing tag 1024 (0400) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1006 (03EE) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1010 (03F2) [00:25:43]Malloc new data [00:25:43]Processing tag 1011 (03F3) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1006 (03EE) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1010 (03F2) [00:25:43]Malloc new data [00:25:43]Processing tag 1011 (03F3) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]SetTLVBufToDocument err=0 [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1132 (046C) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1135 (046F) [00:25:43]Malloc new data [00:25:43]Processing tag 1201 (04B1) [00:25:43]Malloc new data [00:25:43]Processing tag 1136 (0470) [00:25:43]Malloc new data [00:25:43]Processing tag 1138 (0472) [00:25:43]Malloc new data [00:25:43]Processing tag 1024 (0400) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1006 (03EE) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1010 (03F2) [00:25:43]Malloc new data [00:25:43]Processing tag 1011 (03F3) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1006 (03EE) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1010 (03F2) [00:25:43]Malloc new data [00:25:43]Processing tag 1011 (03F3) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1007 (03EF) [00:25:43]Load OK [00:25:43]SetTLVBufToDocument [00:25:43]Processing tag 1014 (03F6) [00:25:43]Malloc new data [00:25:43]Processing tag 1015 (03F7) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]SetTLVBufToDocument err=0 [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1133 (046D) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Processing tag 1077 (0435) [00:25:43]Malloc new data [00:25:43]SetTLVBufToDocument err=0 [00:25:43]Malloc new data [00:25:43]SAM_PROTO_GetFMData [00:25:43]wFMCommunicate request_size=4 [00:25:43]MH_SAM_APDU [00:25:43]CAPDU: 80 13 03 00 [00:25:43]Write to MH i2c: E2 08 00 16 06 80 13 03 00 00 00 00 00 9B [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:43]Read from MH i2c: E2 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 FD 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 FD 00 16 06 00 C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 20 [00:25:44]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 [00:25:44]wFMCommunicate OK [00:25:44]wFMCommunicate request_size=4 [00:25:44]MH_SAM_APDU [00:25:44]CAPDU: 80 17 00 00 [00:25:44]Write to MH i2c: E2 08 00 17 06 80 17 00 00 00 00 00 00 9D [00:25:44]Write i2c OK [00:25:44]MH_I2C_Read... [00:25:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:44]Read from MH i2c: E2 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 FD 00 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 FD 00 17 06 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 18 [00:25:45]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:25:45]04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:45]wFMCommunicate OK [00:25:45]wFMCommunicate request_size=4 [00:25:45]MH_SAM_APDU [00:25:45]CAPDU: 80 17 00 00 [00:25:45]Write to MH i2c: E2 08 00 18 06 80 17 00 00 00 00 00 00 9E [00:25:45]Write i2c OK [00:25:45]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 FD 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 FD 00 18 06 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 3E [00:25:46]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:25:46]wFMCommunicate OK [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 17 00 00 [00:25:46]Write to MH i2c: E2 08 00 19 06 80 17 00 00 00 00 00 00 9F [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:47]Read from MH i2c: E2 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 19 06 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 24 [00:25:47]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:47]wFMCommunicate OK [00:25:47]wFMCommunicate request_size=4 [00:25:47]MH_SAM_APDU [00:25:47]CAPDU: 80 17 00 00 [00:25:47]Write to MH i2c: E2 08 00 1A 06 80 17 00 00 00 00 00 00 A0 [00:25:47]Write i2c OK [00:25:47]MH_I2C_Read... [00:25:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:25:48]Read from MH i2c: E2 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 DE 00 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 DE 00 1A 06 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [00:25:48]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:48]wFMCommunicate OK [00:25:48]SAM_PROTO_GetFMData done [00:25:48]Malloc new data [00:25:48]Malloc new data [00:25:48]Malloc new data [00:25:48]Malloc new data [00:25:48]KKMLoadAndSignCloseShiftData err=0 [00:25:48]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Темирбек уулу Э. 28.10.2024 00:25 Смена: 545 РНМ: 0000000000091683 ЗНМ: 0300000085 СНО: Общий режим Чеков за смену: 297 ФД за смену: 299 Всего чеков: 297 ИТОГИ ПРИХОД Чеков: 297 Общий итог: 414587.72 Итого наличными: 313212.00 Итого безнал.: 101375.72 НДС 0% : 0.00 НДС 12% : 44035.23 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3669.48 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 313212.00 НС Приход: 171480159.86 НС Возвр.Прихода: 67222.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 145875 ФМ: 0000000000871745 ФПД: 177127876497127 [00:25:48]StoreToDocumentArchive [00:25:48]shift 545 fd 145875 [00:25:48]save to /storage/0545/doc_00145875 [00:25:48]save last doc name /storage/0545/doc_00145875 to /storage/kkm_last_doc_name [00:25:48]save OK [00:25:48]Clear old archive folders... [00:25:48]Remove dir /storage/0522 [00:25:48]opendir ok [00:25:48]file . [00:25:48]file .. [00:25:48]file doc_1730075092 [00:25:48]remove file /storage/0522/doc_1730075092 [00:25:48]remove dir /storage/0522 [00:25:48]NVStorageSaveData kkm_registers [00:25:48]File name is /storage/kkm_registers [00:25:48]Write 24 bytes [00:25:48]NVStorageSaveData done [00:25:48]NVStorageSaveData kkm_registers [00:25:48]File name is /storage/kkm_registers [00:25:48]Write 24 bytes [00:25:48]NVStorageSaveData done [00:25:48]ProcessDocumentItem done err = 0, tmpTLVsize=1391 [00:25:48]tlvbuf is 008AFE20 [00:25:48]SAM_PROTO_ClearQueue [00:25:48]wFMCommunicate request_size=4 [00:25:48]MH_SAM_APDU [00:25:48]CAPDU: 80 09 00 00 [00:25:48]Write to MH i2c: E2 08 00 1B 06 80 09 00 00 00 00 00 00 93 [00:25:48]Write i2c OK [00:25:48]MH_I2C_Read... [00:25:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:48]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 03 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 03 00 1B 06 00 90 00 95 [00:25:49]RAPDU: 90 00 [00:25:49]wFMCommunicate OK [00:25:49]SAM_PROTO_ClearQueue done [00:25:49]KKMCreateOFDPacket [00:25:49]OFDProtocolAddRootSTLVToBuf [00:25:49]FM_MakeSignedData [00:25:49]FM_MakeSignedData [00:25:49]SAM_PROTO_SignData [00:25:49]wFMCommunicate request_size=4 [00:25:49]MH_SAM_APDU [00:25:49]CAPDU: 80 0D 01 02 [00:25:49]Write to MH i2c: E2 08 00 1C 06 80 0D 01 02 00 00 00 00 9B [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:49]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 03 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 03 00 1C 06 00 90 00 96 [00:25:49]RAPDU: 90 00 [00:25:49]wFMCommunicate OK [00:25:49]wFMCommunicate request_size=255 [00:25:49]MH_SAM_APDU [00:25:49]CAPDU: 80 0D 02 02 FA 05 00 6F 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 1E 00 D0 A2 D0 B5 D0 BC D0 B8 D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 AD 2E 20 F4 03 04 00 00 DA 1E 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 D8 04 6E 04 04 00 29 01 00 00 69 04 A5 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 70 EC DD 01 72 04 03 00 E4 AF 9A 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 43 31 43 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 [00:25:49]Write to MH i2c: E2 02 01 1D 06 80 0D 02 02 FA 00 05 00 6F 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 1E 00 D0 A2 D0 B5 D0 BC D0 B8 D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 AD 2E 20 F4 03 04 00 00 DA 1E 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 D8 04 6E 04 04 00 29 01 00 00 69 04 A5 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 70 EC DD 01 72 04 03 00 E4 AF 9A 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 43 31 43 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 00 00 5E [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 1D 06 00 90 00 97 [00:25:50]RAPDU: 90 00 [00:25:50]wFMCommunicate OK [00:25:50]wFMCommunicate request_size=255 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 0D 02 02 FA 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 64 99 05 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 OFD Sender: No OFD packet to send [00:25:50]00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 [00:25:50]Write to MH i2c: E2 02 01 1E 06 80 0D 02 02 FA 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 64 99 05 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 00 00 17 [00:25:51]Write i2c OK [00:25:51]MH_I2C_Read... [00:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:51]Read from MH i2c: E2 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 03 00 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 03 00 1E 06 00 90 00 98 [00:25:51]RAPDU: 90 00 [00:25:51]wFMCommunicate OK [00:25:51]wFMCommunicate request_size=255 [00:25:51]MH_SAM_APDU [00:25:51]CAPDU: 80 0D 02 02 FA 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:25:51]Write to MH i2c: E2 02 01 1F 06 80 0D 02 02 FA 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 00 5D [00:25:52]Write i2c OK [00:25:52]MH_I2C_Read... [00:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:52]Read from MH i2c: E2 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 03 00 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 03 00 1F 06 00 90 00 99 [00:25:52]RAPDU: 90 00 [00:25:52]wFMCommunicate OK [00:25:52]wFMCommunicate request_size=255 [00:25:52]MH_SAM_APDU [00:25:52]CAPDU: 80 0D 02 02 FA 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:25:52]Write to MH i2c: E2 02 01 20 06 80 0D 02 02 FA 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 66 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 20 06 00 90 00 9A [00:25:53]RAPDU: 90 00 [00:25:53]wFMCommunicate OK [00:25:53]wFMCommunicate request_size=255 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:25:54]Write to MH i2c: E2 02 01 21 06 80 0D 02 02 FA 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 00 2E [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:54]Read from MH i2c: E2 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 03 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 03 00 21 06 00 90 00 9B [00:25:54]RAPDU: 90 00 [00:25:54]wFMCommunicate OK [00:25:54]wFMCommunicate request_size=150 [00:25:54]MH_SAM_APDU [00:25:54]CAPDU: 80 0D 02 02 91 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D3 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 35 04 06 00 A1 18 CC 28 8E E7 [00:25:55]Write to MH i2c: E2 99 00 22 06 80 0D 02 02 91 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 D3 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 35 04 06 00 A1 18 CC 28 8E E7 00 00 18 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 03 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 03 00 22 06 00 90 00 9C [00:25:55]RAPDU: 90 00 [00:25:55]wFMCommunicate OK [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 0D 03 02 [00:25:55]Write to MH i2c: E2 08 00 23 06 80 0D 03 02 00 00 00 00 A4 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 0B 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 0B 00 23 06 00 29 64 11 30 AB E9 E9 D1 90 00 C1 [00:25:55]RAPDU: 29 64 11 30 AB E9 E9 D1 90 00 [00:25:55]wFMCommunicate OK [00:25:55]SAM_PROTO_SignData done [00:25:55]FM_MakeSignedData done [00:25:55]CreateOFDProtocolMessage [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 11 00 00 [00:25:55]Write to MH i2c: E2 08 00 24 06 80 11 00 00 00 00 00 00 A4 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]OFD Sender: No OFD packet to send [00:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 17 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 17 00 24 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F7 [00:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:25:55]wFMCommunicate OK [00:25:55]CreateOFDProtocolMessage done [00:25:55]OFDSenderStorePacket 145875 [00:25:55]StoreOFDPacket docnum=145875 [00:25:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 83 05 00 00 AC B3 7B 05 92 12 5A 05 01 00 05 00 6F 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 1E 00 D0 A2 D0 B5 D0 BC D0 B8 D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 AD 2E 20 F4 03 04 00 00 DA 1E 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 D8 04 6E 04 04 00 29 01 00 00 69 04 A5 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 70 EC DD 01 72 04 03 00 E4 AF 9A 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 43 31 43 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 64 99 05 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 D3 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 35 04 06 00 A1 18 CC 28 8E E7 29 64 11 30 AB E9 E9 D1 [00:25:56]CheckFolder [00:25:56]dirname=/storage/ofd_packets [00:25:56]CheckFolder done [00:25:56]ProducePacketName [00:25:56]name=ofd_packets/00145875 [00:25:56]NVStorageSaveData ofd_packets/00145875 [00:25:56]File name is /storage/ofd_packets/00145875 [00:25:56]Write 1441 bytes [00:25:56]NVStorageSaveData done [00:25:56]OFDSenderStorePacket done [00:25:56]KKMCreateOFDPacket done [00:25:56]NVStorageSaveData kkm_last_timestamp [00:25:56]File name is /storage/kkm_last_timestamp [00:25:56]Write 4 bytes [00:25:56]NVStorageSaveData done [00:25:56]ExternCall_PrintAddStr [00:25:56]wPrintStart [00:25:56]Write to MH i2c: 01 00 00 25 06 2B [00:25:56]Write i2c OK [00:25:56]MH_I2C_Read... [00:25:56]OFD Sender: Processing packet 145875 [packets to send 206, broken 205] [00:25:56]ProducePacketName [00:25:56]name=ofd_packets/00145875 [00:25:56]OFD Sender: To server: pG, [00:25:56]CommunicateWithHost lk.salyk.kg:30040 [00:25:56]ConnectInit lk.salyk.kg [00:25:56]Read from MH i2c: 01 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: 01 07 00 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 FF 0F 40 [00:25:56]RasterBufferAndPrint [00:25:56]line Отчет о закрытии смены [00:25:56]line ФФД: 1.0 [00:25:56]line ИНН: 02508201610067 [00:25:56]line Кассир: Темирбек уулу Э. [00:25:56]line 28.10.2024 00:25 [00:25:56]line Смена: 545 [00:25:56]line РНМ: 0000000000091683 [00:25:56]line ЗНМ: 0300000085 [00:25:56]line СНО: Общий режим [00:25:56]line Чеков за смену: 297 [00:25:56]line ФД за смену: 299 [00:25:56]line Всего чеков: 297 [00:25:56]line ИТОГИ ПРИХОД [00:25:56]line Чеков: 297 [00:25:56]line Общий итог: 414587.72 [00:25:56]line Итого наличными: 313212.00 [00:25:56]line Итого безнал.: 101375.72 [00:25:56]line НДС 0% : 0.00 [00:25:56]line НДС 12% : 44035.23 [00:25:56]line НСП 0% : 0.00 [00:25:56]line НСП 1,50% : 0.00 [00:25:56]line НСП 0,50% : 0.00 [00:25:56]line НСП 5% : 0.00 [00:25:56]line НСП 3% : 0.00 [00:25:56]line НСП 2% : 0.00 [00:25:56]line НСП 1% : 3669.48 [00:25:56]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:25:56]line Чеков: 0 [00:25:56]line Общий итог: 0.00 [00:25:56]line Итого наличными: 0.00 [00:25:56]line Итого безнал.: 0.00 [00:25:56]line НДС 0% : 0.00 [00:25:56]line НДС 12% : 0.00 [00:25:56]line НСП 0% : 0.00 [00:25:56]line НСП 1,50% : 0.00 [00:25:56]line НСП 0,50% : 0.00 [00:25:56]line НСП 5% : 0.00 [00:25:56]line НСП 3% : 0.00 [00:25:56]line НСП 2% : 0.00 [00:25:56]line НСП 1% : 0.00 [00:25:56]line ИТОГИ РАСХОД [00:25:56]line Чеков: 0 [00:25:56]line Общий итог: 0.00 [00:25:56]line Итого наличными: 0.00 [00:25:56]line Итого безнал.: 0.00 [00:25:56]line НДС 0% : 0.00 [00:25:56]line НДС 12% : 0.00 [00:25:56]line НСП 0% : 0.00 [00:25:56]line НСП 1,50% : 0.00 [00:25:56]line НСП 0,50% : 0.00 [00:25:56]line НСП 5% : 0.00 [00:25:56]line НСП 3% : 0.00 [00:25:56]line НСП 2% : 0.00 [00:25:56]line НСП 1% : 0.00 [00:25:56]line ИТОГИ ВОЗВРАТ РАСХОДА [00:25:56]line Чеков: 0 [00:25:56]line Общий итог: 0.00 [00:25:56]line Итого наличными: 0.00 [00:25:56]line Итого безнал.: 0.00 [00:25:56]line НДС 0% : 0.00 [00:25:56]line НДС 12% : 0.00 [00:25:56]line НСП 0% : 0.00 [00:25:56]line НСП 1,50% : 0.00 [00:25:56]line НСП 0,50% : 0.00 [00:25:56]line НСП 5% : 0.00 [00:25:56]line НСП 3% : 0.00 [00:25:56]line НСП 2% : 0.00 [00:25:56]line НСП 1% : 0.00 [00:25:56]line Сумма внесений: 0.00 [00:25:56]line Сумма выплат: 0.00 [00:25:56]line Нал. в кассе: 313212.00 [00:25:56]line НС Приход: 171480159.86 [00:25:56]line НС Возвр.Прихода: 67222.00 [00:25:56]line НС Расход: 0.00 [00:25:56]line НС Возвр.Расхода: 0.00 [00:25:56]line ФД: 145875 [00:25:56]line ФМ: 0000000000871745 [00:25:56]line ФПД: 177127876497127 [00:25:56]written 0, free lines is 4095 [00:25:57]Write to MH i2c: 01 00 00 75 06 7B [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 07 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 39 0A C5 [00:25:57]RasterBufferAndPrint [00:25:57]line [00:25:57]line [00:25:57]line [00:25:57]line [00:25:57]line [00:25:57]written 0, free lines is 2690 [00:25:57]MH_Cut [00:25:57]Write to MH i2c: D1 01 00 7C 06 01 54 [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: D1 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: D1 01 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: D1 01 00 7C 06 00 53 [00:25:57]Write to MH i2c: 01 00 00 7D 06 83 [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:58]*** Cut start [00:25:58]*** Partial cut [00:25:58]*** CUTSNS_PIN = 1 [00:25:58]*** CUTSNS_PIN = 0 [00:25:58]*** Brake cut motor [00:25:58]Connected sock=11 [00:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 83 05 00 00 AC B3 7B 05 92 12 5A 05 01 00 05 00 6F Read from MH i2c: 05 01 B9 [00:25:59]04 MH_I2C_Read... [00:25:59]01 Read from MH i2c: 00 01 01 07 FA 00 03 [00:25:59]0E 00 30 32 35 *** Stop cut motor [00:25:59]30 *** Cut end [00:25:59]38 32 30 31 36 31 30 30 36 37 FD 03 1E 00 D0 A2 D0 B5 D0 BC D0 B8 D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB MH_I2C_Read... [00:25:59]D1 Read from MH i2c: 83 01 20 07 00 7D 06 00 00 00 D0 00 AD 00 2E FF 0F 98 [00:25:59]process_action close_shift done [00:25:59]requested_data is exist [00:25:59]produce_requested_data [00:25:59]20 requested_item fd.num is exist - process it [00:25:59]F4 SAM_PROTO_GetFieldsCounters [00:25:59]03 wFMCommunicate request_size=4 [00:25:59]MH_SAM_APDU [00:25:59]CAPDU: 80 13 00 00 04 [00:25:59]00 Write to MH i2c: 00 E2 08 00 7E 06 80 13 DA 00 1E 00 67 00 0E 00 04 00 04 00 00 00 21 [00:25:59]02 00 00 Write i2c OK [00:25:59]0D 04 10 00 MH_I2C_Read... [00:25:59]30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 D8 04 6E 04 04 00 29 01 00 00 69 04 A5 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 Read from MH i2c: 70 E2 EC [00:25:59]DD 01 MH_I2C_Read... [00:25:59]Read from MH i2c: E2 62 00 [00:25:59]MH_I2C_Read... [00:25:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:59]Read from MH i2c: E2 62 00 7E 72 06 04 00 03 5D 00 B9 04 01 00 01 00 11 E4 04 AF 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 9A 30 00 30 04 39 82 31 00 36 EE 38 03 33 0A 10 00 04 F2 03 01 00 00 F3 03 04 01 00 00 D3 00 EE 03 0C 00 F2 03 39 01 02 00 00 01 F3 03 03 00 43 31 0E 43 04 EF 04 03 0A 00 F6 03 01 00 00 00 F7 21 03 02 01 00 00 EF 03 0A 00 00 F6 00 03 12 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 04 0A 04 00 00 F6 29 01 00 00 5E 04 04 03 00 01 29 00 01 00 00 57 04 04 00 03 2B F7 01 03 00 00 19 04 04 00 00 00 00 00 90 00 D3 [00:26:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 01 04 00 10 00 00 EF 30 03 30 0A 30 00 30 F6 30 03 30 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 99 05 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 30 00 30 04 30 7E 30 00 30 EE 39 03 31 0A 36 00 38 F2 33 03 10 01 04 00 04 00 00 F3 D3 03 39 01 00 00 EE 03 02 0A 00 00 0E F2 04 03 04 01 00 00 21 01 02 F3 00 03 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [00:26:00]00 wFMCommunicate OK [00:26:00]00 SAM_PROTO_GetFieldsCounters done [00:26:00]requested_item shift.num is exist - process it [00:26:00]requested_item shift.opened is exist - process it [00:26:00]req_shift_opened [00:26:00]FM_GetShiftState [00:26:00]SAM_PROTO_GetShiftState [00:26:00]wFMCommunicate request_size=4 [00:26:00]EF MH_SAM_APDU [00:26:00]03 CAPDU: 0A 80 13 01 00 [00:26:00]Write to MH i2c: E2 00 08 F6 00 03 7F 06 80 13 01 00 00 00 01 00 00 00 00 02 F7 [00:26:00]03 01 00 Write i2c OK [00:26:00]00 MH_I2C_Read... [00:26:00]EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:00]00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 Read from MH i2c: 00 E2 04 [00:26:00]F7 03 01 00 00 EF 03 MH_I2C_Read... [00:26:00]0A Read from MH i2c: 00 E2 F6 03 01 00 03 F7 03 01 0E 00 00 00 [00:26:00]EF MH_I2C_Read... [00:26:00]03 Read from MH i2c: 0A E2 00 0E F6 00 03 7F 01 06 00 00 02 09 F7 00 03 00 01 00 00 00 00 00 EF 00 00 00 00 00 90 00 0D [00:26:01]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:01]wFMCommunicate OK [00:26:01]SAM_PROTO_GetShiftState done [00:26:01]FM_GetShiftState done [00:26:01]req_shift_opened done [00:26:01]requested_item shift.open_date is exist - process it [00:26:01]req_shift_open_date [00:26:01]FM_GetShiftState [00:26:01]SAM_PROTO_GetShiftState [00:26:01]wFMCommunicate request_size=4 [00:26:01]MH_SAM_APDU [00:26:01]CAPDU: 80 03 13 0A 01 00 00 F6 [00:26:01]03 Write to MH i2c: 01 E2 00 08 01 00 F7 80 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 06 04 80 7E 13 00 01 EE 00 03 00 0A 00 00 00 F2 00 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 03 F7 [00:26:01]03 Write i2c OK [00:26:01]MH_I2C_Read... [00:26:01]01 00 00 EF 03 0A 00 F6 03 01 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26: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 Read from MH i2c: 00 00 E2 00 [00:26:01]MH_I2C_Read... [00:26:01]04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 Read from MH i2c: 03 E2 01 0E 00 00 00 [00:26:01]EE MH_I2C_Read... [00:26:01]03 0A 00 F2 Read from MH i2c: 03 E2 01 0E 00 01 F3 03 01 00 00 EF 00 03 80 0A 06 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 09 00 00 EF 03 0A 00 F6 03 01 00 00 00 03 00 F7 00 00 00 00 00 00 90 00 0E [00:26:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:02]wFMCommunicate OK [00:26:02]SAM_PROTO_GetShiftState done [00:26:02]FM_GetShiftState done [00:26:02]req_shift_open_date done [00:26:02]produce_requested_data done [00:26:02]produce_requested_data return {"fd.num":145875,"shift.num":545,"shift.opened":0,"shift.open_date":0} [00:26:02]03 process_action_free close_shift [00:26:02]01 json_value_free [00:26:02]00 json_value_free done [00:26:02]00 process_json_proto returns [00:26:02]EF Send response to host [00:26:02]03 {"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":145875,"shift.num":545,"shift.opened":0,"shift.open_date":0}}} [00:26:02]0A free response buf [00:26:02]00 execute_script done [00:26:02]F6 execute_script returns [00:26:02]free content buf [00:26:02]Sock 10.Close socket [00:26:02]Sock 10.Thread stoped [00:26:02]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 D3 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 35 04 06 00 A1 18 CC 28 8E E7 29 64 11 30 AB E9 E9 D1 [00:26:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A6 4F 47 00 D5 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D3 39 02 00 F4 03 04 00 45 7F 1E 67 B6 04 01 00 00 17 02 93 60 6A EE 52 95 [00:26:03]CommunicateWithHost err = 0 [00:26:03]CheckOFDResponse [00:26:03]1017 (14) - 77093643461234 [00:26:03]1041 (16) - 0000000000871745 [00:26:03]1040 (4) - 145875 [00:26:03]1012 (4) - 27.10.2024 17:58 [00:26:03]1206 (1) - 0 [00:26:03]OFD Sender: Remove packet 145875 [00:26:03]ProducePacketName [00:26:03]name=ofd_packets/00145875 [00:26:03]NVStorageDeleteData [00:26:04]OFD Sender: No OFD packet to send [00:26:06]ConnectInit Can't connect to host [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:21]recv_with_timeout no data received [00:26:24]OFD Sender: No OFD packet to send [00:26:26]ConnectInit Can't connect to host [00:26:29]OFD Sender: No OFD packet to send [00:26:31]ConnectInit Can't connect to host [00:26:34]OFD Sender: No OFD packet to send [00:26:36]ConnectInit Can't connect to host [00:26:39]OFD Sender: No OFD packet to send [00:26:41]ConnectInit Can't connect to host [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:31]int [00:27:31]Write to MH i2c: 01 00 00 81 06 87 [00:27:31]*** FLAG_PRN_KEY set [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 81 06 00 08 00 00 00 FF 0F A4 [00:27:31]state=0 [00:27:31]Key pressed [00:27:31]Feed [00:27:31]Write to MH i2c: D8 00 00 82 06 5F [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: D8 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: D8 01 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: D8 01 00 82 06 00 60 [00:27:31]int line is 0 - check status [00:27:31]Write to MH i2c: 01 00 00 83 06 89 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 83 06 00 48 00 00 00 3C 00 14 [00:27:31]state=2 [00:27:31]Key pressed [00:27:31]int [00:27:31]Write to MH i2c: 01 00 00 84 06 8A [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 84 06 00 48 00 00 00 3D 00 16 [00:27:31]state=2 [00:27:31]Key pressed [00:27:31]int [00:27:31]Write to MH i2c: 01 00 00 85 06 8B [00:27:31]*** FLAG_PRN_KEY reset [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 FF 0F A0 [00:27:31]state=2 [00:27:31]Stop feed [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]accept exits with 9 [00:29:09]New connection [00:29:09]New thread 3067506020 created [00:29:09]Thread 3067362660 joined [00:29:09]Waiting for new connection... [00:29:09] Sock 9.Parse request [00:29:09]Sock 9.Check first char [00:29:09]Sock 9.First char is OK [00:29:09]request: POST /json_proto HTTP/1.0 [00:29:09]Method: POST [00:29:09]URL: /json_proto [00:29:09]Method is POST - this is cgi request [00:29:09]url: /json_proto [00:29:09]query_string will be loaded in cgi processing [00:29:09]execute_cgi json_proto POST (null) [00:29:09]execute_cgi path=json_proto method=POST [00:29:09]POST find Content-Length [00:29:09]Host: 172.17.40.195:8080 [00:29:09]Content-Length: 215 [00:29:09]Content-Type: application/json [00:29:09] [00:29:09]POST finish read [00:29:09]Found Content-Length = 215 [00:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:09]execute_script... [00:29:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:09]POST & json_proto [00:29:09]process_json_proto [00:29:09]json parsed OK: [00:29:09]protocol is kg_v1.0 [00:29:09]action value=get_value [00:29:09]process_action get_value [00:29:09]cmd_get_value [00:29:09]process_action get_value done [00:29:09]requested_data is exist [00:29:09]produce_requested_data [00:29:09]requested_item kkm.sn is exist - process it [00:29:09]requested_item kkm.ver is exist - process it [00:29:09]requested_item fm.sn is exist - process it [00:29:09]wFMCommunicate request_size=4 [00:29:09]MH_SAM_APDU [00:29:09]CAPDU: 80 11 00 00 [00:29:09]Write to MH i2c: E2 08 00 86 06 80 11 00 00 00 00 00 00 06 [00:29:09]Write i2c OK [00:29:09]MH_I2C_Read... [00:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:09]Read from MH i2c: E2 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: E2 17 00 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: E2 17 00 86 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 59 [00:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:29:09]wFMCommunicate OK [00:29:09]requested_item fd.num is exist - process it [00:29:09]SAM_PROTO_GetFieldsCounters [00:29:09]wFMCommunicate request_size=4 [00:29:09]MH_SAM_APDU [00:29:09]CAPDU: 80 13 00 00 [00:29:09]Write to MH i2c: E2 08 00 87 06 80 13 00 00 00 00 00 00 09 [00:29:09]Write i2c OK [00:29:09]MH_I2C_Read... [00:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:09]Read from MH i2c: E2 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: E2 62 00 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: E2 62 00 87 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D3 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [00:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D3 39 02 00 0E 04 04 00 21 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:09]wFMCommunicate OK [00:29:09]SAM_PROTO_GetFieldsCounters done [00:29:09]requested_item shift.num is exist - process it [00:29:09]requested_item shift.opened is exist - process it [00:29:09]req_shift_opened [00:29:09]FM_GetShiftState [00:29:09]SAM_PROTO_GetShiftState [00:29:09]wFMCommunicate request_size=4 [00:29:09]MH_SAM_APDU [00:29:09]CAPDU: 80 13 01 00 [00:29:09]Write to MH i2c: E2 08 00 88 06 80 13 01 00 00 00 00 00 0B [00:29:09]Write i2c OK [00:29:09]MH_I2C_Read... [00:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:09]Read from MH i2c: E2 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: E2 0E 00 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: E2 0E 00 88 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 16 [00:29:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:29:09]wFMCommunicate OK [00:29:09]SAM_PROTO_GetShiftState done [00:29:09]FM_GetShiftState done [00:29:09]req_shift_opened done [00:29:09]requested_item shift.open_date is exist - process it [00:29:09]req_shift_open_date [00:29:09]FM_GetShiftState [00:29:09]SAM_PROTO_GetShiftState [00:29:09]wFMCommunicate request_size=4 [00:29:09]MH_SAM_APDU [00:29:09]CAPDU: 80 13 01 00 [00:29:09]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [00:29:09]Write i2c OK [00:29:09]MH_I2C_Read... [00:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:09]Read from MH i2c: E2 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: E2 0E 00 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: E2 0E 00 89 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 17 [00:29:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:29:09]wFMCommunicate OK [00:29:09]SAM_PROTO_GetShiftState done [00:29:09]FM_GetShiftState done [00:29:09]req_shift_open_date done [00:29:09]produce_requested_data done [00:29:09]produce_requested_data return {"kkm.sn":"0300000085","kkm.ver":"001","fm.sn":"0000000000871745","fd.num":145875,"shift.num":545,"shift.opened":0,"shift.open_date":0} [00:29:09]process_action_free get_value [00:29:09]json_value_free [00:29:09]json_value_free done [00:29:09]process_json_proto returns [00:29:09]Send response to host [00:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000085","kkm.ver":"001","fm.sn":"0000000000871745","fd.num":145875,"shift.num":545,"shift.opened":0,"shift.open_date":0}}} [00:29:09]free response buf [00:29:09]execute_script done [00:29:09]execute_script returns [00:29:09]free content buf [00:29:09]Sock 9.Close socket [00:29:09]Sock 9.Thread stoped [00:29:09]accept exits with 7 [00:29:09]New connection [00:29:09]New thread 3067362660 created [00:29:09]Thread 3067506020 joined [00:29:09]Waiting for new connection... [00:29:09] Sock 7.Parse request [00:29:09]Sock 7.Check first char [00:29:09]Sock 7.First char is OK [00:29:09]request: POST /json_proto HTTP/1.0 [00:29:09]Method: POST [00:29:09]URL: /json_proto [00:29:09]Method is POST - this is cgi request [00:29:09]url: /json_proto [00:29:09]query_string will be loaded in cgi processing [00:29:09]execute_cgi json_proto POST (null) [00:29:09]execute_cgi path=json_proto method=POST [00:29:09]POST find Content-Length [00:29:09]Host: 172.17.40.195:8080 [00:29:09]Content-Length: 331 [00:29:09]Content-Type: application/json [00:29:09] [00:29:09]POST finish read [00:29:09]Found Content-Length = 331 [00:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:09]execute_script... [00:29:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:09]POST & json_proto [00:29:09]process_json_proto [00:29:09]json parsed OK: [00:29:09]protocol is kg_v1.0 [00:29:09]action value=get_value [00:29:09]process_action get_value [00:29:09]cmd_get_value [00:29:09]process_action get_value done [00:29:09]requested_data is exist [00:29:09]produce_requested_data [00:29:09]requested_item fm.sale.total is exist - process it [00:29:09]SAM_PROTO_GetFMData [00:29:09]wFMCommunicate request_size=4 [00:29:09]MH_SAM_APDU [00:29:09]CAPDU: 80 13 03 00 [00:29:09]Write to MH i2c: E2 08 00 8A 06 80 13 03 00 00 00 00 00 0F [00:29:09]Write i2c OK [00:29:09]MH_I2C_Read... [00:29:09]OFD Sender: No OFD packet to send [00:29:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:10]Read from MH i2c: E2 [00:29:10]MH_I2C_Read... [00:29:10]Read from MH i2c: E2 FD 00 [00:29:10]MH_I2C_Read... [00:29:10]Read from MH i2c: E2 FD 00 8A 06 00 C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 94 [00:29:10]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 [00:29:10]wFMCommunicate OK [00:29:10]wFMCommunicate request_size=4 [00:29:10]MH_SAM_APDU [00:29:10]CAPDU: 80 17 00 00 [00:29:10]Write to MH i2c: E2 08 00 8B 06 80 17 00 00 00 00 00 00 11 [00:29:10]Write i2c OK [00:29:10]MH_I2C_Read... [00:29:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:10]Read from MH i2c: E2 [00:29:10]MH_I2C_Read... [00:29:10]Read from MH i2c: E2 FD 00 [00:29:10]MH_I2C_Read... [00:29:10]Read from MH i2c: E2 FD 00 8B 06 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8C [00:29:10]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:29:10]wFMCommunicate OK [00:29:10]wFMCommunicate request_size=4 [00:29:10]MH_SAM_APDU [00:29:10]CAPDU: 80 17 00 00 [00:29:10]Write to MH i2c: E2 08 00 8C 06 80 17 00 00 00 00 00 00 12 [00:29:10]Write i2c OK [00:29:10]MH_I2C_Read... [00:29:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:10]Read from MH i2c: E2 [00:29:10]MH_I2C_Read... [00:29:10]Read from MH i2c: E2 FD 00 [00:29:10]MH_I2C_Read... [00:29:10]Read from MH i2c: E2 FD 00 8C 06 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B2 [00:29:10]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:29:10]wFMCommunicate OK [00:29:10]wFMCommunicate request_size=4 [00:29:10]MH_SAM_APDU [00:29:10]CAPDU: 80 17 00 00 [00:29:10]Write to MH i2c: E2 08 00 8D 06 80 17 00 00 00 00 00 00 13 [00:29:10]Write i2c OK [00:29:10]MH_I2C_Read... [00:29:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:10]Read from MH i2c: E2 [00:29:10]MH_I2C_Read... [00:29:10]Read from MH i2c: E2 FD 00 [00:29:10]MH_I2C_Read... [00:29:10]Read from MH i2c: E2 FD 00 8D 06 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 98 [00:29:10]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:29:10]wFMCommunicate OK [00:29:10]wFMCommunicate request_size=4 [00:29:10]MH_SAM_APDU [00:29:10]CAPDU: 80 17 00 00 [00:29:10]Write to MH i2c: E2 08 00 8E 06 80 17 00 00 00 00 00 00 14 [00:29:10]Write i2c OK [00:29:10]MH_I2C_Read... [00:29:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:29:11]Read from MH i2c: E2 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 DE 00 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 DE 00 8E 06 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 [00:29:11]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:11]wFMCommunicate OK [00:29:11]SAM_PROTO_GetFMData done [00:29:11]requested_item fm.sale_refund.total is exist - process it [00:29:11]requested_item fm.buy.total is exist - process it [00:29:11]requested_item shift.sale.total is exist - process it [00:29:11]SAM_PROTO_GetShiftData [00:29:11]wFMCommunicate request_size=4 [00:29:11]MH_SAM_APDU [00:29:11]CAPDU: 80 13 02 00 [00:29:11]Write to MH i2c: E2 08 00 8F 06 80 13 02 00 00 00 00 00 13 [00:29:11]Write i2c OK [00:29:11]MH_I2C_Read... [00:29:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:11]Read from MH i2c: E2 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 FD 00 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 FD 00 8F 06 00 B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 70 EC DD 01 72 04 03 00 E4 AF 9A 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 43 31 43 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 64 99 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 C8 [00:29:11]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 54 9C 78 02 70 04 04 00 70 EC DD 01 72 04 03 00 E4 AF 9A 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 43 31 43 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 64 99 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:11]wFMCommunicate OK [00:29:11]wFMCommunicate request_size=4 [00:29:11]MH_SAM_APDU [00:29:11]CAPDU: 80 17 00 00 [00:29:11]Write to MH i2c: E2 08 00 90 06 80 17 00 00 00 00 00 00 16 [00:29:11]Write i2c OK [00:29:11]MH_I2C_Read... [00:29:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:11]Read from MH i2c: E2 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 FD 00 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 FD 00 90 06 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 2F [00:29:11]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:11]wFMCommunicate OK [00:29:11]wFMCommunicate request_size=4 [00:29:11]MH_SAM_APDU [00:29:11]CAPDU: 80 17 00 00 [00:29:11]Write to MH i2c: E2 08 00 91 06 80 17 00 00 00 00 00 00 17 [00:29:11]Write i2c OK [00:29:11]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 FD 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 FD 00 91 06 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 D0 [00:29:12]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:12]wFMCommunicate OK [00:29:12]wFMCommunicate request_size=4 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 17 00 00 [00:29:12]Write to MH i2c: E2 08 00 92 06 80 17 00 00 00 00 00 00 18 [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 FD 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 FD 00 92 06 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 90 [00:29:12]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:12]wFMCommunicate OK [00:29:12]wFMCommunicate request_size=4 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 17 00 00 [00:29:12]Write to MH i2c: E2 08 00 93 06 80 17 00 00 00 00 00 00 19 [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 CE 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 CE 00 93 06 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 FE [00:29:12]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:12]wFMCommunicate OK [00:29:12]SAM_PROTO_GetShiftData done [00:29:12]requested_item shift.sale.total_cash is exist - process it [00:29:12]requested_item shift.sale_refund.total is exist - process it [00:29:12]requested_item shift.sale_refund.total_cash is exist - process it [00:29:12]requested_item shift.buy.total is exist - process it [00:29:12]requested_item shift.buy.total_cash is exist - process it [00:29:12]produce_requested_data done [00:29:12]produce_requested_data return {"fm.sale.total":171480159.86,"fm.sale_refund.total":67222.00,"fm.buy.total":0.00,"shift.sale.total":414587.72,"shift.sale.total_cash":313212.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:29:12]process_action_free get_value [00:29:12]json_value_free [00:29:12]json_value_free done [00:29:12]process_json_proto returns [00:29:12]Send response to host [00:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":171480159.86,"fm.sale_refund.total":67222.00,"fm.buy.total":0.00,"shift.sale.total":414587.72,"shift.sale.total_cash":313212.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:29:12]free response buf [00:29:12]execute_script done [00:29:12]execute_script returns [00:29:12]free content buf [00:29:12]Sock 7.Close socket [00:29:12]Sock 7.Thread stoped [00:29:12]accept exits with 9 [00:29:12]New connection [00:29:12]New thread 3067506020 created [00:29:12]Thread 3067362660 joined [00:29:12]Waiting for new connection... [00:29:12] Sock 9.Parse request [00:29:12]Sock 9.Check first char [00:29:12]Sock 9.First char is OK [00:29:12]request: POST /json_proto HTTP/1.0 [00:29:12]Method: POST [00:29:12]URL: /json_proto [00:29:12]Method is POST - this is cgi request [00:29:12]url: /json_proto [00:29:12]query_string will be loaded in cgi processing [00:29:12]execute_cgi json_proto POST (null) [00:29:12]execute_cgi path=json_proto method=POST [00:29:12]POST find Content-Length [00:29:12]Host: 172.17.40.195:8080 [00:29:12]Content-Length: 265 [00:29:12]Content-Type: application/json [00:29:12] [00:29:12]POST finish read [00:29:12]Found Content-Length = 265 [00:29:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u043E\u043B\u043E\u043D\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:12]execute_script... [00:29:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u043E\u043B\u043E\u043D\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:12]POST & json_proto [00:29:12]process_json_proto [00:29:12]json parsed OK: [00:29:12]protocol is kg_v1.0 [00:29:12]action value=open_shift [00:29:12]process_action open_shift [00:29:12]cmd_open_shift [00:29:12]MH_GetDate [00:29:12]Write to MH i2c: F0 00 00 94 06 89 [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: F0 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: F0 09 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: F0 09 00 94 06 00 D9 DA 1E 67 D5 8D 6C 64 FC [00:29:12]GetLastDocTimeStamp 1730075136 [00:29:12]current date 1730075353 [00:29:12]FM_GetShiftState [00:29:12]SAM_PROTO_GetShiftState [00:29:12]wFMCommunicate request_size=4 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 13 01 00 [00:29:12]Write to MH i2c: E2 08 00 95 06 80 13 01 00 00 00 00 00 18 [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 0E 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 0E 00 95 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 23 [00:29:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:29:12]wFMCommunicate OK [00:29:12]SAM_PROTO_GetShiftState done [00:29:12]FM_GetShiftState done [00:29:12]KKMCreateOpenShiftDocument [00:29:12]Load OK [00:29:12]Malloc new data [00:29:12]MH_GetDate [00:29:12]Write to MH i2c: F0 00 00 96 06 8B [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: F0 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: F0 09 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: F0 09 00 96 06 00 D9 DA 1E 67 D5 8D 6C 64 FE [00:29:12]Malloc new data [00:29:12]KKMCreateOpenShiftDocument OK [00:29:12]KKMSetOpenShiftData OK [00:29:12]ProcessDocumentItem done err = 0, tmpTLVsize=197 [00:29:12]tlvbuf is 006EDC00 [00:29:12]KKMLoadAndSignOpenShiftData [00:29:12]SAM_PROTO_ProcessDocument [00:29:12]wFMCommunicate request_size=9 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 15 01 00 04 02 00 C5 00 [00:29:12]Write to MH i2c: E2 0C 00 97 06 80 15 01 00 04 00 02 00 C5 00 00 00 EB [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:13]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:29:13]Read from MH i2c: E2 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [00:29:13]RAPDU: 90 00 [00:29:13]wFMCommunicate OK [00:29:13]wFMCommunicate request_size=23 [00:29:13]MH_SAM_APDU [00:29:13]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:29:13]Write to MH i2c: E2 1A 00 98 06 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 13 [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:13]Read from MH i2c: E2 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [00:29:13]RAPDU: 90 00 [00:29:13]wFMCommunicate OK [00:29:13]wFMCommunicate request_size=32 [00:29:13]MH_SAM_APDU [00:29:13]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 94 D0 BE D0 BB D0 BE D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 [00:29:13]Write to MH i2c: E2 23 00 99 06 80 15 02 00 1B 00 FD 03 17 00 D0 94 D0 BE D0 BB D0 BE D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 00 00 DA [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:13]Read from MH i2c: E2 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [00:29:13]RAPDU: 90 00 [00:29:13]wFMCommunicate OK [00:29:13]wFMCommunicate request_size=83 [00:29:13]MH_SAM_APDU [00:29:13]CAPDU: 80 15 02 00 4E F1 03 4A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D1 80 D0 B1 D0 B5 D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 9D D0 B8 D1 8F D0 B7 D0 B0 D0 BB D1 8B 20 D0 B1 2F D0 BD 2C 20 34 31 2E 34 38 33 38 34 34 2C 20 37 31 2E 37 35 38 34 35 39 [00:29:13]Write to MH i2c: E2 56 00 9A 06 80 15 02 00 4E 00 F1 03 4A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D1 80 D0 B1 D0 B5 D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 9D D0 B8 D1 8F D0 B7 D0 B0 D0 BB D1 8B 20 D0 B1 2F D0 BD 2C 20 34 31 2E 34 38 33 38 34 34 2C 20 37 31 2E 37 35 38 34 35 39 00 00 73 [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:13]Read from MH i2c: E2 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [00:29:13]RAPDU: 90 00 [00:29:13]wFMCommunicate OK [00:29:13]wFMCommunicate request_size=51 [00:29:13]MH_SAM_APDU [00:29:13]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:29:13]Write to MH i2c: E2 36 00 9B 06 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 CC [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:13]Read from MH i2c: E2 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [00:29:13]RAPDU: 90 00 [00:29:13]wFMCommunicate OK [00:29:13]wFMCommunicate request_size=13 [00:29:13]MH_SAM_APDU [00:29:13]CAPDU: 80 15 02 00 08 F4 03 04 00 D9 DA 1E 67 [00:29:13]Write to MH i2c: E2 10 00 9C 06 80 15 02 00 08 00 F4 03 04 00 D9 DA 1E 67 00 00 65 [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:13]Read from MH i2c: E2 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 9C 06 00 90 00 16 [00:29:13]RAPDU: 90 00 [00:29:13]wFMCommunicate OK [00:29:13]wFMCommunicate request_size=25 [00:29:13]MH_SAM_APDU [00:29:13]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 [00:29:13]Write to MH i2c: E2 1C 00 9D 06 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 00 00 87 [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:13]Read from MH i2c: E2 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 03 00 9D 06 00 90 00 17 [00:29:13]RAPDU: 90 00 [00:29:13]wFMCommunicate OK [00:29:13]wFMCommunicate request_size=4 [00:29:13]MH_SAM_APDU [00:29:13]CAPDU: 80 15 03 00 [00:29:13]Write to MH i2c: E2 08 00 9E 06 80 15 03 00 00 00 00 00 25 [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:29:13]Read from MH i2c: E2 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 38 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 38 00 9E 06 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D4 39 02 00 0E 04 04 00 22 02 00 00 35 04 06 00 24 BC 9F 0C C2 53 90 00 C4 [00:29:13]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D4 39 02 00 0E 04 04 00 22 02 00 00 35 04 06 00 24 BC 9F 0C C2 53 90 00 [00:29:13]wFMCommunicate OK [00:29:13]SAM_PROTO_ProcessDocument answer len = 51 [00:29:13]SAM_PROTO_ProcessDocument done [00:29:13]SetTLVBufToDocument [00:29:13]Processing tag 1209 (04B9) [00:29:13]Malloc new data [00:29:13]Processing tag 1041 (0411) [00:29:13]Processing tag 1040 (0410) [00:29:13]Malloc new data [00:29:13]Processing tag 1038 (040E) [00:29:13]Malloc new data [00:29:13]Processing tag 1077 (0435) [00:29:13]Malloc new data [00:29:13]SetTLVBufToDocument err=0 [00:29:13]KKMLoadAndSignOpenShiftData store KKM data [00:29:13]KKMLoadAndSignOpenShiftData err=0 [00:29:13]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Долонбаев А. Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 Место: АЗС № 126 "Партнер Нефть" 28.10.2024 00:29 Смена: 546 РНМ: 0000000000091683 ЗНМ: 0300000085 ФД: 145876 ФМ: 0000000000871745 ФПД: 40392540865107 [00:29:13]StoreToDocumentArchive [00:29:13]shift 546 fd 145876 [00:29:13]Create dir for shift 0546 [00:29:13]save to /storage/0546/doc_00145876 [00:29:13]save last doc name /storage/0546/doc_00145876 to /storage/kkm_last_doc_name [00:29:13]save OK [00:29:13]Clear old archive folders... [00:29:13]Remove dir /storage/0545 [00:29:13]opendir ok [00:29:13]file . [00:29:13]file .. [00:29:13]file doc_00145577 [00:29:13]remove file /storage/0545/doc_00145577 [00:29:13]file doc_00145578 [00:29:13]remove file /storage/0545/doc_00145578 [00:29:13]file doc_00145579 [00:29:13]remove file /storage/0545/doc_00145579 [00:29:13]file doc_00145580 [00:29:13]remove file /storage/0545/doc_00145580 [00:29:13]file doc_00145581 [00:29:13]remove file /storage/0545/doc_00145581 [00:29:13]file doc_00145582 [00:29:13]remove file /storage/0545/doc_00145582 [00:29:13]file doc_00145583 [00:29:13]remove file /storage/0545/doc_00145583 [00:29:13]file doc_00145584 [00:29:13]remove file /storage/0545/doc_00145584 [00:29:13]file doc_00145585 [00:29:13]remove file /storage/0545/doc_00145585 [00:29:13]file doc_00145586 [00:29:13]remove file /storage/0545/doc_00145586 [00:29:13]file doc_00145587 [00:29:13]remove file /storage/0545/doc_00145587 [00:29:13]file doc_00145588 [00:29:13]remove file /storage/0545/doc_00145588 [00:29:13]file doc_00145589 [00:29:13]remove file /storage/0545/doc_00145589 [00:29:13]file doc_00145590 [00:29:13]remove file /storage/0545/doc_00145590 [00:29:13]file doc_00145591 [00:29:13]remove file /storage/0545/doc_00145591 [00:29:13]file doc_00145592 [00:29:13]remove file /storage/0545/doc_00145592 [00:29:13]file doc_00145593 [00:29:13]remove file /storage/0545/doc_00145593 [00:29:13]file doc_00145594 [00:29:13]remove file /storage/0545/doc_00145594 [00:29:13]file doc_00145595 [00:29:13]remove file /storage/0545/doc_00145595 [00:29:13]file doc_00145596 [00:29:13]remove file /storage/0545/doc_00145596 [00:29:13]file doc_00145597 [00:29:13]remove file /storage/0545/doc_00145597 [00:29:13]file doc_00145598 [00:29:13]remove file /storage/0545/doc_00145598 [00:29:13]file doc_00145599 [00:29:13]remove file /storage/0545/doc_00145599 [00:29:13]file doc_00145600 [00:29:13]remove file /storage/0545/doc_00145600 [00:29:13]file doc_00145601 [00:29:13]remove file /storage/0545/doc_00145601 [00:29:13]file doc_00145602 [00:29:13]remove file /storage/0545/doc_00145602 [00:29:13]file doc_00145603 [00:29:13]remove file /storage/0545/doc_00145603 [00:29:13]file doc_00145604 [00:29:13]remove file /storage/0545/doc_00145604 [00:29:13]file doc_00145605 [00:29:13]remove file /storage/0545/doc_00145605 [00:29:13]file doc_00145606 [00:29:13]remove file /storage/0545/doc_00145606 [00:29:13]file doc_00145607 [00:29:13]remove file /storage/0545/doc_00145607 [00:29:13]file doc_00145608 [00:29:13]remove file /storage/0545/doc_00145608 [00:29:13]file doc_00145609 [00:29:13]remove file /storage/0545/doc_00145609 [00:29:13]file doc_00145610 [00:29:13]remove file /storage/0545/doc_00145610 [00:29:13]file doc_00145611 [00:29:13]remove file /storage/0545/doc_00145611 [00:29:13]file doc_00145612 [00:29:13]remove file /storage/0545/doc_00145612 [00:29:13]file doc_00145613 [00:29:13]remove file /storage/0545/doc_00145613 [00:29:13]file doc_00145614 [00:29:13]remove file /storage/0545/doc_00145614 [00:29:13]file doc_00145615 [00:29:13]remove file /storage/0545/doc_00145615 [00:29:13]file doc_00145616 [00:29:13]remove file /storage/0545/doc_00145616 [00:29:13]file doc_00145617 [00:29:13]remove file /storage/0545/doc_00145617 [00:29:13]file doc_00145618 [00:29:13]remove file /storage/0545/doc_00145618 [00:29:13]file doc_00145619 [00:29:13]remove file /storage/0545/doc_00145619 [00:29:13]file doc_00145620 [00:29:13]remove file /storage/0545/doc_00145620 [00:29:13]file doc_00145621 [00:29:13]remove file /storage/0545/doc_00145621 [00:29:13]file doc_00145622 [00:29:13]remove file /storage/0545/doc_00145622 [00:29:13]file doc_00145623 [00:29:13]remove file /storage/0545/doc_00145623 [00:29:13]file doc_00145624 [00:29:13]remove file /storage/0545/doc_00145624 [00:29:13]file doc_00145625 [00:29:13]remove file /storage/0545/doc_00145625 [00:29:13]file doc_00145626 [00:29:13]remove file /storage/0545/doc_00145626 [00:29:13]file doc_00145627 [00:29:13]remove file /storage/0545/doc_00145627 [00:29:13]file doc_00145628 [00:29:13]remove file /storage/0545/doc_00145628 [00:29:13]file doc_00145629 [00:29:13]remove file /storage/0545/doc_00145629 [00:29:13]file doc_00145630 [00:29:13]remove file /storage/0545/doc_00145630 [00:29:13]file doc_00145631 [00:29:13]remove file /storage/0545/doc_00145631 [00:29:13]file doc_00145632 [00:29:13]remove file /storage/0545/doc_00145632 [00:29:13]file doc_00145633 [00:29:13]remove file /storage/0545/doc_00145633 [00:29:13]file doc_00145634 [00:29:13]remove file /storage/0545/doc_00145634 [00:29:13]file doc_00145635 [00:29:13]remove file /storage/0545/doc_00145635 [00:29:13]file doc_00145636 [00:29:13]remove file /storage/0545/doc_00145636 [00:29:13]file doc_00145637 [00:29:13]remove file /storage/0545/doc_00145637 [00:29:13]file doc_00145638 [00:29:13]remove file /storage/0545/doc_00145638 [00:29:14]file doc_00145639 [00:29:14]remove file /storage/0545/doc_00145639 [00:29:14]file doc_00145640 [00:29:14]remove file /storage/0545/doc_00145640 [00:29:14]file doc_00145641 [00:29:14]remove file /storage/0545/doc_00145641 [00:29:14]file doc_00145642 [00:29:14]remove file /storage/0545/doc_00145642 [00:29:14]file doc_00145643 [00:29:14]remove file /storage/0545/doc_00145643 [00:29:14]file doc_00145644 [00:29:14]remove file /storage/0545/doc_00145644 [00:29:14]file doc_00145645 [00:29:14]remove file /storage/0545/doc_00145645 [00:29:14]file doc_00145646 [00:29:14]remove file /storage/0545/doc_00145646 [00:29:14]file doc_00145647 [00:29:14]remove file /storage/0545/doc_00145647 [00:29:14]file doc_00145648 [00:29:14]remove file /storage/0545/doc_00145648 [00:29:14]file doc_00145649 [00:29:14]remove file /storage/0545/doc_00145649 [00:29:14]file doc_00145650 [00:29:14]remove file /storage/0545/doc_00145650 [00:29:14]file doc_00145651 [00:29:14]remove file /storage/0545/doc_00145651 [00:29:14]file doc_00145652 [00:29:14]remove file /storage/0545/doc_00145652 [00:29:14]file doc_00145653 [00:29:14]remove file /storage/0545/doc_00145653 [00:29:14]file doc_00145654 [00:29:14]remove file /storage/0545/doc_00145654 [00:29:14]file doc_00145655 [00:29:14]remove file /storage/0545/doc_00145655 [00:29:14]file doc_00145656 [00:29:14]remove file /storage/0545/doc_00145656 [00:29:14]file doc_00145657 [00:29:14]remove file /storage/0545/doc_00145657 [00:29:14]file doc_00145658 [00:29:14]remove file /storage/0545/doc_00145658 [00:29:14]file doc_00145659 [00:29:14]remove file /storage/0545/doc_00145659 [00:29:14]file doc_00145660 [00:29:14]remove file /storage/0545/doc_00145660 [00:29:14]file doc_00145661 [00:29:14]remove file /storage/0545/doc_00145661 [00:29:14]file doc_00145662 [00:29:14]remove file /storage/0545/doc_00145662 [00:29:14]file doc_00145663 [00:29:14]remove file /storage/0545/doc_00145663 [00:29:14]file doc_00145664 [00:29:14]remove file /storage/0545/doc_00145664 [00:29:14]file doc_00145665 [00:29:14]remove file /storage/0545/doc_00145665 [00:29:14]file doc_00145666 [00:29:14]remove file /storage/0545/doc_00145666 [00:29:14]file doc_00145667 [00:29:14]remove file /storage/0545/doc_00145667 [00:29:14]file doc_00145668 [00:29:14]remove file /storage/0545/doc_00145668 [00:29:14]file doc_00145669 [00:29:14]remove file /storage/0545/doc_00145669 [00:29:14]file doc_00145670 [00:29:14]remove file /storage/0545/doc_00145670 [00:29:14]file doc_00145671 [00:29:14]remove file /storage/0545/doc_00145671 [00:29:14]file doc_00145672 [00:29:14]remove file /storage/0545/doc_00145672 [00:29:14]file doc_00145673 [00:29:14]remove file /storage/0545/doc_00145673 [00:29:14]file doc_00145674 [00:29:14]remove file /storage/0545/doc_00145674 [00:29:14]file doc_00145675 [00:29:14]remove file /storage/0545/doc_00145675 [00:29:14]file doc_00145676 [00:29:14]remove file /storage/0545/doc_00145676 [00:29:14]file doc_00145677 [00:29:14]remove file /storage/0545/doc_00145677 [00:29:14]file doc_00145678 [00:29:14]remove file /storage/0545/doc_00145678 [00:29:14]file doc_00145679 [00:29:14]remove file /storage/0545/doc_00145679 [00:29:14]file doc_00145680 [00:29:14]remove file /storage/0545/doc_00145680 [00:29:14]file doc_00145681 [00:29:14]remove file /storage/0545/doc_00145681 [00:29:14]file doc_00145682 [00:29:14]remove file /storage/0545/doc_00145682 [00:29:14]file doc_00145683 [00:29:14]remove file /storage/0545/doc_00145683 [00:29:14]file doc_00145684 [00:29:14]remove file /storage/0545/doc_00145684 [00:29:14]file doc_00145685 [00:29:14]remove file /storage/0545/doc_00145685 [00:29:14]file doc_00145686 [00:29:14]remove file /storage/0545/doc_00145686 [00:29:14]file doc_00145687 [00:29:14]remove file /storage/0545/doc_00145687 [00:29:14]file doc_00145688 [00:29:14]remove file /storage/0545/doc_00145688 [00:29:14]file doc_00145689 [00:29:14]remove file /storage/0545/doc_00145689 [00:29:14]file doc_00145690 [00:29:14]remove file /storage/0545/doc_00145690 [00:29:14]file doc_00145691 [00:29:14]remove file /storage/0545/doc_00145691 [00:29:14]file doc_00145692 [00:29:14]remove file /storage/0545/doc_00145692 [00:29:14]file doc_00145693 [00:29:14]remove file /storage/0545/doc_00145693 [00:29:14]file doc_00145694 [00:29:14]remove file /storage/0545/doc_00145694 [00:29:14]file doc_00145695 [00:29:14]remove file /storage/0545/doc_00145695 [00:29:14]file doc_00145696 [00:29:14]remove file /storage/0545/doc_00145696 [00:29:14]file doc_00145697 [00:29:14]remove file /storage/0545/doc_00145697 [00:29:14]file doc_00145698 [00:29:14]remove file /storage/0545/doc_00145698 [00:29:14]file doc_00145699 [00:29:14]remove file /storage/0545/doc_00145699 [00:29:14]file doc_00145700 [00:29:14]remove file /storage/0545/doc_00145700 [00:29:14]file doc_00145701 [00:29:14]remove file /storage/0545/doc_00145701 [00:29:14]file doc_00145702 [00:29:14]remove file /storage/0545/doc_00145702 [00:29:14]file doc_00145703 [00:29:14]remove file /storage/0545/doc_00145703 [00:29:14]file doc_00145704 [00:29:14]remove file /storage/0545/doc_00145704 [00:29:14]file doc_00145705 [00:29:14]remove file /storage/0545/doc_00145705 [00:29:14]file doc_00145706 [00:29:14]remove file /storage/0545/doc_00145706 [00:29:14]file doc_00145707 [00:29:14]remove file /storage/0545/doc_00145707 [00:29:14]file doc_00145708 [00:29:14]remove file /storage/0545/doc_00145708 [00:29:14]file doc_00145709 [00:29:14]remove file /storage/0545/doc_00145709 [00:29:14]file doc_00145710 [00:29:14]remove file /storage/0545/doc_00145710 [00:29:14]file doc_00145711 [00:29:14]remove file /storage/0545/doc_00145711 [00:29:14]file doc_00145712 [00:29:14]remove file /storage/0545/doc_00145712 [00:29:14]file doc_00145713 [00:29:14]remove file /storage/0545/doc_00145713 [00:29:14]file doc_00145714 [00:29:14]remove file /storage/0545/doc_00145714 [00:29:14]file doc_00145715 [00:29:14]remove file /storage/0545/doc_00145715 [00:29:14]file doc_00145716 [00:29:14]remove file /storage/0545/doc_00145716 [00:29:14]file doc_00145717 [00:29:14]remove file /storage/0545/doc_00145717 [00:29:14]file doc_00145718 [00:29:14]remove file /storage/0545/doc_00145718 [00:29:14]file doc_00145719 [00:29:14]remove file /storage/0545/doc_00145719 [00:29:14]file doc_00145720 [00:29:14]remove file /storage/0545/doc_00145720 [00:29:14]file doc_00145721 [00:29:14]remove file /storage/0545/doc_00145721 [00:29:14]file doc_00145722 [00:29:14]remove file /storage/0545/doc_00145722 [00:29:14]file doc_00145723 [00:29:14]remove file /storage/0545/doc_00145723 [00:29:14]file doc_00145724 [00:29:14]remove file /storage/0545/doc_00145724 [00:29:14]file doc_00145725 [00:29:14]remove file /storage/0545/doc_00145725 [00:29:14]file doc_00145726 [00:29:14]remove file /storage/0545/doc_00145726 [00:29:14]file doc_00145727 [00:29:14]remove file /storage/0545/doc_00145727 [00:29:14]file doc_00145728 [00:29:14]remove file /storage/0545/doc_00145728 [00:29:14]file doc_00145729 [00:29:14]remove file /storage/0545/doc_00145729 [00:29:14]file doc_00145730 [00:29:14]remove file /storage/0545/doc_00145730 [00:29:14]file doc_00145731 [00:29:14]remove file /storage/0545/doc_00145731 [00:29:14]file doc_00145732 [00:29:14]remove file /storage/0545/doc_00145732 [00:29:14]file doc_00145733 [00:29:14]remove file /storage/0545/doc_00145733 [00:29:14]file doc_00145734 [00:29:14]remove file /storage/0545/doc_00145734 [00:29:14]file doc_00145735 [00:29:14]remove file /storage/0545/doc_00145735 [00:29:14]file doc_00145736 [00:29:14]remove file /storage/0545/doc_00145736 [00:29:14]file doc_00145737 [00:29:14]remove file /storage/0545/doc_00145737 [00:29:14]file doc_00145738 [00:29:14]remove file /storage/0545/doc_00145738 [00:29:14]file doc_00145739 [00:29:14]remove file /storage/0545/doc_00145739 [00:29:14]file doc_00145740 [00:29:14]remove file /storage/0545/doc_00145740 [00:29:14]file doc_00145741 [00:29:14]remove file /storage/0545/doc_00145741 [00:29:14]file doc_00145742 [00:29:14]remove file /storage/0545/doc_00145742 [00:29:14]file doc_00145743 [00:29:14]remove file /storage/0545/doc_00145743 [00:29:14]file doc_00145744 [00:29:14]remove file /storage/0545/doc_00145744 [00:29:14]file doc_00145745 [00:29:14]remove file /storage/0545/doc_00145745 [00:29:14]file doc_00145746 [00:29:14]remove file /storage/0545/doc_00145746 [00:29:14]file doc_00145747 [00:29:14]remove file /storage/0545/doc_00145747 [00:29:14]file doc_00145748 [00:29:14]remove file /storage/0545/doc_00145748 [00:29:14]file doc_00145749 [00:29:14]remove file /storage/0545/doc_00145749 [00:29:14]file doc_00145750 [00:29:14]remove file /storage/0545/doc_00145750 [00:29:14]file doc_00145751 [00:29:14]remove file /storage/0545/doc_00145751 [00:29:14]file doc_00145752 [00:29:14]remove file /storage/0545/doc_00145752 [00:29:14]file doc_00145753 [00:29:14]remove file /storage/0545/doc_00145753 [00:29:14]file doc_00145754 [00:29:14]remove file /storage/0545/doc_00145754 [00:29:14]file doc_00145755 [00:29:14]remove file /storage/0545/doc_00145755 [00:29:14]file doc_00145756 [00:29:14]remove file /storage/0545/doc_00145756 [00:29:14]file doc_00145757 [00:29:14]remove file /storage/0545/doc_00145757 [00:29:14]file doc_00145758 [00:29:14]remove file /storage/0545/doc_00145758 [00:29:14]file doc_00145759 [00:29:14]remove file /storage/0545/doc_00145759 [00:29:14]file doc_00145760 [00:29:14]remove file /storage/0545/doc_00145760 [00:29:14]file doc_00145761 [00:29:14]remove file /storage/0545/doc_00145761 [00:29:14]file doc_00145762 [00:29:14]remove file /storage/0545/doc_00145762 [00:29:14]file doc_00145763 [00:29:14]remove file /storage/0545/doc_00145763 [00:29:14]file doc_00145764 [00:29:14]remove file /storage/0545/doc_00145764 [00:29:14]file doc_00145765 [00:29:14]remove file /storage/0545/doc_00145765 [00:29:14]file doc_00145766 [00:29:14]remove file /storage/0545/doc_00145766 [00:29:14]file doc_00145767 [00:29:14]remove file /storage/0545/doc_00145767 [00:29:14]file doc_00145768 [00:29:14]remove file /storage/0545/doc_00145768 [00:29:14]file doc_00145769 [00:29:14]remove file /storage/0545/doc_00145769 [00:29:14]file doc_00145770 [00:29:14]remove file /storage/0545/doc_00145770 [00:29:14]file doc_00145771 [00:29:14]remove file /storage/0545/doc_00145771 [00:29:14]file doc_00145772 [00:29:14]remove file /storage/0545/doc_00145772 [00:29:14]file doc_00145773 [00:29:14]remove file /storage/0545/doc_00145773 [00:29:14]file doc_00145774 [00:29:14]remove file /storage/0545/doc_00145774 [00:29:14]file doc_00145775 [00:29:14]remove file /storage/0545/doc_00145775 [00:29:15]file doc_00145776 [00:29:15]remove file /storage/0545/doc_00145776 [00:29:15]file doc_00145777 [00:29:15]remove file /storage/0545/doc_00145777 [00:29:15]OFD Sender: No OFD packet to send [00:29:15]file doc_00145778 [00:29:15]remove file /storage/0545/doc_00145778 [00:29:15]file doc_00145779 [00:29:15]remove file /storage/0545/doc_00145779 [00:29:15]file doc_00145780 [00:29:15]remove file /storage/0545/doc_00145780 [00:29:15]file doc_00145781 [00:29:15]remove file /storage/0545/doc_00145781 [00:29:15]file doc_00145782 [00:29:15]remove file /storage/0545/doc_00145782 [00:29:15]file doc_00145783 [00:29:15]remove file /storage/0545/doc_00145783 [00:29:15]file doc_00145784 [00:29:15]remove file /storage/0545/doc_00145784 [00:29:15]file doc_00145785 [00:29:15]remove file /storage/0545/doc_00145785 [00:29:15]file doc_00145786 [00:29:15]remove file /storage/0545/doc_00145786 [00:29:15]file doc_00145787 [00:29:15]remove file /storage/0545/doc_00145787 [00:29:15]file doc_00145788 [00:29:15]remove file /storage/0545/doc_00145788 [00:29:15]file doc_00145789 [00:29:15]remove file /storage/0545/doc_00145789 [00:29:15]file doc_00145790 [00:29:15]remove file /storage/0545/doc_00145790 [00:29:15]file doc_00145791 [00:29:15]remove file /storage/0545/doc_00145791 [00:29:15]file doc_00145792 [00:29:15]remove file /storage/0545/doc_00145792 [00:29:15]file doc_00145793 [00:29:15]remove file /storage/0545/doc_00145793 [00:29:15]file doc_00145794 [00:29:15]remove file /storage/0545/doc_00145794 [00:29:15]file doc_00145795 [00:29:15]remove file /storage/0545/doc_00145795 [00:29:15]file doc_00145796 [00:29:15]remove file /storage/0545/doc_00145796 [00:29:15]file doc_00145797 [00:29:15]remove file /storage/0545/doc_00145797 [00:29:15]file doc_00145798 [00:29:15]remove file /storage/0545/doc_00145798 [00:29:15]file doc_00145799 [00:29:15]remove file /storage/0545/doc_00145799 [00:29:15]file doc_00145800 [00:29:15]remove file /storage/0545/doc_00145800 [00:29:15]file doc_00145801 [00:29:15]remove file /storage/0545/doc_00145801 [00:29:15]file doc_00145802 [00:29:15]remove file /storage/0545/doc_00145802 [00:29:15]file doc_00145803 [00:29:15]remove file /storage/0545/doc_00145803 [00:29:15]file doc_00145804 [00:29:15]remove file /storage/0545/doc_00145804 [00:29:15]file doc_00145805 [00:29:15]remove file /storage/0545/doc_00145805 [00:29:15]file doc_00145806 [00:29:15]remove file /storage/0545/doc_00145806 [00:29:15]file doc_00145807 [00:29:15]remove file /storage/0545/doc_00145807 [00:29:15]file doc_00145808 [00:29:15]remove file /storage/0545/doc_00145808 [00:29:15]file doc_00145809 [00:29:15]remove file /storage/0545/doc_00145809 [00:29:15]file doc_00145810 [00:29:15]remove file /storage/0545/doc_00145810 [00:29:15]file doc_00145811 [00:29:15]remove file /storage/0545/doc_00145811 [00:29:15]file doc_00145812 [00:29:15]remove file /storage/0545/doc_00145812 [00:29:15]file doc_00145813 [00:29:15]remove file /storage/0545/doc_00145813 [00:29:15]file doc_00145814 [00:29:15]remove file /storage/0545/doc_00145814 [00:29:15]file doc_00145815 [00:29:15]remove file /storage/0545/doc_00145815 [00:29:15]file doc_00145816 [00:29:15]remove file /storage/0545/doc_00145816 [00:29:15]file doc_00145817 [00:29:15]remove file /storage/0545/doc_00145817 [00:29:15]file doc_00145818 [00:29:15]remove file /storage/0545/doc_00145818 [00:29:15]file doc_00145819 [00:29:15]remove file /storage/0545/doc_00145819 [00:29:15]file doc_00145820 [00:29:15]remove file /storage/0545/doc_00145820 [00:29:15]file doc_00145821 [00:29:15]remove file /storage/0545/doc_00145821 [00:29:15]file doc_00145822 [00:29:15]remove file /storage/0545/doc_00145822 [00:29:15]file doc_00145823 [00:29:15]remove file /storage/0545/doc_00145823 [00:29:15]file doc_00145824 [00:29:15]remove file /storage/0545/doc_00145824 [00:29:15]file doc_00145825 [00:29:15]remove file /storage/0545/doc_00145825 [00:29:15]file doc_00145826 [00:29:15]remove file /storage/0545/doc_00145826 [00:29:15]file doc_00145827 [00:29:15]remove file /storage/0545/doc_00145827 [00:29:15]file doc_00145828 [00:29:15]remove file /storage/0545/doc_00145828 [00:29:15]file doc_00145829 [00:29:15]remove file /storage/0545/doc_00145829 [00:29:15]file doc_00145830 [00:29:15]remove file /storage/0545/doc_00145830 [00:29:15]file doc_00145831 [00:29:15]remove file /storage/0545/doc_00145831 [00:29:15]file doc_00145832 [00:29:15]remove file /storage/0545/doc_00145832 [00:29:15]file doc_00145833 [00:29:15]remove file /storage/0545/doc_00145833 [00:29:15]file doc_00145834 [00:29:15]remove file /storage/0545/doc_00145834 [00:29:15]file doc_00145835 [00:29:15]remove file /storage/0545/doc_00145835 [00:29:15]file doc_00145836 [00:29:15]remove file /storage/0545/doc_00145836 [00:29:15]file doc_00145837 [00:29:15]remove file /storage/0545/doc_00145837 [00:29:15]file doc_00145838 [00:29:15]remove file /storage/0545/doc_00145838 [00:29:15]file doc_00145839 [00:29:15]remove file /storage/0545/doc_00145839 [00:29:15]file doc_00145840 [00:29:15]remove file /storage/0545/doc_00145840 [00:29:15]file doc_00145841 [00:29:15]remove file /storage/0545/doc_00145841 [00:29:15]file doc_00145842 [00:29:15]remove file /storage/0545/doc_00145842 [00:29:15]file doc_00145843 [00:29:15]remove file /storage/0545/doc_00145843 [00:29:15]file doc_00145844 [00:29:15]remove file /storage/0545/doc_00145844 [00:29:15]file doc_00145845 [00:29:15]remove file /storage/0545/doc_00145845 [00:29:15]file doc_00145846 [00:29:15]remove file /storage/0545/doc_00145846 [00:29:15]file doc_00145847 [00:29:15]remove file /storage/0545/doc_00145847 [00:29:15]file doc_00145848 [00:29:15]remove file /storage/0545/doc_00145848 [00:29:15]file doc_00145849 [00:29:15]remove file /storage/0545/doc_00145849 [00:29:15]file doc_00145850 [00:29:15]remove file /storage/0545/doc_00145850 [00:29:15]file doc_00145851 [00:29:15]remove file /storage/0545/doc_00145851 [00:29:15]file doc_00145852 [00:29:15]remove file /storage/0545/doc_00145852 [00:29:15]file doc_00145853 [00:29:15]remove file /storage/0545/doc_00145853 [00:29:15]file doc_00145854 [00:29:15]remove file /storage/0545/doc_00145854 [00:29:15]file doc_00145855 [00:29:15]remove file /storage/0545/doc_00145855 [00:29:15]file doc_00145856 [00:29:15]remove file /storage/0545/doc_00145856 [00:29:15]file doc_00145857 [00:29:15]remove file /storage/0545/doc_00145857 [00:29:15]file doc_00145858 [00:29:15]remove file /storage/0545/doc_00145858 [00:29:15]file doc_00145859 [00:29:15]remove file /storage/0545/doc_00145859 [00:29:15]file doc_00145860 [00:29:15]remove file /storage/0545/doc_00145860 [00:29:15]file doc_00145861 [00:29:15]remove file /storage/0545/doc_00145861 [00:29:15]file doc_00145862 [00:29:15]remove file /storage/0545/doc_00145862 [00:29:15]file doc_00145863 [00:29:15]remove file /storage/0545/doc_00145863 [00:29:15]file doc_00145864 [00:29:15]remove file /storage/0545/doc_00145864 [00:29:15]file doc_00145865 [00:29:15]remove file /storage/0545/doc_00145865 [00:29:15]file doc_00145866 [00:29:15]remove file /storage/0545/doc_00145866 [00:29:15]file doc_00145867 [00:29:15]remove file /storage/0545/doc_00145867 [00:29:15]file doc_00145868 [00:29:15]remove file /storage/0545/doc_00145868 [00:29:15]file doc_00145869 [00:29:15]remove file /storage/0545/doc_00145869 [00:29:15]file doc_00145870 [00:29:15]remove file /storage/0545/doc_00145870 [00:29:15]file doc_00145871 [00:29:15]remove file /storage/0545/doc_00145871 [00:29:15]file doc_00145872 [00:29:15]remove file /storage/0545/doc_00145872 [00:29:15]file doc_00145873 [00:29:15]remove file /storage/0545/doc_00145873 [00:29:15]file doc_00145874 [00:29:15]remove file /storage/0545/doc_00145874 [00:29:15]file doc_00145875 [00:29:15]remove file /storage/0545/doc_00145875 [00:29:15]remove dir /storage/0545 [00:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:29:15]tlvbuf is 006EBC30 [00:29:15]SAM_PROTO_ClearQueue [00:29:15]wFMCommunicate request_size=4 [00:29:15]MH_SAM_APDU [00:29:15]CAPDU: 80 09 00 00 [00:29:15]Write to MH i2c: E2 08 00 9F 06 80 09 00 00 00 00 00 00 17 [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:29:15]Read from MH i2c: E2 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 03 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 03 00 9F 06 00 90 00 19 [00:29:15]RAPDU: 90 00 [00:29:15]wFMCommunicate OK [00:29:15]SAM_PROTO_ClearQueue done [00:29:15]KKMCreateOFDPacket [00:29:15]OFDProtocolAddRootSTLVToBuf [00:29:15]FM_MakeSignedData [00:29:15]FM_MakeSignedData [00:29:15]SAM_PROTO_SignData [00:29:15]wFMCommunicate request_size=4 [00:29:15]MH_SAM_APDU [00:29:15]CAPDU: 80 0D 01 02 [00:29:15]Write to MH i2c: E2 08 00 A0 06 80 0D 01 02 00 00 00 00 1F [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:29:15]Read from MH i2c: E2 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 03 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 03 00 A0 06 00 90 00 1A [00:29:15]RAPDU: 90 00 [00:29:15]wFMCommunicate OK [00:29:15]wFMCommunicate request_size=255 [00:29:15]MH_SAM_APDU [00:29:15]CAPDU: 80 0D 02 02 FA 02 00 F8 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 94 D0 BE D0 BB D0 BE D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D1 80 D0 B1 D0 B5 D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 9D D0 B8 D1 8F D0 B7 D0 B0 D0 BB D1 8B 20 D0 B1 2F D0 BD 2C 20 34 31 2E 34 38 33 38 34 34 2C 20 37 31 2E 37 35 38 34 35 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D9 DA 1E 67 0E 04 04 00 22 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D4 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 35 04 06 00 24 BC 9F 0C [00:29:15]Write to MH i2c: E2 02 01 A1 06 80 0D 02 02 FA 00 02 00 F8 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 94 D0 BE D0 BB D0 BE D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D1 80 D0 B1 D0 B5 D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 9D D0 B8 D1 8F D0 B7 D0 B0 D0 BB D1 8B 20 D0 B1 2F D0 BD 2C 20 34 31 2E 34 38 33 38 34 34 2C 20 37 31 2E 37 35 38 34 35 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D9 DA 1E 67 0E 04 04 00 22 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D4 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 35 04 06 00 24 BC 9F 0C 00 00 0A [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:15]Read from MH i2c: E2 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 03 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 03 00 A1 06 00 90 00 1B [00:29:15]RAPDU: 90 00 [00:29:15]wFMCommunicate OK [00:29:15]wFMCommunicate request_size=7 [00:29:15]MH_SAM_APDU [00:29:15]CAPDU: 80 0D 02 02 02 C2 53 [00:29:15]Write to MH i2c: E2 0A 00 A2 06 80 0D 02 02 02 00 C2 53 00 00 3B [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:16]Read from MH i2c: E2 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: E2 03 00 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: E2 03 00 A2 06 00 90 00 1C [00:29:16]RAPDU: 90 00 [00:29:16]wFMCommunicate OK [00:29:16]wFMCommunicate request_size=4 [00:29:16]MH_SAM_APDU [00:29:16]CAPDU: 80 0D 03 02 [00:29:16]Write to MH i2c: E2 08 00 A3 06 80 0D 03 02 00 00 00 00 24 [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:29:16]Read from MH i2c: E2 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: E2 0B 00 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: E2 0B 00 A3 06 00 AD 62 A4 73 D6 D3 5D C4 90 00 15 [00:29:16]RAPDU: AD 62 A4 73 D6 D3 5D C4 90 00 [00:29:16]wFMCommunicate OK [00:29:16]SAM_PROTO_SignData done [00:29:16]FM_MakeSignedData done [00:29:16]CreateOFDProtocolMessage [00:29:16]wFMCommunicate request_size=4 [00:29:16]MH_SAM_APDU [00:29:16]CAPDU: 80 11 00 00 [00:29:16]Write to MH i2c: E2 08 00 A4 06 80 11 00 00 00 00 00 00 24 [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:16]Read from MH i2c: E2 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: E2 17 00 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: E2 17 00 A4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 77 [00:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:29:16]wFMCommunicate OK [00:29:16]CreateOFDProtocolMessage done [00:29:16]OFDSenderStorePacket 145876 [00:29:16]StoreOFDPacket docnum=145876 [00:29:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 15 B7 04 01 EB 1D 5A 02 01 00 02 00 F8 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 94 D0 BE D0 BB D0 BE D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D1 80 D0 B1 D0 B5 D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 9D D0 B8 D1 8F D0 B7 D0 B0 D0 BB D1 8B 20 D0 B1 2F D0 BD 2C 20 34 31 2E 34 38 33 38 34 34 2C 20 37 31 2E 37 35 38 34 35 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D9 DA 1E 67 0E 04 04 00 22 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D4 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 35 04 06 00 24 BC 9F 0C C2 53 AD 62 A4 73 D6 D3 5D C4 [00:29:16]CheckFolder [00:29:16]dirname=/storage/ofd_packets [00:29:16]CheckFolder done [00:29:16]ProducePacketName [00:29:16]name=ofd_packets/00145876 [00:29:16]NVStorageSaveData ofd_packets/00145876 [00:29:16]File name is /storage/ofd_packets/00145876 [00:29:16]Write 298 bytes [00:29:16]NVStorageSaveData done [00:29:16]OFDSenderStorePacket done [00:29:16]KKMCreateOFDPacket done [00:29:16]NVStorageSaveData kkm_last_timestamp [00:29:16]File name is /storage/kkm_last_timestamp [00:29:16]Write 4 bytes [00:29:16]NVStorageSaveData done [00:29:16]ExternCall_PrintAddStr [00:29:16]wPrintStart [00:29:16]Write to MH i2c: 01 00 00 A5 06 AB [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 07 00 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 07 00 A5 06 00 00 00 00 00 FF 0F C0 [00:29:16]RasterBufferAndPrint [00:29:16]line Отчет об открытии смены [00:29:16]line ФФД: 1.0 [00:29:16]line ИНН: 02508201610067 [00:29:16]line Кассир: Долонбаев А. [00:29:16]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [00:29:16]line Место: АЗС № 126 "Партнер Нефть" [00:29:16]line 28.10.2024 00:29 [00:29:16]line Смена: 546 [00:29:16]line РНМ: 0000000000091683 [00:29:16]line ЗНМ: 0300000085 [00:29:16]line ФД: 145876 [00:29:16]line ФМ: 0000000000871745 [00:29:16]line ФПД: 40392540865107 [00:29:16]written 0, free lines is 4095 [00:29:16]OFD Sender: Processing packet 145876 [packets to send 206, broken 205] [00:29:16]ProducePacketName [00:29:16]name=ofd_packets/00145876 [00:29:16]OFD Sender: To server: pG, [00:29:16]CommunicateWithHost lk.salyk.kg:30040 [00:29:16]ConnectInit lk.salyk.kg [00:29:16]Write to MH i2c: 01 00 00 B7 06 BD [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 07 00 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 07 00 B7 06 00 00 00 00 00 58 0E 2A [00:29:16]RasterBufferAndPrint [00:29:16]line [00:29:16]line [00:29:16]line [00:29:16]line [00:29:16]line [00:29:16]written 0, free lines is 3680 [00:29:16]MH_Cut [00:29:16]Write to MH i2c: D1 01 00 BE 06 01 96 [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: D1 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: D1 01 00 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: D1 01 00 BE 06 00 95 [00:29:16]Write to MH i2c: 01 00 00 BF 06 C5 [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:16]Connected sock=10 [00:29:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 15 B7 04 01 EB 1D 5A 02 01 00 02 00 F8 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 94 D0 BE D0 BB D0 BE D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D1 80 D0 B1 D0 B5 D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 9D D0 B8 D1 8F D0 B7 D0 B0 D0 BB D1 8B 20 D0 B1 2F D0 BD 2C 20 34 31 2E 34 38 33 38 34 34 2C 20 37 31 2E 37 35 38 34 35 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D9 DA 1E 67 0E 04 04 00 22 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D4 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 35 04 06 00 24 BC 9F 0C C2 53 AD 62 A4 73 D6 D3 5D C4 [00:29:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 A4 88 47 00 19 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 31 37 34 35 10 04 04 00 D4 39 02 00 F4 03 04 00 07 80 1E 67 B6 04 01 00 00 EC 0D 39 26 6D 61 1F F5 [00:29:16]CommunicateWithHost err = 0 [00:29:16]CheckOFDResponse [00:29:16]1017 (14) - 77093643461234 [00:29:16]1041 (16) - 0000000000871745 [00:29:16]1040 (4) - 145876 [00:29:16]1012 (4) - 27.10.2024 18:01 [00:29:16]1206 (1) - 0 [00:29:16]OFD Sender: Remove packet 145876 [00:29:16]ProducePacketName [00:29:16]name=ofd_packets/00145876 [00:29:16]NVStorageDeleteData [00:29:16]*** Cut start [00:29:16]*** Partial cut [00:29:16]*** CUTSNS_PIN = 1 [00:29:16]*** CUTSNS_PIN = 0 [00:29:17]*** Brake cut motor [00:29:17]OFD Sender: No OFD packet to send [00:29:17]Read from MH i2c: 01 [00:29:17]MH_I2C_Read... [00:29:17]*** Stop cut motor [00:29:17]*** Cut end [00:29:17]Read from MH i2c: 01 07 00 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: 01 07 00 BF 06 00 00 00 00 00 FF 0F DA [00:29:17]process_action open_shift done [00:29:17]requested_data is exist [00:29:17]produce_requested_data [00:29:17]requested_item fd.num is exist - process it [00:29:17]SAM_PROTO_GetFieldsCounters [00:29:17]wFMCommunicate request_size=4 [00:29:17]MH_SAM_APDU [00:29:17]CAPDU: 80 13 00 00 [00:29:17]Write to MH i2c: E2 08 00 C0 06 80 13 00 00 00 00 00 00 42 [00:29:17]Write i2c OK [00:29:17]MH_I2C_Read... [00:29:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:17]Read from MH i2c: E2 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: E2 62 00 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: E2 62 00 C0 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D4 39 02 00 0E 04 04 00 22 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [00:29:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D4 39 02 00 0E 04 04 00 22 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:17]wFMCommunicate OK [00:29:17]SAM_PROTO_GetFieldsCounters done [00:29:17]requested_item shift.num is exist - process it [00:29:17]requested_item shift.opened is exist - process it [00:29:17]req_shift_opened [00:29:17]FM_GetShiftState [00:29:17]SAM_PROTO_GetShiftState [00:29:17]wFMCommunicate request_size=4 [00:29:17]MH_SAM_APDU [00:29:17]CAPDU: 80 13 01 00 [00:29:17]Write to MH i2c: E2 08 00 C1 06 80 13 01 00 00 00 00 00 44 [00:29:17]Write i2c OK [00:29:17]MH_I2C_Read... [00:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:17]Read from MH i2c: E2 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: E2 0E 00 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: E2 0E 00 C1 06 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 88 [00:29:17]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [00:29:17]wFMCommunicate OK [00:29:17]SAM_PROTO_GetShiftState done [00:29:17]FM_GetShiftState done [00:29:17]req_shift_opened done [00:29:17]requested_item shift.open_date is exist - process it [00:29:17]req_shift_open_date [00:29:17]req_shift_open_date done [00:29:17]produce_requested_data done [00:29:17]produce_requested_data return {"fd.num":145876,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353} [00:29:17]process_action_free open_shift [00:29:17]json_value_free [00:29:17]json_value_free done [00:29:17]process_json_proto returns [00:29:17]Send response to host [00:29:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":145876,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353}}} [00:29:17]free response buf [00:29:17]execute_script done [00:29:17]execute_script returns [00:29:17]free content buf [00:29:17]Sock 9.Close socket [00:29:17]Sock 9.Thread stoped [00:29:17]accept exits with 7 [00:29:17]New connection [00:29:17]New thread 3067362660 created [00:29:17]Thread 3067506020 joined [00:29:17]Waiting for new connection... [00:29:17] Sock 7.Parse request [00:29:17]Sock 7.Check first char [00:29:17]Sock 7.First char is OK [00:29:17]request: POST /json_proto HTTP/1.0 [00:29:17]Method: POST [00:29:17]URL: /json_proto [00:29:17]Method is POST - this is cgi request [00:29:17]url: /json_proto [00:29:17]query_string will be loaded in cgi processing [00:29:17]execute_cgi json_proto POST (null) [00:29:17]execute_cgi path=json_proto method=POST [00:29:17]POST find Content-Length [00:29:17]Host: 172.17.40.195:8080 [00:29:17]Content-Length: 331 [00:29:17]Content-Type: application/json [00:29:17] [00:29:17]POST finish read [00:29:17]Found Content-Length = 331 [00:29:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:17]execute_script... [00:29:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:17]POST & json_proto [00:29:17]process_json_proto [00:29:17]json parsed OK: [00:29:17]protocol is kg_v1.0 [00:29:17]action value=get_value [00:29:17]process_action get_value [00:29:17]cmd_get_value [00:29:17]process_action get_value done [00:29:17]requested_data is exist [00:29:17]produce_requested_data [00:29:17]requested_item fm.sale.total is exist - process it [00:29:17]SAM_PROTO_GetFMData [00:29:17]wFMCommunicate request_size=4 [00:29:17]MH_SAM_APDU [00:29:17]CAPDU: 80 13 03 00 [00:29:17]Write to MH i2c: E2 08 00 C2 06 80 13 03 00 00 00 00 00 47 [00:29:17]Write i2c OK [00:29:17]MH_I2C_Read... [00:29:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:18]Read from MH i2c: E2 [00:29:18]MH_I2C_Read... [00:29:18]Read from MH i2c: E2 FD 00 [00:29:18]MH_I2C_Read... [00:29:18]Read from MH i2c: E2 FD 00 C2 06 00 C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 CC [00:29:18]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 90 35 02 00 69 04 A3 00 6F 04 04 00 85 35 02 00 B1 04 05 00 72 F5 19 FE 03 70 04 05 00 18 F9 02 8E 03 72 04 04 00 5A FC 16 70 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 F5 B4 91 6C 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 77 FC 0B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 98 92 66 70 04 03 00 98 92 66 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 E4 0A EF 03 09 00 F6 03 90 00 [00:29:18]wFMCommunicate OK [00:29:18]wFMCommunicate request_size=4 [00:29:18]MH_SAM_APDU [00:29:18]CAPDU: 80 17 00 00 [00:29:18]Write to MH i2c: E2 08 00 C3 06 80 17 00 00 00 00 00 00 49 [00:29:18]Write i2c OK [00:29:18]MH_I2C_Read... [00:29:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:18]Read from MH i2c: E2 [00:29:18]MH_I2C_Read... [00:29:18]Read from MH i2c: E2 FD 00 [00:29:18]MH_I2C_Read... [00:29:18]Read from MH i2c: E2 FD 00 C3 06 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C4 [00:29:18]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 E8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:29:18]wFMCommunicate OK [00:29:18]wFMCommunicate request_size=4 [00:29:18]MH_SAM_APDU [00:29:18]CAPDU: 80 17 00 00 [00:29:18]Write to MH i2c: E2 08 00 C4 06 80 17 00 00 00 00 00 00 4A [00:29:18]Write i2c OK [00:29:18]MH_I2C_Read... [00:29:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:18]Read from MH i2c: E2 [00:29:18]MH_I2C_Read... [00:29:18]Read from MH i2c: E2 FD 00 [00:29:18]MH_I2C_Read... [00:29:18]Read from MH i2c: E2 FD 00 C4 06 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 EA [00:29:19]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:29:19]wFMCommunicate OK [00:29:19]wFMCommunicate request_size=4 [00:29:19]MH_SAM_APDU [00:29:19]CAPDU: 80 17 00 00 [00:29:19]Write to MH i2c: E2 08 00 C5 06 80 17 00 00 00 00 00 00 4B [00:29:19]Write i2c OK [00:29:19]MH_I2C_Read... [00:29:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:19]Read from MH i2c: E2 [00:29:19]MH_I2C_Read... [00:29:19]Read from MH i2c: E2 FD 00 [00:29:19]MH_I2C_Read... [00:29:19]Read from MH i2c: E2 FD 00 C5 06 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [00:29:19]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:29:19]wFMCommunicate OK [00:29:19]wFMCommunicate request_size=4 [00:29:19]MH_SAM_APDU [00:29:19]CAPDU: 80 17 00 00 [00:29:19]Write to MH i2c: E2 08 00 C6 06 80 17 00 00 00 00 00 00 4C [00:29:19]Write i2c OK [00:29:19]MH_I2C_Read... [00:29:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:29:19]Read from MH i2c: E2 [00:29:19]MH_I2C_Read... [00:29:19]Read from MH i2c: E2 DE 00 [00:29:19]MH_I2C_Read... [00:29:19]Read from MH i2c: E2 DE 00 C6 06 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2B [00:29:19]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:19]wFMCommunicate OK [00:29:19]SAM_PROTO_GetFMData done [00:29:19]requested_item fm.sale_refund.total is exist - process it [00:29:19]requested_item fm.buy.total is exist - process it [00:29:19]requested_item shift.sale.total is exist - process it [00:29:19]SAM_PROTO_GetShiftData [00:29:19]wFMCommunicate request_size=4 [00:29:19]MH_SAM_APDU [00:29:19]CAPDU: 80 13 02 00 [00:29:19]Write to MH i2c: E2 08 00 C7 06 80 13 02 00 00 00 00 00 4B [00:29:19]Write i2c OK [00:29:19]MH_I2C_Read... [00:29:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:20]Read from MH i2c: E2 [00:29:20]MH_I2C_Read... [00:29:20]Read from MH i2c: E2 FD 00 [00:29:20]MH_I2C_Read... [00:29:20]Read from MH i2c: E2 FD 00 C7 06 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 BE [00:29:20]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:29:20]wFMCommunicate OK [00:29:20]wFMCommunicate request_size=4 [00:29:20]MH_SAM_APDU [00:29:20]CAPDU: 80 17 00 00 [00:29:20]Write to MH i2c: E2 08 00 C8 06 80 17 00 00 00 00 00 00 4E [00:29:20]Write i2c OK [00:29:20]MH_I2C_Read... [00:29:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:20]Read from MH i2c: E2 [00:29:20]MH_I2C_Read... [00:29:20]Read from MH i2c: E2 FD 00 [00:29:20]MH_I2C_Read... [00:29:20]Read from MH i2c: E2 FD 00 C8 06 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 56 [00:29:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:29:21]wFMCommunicate OK [00:29:21]wFMCommunicate request_size=4 [00:29:21]MH_SAM_APDU [00:29:21]CAPDU: 80 17 00 00 [00:29:21]Write to MH i2c: E2 08 00 C9 06 80 17 00 00 00 00 00 00 4F [00:29:21]Write i2c OK [00:29:21]MH_I2C_Read... [00:29:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:21]Read from MH i2c: E2 [00:29:21]MH_I2C_Read... [00:29:21]Read from MH i2c: E2 FD 00 [00:29:21]MH_I2C_Read... [00:29:21]Read from MH i2c: E2 FD 00 C9 06 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 21 [00:29:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:29:21]wFMCommunicate OK [00:29:21]wFMCommunicate request_size=4 [00:29:21]MH_SAM_APDU [00:29:21]CAPDU: 80 17 00 00 [00:29:21]Write to MH i2c: E2 08 00 CA 06 80 17 00 00 00 00 00 00 50 [00:29:21]Write i2c OK [00:29:21]MH_I2C_Read... [00:29:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:21]Read from MH i2c: E2 [00:29:21]MH_I2C_Read... [00:29:21]Read from MH i2c: E2 FD 00 [00:29:21]MH_I2C_Read... [00:29:21]Read from MH i2c: E2 FD 00 CA 06 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 C2 [00:29:21]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:29:21]wFMCommunicate OK [00:29:21]wFMCommunicate request_size=4 [00:29:21]MH_SAM_APDU [00:29:21]CAPDU: 80 17 00 00 [00:29:21]Write to MH i2c: E2 08 00 CB 06 80 17 00 00 00 00 00 00 51 [00:29:21]Write i2c OK [00:29:21]MH_I2C_Read... [00:29:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:29:22]Read from MH i2c: E2 [00:29:22]MH_I2C_Read... [00:29:22]Read from MH i2c: E2 BD 00 [00:29:22]MH_I2C_Read... [00:29:22]Read from MH i2c: E2 BD 00 CB 06 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 37 [00:29:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:22]wFMCommunicate OK [00:29:22]SAM_PROTO_GetShiftData done [00:29:22]requested_item shift.sale.total_cash is exist - process it [00:29:22]requested_item shift.sale_refund.total is exist - process it [00:29:22]requested_item shift.sale_refund.total_cash is exist - process it [00:29:22]requested_item shift.buy.total is exist - process it [00:29:22]requested_item shift.buy.total_cash is exist - process it [00:29:22]produce_requested_data done [00:29:22]produce_requested_data return {"fm.sale.total":171480159.86,"fm.sale_refund.total":67222.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:29:22]process_action_free get_value [00:29:22]json_value_free [00:29:22]json_value_free done [00:29:22]process_json_proto returns [00:29:22]Send response to host [00:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":171480159.86,"fm.sale_refund.total":67222.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:29:22]free response buf [00:29:22]execute_script done [00:29:22]execute_script returns [00:29:22]free content buf [00:29:22]Sock 7.Close socket [00:29:22]Sock 7.Thread stoped [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:29:58]int [00:29:58]Write to MH i2c: 01 00 00 CC 06 D2 [00:29:58]*** FLAG_PRN_KEY set [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: 01 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: 01 07 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: 01 07 00 CC 06 00 08 00 00 00 FF 0F EF [00:29:58]state=0 [00:29:58]Key pressed [00:29:58]Feed [00:29:58]Write to MH i2c: D8 00 00 CD 06 AA [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: D8 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: D8 01 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: D8 01 00 CD 06 00 AB [00:29:58]int [00:29:58]Write to MH i2c: 01 00 00 CE 06 D4 [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: 01 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: 01 07 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: 01 07 00 CE 06 00 48 00 00 00 3C 00 5F [00:29:58]state=2 [00:29:58]Key pressed [00:29:58]int [00:29:58]Write to MH i2c: 01 00 00 CF 06 D5 [00:29:58]*** FLAG_PRN_KEY reset [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: 01 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: 01 07 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: 01 07 00 CF 06 00 00 00 00 00 FD 0F E8 [00:29:58]state=2 [00:29:58]Stop feed [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:42]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:37]accept exits with 9 [00:36:37]New connection [00:36:37]New thread 3067506020 created [00:36:37]Thread 3067362660 joined [00:36:37]Waiting for new connection... [00:36:37] Sock 9.Parse request [00:36:37]Sock 9.Check first char [00:36:37]Sock 9.First char is OK [00:36:37]request: POST /json_proto HTTP/1.0 [00:36:37]Method: POST [00:36:37]URL: /json_proto [00:36:37]Method is POST - this is cgi request [00:36:37]url: /json_proto [00:36:37]query_string will be loaded in cgi processing [00:36:37]execute_cgi json_proto POST (null) [00:36:37]execute_cgi path=json_proto method=POST [00:36:37]POST find Content-Length [00:36:37]Host: 172.17.40.195:8080 [00:36:37]Content-Length: 677 [00:36:37]Content-Type: application/json [00:36:37] [00:36:37]POST finish read [00:36:37]Found Content-Length = 677 [00:36:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.380, "sum" : 560.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 560.00, "payments": [ { "type": 0, "sum" : 560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:37]execute_script... [00:36: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)160632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.380, "sum" : 560.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 560.00, "payments": [ { "type": 0, "sum" : 560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:37]POST & json_proto [00:36:37]process_json_proto [00:36:37]json parsed OK: [00:36:37]protocol is kg_v1.0 [00:36:37]action value=close_receipt [00:36:37]process_action close_receipt [00:36:37]cmd_close_receipt [00:36:37]MH_GetDate [00:36:37]Write to MH i2c: F0 00 00 D0 06 C5 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: F0 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: F0 09 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: F0 09 00 D0 06 00 95 DC 1E 67 D5 8D 6C 64 F6 [00:36:37]GetLastDocTimeStamp 1730075353 [00:36:37]current date 1730075797 [00:36:37]FM_GetShiftState [00:36:37]SAM_PROTO_GetShiftState [00:36:37]wFMCommunicate request_size=4 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 13 01 00 [00:36:37]Write to MH i2c: E2 08 00 D1 06 80 13 01 00 00 00 00 00 54 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 0E 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 0E 00 D1 06 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 98 [00:36:37]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [00:36:37]wFMCommunicate OK [00:36:37]SAM_PROTO_GetShiftState done [00:36:37]FM_GetShiftState done [00:36:37]opened in 1730075353 [00:36:37]opened+sec_in_day 1730161753 [00:36:37]quantity*price = 56062 [00:36:37]sum+1 = 56063 [00:36:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 560.00 Внесено: 560.00 СДАЧА: 0.00 НСП 1% : 4.96 НДС 12% : 59.53 Наличными: 560.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 1 28.10.2024 00:36 Смена: 546 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145877 ФПД: 188667640682977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T003637&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145877&fm=188667640682977&tin=02508201610067®Number=0000000000091683&sum=56000 [00:36:38]StoreToDocumentArchive [00:36:38]shift 546 fd 145877 [00:36:38]save to /storage/0546/doc_00145877 [00:36:38]save last doc name /storage/0546/doc_00145877 to /storage/kkm_last_doc_name [00:36:38]save OK [00:36:38]Clear old archive folders... [00:36:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:36:38]tlvbuf is 006C2450 [00:36:38]SAM_PROTO_ClearQueue [00:36:38]wFMCommunicate request_size=4 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 09 00 00 [00:36:38]Write to MH i2c: E2 08 00 DE 06 80 09 00 00 00 00 00 00 56 [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [00:36:38]RAPDU: 90 00 [00:36:38]wFMCommunicate OK [00:36:38]SAM_PROTO_ClearQueue done [00:36:38]KKMCreateOFDPacket [00:36:38]OFDProtocolAddRootSTLVToBuf [00:36:38]FM_MakeSignedData [00:36:38]FM_MakeSignedData [00:36:38]SAM_PROTO_SignData [00:36:38]wFMCommunicate request_size=4 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 0D 01 02 [00:36:38]Write to MH i2c: E2 08 00 DF 06 80 0D 01 02 00 00 00 00 5E [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [00:36:38]RAPDU: 90 00 [00:36:38]wFMCommunicate OK [00:36:38]wFMCommunicate request_size=255 [00:36:38]MH_SAM_APDU [00:36: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 32 FF 03 08 00 03 BC 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 95 DC 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D5 39 02 00 35 04 06 00 AB [00:36:38]Write to MH i2c: E2 02 01 E0 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BC 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 95 DC 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D5 39 02 00 35 04 06 00 AB 00 00 AA [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [00:36:38]RAPDU: 90 00 [00:36:38]wFMCommunicate OK [00:36:38]wFMCommunicate request_size=10 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 0D 02 02 05 97 9B B4 19 E1 [00:36:38]Write to MH i2c: E2 0D 00 E1 06 80 0D 02 02 05 00 97 9B B4 19 E1 00 00 4B [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [00:36:38]RAPDU: 90 00 [00:36:38]wFMCommunicate OK [00:36:38]wFMCommunicate request_size=4 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 0D 03 02 [00:36:38]Write to MH i2c: E2 08 00 E2 06 80 0D 03 02 00 00 00 00 63 [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 0B 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 0B 00 E2 06 00 83 A7 80 9A 99 AB 69 BF 90 00 14 [00:36:38]RAPDU: 83 A7 80 9A 99 AB 69 BF 90 00 [00:36:38]wFMCommunicate OK [00:36:38]SAM_PROTO_SignData done [00:36:38]FM_MakeSignedData done [00:36:38]CreateOFDProtocolMessage [00:36:38]wFMCommunicate request_size=4 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 11 00 00 [00:36:38]Write to MH i2c: E2 08 00 E3 06 80 11 00 00 00 00 00 00 63 [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 17 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 17 00 E3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 B6 [00:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:36:38]wFMCommunicate OK [00:36:38]CreateOFDProtocolMessage done [00:36:38]OFDSenderStorePacket 145877 [00:36:38]StoreOFDPacket docnum=145877 [00:41:29]ConnectInit Can't connect to host [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:51:58]accept exits with 7 [00:51:58]New connection [00:51:58]New thread 3067362660 created [00:51:58]Thread 3067506020 joined [00:51:58]Waiting for new connection... [00:51:58] Sock 7.Parse request [00:51:58]Sock 7.Check first char [00:51:58]Sock 7.First char is OK [00:51:58]request: POST /json_proto HTTP/1.0 [00:51:58]Method: POST [00:51:58]URL: /json_proto [00:51:58]Method is POST - this is cgi request [00:51:58]url: /json_proto [00:51:58]query_string will be loaded in cgi processing [00:51:58]execute_cgi json_proto POST (null) [00:51:58]execute_cgi path=json_proto method=POST [00:51:58]POST find Content-Length [00:51:58]Host: 172.17.40.195:8080 [00:51:58]Content-Length: 766 [00:51:58]Content-Type: application/json [00:51:58] [00:51:58]POST finish read [00:51:58]Found Content-Length = 766 [00:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:58]execute_script... [00:51: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)160633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:58]POST & json_proto [00:51:58]process_json_proto [00:51:58]json parsed OK: [00:51:58]protocol is kg_v1.0 [00:51:58]action value=close_receipt [00:51:58]process_action close_receipt [00:51:58]cmd_close_receipt [00:51:58]MH_GetDate [00:51:58]Write to MH i2c: F0 00 00 1B 07 11 [00:51:58]Write i2c OK [00:51:58]MH_I2C_Read... [00:51:58]Read from MH i2c: F0 [00:51:58]MH_I2C_Read... [00:51:58]Read from MH i2c: F0 09 00 [00:51:58]MH_I2C_Read... [00:51:58]Read from MH i2c: F0 09 00 1B 07 00 2E E0 1E 67 D5 8D 6C 64 DF [00:51:58]GetLastDocTimeStamp 1730075797 [00:51:58]current date 1730076718 [00:51:58]FM_GetShiftState [00:51:58]SAM_PROTO_GetShiftState [00:51:58]wFMCommunicate request_size=4 [00:51:58]MH_SAM_APDU [00:51:58]CAPDU: 80 13 01 00 [00:51:58]Write to MH i2c: E2 08 00 1C 07 80 13 01 00 00 00 00 00 A0 [00:51:58]Write i2c OK [00:51:58]MH_I2C_Read... [00:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:58]Read from MH i2c: E2 [00:51:58]MH_I2C_Read... [00:51:58]Read from MH i2c: E2 0E 00 [00:51:58]MH_I2C_Read... [00:51:58]Read from MH i2c: E2 0E 00 1C 07 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 E4 [00:51:58]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [00:51:58]wFMCommunicate OK [00:51:58]SAM_PROTO_GetShiftState done [00:51:58]FM_GetShiftState done [00:51:58]opened in 1730075353 [00:51:58]opened+sec_in_day 1730161753 [00:51:58]quantity*price = 450037 [00:51:58]sum+1 = 450038 [00:51:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4500.37 НСП 1% : 39.83 НДС 12% : 477.91 Наличными: 0.00 Безнал.: 4500.37 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 2 28.10.2024 00:51 Смена: 546 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145878 ФПД: 153570760489349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T005158&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145878&fm=153570760489349&tin=02508201610067®Number=0000000000091683&sum=450037 [00:51:59]StoreToDocumentArchive [00:51:59]shift 546 fd 145878 [00:51:59]save to /storage/0546/doc_00145878 [00:51:59]save last doc name /storage/0546/doc_00145878 to /storage/kkm_last_doc_name [00:51:59]save OK [00:51:59]Clear old archive folders... [00:51:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:51:59]tlvbuf is 006B2C30 [00:51:59]SAM_PROTO_ClearQueue [00:51:59]wFMCommunicate request_size=4 [00:51:59]MH_SAM_APDU [00:51:59]CAPDU: 80 09 00 00 [00:51:59]Write to MH i2c: E2 08 00 29 07 80 09 00 00 00 00 00 00 A2 [00:51:59]Write i2c OK [00:51:59]MH_I2C_Read... [00:51:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:59]Read from MH i2c: E2 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 03 00 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [00:51:59]RAPDU: 90 00 [00:51:59]wFMCommunicate OK [00:51:59]SAM_PROTO_ClearQueue done [00:51:59]KKMCreateOFDPacket [00:51:59]OFDProtocolAddRootSTLVToBuf [00:51:59]FM_MakeSignedData [00:51:59]FM_MakeSignedData [00:51:59]SAM_PROTO_SignData [00:51:59]wFMCommunicate request_size=4 [00:51:59]MH_SAM_APDU [00:51:59]CAPDU: 80 0D 01 02 [00:51:59]Write to MH i2c: E2 08 00 2A 07 80 0D 01 02 00 00 00 00 AA [00:51:59]Write i2c OK [00:51:59]MH_I2C_Read... [00:51:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:59]Read from MH i2c: E2 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 03 00 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [00:51:59]RAPDU: 90 00 [00:51:59]wFMCommunicate OK [00:51:59]wFMCommunicate request_size=255 [00:51:59]MH_SAM_APDU [00:51: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 32 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2E E0 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D6 39 02 00 35 04 06 00 8B AB FA A0 [00:51:59]Write to MH i2c: E2 02 01 2B 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2E E0 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D6 39 02 00 35 04 06 00 8B AB FA A0 00 00 AA [00:51:59]Write i2c OK [00:51:59]MH_I2C_Read... [00:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:59]Read from MH i2c: E2 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 03 00 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 03 00 2B 07 00 90 00 A6 [00:51:59]RAPDU: 90 00 [00:51:59]wFMCommunicate OK [00:51:59]wFMCommunicate request_size=7 [00:51:59]MH_SAM_APDU [00:51:59]CAPDU: 80 0D 02 02 02 79 85 [00:51:59]Write to MH i2c: E2 0A 00 2C 07 80 0D 02 02 02 00 79 85 00 00 AF [00:51:59]Write i2c OK [00:51:59]MH_I2C_Read... [00:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:59]Read from MH i2c: E2 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 03 00 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 03 00 2C 07 00 90 00 A7 [00:51:59]RAPDU: 90 00 [00:51:59]wFMCommunicate OK [00:51:59]wFMCommunicate request_size=4 [00:51:59]MH_SAM_APDU [00:51:59]CAPDU: 80 0D 03 02 [00:51:59]Write to MH i2c: E2 08 00 2D 07 80 0D 03 02 00 00 00 00 AF [00:51:59]Write i2c OK [00:51:59]MH_I2C_Read... [00:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:59]Read from MH i2c: E2 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 0B 00 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 0B 00 2D 07 00 E6 8B 32 3C CB 30 1C BA 90 00 60 [00:51:59]RAPDU: E6 8B 32 3C CB 30 1C BA 90 00 [00:51:59]wFMCommunicate OK [00:51:59]SAM_PROTO_SignData done [00:51:59]FM_MakeSignedData done [00:51:59]CreateOFDProtocolMessage [00:51:59]wFMCommunicate request_size=4 [00:51:59]MH_SAM_APDU [00:51:59]CAPDU: 80 11 00 00 [00:51:59]Write to MH i2c: E2 08 00 2E 07 80 11 00 00 00 00 00 00 AF [00:51:59]Write i2c OK [00:51:59]MH_I2C_Read... [00:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:59]Read from MH i2c: E2 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 17 00 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: E2 17 00 2E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 02 [00:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:51:59]wFMCommunicate OK [00:51:59]CreateOFDProtocolMessage done [00:51:59]OFDSenderStorePacket 145878 [00:51:59]StoreOFDPacket docnum=145878 [00:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 1B EC 04 01 03 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2E E0 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D6 39 02 00 35 04 06 00 8B AB FA A0 79 85 E6 8B 32 3C CB 30 1C BA [00:51:59]CheckFolder [00:51:59]dirname=/storage/ofd_packets [00:51:59]CheckFolder done [00:51:59]ProducePacketName [00:51:59]name=ofd_packets/00145878 [00:51:59]NVStorageSaveData ofd_packets/00145878 [00:51:59]File name is /storage/ofd_packets/00145878 [00:51:59]Write 298 bytes [00:51:59]NVStorageSaveData done [00:51:59]OFDSenderStorePacket done [00:51:59]KKMCreateOFDPacket done [00:51:59]NVStorageSaveData kkm_last_timestamp [00:51:59]File name is /storage/kkm_last_timestamp [00:51:59]Write 4 bytes [00:51:59]NVStorageSaveData done [00:51:59]ExternCall_PrintAddStr [00:51:59]wPrintStart [00:51:59]Write to MH i2c: 01 00 00 2F 07 36 [00:51:59]Write i2c OK [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: 01 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: 01 07 00 [00:51:59]MH_I2C_Read... [00:51:59]Read from MH i2c: 01 07 00 2F 07 00 00 00 00 00 FF 0F 4B [00:51:59]RasterBufferAndPrint [00:51:59]line Счет N : (1)160633 [00:51:59]line ИНН: 02508201610067 [00:51:59]line Контрольно-Кассовый Чек [00:51:59]line ПРОДАЖА [00:51:59]line ТРК (МРК, ГНК) : 21 [00:51:59]line Товар: 2710194210 [00:51:59]line ДТ-К-2 [00:51:59]line 59.060 * 76.20 [00:51:59]line = 4500.37 [00:51:59]line НДС 12% НСП 1% [00:51:59]line > о реализуемом товаре [00:51:59]line ИТОГО: 4500.37 [00:51:59]line НСП 1% : 39.83 [00:51:59]line НДС 12% : 477.91 [00:51:59]line Наличными: 0.00 [00:51:59]line Безнал.: 4500.37 [00:51:59]line Место: АЗС № 126 "Партнер Нефть" [00:51:59]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [00:51:59]line СНО: Общий режим [00:51:59]line Чек 2 28.10.2024 00:51 [00:51:59]line Смена: 546 ФФД: 1.0 [00:51:59]line ЗНМ: 0300000085 [00:51:59]line РНМ: 0000000000091683 [00:51:59]line Версия ККМ: 001 [00:51:59]line Платежная система: Mbank [00:51:59]line ФМ: 0000000000871745 [00:51:59]line ФД: 145878 [00:51:59]line ФПД: 153570760489349 [00:52:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T005158&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145878&fm=153570760489349&tin=02508201610067®Number=0000000000091683&sum=450037 [00:52:00]OFD Sender: Processing packet 145878 [packets to send 206, broken 205] [00:52:00]ProducePacketName [00:52:00]name=ofd_packets/00145878 [00:52:00]OFD Sender: To server: pG, [00:52:00]CommunicateWithHost lk.salyk.kg:30040 [00:52:00]ConnectInit lk.salyk.kg [00:52:00]written 0, free lines is 4095 [00:52:00]Connected sock=10 [00:52:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 1B EC 04 01 03 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2E E0 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D6 39 02 00 35 04 06 00 8B AB FA A0 79 85 E6 8B 32 3C CB 30 1C BA [00:52:00]Write to MH i2c: 01 00 00 58 07 5F [00:52:00]Write i2c OK [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: 01 [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: 01 07 00 [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: 01 07 00 58 07 00 00 00 00 00 C6 0C 38 [00:52:00]RasterBufferAndPrint [00:52:00]line [00:52:00]line [00:52:00]line [00:52:00]line [00:52:00]line [00:52:00]written 0, free lines is 3274 [00:52:00]MH_Cut [00:52:00]Write to MH i2c: D1 01 00 5F 07 01 38 [00:52:00]Write i2c OK [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: D1 [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: D1 01 00 [00:52:00]MH_I2C_Read... [00:52:00]Read from MH i2c: D1 01 00 5F 07 00 37 [00:52:00]Write to MH i2c: 01 00 00 60 07 67 [00:52:00]Write i2c OK [00:52:00]MH_I2C_Read... [00:52:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 70 00 47 00 28 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D6 39 02 00 F4 03 04 00 5A 85 1E 67 B6 04 01 00 00 7B DF E7 B6 62 64 8A BC [00:52:00]CommunicateWithHost err = 0 [00:52:00]CheckOFDResponse [00:52:00]1017 (14) - 77093643461234 [00:52:00]1041 (16) - 0000000000871745 [00:52:00]1040 (4) - 145878 [00:52:00]1012 (4) - 27.10.2024 18:24 [00:52:00]1206 (1) - 0 [00:52:00]OFD Sender: Remove packet 145878 [00:52:00]ProducePacketName [00:52:00]name=ofd_packets/00145878 [00:52:00]NVStorageDeleteData [00:52:01]OFD Sender: No OFD packet to send [00:52:01]*** Cut start [00:52:01]*** Partial cut [00:52:01]*** CUTSNS_PIN = 1 [00:52:01]*** CUTSNS_PIN = 0 [00:52:01]*** Brake cut motor [00:52:01]Read from MH i2c: 01 [00:52:01]MH_I2C_Read... [00:52:01]*** Stop cut motor [00:52:01]Read from MH i2c: 01 07 00 [00:52:01]MH_I2C_Read... [00:52:01]*** Cut end [00:52:01]Read from MH i2c: 01 07 00 60 07 00 00 00 00 00 FF 0F 7C [00:52:01]process_action close_receipt done [00:52:01]requested_data is exist [00:52:01]produce_requested_data [00:52:01]requested_item fm.sn is exist - process it [00:52:01]wFMCommunicate request_size=4 [00:52:01]MH_SAM_APDU [00:52:01]CAPDU: 80 11 00 00 [00:52:01]Write to MH i2c: E2 08 00 61 07 80 11 00 00 00 00 00 00 E2 [00:52:01]Write i2c OK [00:52:01]MH_I2C_Read... [00:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:01]Read from MH i2c: E2 [00:52:01]MH_I2C_Read... [00:52:01]Read from MH i2c: E2 17 00 [00:52:01]MH_I2C_Read... [00:52:01]Read from MH i2c: E2 17 00 61 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 35 [00:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [00:52:01]wFMCommunicate OK [00:52:01]requested_item fd.num is exist - process it [00:52:01]SAM_PROTO_GetFieldsCounters [00:52:01]wFMCommunicate request_size=4 [00:52:01]MH_SAM_APDU [00:52:01]CAPDU: 80 13 00 00 [00:52:01]Write to MH i2c: E2 08 00 62 07 80 13 00 00 00 00 00 00 E5 [00:52:01]Write i2c OK [00:52:01]MH_I2C_Read... [00:52:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:02]Read from MH i2c: E2 [00:52:02]MH_I2C_Read... [00:52:02]Read from MH i2c: E2 62 00 [00:52:02]MH_I2C_Read... [00:52:02]Read from MH i2c: E2 62 00 62 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D6 39 02 00 0E 04 04 00 22 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [00:52:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 D6 39 02 00 0E 04 04 00 22 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:52:02]wFMCommunicate OK [00:52:02]SAM_PROTO_GetFieldsCounters done [00:52:02]requested_item shift.num is exist - process it [00:52:02]requested_item shift.opened is exist - process it [00:52:02]req_shift_opened [00:52:02]FM_GetShiftState [00:52:02]SAM_PROTO_GetShiftState [00:52:02]wFMCommunicate request_size=4 [00:52:02]MH_SAM_APDU [00:52:02]CAPDU: 80 13 01 00 [00:52:02]Write to MH i2c: E2 08 00 63 07 80 13 01 00 00 00 00 00 E7 [00:52:02]Write i2c OK [00:52:02]MH_I2C_Read... [00:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:02]Read from MH i2c: E2 [00:52:02]MH_I2C_Read... [00:52:02]Read from MH i2c: E2 0E 00 [00:52:02]MH_I2C_Read... [00:52:02]Read from MH i2c: E2 0E 00 63 07 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 2B [00:52:02]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [00:52:02]wFMCommunicate OK [00:52:02]SAM_PROTO_GetShiftState done [00:52:02]FM_GetShiftState done [00:52:02]req_shift_opened done [00:52:02]requested_item shift.open_date is exist - process it [00:52:02]req_shift_open_date [00:52:02]req_shift_open_date done [00:52:02]produce_requested_data done [00:52:02]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145878,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353} [00:52:02]process_action_free close_receipt [00:52:02]json_value_free [00:52:02]json_value_free done [00:52:02]process_json_proto returns [00:52:02]Send response to host [00:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145878,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353}}} [00:52:02]free response buf [00:52:02]execute_script done [00:52:02]execute_script returns [00:52:02]free content buf [00:52:02]Sock 7.Close socket [00:52:02]Sock 7.Thread stoped [00:52:05]int [00:52:05]Write to MH i2c: 01 00 00 64 07 6B [00:52:05]*** FLAG_PRN_KEY set [00:52:05]Write i2c OK [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: 01 [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: 01 07 00 [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: 01 07 00 64 07 00 08 00 00 00 FF 0F 88 [00:52:05]state=0 [00:52:05]Key pressed [00:52:05]Feed [00:52:05]Write to MH i2c: D8 00 00 65 07 43 [00:52:05]Write i2c OK [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: D8 [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: D8 01 00 [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: D8 01 00 65 07 00 44 [00:52:05]int [00:52:05]Write to MH i2c: 01 00 00 66 07 6D [00:52:05]Write i2c OK [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: 01 [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: 01 07 00 [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: 01 07 00 66 07 00 48 00 00 00 3C 00 F8 [00:52:05]state=2 [00:52:05]Key pressed [00:52:05]int [00:52:05]Write to MH i2c: 01 00 00 67 07 6E [00:52:05]*** FLAG_PRN_KEY reset [00:52:05]Write i2c OK [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: 01 [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: 01 07 00 [00:52:05]MH_I2C_Read... [00:52:05]Read from MH i2c: 01 07 00 67 07 00 00 00 00 00 FF 0F 83 [00:52:05]state=2 [00:52:05]Stop feed [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:56:36]ConnectInit Can't connect to host [00:56:40]ConnectInit Can't take IP for lk.salyk.kg [00:56:40]CommunicateWithHost connect error [00:56:40]CommunicateWithHost err = -1 [00:56:40]OFD Sender: Server communicate error [00:56:45]OFD Sender: Processing packet 145879 [packets to send 206, broken 205] [00:56:45]ProducePacketName [00:56:45]name=ofd_packets/00145879 [00:56:45]OFD Sender: To server: pG, [00:56:45]CommunicateWithHost lk.salyk.kg:30040 [00:56:45]ConnectInit lk.salyk.kg [00:56:45]Connected sock=7 [00:56:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 CE 7F 0D 01 3A A9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 DE E0 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D7 39 02 00 35 04 06 00 95 9C 61 D0 09 31 44 BF 49 CB 8E 7C E6 12 [00:56:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C4 F6 47 00 81 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 D7 39 02 00 F4 03 04 00 78 86 1E 67 B6 04 01 00 00 CA 9B 04 91 13 38 62 A2 [00:56:46]CommunicateWithHost err = 0 [00:56:46]CheckOFDResponse [00:56:46]1017 (14) - 77093643461234 [00:56:46]1041 (16) - 0000000000871745 [00:56:46]1040 (4) - 145879 [00:56:46]1012 (4) - 27.10.2024 18:29 [00:56:46]1206 (1) - 0 [00:56:46]OFD Sender: Remove packet 145879 [00:56:46]ProducePacketName [00:56:46]name=ofd_packets/00145879 [00:56:46]NVStorageDeleteData [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:19]accept exits with 10 [00:57:19]New connection [00:57:19]New thread 3067362660 created [00:57:19]Thread 3067506020 joined [00:57:19]Waiting for new connection... [00:57:19] Sock 10.Parse request [00:57:19]Sock 10.Check first char [00:57:19]Sock 10.First char is OK [00:57:19]request: POST /json_proto HTTP/1.0 [00:57:19]Method: POST [00:57:19]URL: /json_proto [00:57:19]Method is POST - this is cgi request [00:57:19]url: /json_proto [00:57:19]query_string will be loaded in cgi processing [00:57:19]execute_cgi json_proto POST (null) [00:57:19]execute_cgi path=json_proto method=POST [00:57:19]POST find Content-Length [00:57:19]Host: 172.17.40.195:8080 [00:57:19]Content-Length: 679 [00:57:19]Content-Type: application/json [00:57:19] [00:57:19]POST finish read [00:57:19]Found Content-Length = 679 [00:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [00:57:19]execute_script... [00:57: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)160635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [00:57:19]POST & json_proto [00:57:19]process_json_proto [00:57:19]json parsed OK: [00:57:19]protocol is kg_v1.0 [00:57:19]action value=close_receipt [00:57:19]process_action close_receipt [00:57:19]cmd_close_receipt [00:57:19]MH_GetDate [00:57:19]Write to MH i2c: F0 00 00 B3 07 A9 [00:57:19]Write i2c OK [00:57:19]MH_I2C_Read... [00:57:19]Read from MH i2c: F0 [00:57:19]MH_I2C_Read... [00:57:19]Read from MH i2c: F0 09 00 [00:57:19]MH_I2C_Read... [00:57:19]Read from MH i2c: F0 09 00 B3 07 00 70 E1 1E 67 D5 8D 6C 64 BA [00:57:19]GetLastDocTimeStamp 1730076894 [00:57:19]current date 1730077040 [00:57:19]FM_GetShiftState [00:57:19]SAM_PROTO_GetShiftState [00:57:19]wFMCommunicate request_size=4 [00:57:19]MH_SAM_APDU [00:57:19]CAPDU: 80 13 01 00 [00:57:19]Write to MH i2c: E2 08 00 B4 07 80 13 01 00 00 00 00 00 38 [00:57:19]Write i2c OK [00:57:19]MH_I2C_Read... [00:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:19]Read from MH i2c: E2 [00:57:19]MH_I2C_Read... [00:57:19]Read from MH i2c: E2 0E 00 [00:57:19]MH_I2C_Read... [00:57:19]Read from MH i2c: E2 0E 00 B4 07 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 7C [00:57:19]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [00:57:19]wFMCommunicate OK [00:57:19]SAM_PROTO_GetShiftState done [00:57:19]FM_GetShiftState done [00:57:19]opened in 1730075353 [00:57:19]opened+sec_in_day 1730161753 [00:57:19]quantity*price = 250012 [00:57:19]sum+1 = 250013 [00:57:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 10 28.10.2024 01:38 Смена: 546 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145886 ФПД: 229544085519622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T013844&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145886&fm=229544085519622&tin=02508201610067®Number=0000000000091683&sum=200000 [01:38:44]StoreToDocumentArchive [01:38:44]shift 546 fd 145886 [01:38:44]save to /storage/0546/doc_00145886 [01:38:44]save last doc name /storage/0546/doc_00145886 to /storage/kkm_last_doc_name [01:38:44]save OK [01:38:44]Clear old archive folders... [01:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:38:44]tlvbuf is 0067BA50 [01:38:44]SAM_PROTO_ClearQueue [01:38:44]wFMCommunicate request_size=4 [01:38:44]MH_SAM_APDU [01:38:44]CAPDU: 80 09 00 00 [01:38:44]Write to MH i2c: E2 08 00 87 09 80 09 00 00 00 00 00 00 02 [01:38:44]Write i2c OK [01:38:44]MH_I2C_Read... [01:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:38:44]Read from MH i2c: E2 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 03 00 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 03 00 87 09 00 90 00 04 [01:38:44]RAPDU: 90 00 [01:38:44]wFMCommunicate OK [01:38:44]SAM_PROTO_ClearQueue done [01:38:44]KKMCreateOFDPacket [01:38:44]OFDProtocolAddRootSTLVToBuf [01:38:44]FM_MakeSignedData [01:38:44]FM_MakeSignedData [01:38:44]SAM_PROTO_SignData [01:38:44]wFMCommunicate request_size=4 [01:38:44]MH_SAM_APDU [01:38:44]CAPDU: 80 0D 01 02 [01:38:44]Write to MH i2c: E2 08 00 88 09 80 0D 01 02 00 00 00 00 0A [01:38:44]Write i2c OK [01:38:44]MH_I2C_Read... [01:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:38:44]Read from MH i2c: E2 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 03 00 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 03 00 88 09 00 90 00 05 [01:38:44]RAPDU: 90 00 [01:38:44]wFMCommunicate OK [01:38:44]wFMCommunicate request_size=255 [01:38:44]MH_SAM_APDU [01:38:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 24 EB 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DE 39 02 00 35 04 06 00 D0 C4 E5 AD [01:38:44]Write to MH i2c: E2 02 01 89 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 24 EB 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DE 39 02 00 35 04 06 00 D0 C4 E5 AD 00 00 7D [01:38:44]Write i2c OK [01:38:44]MH_I2C_Read... [01:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:44]Read from MH i2c: E2 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 03 00 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 03 00 89 09 00 90 00 06 [01:38:44]RAPDU: 90 00 [01:38:44]wFMCommunicate OK [01:38:44]wFMCommunicate request_size=7 [01:38:44]MH_SAM_APDU [01:38:44]CAPDU: 80 0D 02 02 02 7D 06 [01:38:44]Write to MH i2c: E2 0A 00 8A 09 80 0D 02 02 02 00 7D 06 00 00 94 [01:38:44]Write i2c OK [01:38:44]MH_I2C_Read... [01:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:44]Read from MH i2c: E2 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 03 00 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 03 00 8A 09 00 90 00 07 [01:38:44]RAPDU: 90 00 [01:38:44]wFMCommunicate OK [01:38:44]wFMCommunicate request_size=4 [01:38:44]MH_SAM_APDU [01:38:44]CAPDU: 80 0D 03 02 [01:38:44]Write to MH i2c: E2 08 00 8B 09 80 0D 03 02 00 00 00 00 0F [01:38:44]Write i2c OK [01:38:44]MH_I2C_Read... [01:38:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:38:44]Read from MH i2c: E2 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 0B 00 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 0B 00 8B 09 00 5E F6 B6 56 35 5B 93 2E 90 00 C1 [01:38:44]RAPDU: 5E F6 B6 56 35 5B 93 2E 90 00 [01:38:44]wFMCommunicate OK [01:38:44]SAM_PROTO_SignData done [01:38:44]FM_MakeSignedData done [01:38:44]CreateOFDProtocolMessage [01:38:44]wFMCommunicate request_size=4 [01:38:44]MH_SAM_APDU [01:38:44]CAPDU: 80 11 00 00 [01:38:44]Write to MH i2c: E2 08 00 8C 09 80 11 00 00 00 00 00 00 0F [01:38:44]Write i2c OK [01:38:44]MH_I2C_Read... [01:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:44]Read from MH i2c: E2 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 17 00 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: E2 17 00 8C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 62 [01:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [01:38:44]wFMCommunicate OK [01:38:44]CreateOFDProtocolMessage done [01:38:44]OFDSenderStorePacket 145886 [01:38:44]StoreOFDPacket docnum=145886 [01:38:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 F3 10 04 01 66 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 24 EB 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DE 39 02 00 35 04 06 00 D0 C4 E5 AD 7D 06 5E F6 B6 56 35 5B 93 2E [01:38:44]CheckFolder [01:38:44]dirname=/storage/ofd_packets [01:38:44]CheckFolder done [01:38:44]ProducePacketName [01:38:44]name=ofd_packets/00145886 [01:38:44]NVStorageSaveData ofd_packets/00145886 [01:38:44]File name is /storage/ofd_packets/00145886 [01:38:44]Write 298 bytes [01:38:44]NVStorageSaveData done [01:38:44]OFDSenderStorePacket done [01:38:44]KKMCreateOFDPacket done [01:38:44]NVStorageSaveData kkm_last_timestamp [01:38:44]File name is /storage/kkm_last_timestamp [01:38:44]Write 4 bytes [01:38:44]NVStorageSaveData done [01:38:44]ExternCall_PrintAddStr [01:38:44]wPrintStart [01:38:44]Write to MH i2c: 01 00 00 8D 09 96 [01:38:44]Write i2c OK [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: 01 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: 01 07 00 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: 01 07 00 8D 09 00 00 00 00 00 FF 0F AB [01:38:44]RasterBufferAndPrint [01:38:44]line Счет N : (1)160641 [01:38:44]line ИНН: 02508201610067 [01:38:44]line Контрольно-Кассовый Чек [01:38:44]line ПРОДАЖА [01:38:44]line ТРК (МРК, ГНК) : 11 [01:38:44]line Товар: 2710194210 [01:38:44]line ДТ-К-2 [01:38:44]line 26.250 * 76.20 [01:38:44]line = 2000.25 [01:38:44]line НДС 12% НСП 1% [01:38:44]line > о реализуемом товаре [01:38:44]line ОКРУГЛЕНИЕ: -0.25 [01:38:44]line ИТОГО: 2000.00 [01:38:44]line Внесено: 2000.00 [01:38:44]line СДАЧА: 0.00 [01:38:44]line НСП 1% : 17.70 [01:38:44]line НДС 12% : 212.42 [01:38:44]line Наличными: 2000.00 [01:38:44]line Безнал.: 0.00 [01:38:44]line Место: АЗС № 126 "Партнер Нефть" [01:38:44]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [01:38:44]line СНО: Общий режим [01:38:44]line Чек 10 28.10.2024 01:38 [01:38:44]line Смена: 546 ФФД: 1.0 [01:38:44]line ЗНМ: 0300000085 [01:38:44]line РНМ: 0000000000091683 [01:38:44]line Версия ККМ: 001 [01:38:44]line ФМ: 0000000000871745 [01:38:44]line ФД: 145886 [01:38:44]line ФПД: 229544085519622 [01:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T013844&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145886&fm=229544085519622&tin=02508201610067®Number=0000000000091683&sum=200000 [01:38:45]OFD Sender: Processing packet 145886 [packets to send 206, broken 205] [01:38:45]ProducePacketName [01:38:45]name=ofd_packets/00145886 [01:38:45]OFD Sender: To server: pG, [01:38:45]CommunicateWithHost lk.salyk.kg:30040 [01:38:45]ConnectInit lk.salyk.kg [01:38:45]written 0, free lines is 4095 [01:38:45]Connected sock=10 [01:38:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0C 01 00 00 F3 10 04 01 66 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 24 EB 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DE 39 02 00 35 04 06 00 D0 C4 E5 AD 7D 06 5E F6 B6 56 35 5B 93 2E [01:38:45]Write to MH i2c: 01 00 00 B8 09 C1 [01:38:45]Write i2c OK [01:38:45]MH_I2C_Read... [01:38:45]Read from MH i2c: 01 [01:38:45]MH_I2C_Read... [01:38:45]Read from MH i2c: 01 07 00 [01:38:45]MH_I2C_Read... [01:38:45]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 9B 0C 6F [01:38:45]RasterBufferAndPrint [01:38:45]line [01:38:45]line [01:38:45]line [01:38:45]line [01:38:45]line [01:38:45]written 0, free lines is 3233 [01:38:45]MH_Cut [01:38:45]Write to MH i2c: D1 01 00 BF 09 01 9A [01:38:45]Write i2c OK [01:38:45]MH_I2C_Read... [01:38:45]Read from MH i2c: D1 [01:38:45]MH_I2C_Read... [01:38:45]Read from MH i2c: D1 01 00 [01:38:45]MH_I2C_Read... [01:38:45]Read from MH i2c: D1 01 00 BF 09 00 99 [01:38:45]Write to MH i2c: 01 00 00 C0 09 C9 [01:38:45]Write i2c OK [01:38:45]MH_I2C_Read... [01:38:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 76 4E 47 00 0A 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DE 39 02 00 F4 03 04 00 4F 90 1E 67 B6 04 01 00 00 A0 10 4E 70 1A E0 F4 5E [01:38:45]CommunicateWithHost err = 0 [01:38:45]CheckOFDResponse [01:38:45]1017 (14) - 77093643461234 [01:38:45]1041 (16) - 0000000000871745 [01:38:45]1040 (4) - 145886 [01:38:45]1012 (4) - 27.10.2024 19:11 [01:38:45]1206 (1) - 0 [01:38:45]OFD Sender: Remove packet 145886 [01:38:45]ProducePacketName [01:38:45]name=ofd_packets/00145886 [01:38:45]NVStorageDeleteData [01:38:46]OFD Sender: No OFD packet to send [01:38:46]*** Cut start [01:38:46]*** Partial cut [01:38:46]*** CUTSNS_PIN = 1 [01:38:46]*** CUTSNS_PIN = 0 [01:38:46]*** Brake cut motor [01:38:46]Read from MH i2c: 01 [01:38:46]MH_I2C_Read... [01:38:46]*** Stop cut motor [01:38:47]*** Cut end [01:38:47]Read from MH i2c: 01 07 00 [01:38:47]MH_I2C_Read... [01:38:47]Read from MH i2c: 01 07 00 C0 09 00 00 00 00 00 FF 0F DE [01:38:47]process_action close_receipt done [01:38:47]requested_data is exist [01:38:47]produce_requested_data [01:38:47]requested_item fm.sn is exist - process it [01:38:47]wFMCommunicate request_size=4 [01:38:47]MH_SAM_APDU [01:38:47]CAPDU: 80 11 00 00 [01:38:47]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [01:38:47]Write i2c OK [01:38:47]MH_I2C_Read... [01:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:47]Read from MH i2c: E2 [01:38:47]MH_I2C_Read... [01:38:47]Read from MH i2c: E2 17 00 [01:38:47]MH_I2C_Read... [01:38:47]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 97 [01:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [01:38:47]wFMCommunicate OK [01:38:47]requested_item fd.num is exist - process it [01:38:47]SAM_PROTO_GetFieldsCounters [01:38:47]wFMCommunicate request_size=4 [01:38:47]MH_SAM_APDU [01:38:47]CAPDU: 80 13 00 00 [01:38:47]Write to MH i2c: E2 08 00 C2 09 80 13 00 00 00 00 00 00 47 [01:38:47]Write i2c OK [01:38:47]MH_I2C_Read... [01:38:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:38:47]Read from MH i2c: E2 [01:38:47]MH_I2C_Read... [01:38:47]Read from MH i2c: E2 62 00 [01:38:47]MH_I2C_Read... [01:38:47]Read from MH i2c: E2 62 00 C2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DE 39 02 00 0E 04 04 00 22 02 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 C5 [01:38:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DE 39 02 00 0E 04 04 00 22 02 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 [01:38:47]wFMCommunicate OK [01:38:47]SAM_PROTO_GetFieldsCounters done [01:38:47]requested_item shift.num is exist - process it [01:38:47]requested_item shift.opened is exist - process it [01:38:47]req_shift_opened [01:38:47]FM_GetShiftState [01:38:47]SAM_PROTO_GetShiftState [01:38:47]wFMCommunicate request_size=4 [01:38:47]MH_SAM_APDU [01:38:47]CAPDU: 80 13 01 00 [01:38:47]Write to MH i2c: E2 08 00 C3 09 80 13 01 00 00 00 00 00 49 [01:38:47]Write i2c OK [01:38:47]MH_I2C_Read... [01:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:47]Read from MH i2c: E2 [01:38:47]MH_I2C_Read... [01:38:47]Read from MH i2c: E2 0E 00 [01:38:47]MH_I2C_Read... [01:38:47]Read from MH i2c: E2 0E 00 C3 09 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 8D [01:38:47]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [01:38:47]wFMCommunicate OK [01:38:47]SAM_PROTO_GetShiftState done [01:38:47]FM_GetShiftState done [01:38:47]req_shift_opened done [01:38:47]requested_item shift.open_date is exist - process it [01:38:47]req_shift_open_date [01:38:47]req_shift_open_date done [01:38:47]produce_requested_data done [01:38:47]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145886,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353} [01:38:47]process_action_free close_receipt [01:38:47]json_value_free [01:38:47]json_value_free done [01:38:47]process_json_proto returns [01:38:47]Send response to host [01:38:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145886,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353}}} [01:38:47]free response buf [01:38:47]execute_script done [01:38:47]execute_script returns [01:38:47]free content buf [01:38:47]Sock 7.Close socket [01:38:47]Sock 7.Thread stoped [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:45:31]ConnectInit Can't connect to host [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:11]accept exits with 9 [02:04:11]New connection [02:04:11]New thread 3067506020 created [02:04:11]Thread 3067362660 joined [02:04:11]Waiting for new connection... [02:04:11] Sock 9.Parse request [02:04:11]Sock 9.Check first char [02:04:11]Sock 9.First char is OK [02:04:11]request: POST /json_proto HTTP/1.0 [02:04:11]Method: POST [02:04:11]URL: /json_proto [02:04:11]Method is POST - this is cgi request [02:04:11]url: /json_proto [02:04:11]query_string will be loaded in cgi processing [02:04:11]execute_cgi json_proto POST (null) [02:04:11]execute_cgi path=json_proto method=POST [02:04:11]POST find Content-Length [02:04:11]Host: 172.17.40.195:8080 [02:04:11]Content-Length: 677 [02:04:11]Content-Type: application/json [02:04:11] [02:04:11]POST finish read [02:04:11]Found Content-Length = 677 [02:04:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:04:11]execute_script... [02:04: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)160642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:04:11]POST & json_proto [02:04:11]process_json_proto [02:04:11]json parsed OK: [02:04:11]protocol is kg_v1.0 [02:04:11]action value=close_receipt [02:04:11]process_action close_receipt [02:04:11]cmd_close_receipt [02:04:11]MH_GetDate [02:04:11]Write to MH i2c: F0 00 00 C4 09 BC [02:04:11]Write i2c OK [02:04:11]MH_I2C_Read... [02:04:11]Read from MH i2c: F0 [02:04:11]MH_I2C_Read... [02:04:11]Read from MH i2c: F0 09 00 [02:04:11]MH_I2C_Read... [02:04:11]Read from MH i2c: F0 09 00 C4 09 00 1C F1 1E 67 D5 8D 6C 64 89 [02:04:11]GetLastDocTimeStamp 1730079524 [02:04:11]current date 1730081052 [02:04:11]FM_GetShiftState [02:04:11]SAM_PROTO_GetShiftState [02:04:11]wFMCommunicate request_size=4 [02:04:11]MH_SAM_APDU [02:04:11]CAPDU: 80 13 01 00 [02:04:11]Write to MH i2c: E2 08 00 C5 09 80 13 01 00 00 00 00 00 4B [02:04:11]Write i2c OK [02:04:11]MH_I2C_Read... [02:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:04:11]Read from MH i2c: E2 [02:04:11]MH_I2C_Read... [02:04:11]Read from MH i2c: E2 0E 00 [02:04:11]MH_I2C_Read... [02:04:11]Read from MH i2c: E2 0E 00 C5 09 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 8F [02:04:11]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [02:04:11]wFMCommunicate OK [02:04:11]SAM_PROTO_GetShiftState done [02:04:11]FM_GetShiftState done [02:04:11]opened in 1730075353 [02:04:11]opened+sec_in_day 1730161753 [02:04:11]quantity*price = 50041 [02:04:11]sum+1 = 50042 [02:04:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 11 28.10.2024 02:04 Смена: 546 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145887 ФПД: 252362036814451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T020412&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145887&fm=252362036814451&tin=02508201610067®Number=0000000000091683&sum=50000 [02:04:12]StoreToDocumentArchive [02:04:12]shift 546 fd 145887 [02:04:12]save to /storage/0546/doc_00145887 [02:04:12]save last doc name /storage/0546/doc_00145887 to /storage/kkm_last_doc_name [02:04:12]save OK [02:04:12]Clear old archive folders... [02:04:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:04:12]tlvbuf is 006FA2C0 [02:04:12]SAM_PROTO_ClearQueue [02:04:12]wFMCommunicate request_size=4 [02:04:12]MH_SAM_APDU [02:04:12]CAPDU: 80 09 00 00 [02:04:12]Write to MH i2c: E2 08 00 D2 09 80 09 00 00 00 00 00 00 4D [02:04:12]Write i2c OK [02:04:12]MH_I2C_Read... [02:04:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:04:12]Read from MH i2c: E2 [02:04:12]MH_I2C_Read... [02:04:12]Read from MH i2c: E2 03 00 [02:04:12]MH_I2C_Read... [02:04:12]Read from MH i2c: E2 03 00 D2 09 00 90 00 4F [02:04:12]RAPDU: 90 00 [02:04:12]wFMCommunicate OK [02:04:12]SAM_PROTO_ClearQueue done [02:04:12]KKMCreateOFDPacket [02:04:12]OFDProtocolAddRootSTLVToBuf [02:04:12]FM_MakeSignedData [02:04:12]FM_MakeSignedData [02:04:12]SAM_PROTO_SignData [02:04:12]wFMCommunicate request_size=4 [02:04:12]MH_SAM_APDU [02:04:12]CAPDU: 80 0D 01 02 [02:04:12]Write to MH i2c: E2 08 00 D3 09 80 0D 01 02 00 00 00 00 55 [02:04:12]Write i2c OK [02:04:12]MH_I2C_Read... [02:04:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:04:12]Read from MH i2c: E2 [02:04:12]MH_I2C_Read... [02:04:12]Read from MH i2c: E2 03 00 [02:04:12]MH_I2C_Read... [02:04:12]Read from MH i2c: E2 03 00 D3 09 00 90 00 50 [02:04:12]RAPDU: 90 00 [02:04:12]wFMCommunicate OK [02:04:12]wFMCommunicate request_size=255 [02:04:12]MH_SAM_APDU [02:04: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 1C F1 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DF 39 02 00 35 04 06 00 E5 [02:04:12]Write to MH i2c: E2 02 01 D4 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 1C F1 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DF 39 02 00 35 04 06 00 E5 00 00 A3 [02:04:12]Write i2c OK [02:04:12]MH_I2C_Read... [02:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:04:13]Read from MH i2c: E2 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: E2 03 00 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: E2 03 00 D4 09 00 90 00 51 [02:04:13]RAPDU: 90 00 [02:04:13]wFMCommunicate OK [02:04:13]wFMCommunicate request_size=10 [02:04:13]MH_SAM_APDU [02:04:13]CAPDU: 80 0D 02 02 05 85 9D 8F 22 73 [02:04:13]Write to MH i2c: E2 0D 00 D5 09 80 0D 02 02 05 00 85 9D 8F 22 73 00 00 A8 [02:04:13]Write i2c OK [02:04:13]MH_I2C_Read... [02:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:04:13]Read from MH i2c: E2 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: E2 03 00 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [02:04:13]RAPDU: 90 00 [02:04:13]wFMCommunicate OK [02:04:13]wFMCommunicate request_size=4 [02:04:13]MH_SAM_APDU [02:04:13]CAPDU: 80 0D 03 02 [02:04:13]Write to MH i2c: E2 08 00 D6 09 80 0D 03 02 00 00 00 00 5A [02:04:13]Write i2c OK [02:04:13]MH_I2C_Read... [02:04:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:04:13]Read from MH i2c: E2 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: E2 0B 00 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: E2 0B 00 D6 09 00 48 8E 13 3F 8F 0D DF 75 90 00 73 [02:04:13]RAPDU: 48 8E 13 3F 8F 0D DF 75 90 00 [02:04:13]wFMCommunicate OK [02:04:13]SAM_PROTO_SignData done [02:04:13]FM_MakeSignedData done [02:04:13]CreateOFDProtocolMessage [02:04:13]wFMCommunicate request_size=4 [02:04:13]MH_SAM_APDU [02:04:13]CAPDU: 80 11 00 00 [02:04:13]Write to MH i2c: E2 08 00 D7 09 80 11 00 00 00 00 00 00 5A [02:04:13]Write i2c OK [02:04:13]MH_I2C_Read... [02:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:04:13]Read from MH i2c: E2 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: E2 17 00 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: E2 17 00 D7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 AD [02:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [02:04:13]wFMCommunicate OK [02:04:13]CreateOFDProtocolMessage done [02:04:13]OFDSenderStorePacket 145887 [02:04:13]StoreOFDPacket docnum=145887 [02:04:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1A AC 07 01 F3 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 1C F1 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DF 39 02 00 35 04 06 00 E5 85 9D 8F 22 73 48 8E 13 3F 8F 0D DF 75 [02:04:13]CheckFolder [02:04:13]dirname=/storage/ofd_packets [02:04:13]CheckFolder done [02:04:13]ProducePacketName [02:04:13]name=ofd_packets/00145887 [02:04:13]NVStorageSaveData ofd_packets/00145887 [02:04:13]File name is /storage/ofd_packets/00145887 [02:04:13]Write 301 bytes [02:04:13]NVStorageSaveData done [02:04:13]OFDSenderStorePacket done [02:04:13]KKMCreateOFDPacket done [02:04:13]NVStorageSaveData kkm_last_timestamp [02:04:13]File name is /storage/kkm_last_timestamp [02:04:13]Write 4 bytes [02:04:13]NVStorageSaveData done [02:04:13]ExternCall_PrintAddStr [02:04:13]wPrintStart [02:04:13]Write to MH i2c: 01 00 00 D8 09 E1 [02:04:13]Write i2c OK [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: 01 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: 01 07 00 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: 01 07 00 D8 09 00 00 00 00 00 FF 0F F6 [02:04:13]RasterBufferAndPrint [02:04:13]line Счет N : (1)160642 [02:04:13]line ИНН: 02508201610067 [02:04:13]line Контрольно-Кассовый Чек [02:04:13]line ПРОДАЖА [02:04:13]line ТРК (МРК, ГНК) : 32 [02:04:13]line Товар: 2710124130 [02:04:13]line Аи-92-К-2 [02:04:13]line 7.480 * 66.90 [02:04:13]line = 500.41 [02:04:13]line НДС 12% НСП 1% [02:04:13]line > о реализуемом товаре [02:04:13]line ОКРУГЛЕНИЕ: -0.41 [02:04:13]line ИТОГО: 500.00 [02:04:13]line Внесено: 500.00 [02:04:13]line СДАЧА: 0.00 [02:04:13]line НСП 1% : 4.43 [02:04:13]line НДС 12% : 53.14 [02:04:13]line Наличными: 500.00 [02:04:13]line Безнал.: 0.00 [02:04:13]line Место: АЗС № 126 "Партнер Нефть" [02:04:13]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [02:04:13]line СНО: Общий режим [02:04:13]line Чек 11 28.10.2024 02:04 [02:04:13]line Смена: 546 ФФД: 1.0 [02:04:13]line ЗНМ: 0300000085 [02:04:13]line РНМ: 0000000000091683 [02:04:13]line Версия ККМ: 001 [02:04:13]line ФМ: 0000000000871745 [02:04:13]line ФД: 145887 [02:04:13]line ФПД: 252362036814451 [02:04:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T020412&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145887&fm=252362036814451&tin=02508201610067®Number=0000000000091683&sum=50000 [02:04:13]written 0, free lines is 4095 [02:04:13]OFD Sender: Processing packet 145887 [packets to send 206, broken 205] [02:04:13]ProducePacketName [02:04:13]name=ofd_packets/00145887 [02:04:13]OFD Sender: To server: pG, [02:04:13]CommunicateWithHost lk.salyk.kg:30040 [02:04:13]ConnectInit lk.salyk.kg [02:04:13]Connected sock=10 [02:04:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 1A AC 07 01 F3 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 1C F1 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DF 39 02 00 35 04 06 00 E5 85 9D 8F 22 73 48 8E 13 3F 8F 0D DF 75 [02:04:13]Write to MH i2c: 01 00 00 03 0A 0D [02:04:13]Write i2c OK [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: 01 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: 01 07 00 [02:04:13]MH_I2C_Read... [02:04:13]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 98 0C B8 [02:04:13]RasterBufferAndPrint [02:04:13]line [02:04:13]line [02:04:13]line [02:04:13]line [02:04:13]line [02:04:14]written 0, free lines is 3228 [02:04:14]MH_Cut [02:04:14]Write to MH i2c: D1 01 00 0A 0A 01 E6 [02:04:14]Write i2c OK [02:04:14]MH_I2C_Read... [02:04:14]Read from MH i2c: D1 [02:04:14]MH_I2C_Read... [02:04:14]Read from MH i2c: D1 01 00 [02:04:14]MH_I2C_Read... [02:04:14]Read from MH i2c: D1 01 00 0A 0A 00 E5 [02:04:14]Write to MH i2c: 01 00 00 0B 0A 15 [02:04:14]Write i2c OK [02:04:14]MH_I2C_Read... [02:04:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 12 4C 47 00 9F F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 DF 39 02 00 F4 03 04 00 48 96 1E 67 B6 04 01 00 00 45 42 DA 57 FD 21 21 29 [02:04:14]CommunicateWithHost err = 0 [02:04:14]CheckOFDResponse [02:04:14]1017 (14) - 77093643461234 [02:04:14]1041 (16) - 0000000000871745 [02:04:14]1040 (4) - 145887 [02:04:14]1012 (4) - 27.10.2024 19:36 [02:04:14]1206 (1) - 0 [02:04:14]OFD Sender: Remove packet 145887 [02:04:14]ProducePacketName [02:04:14]name=ofd_packets/00145887 [02:04:14]NVStorageDeleteData [02:04:14]OFD Sender: No OFD packet to send [02:04:14]*** Cut start [02:04:14]*** Partial cut [02:04:14]*** CUTSNS_PIN = 1 [02:04:14]*** CUTSNS_PIN = 0 [02:04:15]*** Brake cut motor [02:04:15]Read from MH i2c: 01 [02:04:15]*** Stop cut motor [02:04:15]*** Cut end [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: 01 07 00 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [02:04:15]process_action close_receipt done [02:04:15]requested_data is exist [02:04:15]produce_requested_data [02:04:15]requested_item fm.sn is exist - process it [02:04:15]wFMCommunicate request_size=4 [02:04:15]MH_SAM_APDU [02:04:15]CAPDU: 80 11 00 00 [02:04:15]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [02:04:15]Write i2c OK [02:04:15]MH_I2C_Read... [02:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:04:15]Read from MH i2c: E2 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: E2 17 00 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 E3 [02:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [02:04:15]wFMCommunicate OK [02:04:15]requested_item fd.num is exist - process it [02:04:15]SAM_PROTO_GetFieldsCounters [02:04:15]wFMCommunicate request_size=4 [02:04:15]MH_SAM_APDU [02:04:15]CAPDU: 80 13 00 00 [02:04:15]Write to MH i2c: E2 08 00 0D 0A 80 13 00 00 00 00 00 00 93 [02:04:15]Write i2c OK [02:04:15]MH_I2C_Read... [02:04:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:04:15]Read from MH i2c: E2 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: E2 62 00 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: E2 62 00 0D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DF 39 02 00 0E 04 04 00 22 02 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 15 [02:04:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 DF 39 02 00 0E 04 04 00 22 02 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 [02:04:15]wFMCommunicate OK [02:04:15]SAM_PROTO_GetFieldsCounters done [02:04:15]requested_item shift.num is exist - process it [02:04:15]requested_item shift.opened is exist - process it [02:04:15]req_shift_opened [02:04:15]FM_GetShiftState [02:04:15]SAM_PROTO_GetShiftState [02:04:15]wFMCommunicate request_size=4 [02:04:15]MH_SAM_APDU [02:04:15]CAPDU: 80 13 01 00 [02:04:15]Write to MH i2c: E2 08 00 0E 0A 80 13 01 00 00 00 00 00 95 [02:04:15]Write i2c OK [02:04:15]MH_I2C_Read... [02:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:04:15]Read from MH i2c: E2 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: E2 0E 00 [02:04:15]MH_I2C_Read... [02:04:15]Read from MH i2c: E2 0E 00 0E 0A 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 D9 [02:04:15]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [02:04:15]wFMCommunicate OK [02:04:15]SAM_PROTO_GetShiftState done [02:04:15]FM_GetShiftState done [02:04:15]req_shift_opened done [02:04:15]requested_item shift.open_date is exist - process it [02:04:15]req_shift_open_date [02:04:15]req_shift_open_date done [02:04:15]produce_requested_data done [02:04:15]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145887,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353} [02:04:15]process_action_free close_receipt [02:04:15]json_value_free [02:04:15]json_value_free done [02:04:15]process_json_proto returns [02:04:15]Send response to host [02:04:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145887,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353}}} [02:04:15]free response buf [02:04:15]execute_script done [02:04:15]execute_script returns [02:04:15]free content buf [02:04:15]Sock 9.Close socket [02:04:15]Sock 9.Thread stoped [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:34]accept exits with 7 [02:14:34]New connection [02:14:34]New thread 3067362660 created [02:14:34]Thread 3067506020 joined [02:14:34]Waiting for new connection... [02:14:34] Sock 7.Parse request [02:14:34]Sock 7.Check first char [02:14:34]Sock 7.First char is OK [02:14:34]request: POST /json_proto HTTP/1.0 [02:14:34]Method: POST [02:14:34]URL: /json_proto [02:14:34]Method is POST - this is cgi request [02:14:34]url: /json_proto [02:14:34]query_string will be loaded in cgi processing [02:14:34]execute_cgi json_proto POST (null) [02:14:34]execute_cgi path=json_proto method=POST [02:14:34]POST find Content-Length [02:14:34]Host: 172.17.40.195:8080 [02:14:34]Content-Length: 769 [02:14:34]Content-Type: application/json [02:14:34] [02:14:34]POST finish read [02:14:34]Found Content-Length = 769 [02:14:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:14:34]execute_script... [02:14: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)160643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:14:34]POST & json_proto [02:14:34]process_json_proto [02:14:34]json parsed OK: [02:14:34]protocol is kg_v1.0 [02:14:34]action value=close_receipt [02:14:34]process_action close_receipt [02:14:34]cmd_close_receipt [02:14:34]MH_GetDate [02:14:34]Write to MH i2c: F0 00 00 0F 0A 08 [02:14:34]Write i2c OK [02:14:34]MH_I2C_Read... [02:14:34]Read from MH i2c: F0 [02:14:34]MH_I2C_Read... [02:14:34]Read from MH i2c: F0 09 00 [02:14:34]MH_I2C_Read... [02:14:34]Read from MH i2c: F0 09 00 0F 0A 00 8B F3 1E 67 D5 8D 6C 64 46 [02:14:34]GetLastDocTimeStamp 1730081052 [02:14:34]current date 1730081675 [02:14:34]FM_GetShiftState [02:14:34]SAM_PROTO_GetShiftState [02:14:34]wFMCommunicate request_size=4 [02:14:34]MH_SAM_APDU [02:14:34]CAPDU: 80 13 01 00 [02:14:34]Write to MH i2c: E2 08 00 10 0A 80 13 01 00 00 00 00 00 97 [02:14:34]Write i2c OK [02:14:34]MH_I2C_Read... [02:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:34]Read from MH i2c: E2 [02:14:34]MH_I2C_Read... [02:14:34]Read from MH i2c: E2 0E 00 [02:14:34]MH_I2C_Read... [02:14:34]Read from MH i2c: E2 0E 00 10 0A 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 DB [02:14:34]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [02:14:34]wFMCommunicate OK [02:14:34]SAM_PROTO_GetShiftState done [02:14:34]FM_GetShiftState done [02:14:34]opened in 1730075353 [02:14:34]opened+sec_in_day 1730161753 [02:14:34]quantity*price = 150056 [02:14:34]sum+1 = 150058 [02:14:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 12 28.10.2024 02:14 Смена: 546 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871745 ФД: 145888 ФПД: 63442383017975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T021435&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145888&fm=63442383017975&tin=02508201610067®Number=0000000000091683&sum=150057 [02:14:35]StoreToDocumentArchive [02:14:35]shift 546 fd 145888 [02:14:35]save to /storage/0546/doc_00145888 [02:14:35]save last doc name /storage/0546/doc_00145888 to /storage/kkm_last_doc_name [02:14:35]save OK [02:14:35]Clear old archive folders... [02:14:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:14:35]tlvbuf is 006AC360 [02:14:35]SAM_PROTO_ClearQueue [02:14:35]wFMCommunicate request_size=4 [02:14:35]MH_SAM_APDU [02:14:35]CAPDU: 80 09 00 00 [02:14:35]Write to MH i2c: E2 08 00 1D 0A 80 09 00 00 00 00 00 00 99 [02:14:35]Write i2c OK [02:14:35]MH_I2C_Read... [02:14:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:14:35]Read from MH i2c: E2 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 03 00 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [02:14:35]RAPDU: 90 00 [02:14:35]wFMCommunicate OK [02:14:35]SAM_PROTO_ClearQueue done [02:14:35]KKMCreateOFDPacket [02:14:35]OFDProtocolAddRootSTLVToBuf [02:14:35]FM_MakeSignedData [02:14:35]FM_MakeSignedData [02:14:35]SAM_PROTO_SignData [02:14:35]wFMCommunicate request_size=4 [02:14:35]MH_SAM_APDU [02:14:35]CAPDU: 80 0D 01 02 [02:14:35]Write to MH i2c: E2 08 00 1E 0A 80 0D 01 02 00 00 00 00 A1 [02:14:35]Write i2c OK [02:14:35]MH_I2C_Read... [02:14:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:14:35]Read from MH i2c: E2 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 03 00 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [02:14:35]RAPDU: 90 00 [02:14:35]wFMCommunicate OK [02:14:35]wFMCommunicate request_size=255 [02:14:35]MH_SAM_APDU [02:14: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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 8B F3 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E0 39 02 00 35 04 06 00 39 [02:14:35]Write to MH i2c: E2 02 01 1F 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 8B F3 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E0 39 02 00 35 04 06 00 39 00 00 73 [02:14:35]Write i2c OK [02:14:35]MH_I2C_Read... [02:14:35]OFD Sender: No OFD packet to send [02:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:35]Read from MH i2c: E2 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 03 00 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 03 00 1F 0A 00 90 00 9D [02:14:35]RAPDU: 90 00 [02:14:35]wFMCommunicate OK [02:14:35]wFMCommunicate request_size=10 [02:14:35]MH_SAM_APDU [02:14:35]CAPDU: 80 0D 02 02 05 B3 54 B4 17 F7 [02:14:35]Write to MH i2c: E2 0D 00 20 0A 80 0D 02 02 05 00 B3 54 B4 17 F7 00 00 77 [02:14:35]Write i2c OK [02:14:35]MH_I2C_Read... [02:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:35]Read from MH i2c: E2 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 03 00 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 03 00 20 0A 00 90 00 9E [02:14:35]RAPDU: 90 00 [02:14:35]wFMCommunicate OK [02:14:35]wFMCommunicate request_size=4 [02:14:35]MH_SAM_APDU [02:14:35]CAPDU: 80 0D 03 02 [02:14:35]Write to MH i2c: E2 08 00 21 0A 80 0D 03 02 00 00 00 00 A6 [02:14:35]Write i2c OK [02:14:35]MH_I2C_Read... [02:14:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:14:35]Read from MH i2c: E2 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 0B 00 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 0B 00 21 0A 00 2B 0E FF 55 A4 65 FB B8 90 00 F0 [02:14:35]RAPDU: 2B 0E FF 55 A4 65 FB B8 90 00 [02:14:35]wFMCommunicate OK [02:14:35]SAM_PROTO_SignData done [02:14:35]FM_MakeSignedData done [02:14:35]CreateOFDProtocolMessage [02:14:35]wFMCommunicate request_size=4 [02:14:35]MH_SAM_APDU [02:14:35]CAPDU: 80 11 00 00 [02:14:35]Write to MH i2c: E2 08 00 22 0A 80 11 00 00 00 00 00 00 A6 [02:14:35]Write i2c OK [02:14:35]MH_I2C_Read... [02:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:35]Read from MH i2c: E2 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 17 00 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: E2 17 00 22 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 F9 [02:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [02:14:35]wFMCommunicate OK [02:14:35]CreateOFDProtocolMessage done [02:14:35]OFDSenderStorePacket 145888 [02:14:35]StoreOFDPacket docnum=145888 [02:14:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CB 44 07 01 41 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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 8B F3 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E0 39 02 00 35 04 06 00 39 B3 54 B4 17 F7 2B 0E FF 55 A4 65 FB B8 [02:14:35]CheckFolder [02:14:35]dirname=/storage/ofd_packets [02:14:35]CheckFolder done [02:14:35]ProducePacketName [02:14:35]name=ofd_packets/00145888 [02:14:35]NVStorageSaveData ofd_packets/00145888 [02:14:35]File name is /storage/ofd_packets/00145888 [02:14:35]Write 301 bytes [02:14:35]NVStorageSaveData done [02:14:35]OFDSenderStorePacket done [02:14:35]KKMCreateOFDPacket done [02:14:35]NVStorageSaveData kkm_last_timestamp [02:14:35]File name is /storage/kkm_last_timestamp [02:14:35]Write 4 bytes [02:14:35]NVStorageSaveData done [02:14:35]ExternCall_PrintAddStr [02:14:35]wPrintStart [02:14:35]Write to MH i2c: 01 00 00 23 0A 2D [02:14:35]Write i2c OK [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: 01 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: 01 07 00 [02:14:35]MH_I2C_Read... [02:14:35]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 FF 0F 42 [02:14:35]RasterBufferAndPrint [02:14:35]line Счет N : (1)160643 [02:14:35]line ИНН: 02508201610067 [02:14:35]line Контрольно-Кассовый Чек [02:14:35]line ПРОДАЖА [02:14:35]line ТРК (МРК, ГНК) : 32 [02:14:35]line Товар: 2710124130 [02:14:35]line Аи-92-К-2 [02:14:35]line 22.430 * 66.90 [02:14:35]line = 1500.57 [02:14:35]line НДС 12% НСП 1% [02:14:35]line > о реализуемом товаре [02:14:35]line ИТОГО: 1500.57 [02:14:35]line НСП 1% : 13.28 [02:14:35]line НДС 12% : 159.35 [02:14:35]line Наличными: 0.00 [02:14:35]line Безнал.: 1500.57 [02:14:35]line Место: АЗС № 126 "Партнер Нефть" [02:14:35]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [02:14:35]line СНО: Общий режим [02:14:35]line Чек 12 28.10.2024 02:14 [02:14:35]line Смена: 546 ФФД: 1.0 [02:14:35]line ЗНМ: 0300000085 [02:14:35]line РНМ: 0000000000091683 [02:14:35]line Версия ККМ: 001 [02:14:35]line Платежная система: Mbank [02:14:35]line ФМ: 0000000000871745 [02:14:35]line ФД: 145888 [02:14:35]line ФПД: 63442383017975 [02:14:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T021435&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145888&fm=63442383017975&tin=02508201610067®Number=0000000000091683&sum=150057 [02:14:36]OFD Sender: Processing packet 145888 [packets to send 206, broken 205] [02:14:36]ProducePacketName [02:14:36]name=ofd_packets/00145888 [02:14:36]OFD Sender: To server: pG, [02:14:36]CommunicateWithHost lk.salyk.kg:30040 [02:14:36]ConnectInit lk.salyk.kg [02:14:36]written 0, free lines is 4095 [02:14:36]Connected sock=10 [02:14:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 CB 44 07 01 41 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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 8B F3 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E0 39 02 00 35 04 06 00 39 B3 54 B4 17 F7 2B 0E FF 55 A4 65 FB B8 [02:14:36]Write to MH i2c: 01 00 00 4C 0A 56 [02:14:36]Write i2c OK [02:14:36]MH_I2C_Read... [02:14:36]Read from MH i2c: 01 [02:14:36]MH_I2C_Read... [02:14:36]Read from MH i2c: 01 07 00 [02:14:36]MH_I2C_Read... [02:14:36]Read from MH i2c: 01 07 00 4C 0A 00 00 00 00 00 CB 0C 34 [02:14:36]RasterBufferAndPrint [02:14:36]line [02:14:36]line [02:14:36]line [02:14:36]line [02:14:36]line [02:14:36]written 0, free lines is 3278 [02:14:36]MH_Cut [02:14:36]Write to MH i2c: D1 01 00 53 0A 01 2F [02:14:36]Write i2c OK [02:14:36]MH_I2C_Read... [02:14:36]Read from MH i2c: D1 [02:14:36]MH_I2C_Read... [02:14:36]Read from MH i2c: D1 01 00 [02:14:36]MH_I2C_Read... [02:14:36]Read from MH i2c: D1 01 00 53 0A 00 2E [02:14:36]Write to MH i2c: 01 00 00 54 0A 5E [02:14:36]Write i2c OK [02:14:36]MH_I2C_Read... [02:14:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 D4 C7 47 00 2C E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E0 39 02 00 F4 03 04 00 B7 98 1E 67 B6 04 01 00 00 26 2D 49 80 1F 66 F1 22 [02:14:36]CommunicateWithHost err = 0 [02:14:36]CheckOFDResponse [02:14:36]1017 (14) - 77093643461234 [02:14:36]1041 (16) - 0000000000871745 [02:14:36]1040 (4) - 145888 [02:14:36]1012 (4) - 27.10.2024 19:47 [02:14:36]1206 (1) - 0 [02:14:36]OFD Sender: Remove packet 145888 [02:14:36]ProducePacketName [02:14:36]name=ofd_packets/00145888 [02:14:36]NVStorageDeleteData [02:14:37]OFD Sender: No OFD packet to send [02:14:37]*** Cut start [02:14:37]*** Partial cut [02:14:37]*** CUTSNS_PIN = 1 [02:14:37]*** CUTSNS_PIN = 0 [02:14:37]*** Brake cut motor [02:14:37]Read from MH i2c: 01 [02:14:37]MH_I2C_Read... [02:14:37]*** Stop cut motor [02:14:38]*** Cut end [02:14:38]Read from MH i2c: 01 07 00 [02:14:38]MH_I2C_Read... [02:14:38]Read from MH i2c: 01 07 00 54 0A 00 00 00 00 00 FF 0F 73 [02:14:38]process_action close_receipt done [02:14:38]requested_data is exist [02:14:38]produce_requested_data [02:14:38]requested_item fm.sn is exist - process it [02:14:38]wFMCommunicate request_size=4 [02:14:38]MH_SAM_APDU [02:14:38]CAPDU: 80 11 00 00 [02:14:38]Write to MH i2c: E2 08 00 55 0A 80 11 00 00 00 00 00 00 D9 [02:14:38]Write i2c OK [02:14:38]MH_I2C_Read... [02:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:38]Read from MH i2c: E2 [02:14:38]MH_I2C_Read... [02:14:38]Read from MH i2c: E2 17 00 [02:14:38]MH_I2C_Read... [02:14:38]Read from MH i2c: E2 17 00 55 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 2C [02:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [02:14:38]wFMCommunicate OK [02:14:38]requested_item fd.num is exist - process it [02:14:38]SAM_PROTO_GetFieldsCounters [02:14:38]wFMCommunicate request_size=4 [02:14:38]MH_SAM_APDU [02:14:38]CAPDU: 80 13 00 00 [02:14:38]Write to MH i2c: E2 08 00 56 0A 80 13 00 00 00 00 00 00 DC [02:14:38]Write i2c OK [02:14:38]MH_I2C_Read... [02:14:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:14:38]Read from MH i2c: E2 [02:14:38]MH_I2C_Read... [02:14:38]Read from MH i2c: E2 62 00 [02:14:38]MH_I2C_Read... [02:14:38]Read from MH i2c: E2 62 00 56 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E0 39 02 00 0E 04 04 00 22 02 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 62 [02:14:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E0 39 02 00 0E 04 04 00 22 02 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 [02:14:38]wFMCommunicate OK [02:14:38]SAM_PROTO_GetFieldsCounters done [02:14:38]requested_item shift.num is exist - process it [02:14:38]requested_item shift.opened is exist - process it [02:14:38]req_shift_opened [02:14:38]FM_GetShiftState [02:14:38]SAM_PROTO_GetShiftState [02:14:38]wFMCommunicate request_size=4 [02:14:38]MH_SAM_APDU [02:14:38]CAPDU: 80 13 01 00 [02:14:38]Write to MH i2c: E2 08 00 57 0A 80 13 01 00 00 00 00 00 DE [02:14:38]Write i2c OK [02:14:38]MH_I2C_Read... [02:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:38]Read from MH i2c: E2 [02:14:38]MH_I2C_Read... [02:14:38]Read from MH i2c: E2 0E 00 [02:14:38]MH_I2C_Read... [02:14:38]Read from MH i2c: E2 0E 00 57 0A 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 22 [02:14:38]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [02:14:38]wFMCommunicate OK [02:14:38]SAM_PROTO_GetShiftState done [02:14:38]FM_GetShiftState done [02:14:38]req_shift_opened done [02:14:38]requested_item shift.open_date is exist - process it [02:14:38]req_shift_open_date [02:14:38]req_shift_open_date done [02:14:38]produce_requested_data done [02:14:38]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145888,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353} [02:14:38]process_action_free close_receipt [02:14:38]json_value_free [02:14:38]json_value_free done [02:14:38]process_json_proto returns [02:14:38]Send response to host [02:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145888,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353}}} [02:14:38]free response buf [02:14:38]execute_script done [02:14:38]execute_script returns [02:14:38]free content buf [02:14:38]Sock 7.Close socket [02:14:38]Sock 7.Thread stoped [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:53]accept exits with 9 [02:16:53]New connection [02:16:53]New thread 3067506020 created [02:16:53]Thread 3067362660 joined [02:16:53]Waiting for new connection... [02:16:53] Sock 9.Parse request [02:16:53]Sock 9.Check first char [02:16:53]Sock 9.First char is OK [02:16:53]request: POST /json_proto HTTP/1.0 [02:16:53]Method: POST [02:16:53]URL: /json_proto [02:16:53]Method is POST - this is cgi request [02:16:53]url: /json_proto [02:16:53]query_string will be loaded in cgi processing [02:16:53]execute_cgi json_proto POST (null) [02:16:53]execute_cgi path=json_proto method=POST [02:16:53]POST find Content-Length [02:16:53]Host: 172.17.40.195:8080 [02:16:53]Content-Length: 825 [02:16:53]Content-Type: application/json [02:16:53] [02:16:53]POST finish read [02:16:53]Found Content-Length = 825 [02:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:53]execute_script... [02:16: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)160644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:53]POST & json_proto [02:16:53]process_json_proto [02:16:53]json parsed OK: [02:16:53]protocol is kg_v1.0 [02:16:53]action value=close_receipt [02:16:53]process_action close_receipt [02:16:53]cmd_close_receipt [02:16:53]MH_GetDate [02:16:53]Write to MH i2c: F0 00 00 58 0A 51 [02:16:53]Write i2c OK [02:16:53]MH_I2C_Read... [02:16:53]Read from MH i2c: F0 [02:16:53]MH_I2C_Read... [02:16:53]Read from MH i2c: F0 09 00 [02:16:53]MH_I2C_Read... [02:16:53]Read from MH i2c: F0 09 00 58 0A 00 16 F4 1E 67 D5 8D 6C 64 1B [02:16:53]GetLastDocTimeStamp 1730081675 [02:16:53]current date 1730081814 [02:16:53]FM_GetShiftState [02:16:53]SAM_PROTO_GetShiftState [02:16:53]wFMCommunicate request_size=4 [02:16:53]MH_SAM_APDU [02:16:53]CAPDU: 80 13 01 00 [02:16:53]Write to MH i2c: E2 08 00 59 0A 80 13 01 00 00 00 00 00 E0 [02:16:53]Write i2c OK [02:16:53]MH_I2C_Read... [02:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:53]Read from MH i2c: E2 [02:16:53]MH_I2C_Read... [02:16:53]Read from MH i2c: E2 0E 00 [02:16:53]MH_I2C_Read... [02:16:53]Read from MH i2c: E2 0E 00 59 0A 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 24 [02:16:53]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [02:16:53]wFMCommunicate OK [02:16:53]SAM_PROTO_GetShiftState done [02:16:53]FM_GetShiftState done [02:16:53]opened in 1730075353 [02:16:53]opened+sec_in_day 1730161753 [02:16:53]quantity*price = 150076 [02:16:53]sum+1 = 150078 [02:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 13 28.10.2024 02:16 Смена: 546 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871745 ФД: 145889 ФПД: 274687069419722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T021654&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145889&fm=274687069419722&tin=02508201610067®Number=0000000000091683&sum=150077 [02:16:54]StoreToDocumentArchive [02:16:54]shift 546 fd 145889 [02:16:54]save to /storage/0546/doc_00145889 [02:16:54]save last doc name /storage/0546/doc_00145889 to /storage/kkm_last_doc_name [02:16:54]save OK [02:16:54]Clear old archive folders... [02:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=257 [02:16:54]tlvbuf is 0067A860 [02:16:54]SAM_PROTO_ClearQueue [02:16:54]wFMCommunicate request_size=4 [02:16:54]MH_SAM_APDU [02:16:54]CAPDU: 80 09 00 00 [02:16:54]Write to MH i2c: E2 08 00 66 0A 80 09 00 00 00 00 00 00 E2 [02:16:54]Write i2c OK [02:16:54]MH_I2C_Read... [02:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:16:54]Read from MH i2c: E2 [02:16:54]MH_I2C_Read... [02:16:54]Read from MH i2c: E2 03 00 [02:16:54]MH_I2C_Read... [02:16:54]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [02:16:54]RAPDU: 90 00 [02:16:54]wFMCommunicate OK [02:16:54]SAM_PROTO_ClearQueue done [02:16:54]KKMCreateOFDPacket [02:16:54]OFDProtocolAddRootSTLVToBuf [02:16:54]FM_MakeSignedData [02:16:54]FM_MakeSignedData [02:16:54]SAM_PROTO_SignData [02:16:54]wFMCommunicate request_size=4 [02:16:54]MH_SAM_APDU [02:16:54]CAPDU: 80 0D 01 02 [02:16:54]Write to MH i2c: E2 08 00 67 0A 80 0D 01 02 00 00 00 00 EA [02:16:54]Write i2c OK [02:16:54]MH_I2C_Read... [02:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:16:54]Read from MH i2c: E2 [02:16:54]MH_I2C_Read... [02:16:54]Read from MH i2c: E2 03 00 [02:16:54]MH_I2C_Read... [02:16:54]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [02:16:54]RAPDU: 90 00 [02:16:54]wFMCommunicate OK [02:16:54]wFMCommunicate request_size=255 [02:16:54]MH_SAM_APDU [02:16:54]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 16 F4 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E1 39 02 [02:16:54]Write to MH i2c: E2 02 01 68 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 16 F4 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E1 39 02 00 00 AE [02:16:54]Write i2c OK [02:16:54]MH_I2C_Read... [02:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:54]Read from MH i2c: E2 [02:16:54]MH_I2C_Read... [02:16:54]Read from MH i2c: E2 03 00 [02:16:54]MH_I2C_Read... [02:16:54]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [02:16:54]RAPDU: 90 00 [02:16:54]wFMCommunicate OK [02:16:54]wFMCommunicate request_size=16 [02:16:54]MH_SAM_APDU [02:16:54]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F9 D3 91 32 78 CA [02:16:54]Write to MH i2c: E2 13 00 69 0A 80 0D 02 02 0B 00 00 35 04 06 00 F9 D3 91 32 78 CA 00 00 13 [02:16:54]Write i2c OK [02:16:54]MH_I2C_Read... [02:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:54]Read from MH i2c: E2 [02:16:54]MH_I2C_Read... [02:16:54]Read from MH i2c: E2 03 00 [02:16:54]MH_I2C_Read... [02:16:54]Read from MH i2c: E2 03 00 69 0A 00 90 00 E7 [02:16:54]RAPDU: 90 00 [02:16:54]wFMCommunicate OK [02:16:54]wFMCommunicate request_size=4 [02:16:54]MH_SAM_APDU [02:16:54]CAPDU: 80 0D 03 02 [02:16:54]Write to MH i2c: E2 08 00 6A 0A 80 0D 03 02 00 00 00 00 EF [02:16:54]Write i2c OK [02:16:54]MH_I2C_Read... [02:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:16:54]Read from MH i2c: E2 [02:16:54]MH_I2C_Read... [02:16:54]Read from MH i2c: E2 0B 00 [02:16:54]MH_I2C_Read... [02:16:54]Read from MH i2c: E2 0B 00 6A 0A 00 1C 41 84 F8 73 55 0F 64 90 00 04 [02:16:54]RAPDU: 1C 41 84 F8 73 55 0F 64 90 00 [02:16:54]wFMCommunicate OK [02:16:54]SAM_PROTO_SignData done [02:16:54]FM_MakeSignedData done [02:16:54]CreateOFDProtocolMessage [02:16:54]wFMCommunicate request_size=4 [02:16:54]MH_SAM_APDU [02:16:54]CAPDU: 80 11 00 00 [02:16:54]Write to MH i2c: E2 08 00 6B 0A 80 11 00 00 00 00 00 00 EF [02:16:55]Write i2c OK [02:16:55]MH_I2C_Read... [02:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:55]Read from MH i2c: E2 [02:16:55]MH_I2C_Read... [02:16:55]Read from MH i2c: E2 17 00 [02:16:55]MH_I2C_Read... [02:16:55]Read from MH i2c: E2 17 00 6B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 42 [02:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [02:16:55]wFMCommunicate OK [02:16:55]CreateOFDProtocolMessage done [02:16:55]OFDSenderStorePacket 145889 [02:16:55]StoreOFDPacket docnum=145889 [02:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 F5 78 0D 01 00 EB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 16 F4 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E1 39 02 00 35 04 06 00 F9 D3 91 32 78 CA 1C 41 84 F8 73 55 0F 64 [02:16:55]CheckFolder [02:16:55]dirname=/storage/ofd_packets [02:16:55]CheckFolder done [02:16:55]ProducePacketName [02:16:55]name=ofd_packets/00145889 [02:16:55]NVStorageSaveData ofd_packets/00145889 [02:16:55]File name is /storage/ofd_packets/00145889 [02:16:55]Write 307 bytes [02:16:55]NVStorageSaveData done [02:16:55]OFDSenderStorePacket done [02:16:55]KKMCreateOFDPacket done [02:16:55]NVStorageSaveData kkm_last_timestamp [02:16:55]File name is /storage/kkm_last_timestamp [02:16:55]Write 4 bytes [02:16:55]NVStorageSaveData done [02:16:55]ExternCall_PrintAddStr [02:16:55]wPrintStart [02:16:55]Write to MH i2c: 01 00 00 6C 0A 76 [02:16:55]Write i2c OK [02:16:55]MH_I2C_Read... [02:16:55]Read from MH i2c: 01 [02:16:55]MH_I2C_Read... [02:16:55]Read from MH i2c: 01 07 00 [02:16:55]MH_I2C_Read... [02:16:55]Read from MH i2c: 01 07 00 6C 0A 00 00 00 00 00 FF 0F 8B [02:16:55]RasterBufferAndPrint [02:16:55]line Счет N : (1)160644 [02:16:55]line ИНН: 02508201610067 [02:16:55]line Контрольно-Кассовый Чек [02:16:55]line ПРОДАЖА [02:16:55]line ТРК (МРК, ГНК) : 41 [02:16:55]line Товар: 2710194240 [02:16:55]line D-Energy Дт-К-2 [02:16:55]line 19.440 * 77.20 [02:16:55]line = 1500.77 [02:16:55]line НДС 12% НСП 1% [02:16:55]line > о реализуемом товаре [02:16:55]line ИТОГО: 1500.77 [02:16:55]line НСП 1% : 13.28 [02:16:55]line НДС 12% : 159.37 [02:16:55]line Наличными: 0.00 [02:16:55]line Безнал.: 1500.77 [02:16:55]line Место: АЗС № 126 "Партнер Нефть" [02:16:55]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [02:16:55]line СНО: Общий режим [02:16:55]line Чек 13 28.10.2024 02:16 [02:16:55]line Смена: 546 ФФД: 1.0 [02:16:55]line ЗНМ: 0300000085 [02:16:55]line РНМ: 0000000000091683 [02:16:55]line Версия ККМ: 001 [02:16:55]line Платежная система: Бакай Банк [02:16:55]line ФМ: 0000000000871745 [02:16:55]line ФД: 145889 [02:16:55]line ФПД: 274687069419722 [02:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T021654&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145889&fm=274687069419722&tin=02508201610067®Number=0000000000091683&sum=150077 [02:16:55]OFD Sender: Processing packet 145889 [packets to send 206, broken 205] [02:16:55]ProducePacketName [02:16:55]name=ofd_packets/00145889 [02:16:55]OFD Sender: To server: pG, [02:16:55]CommunicateWithHost lk.salyk.kg:30040 [02:16:55]ConnectInit lk.salyk.kg [02:16:55]written 0, free lines is 4095 [02:16:55]Connected sock=10 [02:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 15 01 00 00 F5 78 0D 01 00 EB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 16 F4 1E 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E1 39 02 00 35 04 06 00 F9 D3 91 32 78 CA 1C 41 84 F8 73 55 0F 64 [02:16:55]Write to MH i2c: 01 00 00 96 0A A0 [02:16:55]Write i2c OK [02:16:55]MH_I2C_Read... [02:16:55]Read from MH i2c: 01 [02:16:55]MH_I2C_Read... [02:16:55]Read from MH i2c: 01 07 00 [02:16:55]MH_I2C_Read... [02:16:55]Read from MH i2c: 01 07 00 96 0A 00 00 00 00 00 B7 0C 6A [02:16:55]RasterBufferAndPrint [02:16:55]line [02:16:55]line [02:16:55]line [02:16:55]line [02:16:55]line [02:16:55]written 0, free lines is 3262 [02:16:55]MH_Cut [02:16:55]Write to MH i2c: D1 01 00 9D 0A 01 79 [02:16:55]Write i2c OK [02:16:55]MH_I2C_Read... [02:16:55]Read from MH i2c: D1 [02:16:55]MH_I2C_Read... [02:16:55]Read from MH i2c: D1 01 00 [02:16:55]MH_I2C_Read... [02:16:55]Read from MH i2c: D1 01 00 9D 0A 00 78 [02:16:55]Write to MH i2c: 01 00 00 9E 0A A8 [02:16:55]Write i2c OK [02:16:55]MH_I2C_Read... [02:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 67 4D 47 00 0F D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E1 39 02 00 F4 03 04 00 42 99 1E 67 B6 04 01 00 00 37 CF A9 A0 C4 8F F8 18 [02:16:55]CommunicateWithHost err = 0 [02:16:55]CheckOFDResponse [02:16:55]1017 (14) - 77093643461234 [02:16:55]1041 (16) - 0000000000871745 [02:16:55]1040 (4) - 145889 [02:16:55]1012 (4) - 27.10.2024 19:49 [02:16:55]1206 (1) - 0 [02:16:55]OFD Sender: Remove packet 145889 [02:16:55]ProducePacketName [02:16:55]name=ofd_packets/00145889 [02:16:55]NVStorageDeleteData [02:16:56]OFD Sender: No OFD packet to send [02:16:56]*** Cut start [02:16:56]*** Partial cut [02:16:56]*** CUTSNS_PIN = 1 [02:16:56]*** CUTSNS_PIN = 0 [02:16:56]*** Brake cut motor [02:16:57]Read from MH i2c: 01 [02:16:57]MH_I2C_Read... [02:16:57]*** Stop cut motor [02:16:57]*** Cut end [02:16:57]Read from MH i2c: 01 07 00 [02:16:57]MH_I2C_Read... [02:16:57]Read from MH i2c: 01 07 00 9E 0A 00 00 00 00 00 FF 0F BD [02:16:57]process_action close_receipt done [02:16:57]requested_data is exist [02:16:57]produce_requested_data [02:16:57]requested_item fm.sn is exist - process it [02:16:57]wFMCommunicate request_size=4 [02:16:57]MH_SAM_APDU [02:16:57]CAPDU: 80 11 00 00 [02:16:57]Write to MH i2c: E2 08 00 9F 0A 80 11 00 00 00 00 00 00 23 [02:16:57]Write i2c OK [02:16:57]MH_I2C_Read... [02:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:57]Read from MH i2c: E2 [02:16:57]MH_I2C_Read... [02:16:57]Read from MH i2c: E2 17 00 [02:16:57]MH_I2C_Read... [02:16:57]Read from MH i2c: E2 17 00 9F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 76 [02:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [02:16:57]wFMCommunicate OK [02:16:57]requested_item fd.num is exist - process it [02:16:57]SAM_PROTO_GetFieldsCounters [02:16:57]wFMCommunicate request_size=4 [02:16:57]MH_SAM_APDU [02:16:57]CAPDU: 80 13 00 00 [02:16:57]Write to MH i2c: E2 08 00 A0 0A 80 13 00 00 00 00 00 00 26 [02:16:57]Write i2c OK [02:16:57]MH_I2C_Read... [02:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:16:57]Read from MH i2c: E2 [02:16:57]MH_I2C_Read... [02:16:57]Read from MH i2c: E2 62 00 [02:16:57]MH_I2C_Read... [02:16:57]Read from MH i2c: E2 62 00 A0 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E1 39 02 00 0E 04 04 00 22 02 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 B0 [02:16:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E1 39 02 00 0E 04 04 00 22 02 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 [02:16:57]wFMCommunicate OK [02:16:57]SAM_PROTO_GetFieldsCounters done [02:16:57]requested_item shift.num is exist - process it [02:16:57]requested_item shift.opened is exist - process it [02:16:57]req_shift_opened [02:16:57]FM_GetShiftState [02:16:57]SAM_PROTO_GetShiftState [02:16:57]wFMCommunicate request_size=4 [02:16:57]MH_SAM_APDU [02:16:57]CAPDU: 80 13 01 00 [02:16:57]Write to MH i2c: E2 08 00 A1 0A 80 13 01 00 00 00 00 00 28 [02:16:57]Write i2c OK [02:16:57]MH_I2C_Read... [02:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:57]Read from MH i2c: E2 [02:16:57]MH_I2C_Read... [02:16:57]Read from MH i2c: E2 0E 00 [02:16:57]MH_I2C_Read... [02:16:57]Read from MH i2c: E2 0E 00 A1 0A 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 6C [02:16:57]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [02:16:57]wFMCommunicate OK [02:16:57]SAM_PROTO_GetShiftState done [02:16:57]FM_GetShiftState done [02:16:57]req_shift_opened done [02:16:57]requested_item shift.open_date is exist - process it [02:16:57]req_shift_open_date [02:16:57]req_shift_open_date done [02:16:57]produce_requested_data done [02:16:57]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145889,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353} [02:16:57]process_action_free close_receipt [02:16:57]json_value_free [02:16:57]json_value_free done [02:16:57]process_json_proto returns [02:16:57]Send response to host [02:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145889,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353}}} [02:16:57]free response buf [02:16:57]execute_script done [02:16:57]execute_script returns [02:16:57]free content buf [02:16:57]Sock 9.Close socket [02:16:57]Sock 9.Thread stoped [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]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]int [02:32:07]Write to MH i2c: 01 00 00 A2 0A AC [02:32:07]*** FLAG_PRN_KEY set [02:32:07]Write i2c OK [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: 01 [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: 01 07 00 [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: 01 07 00 A2 0A 00 08 00 00 00 FF 0F C9 [02:32:07]state=0 [02:32:07]Key pressed [02:32:07]Feed [02:32:07]Write to MH i2c: D8 00 00 A3 0A 84 [02:32:07]Write i2c OK [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: D8 [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: D8 01 00 [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: D8 01 00 A3 0A 00 85 [02:32:07]int [02:32:07]Write to MH i2c: 01 00 00 A4 0A AE [02:32:07]Write i2c OK [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: 01 [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: 01 07 00 [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: 01 07 00 A4 0A 00 48 00 00 00 3C 00 39 [02:32:07]state=2 [02:32:07]Key pressed [02:32:07]int [02:32:07]Write to MH i2c: 01 00 00 A5 0A AF [02:32:07]*** FLAG_PRN_KEY reset [02:32:07]Write i2c OK [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: 01 [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: 01 07 00 [02:32:07]MH_I2C_Read... [02:32:07]Read from MH i2c: 01 07 00 A5 0A 00 00 00 00 00 F6 0F BB [02:32:07]state=2 [02:32:07]Stop feed [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:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:41:34]ConnectInit Can't connect to host [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:53]ConnectInit Can't connect to host [03:00:55]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:17]ConnectInit Can't connect to host [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:30]accept exits with 7 [03:18:30]New connection [03:18:30]New thread 3067362660 created [03:18:30]Thread 3067506020 joined [03:18:30]Waiting for new connection... [03:18:30] Sock 7.Parse request [03:18:30]Sock 7.Check first char [03:18:30]Sock 7.First char is OK [03:18:30]request: POST /json_proto HTTP/1.0 [03:18:30]Method: POST [03:18:30]URL: /json_proto [03:18:30]Method is POST - this is cgi request [03:18:30]url: /json_proto [03:18:30]query_string will be loaded in cgi processing [03:18:30]execute_cgi json_proto POST (null) [03:18:30]execute_cgi path=json_proto method=POST [03:18:30]POST find Content-Length [03:18:30]Host: 172.17.40.195:8080 [03:18:30]Content-Length: 677 [03:18:30]Content-Type: application/json [03:18:30] [03:18:30]POST finish read [03:18:30]Found Content-Length = 677 [03:18:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)160645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:30]execute_script... [03:18: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)160645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:30]POST & json_proto [03:18:30]process_json_proto [03:18:30]json parsed OK: [03:18:30]protocol is kg_v1.0 [03:18:30]action value=close_receipt [03:18:30]process_action close_receipt [03:18:30]cmd_close_receipt [03:18:30]MH_GetDate [03:18:30]Write to MH i2c: F0 00 00 A6 0A 9F [03:18:30]Write i2c OK [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: F0 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: F0 09 00 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: F0 09 00 A6 0A 00 88 02 1F 67 D5 8D 6C 64 EA [03:18:30]GetLastDocTimeStamp 1730081814 [03:18:30]current date 1730085512 [03:18:30]FM_GetShiftState [03:18:30]SAM_PROTO_GetShiftState [03:18:30]wFMCommunicate request_size=4 [03:18:30]MH_SAM_APDU [03:18:30]CAPDU: 80 13 01 00 [03:18:30]Write to MH i2c: E2 08 00 A7 0A 80 13 01 00 00 00 00 00 2E [03:18:30]Write i2c OK [03:18:30]MH_I2C_Read... [03:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:30]Read from MH i2c: E2 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 0E 00 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 0E 00 A7 0A 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 72 [03:18:30]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [03:18:30]wFMCommunicate OK [03:18:30]SAM_PROTO_GetShiftState done [03:18:30]FM_GetShiftState done [03:18:30]opened in 1730075353 [03:18:30]opened+sec_in_day 1730161753 [03:18:30]quantity*price = 50041 [03:18:30]sum+1 = 50042 [03:18:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 126 "Партнер Нефть" Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 СНО: Общий режим Чек 14 28.10.2024 03:18 Смена: 546 ФФД: 1.0 ЗНМ: 0300000085 РНМ: 0000000000091683 Версия ККМ: 001 ФМ: 0000000000871745 ФД: 145890 ФПД: 185293292690053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T031832&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145890&fm=185293292690053&tin=02508201610067®Number=0000000000091683&sum=50000 [03:18:32]StoreToDocumentArchive [03:18:32]shift 546 fd 145890 [03:18:32]save to /storage/0546/doc_00145890 [03:18:32]save last doc name /storage/0546/doc_00145890 to /storage/kkm_last_doc_name [03:18:32]save OK [03:18:32]Clear old archive folders... [03:18:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:18:32]tlvbuf is 006A8D20 [03:18:32]SAM_PROTO_ClearQueue [03:18:32]wFMCommunicate request_size=4 [03:18:32]MH_SAM_APDU [03:18:32]CAPDU: 80 09 00 00 [03:18:32]Write to MH i2c: E2 08 00 B4 0A 80 09 00 00 00 00 00 00 30 [03:18:32]Write i2c OK [03:18:32]MH_I2C_Read... [03:18:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:18:32]Read from MH i2c: E2 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 03 00 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 03 00 B4 0A 00 90 00 32 [03:18:32]RAPDU: 90 00 [03:18:32]wFMCommunicate OK [03:18:32]SAM_PROTO_ClearQueue done [03:18:32]KKMCreateOFDPacket [03:18:32]OFDProtocolAddRootSTLVToBuf [03:18:32]FM_MakeSignedData [03:18:32]FM_MakeSignedData [03:18:32]SAM_PROTO_SignData [03:18:32]wFMCommunicate request_size=4 [03:18:32]MH_SAM_APDU [03:18:32]CAPDU: 80 0D 01 02 [03:18:32]Write to MH i2c: E2 08 00 B5 0A 80 0D 01 02 00 00 00 00 38 [03:18:32]Write i2c OK [03:18:32]MH_I2C_Read... [03:18:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:18:32]Read from MH i2c: E2 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 03 00 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 03 00 B5 0A 00 90 00 33 [03:18:32]RAPDU: 90 00 [03:18:32]wFMCommunicate OK [03:18:32]wFMCommunicate request_size=255 [03:18:32]MH_SAM_APDU [03:18: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 88 02 1F 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E2 39 02 00 35 04 06 00 A8 [03:18:32]Write to MH i2c: E2 02 01 B6 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 88 02 1F 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E2 39 02 00 35 04 06 00 A8 00 00 CD [03:18:32]Write i2c OK [03:18:32]MH_I2C_Read... [03:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:32]Read from MH i2c: E2 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 03 00 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 03 00 B6 0A 00 90 00 34 [03:18:32]RAPDU: 90 00 [03:18:32]wFMCommunicate OK [03:18:32]wFMCommunicate request_size=10 [03:18:32]MH_SAM_APDU [03:18:32]CAPDU: 80 0D 02 02 05 85 F4 E3 DA 85 [03:18:32]Write to MH i2c: E2 0D 00 B7 0A 80 0D 02 02 05 00 85 F4 E3 DA 85 00 00 00 [03:18:32]Write i2c OK [03:18:32]MH_I2C_Read... [03:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:32]Read from MH i2c: E2 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 03 00 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 03 00 B7 0A 00 90 00 35 [03:18:32]RAPDU: 90 00 [03:18:32]wFMCommunicate OK [03:18:32]wFMCommunicate request_size=4 [03:18:32]MH_SAM_APDU [03:18:32]CAPDU: 80 0D 03 02 [03:18:32]Write to MH i2c: E2 08 00 B8 0A 80 0D 03 02 00 00 00 00 3D [03:18:32]Write i2c OK [03:18:32]MH_I2C_Read... [03:18:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:18:32]Read from MH i2c: E2 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 0B 00 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 0B 00 B8 0A 00 82 C3 08 08 5E 0A A5 90 90 00 30 [03:18:32]RAPDU: 82 C3 08 08 5E 0A A5 90 90 00 [03:18:32]wFMCommunicate OK [03:18:32]SAM_PROTO_SignData done [03:18:32]FM_MakeSignedData done [03:18:32]CreateOFDProtocolMessage [03:18:32]wFMCommunicate request_size=4 [03:18:32]MH_SAM_APDU [03:18:32]CAPDU: 80 11 00 00 [03:18:32]Write to MH i2c: E2 08 00 B9 0A 80 11 00 00 00 00 00 00 3D [03:18:32]Write i2c OK [03:18:32]MH_I2C_Read... [03:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:32]Read from MH i2c: E2 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 17 00 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 17 00 B9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 90 [03:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [03:18:32]wFMCommunicate OK [03:18:32]CreateOFDProtocolMessage done [03:18:32]OFDSenderStorePacket 145890 [03:18:32]StoreOFDPacket docnum=145890 [03:18:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 85 84 07 01 16 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 88 02 1F 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E2 39 02 00 35 04 06 00 A8 85 F4 E3 DA 85 82 C3 08 08 5E 0A A5 90 [03:18:32]CheckFolder [03:18:32]dirname=/storage/ofd_packets [03:18:32]CheckFolder done [03:18:32]ProducePacketName [03:18:32]name=ofd_packets/00145890 [03:18:32]NVStorageSaveData ofd_packets/00145890 [03:18:32]File name is /storage/ofd_packets/00145890 [03:18:32]Write 301 bytes [03:18:32]NVStorageSaveData done [03:18:32]OFDSenderStorePacket done [03:18:32]KKMCreateOFDPacket done [03:18:32]NVStorageSaveData kkm_last_timestamp [03:18:32]File name is /storage/kkm_last_timestamp [03:18:32]Write 4 bytes [03:18:32]NVStorageSaveData done [03:18:32]ExternCall_PrintAddStr [03:18:32]wPrintStart [03:18:32]Write to MH i2c: 01 00 00 BA 0A C4 [03:18:32]Write i2c OK [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: 01 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: 01 07 00 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: 01 07 00 BA 0A 00 00 00 00 00 FF 0F D9 [03:18:32]RasterBufferAndPrint [03:18:32]line Счет N : (1)160645 [03:18:32]line ИНН: 02508201610067 [03:18:32]line Контрольно-Кассовый Чек [03:18:32]line ПРОДАЖА [03:18:32]line ТРК (МРК, ГНК) : 42 [03:18:32]line Товар: 2710124130 [03:18:32]line Аи-92-К-2 [03:18:32]line 7.480 * 66.90 [03:18:32]line = 500.41 [03:18:32]line НДС 12% НСП 1% [03:18:32]line > о реализуемом товаре [03:18:32]line ОКРУГЛЕНИЕ: -0.41 [03:18:32]line ИТОГО: 500.00 [03:18:32]line Внесено: 500.00 [03:18:32]line СДАЧА: 0.00 [03:18:32]line НСП 1% : 4.43 [03:18:32]line НДС 12% : 53.14 [03:18:32]line Наличными: 500.00 [03:18:32]line Безнал.: 0.00 [03:18:32]line Место: АЗС № 126 "Партнер Нефть" [03:18:32]line Адрес: 720001, г. Кербен, ул. Ниязалы б/н, 41.483844, 71.758459 [03:18:32]line СНО: Общий режим [03:18:32]line Чек 14 28.10.2024 03:18 [03:18:32]line Смена: 546 ФФД: 1.0 [03:18:32]line ЗНМ: 0300000085 [03:18:32]line РНМ: 0000000000091683 [03:18:32]line Версия ККМ: 001 [03:18:32]line ФМ: 0000000000871745 [03:18:32]line ФД: 145890 [03:18:32]line ФПД: 185293292690053 [03:18:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T031832&type=1&operation_type=1&fn_number=0000000000871745&fd_number=145890&fm=185293292690053&tin=02508201610067®Number=0000000000091683&sum=50000 [03:18:32]written 0, free lines is 4095 [03:18:32]OFD Sender: Processing packet 145890 [packets to send 206, broken 205] [03:18:32]ProducePacketName [03:18:32]name=ofd_packets/00145890 [03:18:32]OFD Sender: To server: pG, [03:18:32]CommunicateWithHost lk.salyk.kg:30040 [03:18:32]ConnectInit lk.salyk.kg [03:18:33]Connected sock=10 [03:18:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0F 01 00 00 85 84 07 01 16 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 88 02 1F 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E2 39 02 00 35 04 06 00 A8 85 F4 E3 DA 85 82 C3 08 08 5E 0A A5 90 [03:18:33]Write to MH i2c: 01 00 00 E5 0A EF [03:18:33]Write i2c OK [03:18:33]MH_I2C_Read... [03:18:33]Read from MH i2c: 01 [03:18:33]MH_I2C_Read... [03:18:33]Read from MH i2c: 01 07 00 [03:18:33]MH_I2C_Read... [03:18:33]Read from MH i2c: 01 07 00 E5 0A 00 00 00 00 00 A6 0C A8 [03:18:33]RasterBufferAndPrint [03:18:33]line [03:18:33]line [03:18:33]line [03:18:33]line [03:18:33]line [03:18:33]written 0, free lines is 3243 [03:18:33]MH_Cut [03:18:33]Write to MH i2c: D1 01 00 EC 0A 01 C8 [03:18:33]Write i2c OK [03:18:33]MH_I2C_Read... [03:18:33]Read from MH i2c: D1 [03:18:33]MH_I2C_Read... [03:18:33]Read from MH i2c: D1 01 00 [03:18:33]MH_I2C_Read... [03:18:33]Read from MH i2c: D1 01 00 EC 0A 00 C7 [03:18:33]Write to MH i2c: 01 00 00 ED 0A F7 [03:18:33]Write i2c OK [03:18:33]MH_I2C_Read... [03:18:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 4F 00 00 00 C2 87 47 00 20 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 10 04 04 00 E2 39 02 00 F4 03 04 00 B3 A7 1E 67 B6 04 01 00 00 B6 62 DE AF 3E 4E CE AC [03:18:33]CommunicateWithHost err = 0 [03:18:33]CheckOFDResponse [03:18:33]1017 (14) - 77093643461234 [03:18:33]1041 (16) - 0000000000871745 [03:18:33]1040 (4) - 145890 [03:18:33]1012 (4) - 27.10.2024 20:50 [03:18:33]1206 (1) - 0 [03:18:33]OFD Sender: Remove packet 145890 [03:18:33]ProducePacketName [03:18:33]name=ofd_packets/00145890 [03:18:33]NVStorageDeleteData [03:18:34]OFD Sender: No OFD packet to send [03:18:34]*** Cut start [03:18:34]*** Partial cut [03:18:34]*** CUTSNS_PIN = 1 [03:18:34]*** CUTSNS_PIN = 0 [03:18:34]*** Brake cut motor [03:18:34]Read from MH i2c: 01 [03:18:34]MH_I2C_Read... [03:18:34]*** Stop cut motor [03:18:34]*** Cut end [03:18:34]Read from MH i2c: 01 07 00 [03:18:34]MH_I2C_Read... [03:18:34]Read from MH i2c: 01 07 00 ED 0A 00 00 00 00 00 FF 0F 0C [03:18:34]process_action close_receipt done [03:18:34]requested_data is exist [03:18:34]produce_requested_data [03:18:34]requested_item fm.sn is exist - process it [03:18:34]wFMCommunicate request_size=4 [03:18:34]MH_SAM_APDU [03:18:34]CAPDU: 80 11 00 00 [03:18:34]Write to MH i2c: E2 08 00 EE 0A 80 11 00 00 00 00 00 00 72 [03:18:34]Write i2c OK [03:18:34]MH_I2C_Read... [03:18:34]Read from MH i2c: E2 [03:18:34]MH_I2C_Read... [03:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:34]Read from MH i2c: E2 17 00 [03:18:34]MH_I2C_Read... [03:18:34]Read from MH i2c: E2 17 00 EE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 C5 [03:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 90 00 [03:18:34]wFMCommunicate OK [03:18:34]requested_item fd.num is exist - process it [03:18:34]SAM_PROTO_GetFieldsCounters [03:18:34]wFMCommunicate request_size=4 [03:18:34]MH_SAM_APDU [03:18:34]CAPDU: 80 13 00 00 [03:18:34]Write to MH i2c: E2 08 00 EF 0A 80 13 00 00 00 00 00 00 75 [03:18:34]Write i2c OK [03:18:34]MH_I2C_Read... [03:18:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:18:35]Read from MH i2c: E2 [03:18:35]MH_I2C_Read... [03:18:35]Read from MH i2c: E2 62 00 [03:18:35]MH_I2C_Read... [03:18:35]Read from MH i2c: E2 62 00 EF 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E2 39 02 00 0E 04 04 00 22 02 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 03 [03:18:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 33 10 04 04 00 E2 39 02 00 0E 04 04 00 22 02 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 [03:18:35]wFMCommunicate OK [03:18:35]SAM_PROTO_GetFieldsCounters done [03:18:35]requested_item shift.num is exist - process it [03:18:35]requested_item shift.opened is exist - process it [03:18:35]req_shift_opened [03:18:35]FM_GetShiftState [03:18:35]SAM_PROTO_GetShiftState [03:18:35]wFMCommunicate request_size=4 [03:18:35]MH_SAM_APDU [03:18:35]CAPDU: 80 13 01 00 [03:18:35]Write to MH i2c: E2 08 00 F0 0A 80 13 01 00 00 00 00 00 77 [03:18:35]Write i2c OK [03:18:35]MH_I2C_Read... [03:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:35]Read from MH i2c: E2 [03:18:35]MH_I2C_Read... [03:18:35]Read from MH i2c: E2 0E 00 [03:18:35]MH_I2C_Read... [03:18:35]Read from MH i2c: E2 0E 00 F0 0A 00 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 BB [03:18:35]RAPDU: 09 00 01 D9 DA 1E 67 00 00 00 00 90 00 [03:18:35]wFMCommunicate OK [03:18:35]SAM_PROTO_GetShiftState done [03:18:35]FM_GetShiftState done [03:18:35]req_shift_opened done [03:18:35]requested_item shift.open_date is exist - process it [03:18:35]req_shift_open_date [03:18:35]req_shift_open_date done [03:18:35]produce_requested_data done [03:18:35]produce_requested_data return {"fm.sn":"0000000000871745","fd.num":145890,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353} [03:18:35]process_action_free close_receipt [03:18:35]json_value_free [03:18:35]json_value_free done [03:18:35]process_json_proto returns [03:18:35]Send response to host [03:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871745","fd.num":145890,"shift.num":546,"shift.opened":1,"shift.open_date":1730075353}}} [03:18:35]free response buf [03:18:35]execute_script done [03:18:35]execute_script returns [03:18:35]free content buf [03:18:35]Sock 7.Close socket [03:18:35]Sock 7.Thread stoped [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send